Hi to all, I'm facing a very strange (at least for me) behavior.
I've added a new field to an existing form, this field is a lookup list that browse existing products and allow user to choose an existing product.
I've tested the field in the underneath table and all works fine.
After that I've added the field to the existing form and when I try to test the form a strange behavior comes up.
Sometimes (I can't understand how to reproduce it) the field works well, and I'm able to select the product.
In other tests the field works "bad", to explain clicking on the upper arrow the list comes up I can select a product but when the list form disappear the field on the form does not contain any value. In addition, if I try to debug the problem I can see that, when all works fine, the breakpoint is fired on the contrary when the problem comes up the breakpoint is never hit and the code seems to exit without any specific problem.
Can someone suggest me a way to investigate this problem ?
I've tried to create a completely fresh form with the same fields of the existing one and all works fine........
Can I delete existing form with wrong behavior and replacing it with a newer one (with the same ID) ?
If yes, all references to the form are maintained or I must recreate all the links to the form ?
Thank you in advance for your precious help.
Best regards
Fabrizio
0
Answers
By the way, I had the same problem more times on NAV Classic Client.. I think that sometimes it can happen that the code is something like corrupted.
One of the reasons could be a copy & paste from internet to C/AL Code. it glues some strange (and not visible) chars that make mess into the code (and hard to be found).
Best regards,
Federico
Federico
MBS Specialist since NAV 2.0
My experiences on Linkedin
Thank you for your feedback
Fabrizio