Sometimes you want your user to select a sertain table/field/… When you want to program this selection all by yourself you have to make a table, override the lookup()-method, …
There is also a easy way to do this. You can use the pic**** methodes in the Global class:
How do you use these classes (you can find this example in FormsDocuOptionTableDesignsDesign[Tab:TableTab][TabPage:Overview][Grid:TableOverviewGrid]StringEdit:DocuTableNameMethodslookup):
1 2 3 4 5 6 7 8 9 10 | void lookup() { tableId id; ; id = pickTable(); if (! id) return; docuTable.DocuTableId = id; docuTable_ds.refresh(); } |
The result:
When you want to create you own customized pick-dialog you can by entering the following code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | static void testPickList(Args _args) { Object formRun; container con; ; formRun = classfactory.createPicklist(); formRun.init(); //fill container con formRun.choices(con); // you can add a secundary parameter wth the imiges formRun.caption("TEST"); // Make label formRun.run(); formRun.wait(); if (formRun.choice()) { print formRun.choice(); } pause; } |