Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing parameter(s) to CE????

Status
Not open for further replies.

middlename

Programmer
Mar 14, 2003
16
0
0
US
I am looking for any suggestions or information regarding
passing parameter(s) programmatically through a custom front-end ( like ASP pages???...) to the CE. I am not sure if it is possible???

Many thanks!

 
>I am looking for any suggestions or information regarding passing parameter(s) programmatically through a custom front-end ( like ASP pages???...) to the CE.

Here's how I'm doing it...
Code:
   '*** Add Parameters ***
   Dim CRParam, URLParam, Found
   For Each CRParam In Session("oRpt").ParameterFields
      '*** Response.Write(&quot;CRParam <b>&quot; & CRParam.Name & &quot;</b><br>&quot;):Response.Flush()
      Found = False
      For Each URLParam In Split(Request(&quot;params&quot;),&quot;;&quot;)
         If ( CStr(CRParam.Name) = CStr(Trim(Split(URLParam,&quot;=&quot;)(0))) )Then
            Call CRParam.SetCurrentValue ( CStr(Trim(Split(URLParam,&quot;=&quot;)(1))) )
            Found = True
         End If
      Next
      If ( Found = False ) Then Response.Write(&quot;<b>WARNING:</b> No matching Parameter found for <b>&quot; & CRParam.Name & &quot;</b><br>&quot;):Response.Flush()
   Next

I pass parameters to the page in this format...

&quot;{?param1}=value1;{?param2}=value2&quot;

That's an &quot;=&quot; between P and V, and an &quot;;&quot; between each P/V pair.


Good Luck! [thumbsup2]
WindUp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top