Luke
*This post is locked for comments
*This post is locked for comments
Hi Rustem
Still troubleshooting an issue with the updating on the form - but it looks like it's unrelated to the InventDim update, as I rebuilt the datasource from scratch and it's still happening.
As far as I know the InventDim update is working - so I'll mark it as fixed and make a new post if it still doesn't work
Cheers
Luke
Hi lukbel!
Did you solve the issue?
Check join properties on each data source table. Do the same setup as in PurchTable form.
Then check what you have punchLine and inventDim records before updating field.
Hi Rustem
It fails on lines it's meant to fail on (open quality order), or on lines it shouldn't work on (invoiced lines) it simply doesn't write - this is good, and I'll probably lock the datasource to prevent someone even trying to enter a value
But on lines it's supposed to write to, it just hangs until you kill process. I ran a full CIL build to check it wasn't code caches, and it still does it
Do you have any suggestions what might be causing the hang?
Just copy and paste this
purchLine.modifyInventDim(inventDim,fieldNum(InventDim,InventBatchId));
and don't comment super().
Hi Rustem
As you can see, same error. It is probably better to put it here - but given the error is related to input variables, I would imagine this is a problem with syntax rather than where the method is being called.
Can you suggest any improvements?
Not on data source methods, on data source field method.
Hi Rustem
I think you are mistaken? modified() does not seem to be a method on the data source of the form, rather it's a method on the AOT table?
Unless I have misunderstood
I think you should put your code on InventBatchId field of InventDim data source table in modified() method.
Your code should looks like:
public void modified() { super(); purchLine.modifyInventDim(inventDim,fieldNum(InventDim,InventBatchId)); }
Hi Rustem
Pls see attached. Form and method on form I'm writing on highlighted, the variable that's erroring, and error below.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156