Have put in the code below, to Unlock the Supplier Partno. It works fine and the supplier partno becomes modifiable. But any changes you make just get ignored.?
Even if you change the supplierpartno field on the PO lines, it just continues to show the supplier partno from inventory.
This is JIWA7.0.157, and the code is vb.net., Not sure if this is a JIWA bug, or I need some more code.
Private Sub PurchaseOrder_ReadEnd(sender As Object, e As System.EventArgs)
Dim purchaseOrder As JiwaPurchaseOrders.PurchaseOrder = sender
Dim purchaseOrderForm As JiwaPurchaseOrdersUI.MainForm = purchaseOrder.Client
With purchaseOrderForm.LinesJiwaGrid
For row As Integer = 0 To .ActiveSheet.RowCount - 1
If .GridText("RecID", Row).ToString.Trim.Length > 0 Then
.LockColumn(False, "SuppPartno", row)
End If
Next
End With
End Sub
Private Sub PurchaseOrder_Line_Added(item As JiwaPurchaseOrders.Line)
'
Dim purchaseOrderForm As JiwaPurchaseOrdersUI.MainForm = item.Lines.PurchaseOrder.Client
With purchaseOrderForm.LinesJiwaGrid
For row As Integer = 0 To .ActiveSheet.RowCount - 1
If .GridText("RecID", Row).ToString.Trim = item.RecID Then
.LockColumn(False, "SuppPartno", row)
Exit For
End If
Next
End With


