6/18/2025 1:28:31 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 writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
Adding 'More Tabs...' tab
Posted: 03 Jun 07 7:10 PM
|
Hi,
I have a script that delete all tabs based on certain condition (including 'More Tabs...' tab) and when the condition changes I want to be able to just add the 'More Tabs...' tab. Any idea on how to do this?
Thanks. |
|
|
|
Re: Adding 'More Tabs...' tab
Posted: 04 Jun 07 10:03 AM
|
Using the code below will show individual tabs (listed in the arguement):
Application.BasicFunctions.SetTabVisibleProperty "Account:Activities",TRUE
Or Hide them:
Application.BasicFunctions.SetTabVisibleProperty "Account:Activities",FALSE
But Moretabs isn't addressable (as far as I know), BUT using the menu option 'View' > 'Restore Default Layout' will show the Moretabs again (assuming you haven't hidden that in the mainview). The 'Restore Default Layout' menu option just calls the function 'Window:RestoreSplitter' so it stands to reason that calling that function (Application.BasicFunctions.DoInvoke?) and then showing/hiding tabs as desired will work... |
|
|
|
Re: Adding 'More Tabs...' tab
Posted: 04 Jun 07 10:36 AM
|
If this is 6.2 or higher then there might be a way to do this. I've not tried this so I can't tell you if it works or not. However, the MainView object does have a "MoreTabsVisible" property which you can set to True or False. Whether it "behaves" correctly at runtime or not is something you'll have to test.
So, if you got a reference to the MainView, you'd do something like this:
Application.MainViews.ActiveView.MoreTabsVisible = False
It *should* work, but like I said, I've not tested that at runtime.
-Ryan |
|
|
|
Re: Adding 'More Tabs...' tab
Posted: 04 Jun 07 7:40 PM
|
Thanks Shawn & Ryan,
The environment is 7.01. The MoreTabsVisible property is a read-only at runtime, so not much use...
I'm trying to disable/lock data input based on ticket status, and although the tabs can be hidden, user still can use 'Restore Default Layout' and be able to edit closed tickets. Is there any other elegant way to achieve this?
Thanks. |
|
|
|
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!
|
|
|
|
|
|
|
|