Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

passing values

hi,
i have problem with passing values from form to form. there are some repeted fields, so the edd user shoud have to fill only half of form.
thanks in advance for any idea you share
amra

Comments

  • FlakesFlakes Posts: 642Member
    : hi,
    : i have problem with passing values from form to form. there are some repeted fields, so the edd user shoud have to fill only half of form.
    : thanks in advance for any idea you share
    : amra
    :


    if you are using the get method,you could pass the values in the query string,if the method is post,use hidden form fields to pass on the values..

    What is the proplem you are facing?


  • amraamra Posts: 18Member
    : : hi,
    : : i have problem with passing values from form to form. there are some repeted fields, so the edd user shoud have to fill only half of form.
    : : thanks in advance for any idea you share
    : : amra
    : :
    :
    :
    : if you are using the get method,you could pass the values in the query string,if the method is post,use hidden form fields to pass on the values..
    :
    : What is the proplem you are facing?
    :
    hi,
    i am using clarion/asp. i found an example that works with
    Session("MyVariable")= TableNameFieldName on the form that passes values, and the opposite on other.
    this does not seem to work rigt...
    do you have any other idea?

    thank you
    amra

    :

  • FlakesFlakes Posts: 642Member
    : : : hi,
    : : : i have problem with passing values from form to form. there are some repeted fields, so the edd user shoud have to fill only half of form.
    : : : thanks in advance for any idea you share
    : : : amra
    : : :
    : :
    : :
    : : if you are using the get method,you could pass the values in the query string,if the method is post,use hidden form fields to pass on the values..
    : :
    : : What is the proplem you are facing?
    : :
    : hi,
    : i am using clarion/asp. i found an example that works with
    : Session("MyVariable")= TableNameFieldName on the form that passes values, and the opposite on other.
    : this does not seem to work rigt...
    : do you have any other idea?
    :
    : thank you
    : amra
    :
    : :
    :
    :

    Show what you have got so far...


  • amraamra Posts: 18Member
    : : : : hi,
    : : : : i have problem with passing values from form to form. there are some repeted fields, so the edd user shoud have to fill only half of form.
    : : : : thanks in advance for any idea you share
    : : : : amra
    : : : :
    : : :
    : : :
    : : : if you are using the get method,you could pass the values in the query string,if the method is post,use hidden form fields to pass on the values..
    : : :
    : : : What is the proplem you are facing?
    : : :
    : : hi,
    : : i am using clarion/asp. i found an example that works with
    : : Session("MyVariable")= TableNameFieldName on the form that passes values, and the opposite on other.
    : : this does not seem to work rigt...
    : : do you have any other idea?
    : :
    : : thank you
    : : amra
    : :
    : : :
    : :
    : :
    :
    : Show what you have got so far...
    :
    :
    so far...
    open the record set:

    oRSMyTable.Open "dbo.MyTable", objCN, adOpenStatic, adLockOptimistic, adCmdUnspecified

    MyTableField=session("ud_artikal")

    oRSMyTable.AddNew

    IF(Request.Form("txtMyTableMyField") = "" OR IsNUll(Request.Form("txtMyTableMyField")) ) THEN
    IF myStatus = "" THEN
    myStatus = "Your insert failed

    "
    END IF
    flgMissing = 1
    myStatus = myStatus & " NAZIV: " & ": Required field
    " & vbCRLF
    END IF
    IF Request.Form("txtMyTableMyField") <> "" THEN
    oRSMyTable.Fields("NAZIV").Value = TRIM(MID(Request.Form("txtMyTableMyField"),1,oRSMyTable.Fields("NAZIV").DefinedSize))
    END IF

    i think that session("xxx")=yyy does not assign any value to ud_artikal

    mybe you can help?

    :

  • FlakesFlakes Posts: 642Member
    : : : : : hi,
    : : : : : i have problem with passing values from form to form. there are some repeted fields, so the edd user shoud have to fill only half of form.
    : : : : : thanks in advance for any idea you share
    : : : : : amra
    : : : : :
    : : : :
    : : : :
    : : : : if you are using the get method,you could pass the values in the query string,if the method is post,use hidden form fields to pass on the values..
    : : : :
    : : : : What is the proplem you are facing?
    : : : :
    : : : hi,
    : : : i am using clarion/asp. i found an example that works with
    : : : Session("MyVariable")= TableNameFieldName on the form that passes values, and the opposite on other.
    : : : this does not seem to work rigt...
    : : : do you have any other idea?
    : : :
    : : : thank you
    : : : amra
    : : :
    : : : :
    : : :
    : : :
    : :
    : : Show what you have got so far...
    : :
    : :
    : so far...
    : open the record set:
    :
    : oRSMyTable.Open "dbo.MyTable", objCN, adOpenStatic, adLockOptimistic, adCmdUnspecified
    :
    [red]
    MyTableField=session("ud_artikal")
    response.Write "Debug:MyTableField"&MyTableField
    [/red]
    :
    : oRSMyTable.AddNew
    :
    : IF(Request.Form("txtMyTableMyField") = "" OR IsNUll(Request.Form("txtMyTableMyField")) ) THEN
    : IF myStatus = "" THEN
    : myStatus = "Your insert failed
    "
    : END IF
    : flgMissing = 1
    : myStatus = myStatus & " NAZIV: " & ": Required field
    " & vbCRLF
    : END IF
    : IF Request.Form("txtMyTableMyField") <> "" THEN
    : oRSMyTable.Fields("NAZIV").Value = TRIM(MID(Request.Form("txtMyTableMyField"),1,oRSMyTable.Fields("NAZIV").DefinedSize))
    : END IF
    :
    : i think that session("xxx")=yyy does not assign any value to ud_artikal
    :
    : mybe you can help?
    :
    : :
    :
    :


    When you change the lines as I have shown in red,what happens?And where are you assigning values to the Session variable?


  • amraamra Posts: 18Member
    : : : : : : hi,
    : : : : : : i have problem with passing values from form to form. there are some repeted fields, so the edd user shoud have to fill only half of form.
    : : : : : : thanks in advance for any idea you share
    : : : : : : amra
    : : : : : :
    : : : : :
    : : : : :
    : : : : : if you are using the get method,you could pass the values in the query string,if the method is post,use hidden form fields to pass on the values..
    : : : : :
    : : : : : What is the proplem you are facing?
    : : : : :
    : : : : hi,
    : : : : i am using clarion/asp. i found an example that works with
    : : : : Session("MyVariable")= TableNameFieldName on the form that passes values, and the opposite on other.
    : : : : this does not seem to work rigt...
    : : : : do you have any other idea?
    : : : :
    : : : : thank you
    : : : : amra
    : : : :
    : : : : :
    : : : :
    : : : :
    : : :
    : : : Show what you have got so far...
    : : :
    : : :
    : : so far...
    : : open the record set:
    : :
    : : oRSMyTable.Open "dbo.MyTable", objCN, adOpenStatic, adLockOptimistic, adCmdUnspecified
    : :
    : [red]
    : MyTableField=session("ud_artikal")
    : response.Write "Debug:MyTableField"&MyTableField
    : [/red]
    : :
    : : oRSMyTable.AddNew
    : :
    : : IF(Request.Form("txtMyTableMyField") = "" OR IsNUll(Request.Form("txtMyTableMyField")) ) THEN
    : : IF myStatus = "" THEN
    : : myStatus = "Your insert failed
    "
    : : END IF
    : : flgMissing = 1
    : : myStatus = myStatus & " NAZIV: " & ": Required field
    " & vbCRLF
    : : END IF
    : : IF Request.Form("txtMyTableMyField") <> "" THEN
    : : oRSMyTable.Fields("NAZIV").Value = TRIM(MID(Request.Form("txtMyTableMyField"),1,oRSMyTable.Fields("NAZIV").DefinedSize))
    : : END IF
    : :
    : : i think that session("xxx")=yyy does not assign any value to ud_artikal
    : :
    : : mybe you can help?
    : :
    : : :
    : :
    : :
    :
    :
    : When you change the lines as I have shown in red,what happens?And where are you assigning values to the Session variable?
    :

    i tried what you suggested, but nothing happens! i realy have a problem here... thak you for all support :)
    code i write in ebed points, of this tool-clarion/asp, is vb script. i have point before close and after open the record set. i shoud assign value to session variable in before close point. i use
    session("variable")= TableField
    in the next call of the same procedure ebed point after open shoud do the opposite of the above with
    TableField=session("variable")
    This is what i find in all of my literature, but it does nothing. mybe you use something else in the same situation?
    thank you
    amra
  • FlakesFlakes Posts: 642Member
    : : : : : : : hi,
    : : : : : : : i have problem with passing values from form to form. there are some repeted fields, so the edd user shoud have to fill only half of form.
    : : : : : : : thanks in advance for any idea you share
    : : : : : : : amra
    : : : : : : :
    : : : : : :
    : : : : : :
    : : : : : : if you are using the get method,you could pass the values in the query string,if the method is post,use hidden form fields to pass on the values..
    : : : : : :
    : : : : : : What is the proplem you are facing?
    : : : : : :
    : : : : : hi,
    : : : : : i am using clarion/asp. i found an example that works with
    : : : : : Session("MyVariable")= TableNameFieldName on the form that passes values, and the opposite on other.
    : : : : : this does not seem to work rigt...
    : : : : : do you have any other idea?
    : : : : :
    : : : : : thank you
    : : : : : amra
    : : : : :
    : : : : : :
    : : : : :
    : : : : :
    : : : :
    : : : : Show what you have got so far...
    : : : :
    : : : :
    : : : so far...
    : : : open the record set:
    : : :
    : : : oRSMyTable.Open "dbo.MyTable", objCN, adOpenStatic, adLockOptimistic, adCmdUnspecified
    : : :
    : : [red]
    : : MyTableField=session("ud_artikal")
    : : response.Write "Debug:MyTableField"&MyTableField
    : : [/red]
    : : :
    : : : oRSMyTable.AddNew
    : : :
    : : : IF(Request.Form("txtMyTableMyField") = "" OR IsNUll(Request.Form("txtMyTableMyField")) ) THEN
    : : : IF myStatus = "" THEN
    : : : myStatus = "Your insert failed
    "
    : : : END IF
    : : : flgMissing = 1
    : : : myStatus = myStatus & " NAZIV: " & ": Required field
    " & vbCRLF
    : : : END IF
    : : : IF Request.Form("txtMyTableMyField") <> "" THEN
    : : : oRSMyTable.Fields("NAZIV").Value = TRIM(MID(Request.Form("txtMyTableMyField"),1,oRSMyTable.Fields("NAZIV").DefinedSize))
    : : : END IF
    : : :
    : : : i think that session("xxx")=yyy does not assign any value to ud_artikal
    : : :
    : : : mybe you can help?
    : : :
    : : : :
    : : :
    : : :
    : :
    : :
    : : When you change the lines as I have shown in red,what happens?And where are you assigning values to the Session variable?
    : :
    :
    : i tried what you suggested, but nothing happens! i realy have a problem here... thak you for all support :)
    : code i write in ebed points, of this tool-clarion/asp, is vb script. i have point before close and after open the record set. i shoud assign value to session variable in before close point. i use
    : session("variable")= TableField
    : in the next call of the same procedure ebed point after open shoud do the opposite of the above with
    : TableField=session("variable")
    : This is what i find in all of my literature, but it does nothing. mybe you use something else in the same situation?
    : thank you
    : amra
    :


    Have you tried assigningSession variables with hard coded values?

    Ie.Instead of
    session("variable")= TableField

    Try giving
    session("variable")= "TableField"
    Wherever you are assigning the values..Then we will know whether the Session is working or not..


  • amraamra Posts: 18Member
    : : : : : : : : hi,
    : : : : : : : : i have problem with passing values from form to form. there are some repeted fields, so the edd user shoud have to fill only half of form.
    : : : : : : : : thanks in advance for any idea you share
    : : : : : : : : amra
    : : : : : : : :
    : : : : : : :
    : : : : : : :
    : : : : : : : if you are using the get method,you could pass the values in the query string,if the method is post,use hidden form fields to pass on the values..
    : : : : : : :
    : : : : : : : What is the proplem you are facing?
    : : : : : : :
    : : : : : : hi,
    : : : : : : i am using clarion/asp. i found an example that works with
    : : : : : : Session("MyVariable")= TableNameFieldName on the form that passes values, and the opposite on other.
    : : : : : : this does not seem to work rigt...
    : : : : : : do you have any other idea?
    : : : : : :
    : : : : : : thank you
    : : : : : : amra
    : : : : : :
    : : : : : : :
    : : : : : :
    : : : : : :
    : : : : :
    : : : : : Show what you have got so far...
    : : : : :
    : : : : :
    : : : : so far...
    : : : : open the record set:
    : : : :
    : : : : oRSMyTable.Open "dbo.MyTable", objCN, adOpenStatic, adLockOptimistic, adCmdUnspecified
    : : : :
    : : : [red]
    : : : MyTableField=session("ud_artikal")
    : : : response.Write "Debug:MyTableField"&MyTableField
    : : : [/red]
    : : : :
    : : : : oRSMyTable.AddNew
    : : : :
    : : : : IF(Request.Form("txtMyTableMyField") = "" OR IsNUll(Request.Form("txtMyTableMyField")) ) THEN
    : : : : IF myStatus = "" THEN
    : : : : myStatus = "Your insert failed
    "
    : : : : END IF
    : : : : flgMissing = 1
    : : : : myStatus = myStatus & " NAZIV: " & ": Required field
    " & vbCRLF
    : : : : END IF
    : : : : IF Request.Form("txtMyTableMyField") <> "" THEN
    : : : : oRSMyTable.Fields("NAZIV").Value = TRIM(MID(Request.Form("txtMyTableMyField"),1,oRSMyTable.Fields("NAZIV").DefinedSize))
    : : : : END IF
    : : : :
    : : : : i think that session("xxx")=yyy does not assign any value to ud_artikal
    : : : :
    : : : : mybe you can help?
    : : : :
    : : : : :
    : : : :
    : : : :
    : : :
    : : :
    : : : When you change the lines as I have shown in red,what happens?And where are you assigning values to the Session variable?
    : : :
    : :
    : : i tried what you suggested, but nothing happens! i realy have a problem here... thak you for all support :)
    : : code i write in ebed points, of this tool-clarion/asp, is vb script. i have point before close and after open the record set. i shoud assign value to session variable in before close point. i use
    : : session("variable")= TableField
    : : in the next call of the same procedure ebed point after open shoud do the opposite of the above with
    : : TableField=session("variable")
    : : This is what i find in all of my literature, but it does nothing. mybe you use something else in the same situation?
    : : thank you
    : : amra
    : :
    :
    :
    : Have you tried assigningSession variables with hard coded values?
    :
    : Ie.Instead of
    : session("variable")= TableField
    :
    : Try giving
    : session("variable")= "TableField"
    : Wherever you are assigning the values..Then we will know whether the Session is working or not..
    :
    hi,

    Session is working ok.
    so far, it seems like the problem is how do i access field and take it's value or assign value to a specific field on the form.
    :

  • amraamra Posts: 18Member
    than you Flakes for all your suggestions. it works now, you helped me a lot.

    i assign value as
    session("var")=oRSTable.Fields("Field").Value
    and on the other side
    TableField=session("var"),
    mybe it could help someone....
    amra
Sign In or Register to comment.