
Hi there,
I have 3 new user fields in the header part of the PO screen. I need to automatically create anything between 1 and 5 lines on the screen depending on what is entered in these 3 user fields. Was just wondering about the best way to go about it - either save header record and create line records in backend and then reload screen or use code to populate grid. Has anyone got any suggestions?
*This post is locked for comments
I have the same question (0)In that way I suggest you that populate all the rows that you need.
You can use part of this code to do that:
sDataEntity = sivMyApp.Controls("cInvtID").Properties("Level")
sivMyApp.first sDataEntity
For Row = 1 To 5
Call SetObjectValue("cInvtID", "TESTITEM")
Call SetObjectValue("cQty", 2)
....
sivMyApp.Next sDataEntity ' Or sivMyApp.New or Call Edit_New
Next Row
sivMyApp.first sDataEntity
sivMyApp.Save
Juan Carlos Navarro RamÃrez | Apps Mexico |