Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Monday, June 30, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
6/30/2025 9:29:00 AM
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 Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: Text box with calculation
Anjo Tanada
Posts: 24
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?
[
Reply
][
Quote
]
Anjo Tanada
Posts: 24
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();
}
[
Reply
][
Quote
]
Nick Hollis
Posts: 549
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
[
Reply
][
Quote
]
Anjo Tanada
Posts: 24
Re: Text box with calculation
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
|
page cache (param): 6/30/2025 10:26:31 AM