I have a form set to ‘List View, Locked’ in a tabless tab panel. I would like to give the user a button option to expand the list vertically. I can get the tabless tab panel to expand, but the form displayed in it stays the same size (it displays the same number of rows in the list). Is there any way to get the form displayed to expand with the tabless tab panel?
Not sure what you try to do here.
You want each row of the list also to expand? Or just that you can see more rows, thus making the list higher?
The latter is possible by defining the anchors on the tab-less tab panel.
Just anchor it at top, bottom, left and maybe right. This will resize your tab-panel and therefore show more of the linked form inside that tab-panel.
Hope this helps
Robert… My goal is to make more rows visible. Anchoring the bottom of the tabless tab panel produces the desired effect when you resize the entire window (as expected), but has no effect when programatically expanding the size of the tab panel itself, using setSize. More thoughts?
Ahh I see what you mean now.
Indeed it doesn’t reload the (un)related form. Also using application.updateUI() doesn’t help.
I did some testing and found that switching forms did the trick to force the tabpanel to load the (un)related form correctly.
Here is some example code:
var myObject = elements.myTabpanel;
myObject.setSize(myObject.getWidth(), myObject.getHeight()+20);
application.showForm(forms.myOtherForm);
application.showForm(forms.myCurrentForm);
Hope this helps
Thanks, Robert. I’ll give that a try.
Robert…As it turns out, you don’t need to show another form. It works just to do an ‘application.showForm(forms.myCurrentForm);’ after enlarging the tabless tabpanel. Thanks for putting me on the right track.