Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
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!
 Web Forums - ASP/ASP.NET/Web Services/Other
Forum to discuss building external web applications for SalesLogix. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to ASP/ASP.NET/Web Services/Other | New ThreadView:  Search:  
 Author  Thread: Passing parameters from SLX to .NET
Allen
Posts: 13
 
Passing parameters from SLX to .NETYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.

[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Passing parameters from SLX to .NETYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Passing parameters from SLX to .NETYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Allen
Posts: 13
 
Re: Passing parameters from SLX to .NETYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Passing parameters from SLX to .NETYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Allen
Posts: 13
 
Re: Passing parameters from SLX to .NETYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
Timmus Agersea
Posts: 328
 
Re: Passing parameters from SLX to .NETYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Dec 06 3:03 PM
fiogf49gjkf0d
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 4:05:48 PM