Reload Object Data in Form
Steven Delombaerde
Hello,I have created a Function on the Production Order Form that allows me to split the Production Order into a series of Batches. Say, if the original qty is 100, I split it into 4 Production Orders of qty 25. At the end, I "Cancel" the original order of 100 to make sure I don't double up. Cancellation works fine, but I would like to refresh the original production order onto the current form, so I can "see" it has been split before producing a "succesfully split" message. How do I refresh current data on the current form?
Any ideas are welcome ...
Steven
Manuel Marhold
Change to search mode and search for the production-order you want to see.You can use the menupress
Steven Delombaerde
Hello Manuel,Can you send me some c-sharp code? I am fairly new to all this.
Thanks
Steven
Manuel Marhold
Hi Steven,don't know if this ist correct, but something like this should work:
before you split: Get ID of original production order
OrigProdOrderNum = ExidText.GetFromUID("65211","18").Value
OrigProdOrderSeries = ComboBox.GetFromUID("65211","22").Value (??)
menu.GetFromUID("1281").Activate 'Search
ComboBox.GetFromUID("65211","22").Value = OrigProdOrderSeries 'select series
EditText.GetFromUID("65211","18").Value = OrigProdOrderNum 'set productionorder-number firld (18) from production order form (65211)
Button.GetFromUID("65211","1").Click() 'search
Andreas Eugster
There some Functions Too on the Form-Objects.Try something like this:
myForm.Update();
Or on the Matrix - Object
myMatrix.Refresh();
0
Please sign in to leave a comment.
Comments
0 comments