Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 20, 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: Using FormWrapper class to set Account Tab form to Read-Only
Sarah Peterson
Posts: 37
 
Using FormWrapper class to set Account Tab form to Read-OnlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Oct 07 3:46 PM
I have a custom account tab that we use in both the Sales and the support client. Currently, we have two separate versions of this tab. The SalesLogix client tab is updateable whereas the support tab is read-only. I am making some updates to the tabs for a project and decided rather than maintaining two separate tabs it would be nice to only have to maintain one. So, I tried to put the FormWrapper class coding in the OnOpen event of the tab. The tab remains updateable in both clients. I have moved the code to the OnChange of the form and I get the same results. I have used this code before for add/edit screens and it works great. I am sure that I am missing something rather simple but cannot figure it out.

Here is my current code (I have tried to change it different ways and receive the same results).

dim frm

if Application.Name = "Support" then
set frm = New FormWrapper
frm.Form = "frmInstall"
frm.Readonly = true
else
frm.ReadOnly = false
end if

I have not tried putting this code on the Account Detail screen. Is that where I would need to put it? All of our support tabs are read-only and a majority of them currently have two versions (one for the support client use and one for use in the Sales client). If we could get this working it would save a lot of time on maintenance.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Using FormWrapper class to set Account Tab form to Read-OnlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Oct 07 4:10 PM
First of all, whether this will even work in the support client - no idea. I don't work in the support client ever so I can't say if it will work or not.

Second, don't pass the form name as a string.

Change it from this:

frm.Form = "frmInstall"


to this:

frm.Form = frmInstall


Notice no quotes.
[Reply][Quote]
Sarah Peterson
Posts: 37
 
Re: Using FormWrapper class to set Account Tab form to Read-OnlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 19 Oct 07 7:36 AM
When I do this, the radio buttons and checkboxes get disabled but all of the lookup edits, datetime edits, picklist, and memo fields are still not disabled or read-only. Does this mean that what I am trying to do cannot be done in support? At least we're heading in the right direction!
[Reply][Quote]
Sarah Peterson
Posts: 37
 
Re: Using FormWrapper class to set Account Tab form to Read-OnlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Oct 07 1:59 PM
Are there any other thoughts on this? Or should I just give up and create a second screen to use for the support, read-only side?
[Reply][Quote]
Ted Sturr
Posts: 78
 
Re: Using FormWrapper class to set Account Tab form to Read-OnlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Oct 07 3:14 PM
This is just a shot in the dark - I haven't touched the Support client in years and it is actually no longer available in the 7.x system I have on our server. But you might want to look at the TypeName - my hunch is that the support form has different names for those controls. So if you figure those out the code should work for you. No promises, justa sugestion.

Since I am suggesting things - have you looked at taking people off of the support client and doing everything with the one client? This might solve a lot of other headaches for you.

Ted
[Reply][Quote]
Sarah Peterson
Posts: 37
 
Re: Using FormWrapper class to set Account Tab form to Read-OnlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Oct 07 3:22 PM
Thanks Ted, I will look into it. The only thing is that this form isn't a support, legacy form. It is just a form, written in 6 code for Sales that also works as an account tab in the support client.

Anyhoo....we had planned on doing the 7.2 upgrade this next year. We would like to move all of our support users over to the web client at once. Then migrate the sales users over to the web version at a different date as we have over 300 employees. However, due to budgeting for next year, I believe this project was moved out another year!!! YUCK...not very thrilled about it, but I'm not sure there is much I can do at this time. Thanks for the suggestions...
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Using FormWrapper class to set Account Tab form to Read-OnlyYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Oct 07 6:40 PM
Hi Sarah,

I would use Ted's suggestion. Adding a "stop" statement to the code just before the loop would be a good idea too so you could step through the code in a debugger to see what exactly isn't working.

-Ryan
[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/20/2025 6:56:30 PM