Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Programmatically changing tabs
Hi,
Let's say I have 2 tabs, and I am currently in the first tab. To Programmatically switch to the other tab, you would do this:
This command does something, as the second tab icon becomes visibly selected, but the contents of the tab area does not change. It still displays the contents of the first tab:
Is there something else I have to do to get the contents of the second tab to load? The contents is an OI edit table, btw.
Let's say I have 2 tabs, and I am currently in the first tab. To Programmatically switch to the other tab, you would do this:
Set_Property(@window:".OLE_TAB", "OLE.SelectedTab", 2)
This command does something, as the second tab icon becomes visibly selected, but the contents of the tab area does not change. It still displays the contents of the first tab:
Is there something else I have to do to get the contents of the second tab to load? The contents is an OI edit table, btw.
Comments
Set_Property(@Window, 'VPOSITION', 2)
i think you should add this to the documentation, as I would imagine this is a common use case. Or perhaps create a new tab method that does just this.
Creating a method that interacts with the OI form in this way would be a cool feature, but I'm not sure that is easy to do. There are limits to what our controls can do internally to the OI environment itself.
ok , point taken. I have run into another issue however.
When I call this:
Set_Property(@window:".OLE_TAB", "OLE.SelectedTab", 2)
my srp buttons disappear.
Here is what my form looks like before I call that line of code:
And here is what it looks like after:
Thanks
The buttons are on all pages, and running that command doesn't screw everything up.
Unfortunately, this isn't much to go on. I'm very inclined to suggest this is a problem in your code.
hi, you're right there was a bug in my code.
thanks