Here is what I have so far:
I have a button on the Sales Order Entry screen that will Launch the Sales Price screen, passing the Customer Price class and the Inventory ID of the selected line.
I have the Display event of the Sales Price screen watching for those parameters to be passed, and when that happens it changes the Category to IL (Invt Item and Cust Price Class), fills in the Inventory ID and the Customer Price Class, then pushes the refresh button... except pushing the refresh button doesn't do anything.
I am pressing the button by:
sivMyApp.Controls("cmdRefresh").value = true
The button does get focus after the customized code runs. If I manually push the button immediately after, everything refreshes how I would expect it to.
I am filling in the Category, InvtID and CustPriceClassID using SetObjectValue although I also tried using the buffer with the same result.
I created a dummy button that clicks on the cmdRefresh, just to see if my code was pushing the refresh button too early in the process, but pushing the button programatically seems to have strange results no matter when you do it.
I'm including the VBA on the Sales Price screen.. it successfully switches the Category and fills in the Inventory and Price Class... Any ideas? Thanks!
Private Sub Form1_Display()
Dim SOInvtID As String
Dim SOClassID As String
SOInvtID = ApplGetParmValue(PRMSECTION_VBRDT, "SOInvtID")
SOClassID = ApplGetParmValue(PRMSECTION_VBRDT, "SOClassID")
If (SOInvtID <> "" And SOClassID <> "") Then
serr1 = SetObjectValue("cPriceCat", "IL")
serr1 = SetObjectValue("cInvtID", SOInvtID)
serr1 = SetObjectValue("ccustclassid", SOClassID)
sivMyApp.Controls("cmdRefresh").value = True
End If
End Sub