Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, July 5, 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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Refreshing Fields
Dave Cleary
Posts: 61
 
Refreshing FieldsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Mar 11 9:00 AM
fiogf49gjkf0d

Hi


I have added a couple of fields to a TGroup box which is on a form in SalesLogix version 7.2.


I have made the fields read only depending on what the account status which seems to work as it should.


However I have an issue where if you access an account where the fields are read only and then move to the next account where the fields should be editable, the read only attribute is transfereed to the next account. To resolve this issue I do a ctrl F5 and refresh the screen and then it becomes editable as it should.


Is there a way of automatically refreshing the fields or TGroup when moving from account to account?


I would like to if possible refresh the fields rather than perform a full screen refresh which takes a short while tom perform.


Any help with the code syntax would be appreciated.


Thanks


Dave


 


 

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Refreshing FieldsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Mar 11 10:53 AM
fiogf49gjkf0d

 in Architect.....


Open up the form\plugin desired (System:Account Detail)


Name each of your controls (F4 to see the Properties, click on each control in turn, change the .Name property to txtMyFieldName....)


There should already be an AXFormChange SCRIPT event handler for the form you are looking at, if not add the event handler (click on the form, click on the Property's window EVENTS tab, double click on the OnChange event)


Whatever the name of the status contol is (pklAccountStatus for example) will control the script.


Maybe it's


MyTextField1.ReadOnly = True


MyTextField1.ReadOnly = True


SELECT CASE pklStatus.Text


     CASE "Active"


          MyTextField1.ReadOnly = True


          MyTextField1.ReadOnly = True


CASE "Inactive"


CASE ELSE


END SELECT


or maybe it's


If pklAccountStatus.Text = "Active" Then


     MyTextField1.ReadOnly = True


     MyTextField1.ReadOnly = True


Else


End If


You should buy the DevLogix book.....or examine examples up here....vbScript is the programming language. Microsoft has tutoring stuff online....


 


 


 

[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): 7/5/2025 9:17:36 AM