8 Replies Latest reply: Feb 13, 2012 9:55 AM by Logesh Jayaraman RSS

    Parameterised EDX

      Does anyone know if its possible to pass a parameter in the URL to an event driven exectution? I'm looking to generate some price files as of a given point in time and need the user to be able to pass a date to server to include in the refresh. Any ideas?

      Thanks,

       

        • Parameterised EDX
          Stefan Bäckstrand

          I'm going to assume you're running v9.

          In the EDX call XML, you can specify a variable and it's value, that will be inserted in the document.

           

          <Global method="RequestEDX" key="YOUR_EDX_KEY">
          <i_TaskIDOrTaskName>MyTask</i_TaskIDOrTaskName>
          <i_Password>EDX_PWD</i_Password>
          <i_VariableName>testvar</i_VariableName>
          <i_VariableValueList>
          <string>Value1</string>
          </i_VariableValueList>
          </Global>

          Currently, it seems to be limited to one variable, and one value.



          • Parameterised EDX
            Stefan Bäckstrand

            Also, if you are just in need of the date/time in the reload, you can of course get that from a macro in the script exectution of the document (or the QV script function ReloadTime()), but I suppose it's not that easy.

              • Parameterised EDX
                phersan_axis

                Is the EDX trigger still limited to only one variable or has that been changed? I'd like to be able to pass two variables with an EDX trigger, is this possible? If so, what would the structure look like? I've tried the following with no luck:

                Example: I want to pass VarModelID = 2000 and VarCompanyID = 100

                [..]
                <i_VariableName>VarModelID</i_VariableName>
                <i_VariableValueList>
                <string>2000</string>
                </i_VariableValueList>

                <i_VariableName>VarCompanyID</i_VariableName>
                <i_VariableValueList>
                <string>100</string>
                </i_VariableValueList>

                [..]

                AND

                [..]
                <i_VariableName>VarModelID</i_VariableName>
                <i_VariableName>VarCompanyID</i_VariableName>
                <i_VariableValueList>
                <string>2000</string>
                <string>100</string>
                </i_VariableValueList>
                [..]

                 

                Any other suggestions? Is this not supported? Using version 9 SR6 with publisher/server licenses.