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!
|
|
Tab view
Posted: 25 Jun 07 4:13 PM
|
SLX v6.2.4
I have a main view with a field that depending upon the value in this field when the Main view is displayed, I want to have a certain tab display according to that value. Is there a way to do this? I thought there might be a way to do this thru the Application.MainViews Object..i.e.
If field.text = "XYZ" then MainViewObject.TabsView = "My Tab"
is it something like this? if anyone has done this could you let me see how to do?
Thanks
John |
|
|
|
Re: Tab view
Posted: 25 Jun 07 5:00 PM
|
I don't believe the TabsView provides this level of control over the tabs. The only thing that comes to mind is the Application.BasicFunctions.SetTabVisibleProperty (which I don't think will give you the results you're after) |
|
|
|
Re: Tab view
Posted: 26 Jun 07 2:18 PM
|
what i am trying to do is the same functionality that exists now...when you are, lets say for example at the account level, and if you put your cursor on any tab and right click you can bring up the menu of all of the tabs...and if you uncheck a tab it will disappear from the tabs view...that is the functionality i want to mimic..being able to make a tab disappear (obviously its still there under more tabs) but it disappears....and if they choose another value it could re-appear and the current tab disappears...
can we do that with code? |
|
|
|
Re: Tab view
Posted: 26 Jun 07 2:27 PM
|
figured it out....Application.BasicFunctions.SetTabVisibleProperty does do the trick...
thanks |
|
|
|
Re: Tab view
Posted: 26 Jun 07 3:50 PM
|
Interesting idea. Do you have other tabs visible or is this one controlled tab the only one? We have a similar problem at the opportunity level where it'd be nice to hide/show a tab depending on the opp type. We are making due no problem currently but that could simplify things. |
|
|
|
Re: Tab view
Posted: 27 Jun 07 7:33 AM
|
No we have other tabs visible...this does make it easier so that when they choose a certain value i can just display the tab I want... |
|
|
|