Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, June 25, 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 - SalesLogix Web Client (Pre-7.2)
Forum to discuss using & developing the legacy SalesLogix Web Client (For versions 7.0 and earlier). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Client (Pre-7.2) | New ThreadView:  Search:  
 Author  Thread: I need some direction building items in a combo box from the results of a query for the Web Client.
Steve Margeson
Posts: 38
 
I need some direction building items in a combo box from the results of a query for the Web Client.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Aug 06 7:23 AM
fiogf49gjkf0d
Can someone get me started in the right direction?
I'm working with the Web Client and need to build a combo box for users to select. The problem is that I can't find a way to add my items to the Combo box while I'm scrolling through the recordset in my Action. If there is a way to do it in a jscript instead of an action, please someone enlighten me.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: I need some direction building items in a combo box from the results of a query for the Web Client.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Aug 06 9:36 AM
fiogf49gjkf0d
Here are 2 ways I would do it:
1)
Have the action build the HTML for the select item and its options.
On the web client, use Jscript to invoke the action and retreive the result.
Insert the result from the action into the innerHTML of an existing item on the Web.

2)
Have the action return an XML object containing the options you want to place on your Combo box (Select element)
On the Web Client, use JScript to invoke the action, retreive the results and load them into an XML Object
Using Javascript, loop thru the Elements on the XML Object and add them as Options into the Combo box

Another Alternative would be to use the Include tag and load the items onto the Template. I would use this approach if you do not need to call the action dynamically based on user response.

Sorry for the lack of Code samples, but let me know which approach you prefer and/or wether you would like some sample code.
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: I need some direction building items in a combo box from the results of a query for the Web Client.Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Aug 06 8:21 AM
fiogf49gjkf0d
In the action just set the return result to be the physical combo html. i.e. set

html = "<select name="blahblah">"

then start the loop

html = html & "<option value=rsvalueetc>"

end the loop

html = html & "</select>"

setactionresult html

Much easier than the xml or javascript ways.
[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): 6/25/2024 9:36:01 PM