Hi,
I have a created a class inherited from RunBaseBatch class with the dialog as displayed below.
The dialog form displays a dynamic dialog Field based on the job selected but the form did not auto re-size to cover all fields. And instead display the horizontal bar. How do I get rid of this or how do I set the dialog form to automatically resize?
Thanks,
Paul
*This post is locked for comments
Thanks Martin. It did work!
Hi Sohaib,
Using the widthMode did not work but setting the width explicitly do. But still not an auto resize. :)
Thanks,
Paul
Try the following (not tested):
static server void Job2(Args _args)
{
Dialog d = new Dialog();
d.addField(extendedTypeStr(CustAccount));
//d.formBuildDesign().heightMode(1);
d.formBuildDesign().windowResize(true);
d.run();
}
you can try two things
for fields kindly try to set width
DialogFieldName.widthMode(FormWidth::ColumnWidth);
if issue is not resolved by above, use following line also
dialog.form().design(1).width(
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,993 Most Valuable Professional
nmaenpaa 101,156