The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Passing parameters from SLX to .NET
Posted: 14 Dec 06 1:23 PM
|
fiogf49gjkf0d I am trying to call an ASP.NET page that I created from SLX. I know that call to SLX pages look like this:
"<#SYS name=swcpath>/view?name=hdml_condet&id=$(conid)&<#HDSID>"
What I need to do is call my .NET page but pass parameters from SLX to the .NET page. Here's what I have so far:
"http://srv:3333/slxweb/SLXtoNET.aspx?id="<#AF name=userid>?<#AF name=accid>"
This isn't working. I know I'm doing something wrong, just don't know what.
|
|
|
|
Re: Passing parameters from SLX to .NET
Posted: 14 Dec 06 1:37 PM
|
fiogf49gjkf0d #AF only works if the current page was called with those named value pairs in the get. For example, if a user clicks on a link that calls this address:
/view?name=page1&userid=xxxyyyzzzooo&accid=bbbeeerrrttt
then you do have access to both userid and accid within page1.
If the form you are working on is a data form for account, you are better of using the #F tag as you can ensure that no matter how the user navigated to that form, you have the correct context.
Also note that if you are after the current userid you should use the #sys tag.
< #sys name=theuserid >
Hope that helps,
Timmus |
|
|
|
Re: Passing parameters from SLX to .NET
Posted: 14 Dec 06 1:44 PM
|
fiogf49gjkf0d Also, if the #AF tags are being correctly handled by SLX the output would be something like:
"http://srv:3333/slxweb/SLXtoNET.aspx?id="123123123123?abcabcabcabc"
I dont think this is valid. Note the missing apersand, the extra question mark, the extra double quote, and the 2nd name value pair name is missing - you just have the value. You probably want something like:
"http://srv:3333/slxweb/SLXtoNET.aspx?id=<#AF name=userid>&nvp2=<#AF name=accid>"
FYI the server side tags are replaced as is and don't need to be treated like you are concatenating a string.
Timmus |
|
|
|
Re: Passing parameters from SLX to .NET
Posted: 14 Dec 06 2:37 PM
|
fiogf49gjkf0d Timmus
I can't seem to get it to work - I've tried #SYS, #AF, #F and nothing is working for me. I tried to pass just one parameter and still nada.
Here are the variations that I've tried (note the double quote changes as well):
"http://srv:3333/slxweb/SLXtoNET.aspx?id=<#F name=userid>" "http://srv:3333/slxweb/SLXtoNET.aspx?id=<#AF name=userid>" "http://srv:3333/slxweb/SLXtoNET.aspx?id=<#SYS name=userid>"
"http://srv:3333/slxweb/SLXtoNET.aspx?id="<#F name=userid> "http://srv:3333/slxweb/SLXtoNET.aspx?id="<#AF name=userid> "http://srv:3333/slxweb/SLXtoNET.aspx?id="<#SYS name=userid>
"http://srv:3333/slxweb/SLXtoNET.aspx?id="<#Fname=userid>" "http://srv:3333/slxweb/SLXtoNET.aspx?id="<#AF name=userid>" "http://srv:3333/slxweb/SLXtoNET.aspx?id="<#SYS name=userid>"
Corey |
|
|
|
Re: Passing parameters from SLX to .NET
Posted: 14 Dec 06 2:41 PM
|
fiogf49gjkf0d it is theuserid not userid:
"http://srv:3333/slxweb/SLXtoNET.aspx?id=<#SYS name=theuserid>"
BTW are you Allen or Corey?
Hope this helps,
Timmus |
|
|
|
Re: Passing parameters from SLX to .NET
Posted: 14 Dec 06 2:58 PM
|
fiogf49gjkf0d That worked - thanks. The reason I was still using userid was because I thought you were making a general reference to the userid and didn't know that theuserid was what I was suppose to call. I am Allen. |
|
|
| |
|