11/5/2026 4:31:38 PM
|
| |
| 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!
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.
|
|
|
|
Text box with calculation
Posted: 17 May 10 5:24 AM
|
| I have a text box with in the C#snippet action obsolete that works and shows the value in the text box but my problem is it does not save when i clicked the save button? |
|
|
|
Re: Text box with calculation
Posted: 17 May 10 5:38 AM
|
Here is the code for reference
if(this.txtAirfare.Text == "" && this.txtTax.Text == "") { double a = double.Parse(this.txtAirfare.Text); double b = double.Parse(this.txtTax.Text); a = 0.0000; b = 0.0000; } else { double a; double b = double.Parse(this.txtAirfare.Text); double c = double.Parse(this.txtTax.Text); a = b + c; this.txtTotal.Text = a.ToString(); } |
|
|
|
Re: Text box with calculation
Posted: 18 May 10 3:53 AM
|
You should be updating the ENTITY not the control.
so get a reference to the current entity i.e. Sage.Entity.Interfaces.IAccount acc = (Sage.Entity.Interfaces.IAccount)this.BindingSource.Current;
acc.TOTALPROPERTY = a.ToString();
If txtAirFare and txtTax are properties of the entity as well, you should be accessing them through the entity model also (not using the value directly from the control).
Thanks, NIck
|
|
|
| |
|
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!
|
|
|
|
|
|
|
|