Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, June 30, 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: Text box with calculation
Anjo Tanada
Posts: 24
 
Text box with calculationYour last visit to this thread was on 1/1/1970 12:00:00 AM
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?
[Reply][Quote]
Anjo Tanada
Posts: 24
 
Re: Text box with calculationYour last visit to this thread was on 1/1/1970 12:00:00 AM
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();
}
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Text box with calculationYour last visit to this thread was on 1/1/1970 12:00:00 AM
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
[Reply][Quote]
Anjo Tanada
Posts: 24
 
Re: Text box with calculationYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 May 10 11:15 PM
thanks for your help, I got the think got the code to work

[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/30/2025 5:14:49 AM