Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 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: How to bind values form List box
Elamparithi.C
Posts: 17
 
How to bind values form List boxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Aug 08 12:13 PM
hi ,
I am using list box for displaying gender information, based on the contact person prefix to keep on changing the gender ,after I save the record and seeing in the database is nothing .
I am using the server code and design given below:

BindingSource.Bindings.Add(new Sage.Platform.WebPortal.Binding.WebEntityBinding("CContactExt.Gender", cboGender, "Text"));
-----------------------
protected void nmeContactName_NamePrefixChanged(object sender, EventArgs e)
{
switch (nmeContactName.NamePrefix)
{
case "Mr":
cboGender.SelectedItem.Text = "M";
break;
case "Miss.":
cboGender.SelectedItem.Text = "F";
break;
default:
cboGender.SelectedItem.Text = "";
break;
}
}
----------------
Design code:
Rows="1" >


Thanks
Elamparithi.C
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: How to bind values form List boxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Sep 08 10:17 AM
YOuve no doubt resolved this by now, but it may help somebody else...

Whenever changing values of a Property, always update the Entity itself NOT the control. This is the old school way....

So for instance:

protected void nmeContactName_NamePrefixChanged(object sender, EventArgs e)
Sage.Entity.Interfaces.IContact con = this.BindingSource.Current as Sage.Entity.Interfaces.IContact;
{
switch (nmeContactName.NamePrefix)
{
case "Mr":
con.CContactExt.Gender = "M";
break;
case "Miss.":
con.CContactExt.Gender = "F";
break;
default:
con.CContactExt.Gender = "";
break;
}
}

etc. etc.....
[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): 2/23/2025 11:31:14 PM