Skip to main content

how to use a variable in a where clause in a form

Comments

2 comments

  • Permanently deleted user

    Hi Jeff

    have you seen this video http://support.geocortex.com/configuring-listbox-and-combobox-controls-in-forms ?

    However on a re-read of your question you want to dynamically change the where statement which you can do BEFORE the form is presented to the user using RuntimeModifications.

    So for what you want you will need to have two forms where the second form has RuntimeModifications applied  using

    Assign Activity:   form.Find(Of ComboBoxFormItem)("<FormItemID>").QueryWhereClause    =  strFromPrevForm & " = {0}"

    Make sense?

    Regards

    Ralph

    0
  • Permanently deleted user

    So for what you want you will need to have two forms where the second form has RuntimeModifications applied using

    Assign Activity:  form.Find(Of ComboBoxFormItem)("<FormItemID>").QueryWhereClause  = strFromPrevForm & " = {0}"

     

    So do you mean two separate display form activities?

     

    or the two list  boxes in the same form?

     

    in the assign activity is this all one phrase?   form.Find(Of ComboBoxFormItem)("<FormItemID>").QueryWhereClause  = strFromPrevForm & " = {0}"

    or is it 2 different assign activites ,  I see two equal signs?

    by strFromPrevForm is that what I am calling var1 ?

    I tried this in the assign expression editor and it did not like it.  am i missing something here?

    please let me know?

    Jeff

     

     

     

     

     

     

    0

Please sign in to leave a comment.