Hi Brian,
If my dialog have 6 droplistbox call DropListBox1 to DropListBox6, and those droplistbox all used same attached list array.
Have any possible, I add a button call "Auto Mapping", and pre-defind if DropListBox1 = SO_NUM, DropListBox2 = SO_LINE_NUM, DropListBox3 = SO_CUSTOMER, DropListBox4 = SO_ITEM, DropListBox5 = SO_UNIT_PRICE, DropListBox6 = SO_QTY, when I click the AuotMapping button the system can automated tagged as picture 2 ?
Regards,
Derek
Derek
Offline
Last seen: 2 years 6 months ago
Joined: 03/29/2016 - 03:10
Hi Derek,
Yes this can be done but it means having to close and reopen the dialog. Here you can see my example:
And when you select the Auto Mapping you get this:
How this is done is that I have a loop to keep the dialog open while the user has selected the Auto Mapping button. If the button has been selected I select the item by using the dlg.DropListBox1 = 2, the 2 would be the third item in the array (arrays start with a value of 0) and then display the dialog again.
Here is the code that hopefully you can see what I did. I have also attached it so you will have the items for the menu. Let me know if you have any questions or if something doesn't make sense.
Hi Brian,
Thanks. Based on your description and code, I know how to modify and write my script.
Br,
Derek
That is good to hear, good luck on your project.
Brian