12/16/2025 2:36: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.
|
|
|
|
How to toggle a control's enabled property on a detail screen....
Posted: 11 Dec 08 3:24 PM
|
I have a button on the ContractDetail.aspx screen. When pressed I have some values updated and saved - works like a champ. The button is then disabled so it can't be clicked again. However, when I browse to the next record, if those values aren't in the database I want to reenable the button.
How do I do this?
I tried a C# snippet on the form's onload but that only fires once. I then set the repaint event to true as well but that didn't change anything.
I added the contractID field to a textbox and tried the onchange of that - also didn't work.
What else can I try?
|
|
|
|
Re: How to toggle a control's enabled property on a detail screen....
Posted: 12 Dec 08 4:15 PM
|
Resolved!
(I had no clue this was even an option until I spoke directly with Mike at PSG - thanks!)
I removed my OnLoad C# code altogether - I also remove the ContractID and onchange code that I was trying (and failing) with.
My solution is this: I bound the 'Enabled' property of the button to this evaluative statement:
(PROCESSSTATE < 1) OR (PROCESSSTATE > 2)
(PROCESSSTATE is a property on the Contract entity, of course)
and it works perfectly!
|
|
|
|
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!
|
|
|
|
|
|
|
|