Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, June 29, 2025 
 
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 Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: SLX Web Development....c# question
Andrew Grandin
Posts: 272
 
SLX Web Development....c# questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Aug 10 3:48 AM
Hi All, this question relates to an slx development im dong but is more a general coding question.....

I have two listboxes A and B, i populate listbox A with sql that retrieves user names and their related ID's from the USERINFO table. I set A's datatextfield as username for the display property and have the ID as the hidden datavaluefield.

I am able to move usernames back and forth from listbox A to listbox B with no problems but im not sure how to get the users ID (datavaluefield) to move between listboxes with their name and have the ID remain hidden.

What i want is to allow users to move names back and forth as much as they like, then once they are finished they will click OK and i will grab the ID's of the names they have moved into listbox B for use later.

Any ideas?
[Reply][Quote]
Elliot Rodriguez
Posts: 15
 
Re: SLX Web Development....c# questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Aug 10 7:36 AM
One thing you might want to try is creating an intermediate object, like a DataTable, that implements IEnumerable and supports databinding. When you trap the postback from list A, add the element into your intermediate object (you can theoretically add the ListItem itself), then bind the intermediate object to list B.

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: SLX Web Development....c# questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Aug 10 11:10 AM
Quote:
Originally posted by Andrew Grandin

Hi All, this question relates to an slx development im dong but is more a general coding question.....

I have two listboxes A and B, i populate listbox A with sql that retrieves user names and their related ID's from the USERINFO table. I set A's datatextfield as username for the display property and have the ID as the hidden datavaluefield.

I am able to move usernames back and forth from listbox A to listbox B with no problems but im not sure how to get the users ID (datavaluefield) to move between listboxes with their name and have the ID remain hidden.

What i want is to allow users to move names back and forth as much as they like, then once they are finished they will click OK and i will grab the ID's of the names they have moved into listbox B for use later.

Any ideas?


Are you doing the Move Client Side using Javascript or Server Side?

Server side should be much easier as you should be using ListItem objects.
So, from the ListBox, get the SelectedItem, which would bring the Text and Value so that you move it over.

Similar if you are using Client Side javascript. You would set both the Text and Value properties for the Element item as you move it.

You should be able to find plenty of examples if you search on Google on how to do this.
[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 © 2025 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/29/2025 1:41:09 PM