11/4/2026 1:35:24 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.
|
|
|
|
New detail tab not emptying fields when null.... (7.5)
Posted: 29 Oct 08 11:28 AM
|
I added a new tab to the account entity. Nothing fancy, just 10 or so fields after I extended the Account table. Three checkboxes and a bunch of numeric fields.
Data is saved correctly.
However, when I use the VCR buttons and go to the next record, any field that previously had a value in it (on the old record) stays on the screen IF the new record I browsed to has null in the database for that field.
Almost like it's not bound to the AccountID field - except that it works correctly if there is a data vale in that field - then it's refreshed properly. As far as I can tell this only effects the integer fields - not the boolean checkbox fields or the one text field (those fields are cleared properly when the data is null).
Is this a bug somewhere? Can anyone else reproduce this? Or is this just me and my inexperience missing a step creating this form / property / control....
|
|
|
|
Re: New detail tab not emptying fields when null.... (7.5)
Posted: 30 Oct 08 3:32 PM
|
The only way around this that I've found is to simply not use the 'Numeric' control.
I checked out what Sage was doing with the 'Employees' field on the Details tab and it's a textbox with a little bit of C# - that's it.
So, all I did was convert my numerics to textboxes and whalla - it works perfectly...
So, beware of using the 'Numeric' controls is all I can say.....
|
|
|
| |
|
Re: New detail tab not emptying fields when null.... (7.5)
Posted: 09 Nov 08 5:18 AM
|
Numeric field has exactly the same beaviour in 7.2.2
It's a bug in the Text set property. There is a if (String.IsNullorEmpty(value)).
So the Text property is not set if the value you provide is null...
You can use a textbox as Sage did (wisest choice) or manually set the formattedText property for the numeric control in the onload script. Either case you have to write down a small amount of code.
I found also that the numeric control has trouble firing onchange events (I can't say if this is due to the configuration I was using or what...).
So probably the better choice is not to use it. |
|
|
|
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!
|
|
|
|
|
|
|
|