I’ve added a field to the Sales Shipment Line. Whatever the user types in this field I want to convert to upper case as soon as the user is done (the same standard NAV does with some fields like External Doc field on Sales Orders).
I’m using Extensions 2.0 and NAV 2018.
Should the code to do the conversion be in Table extension or the Page extension?
How do I get the value the user entered to pass to Text.TOUPPER?
To answer your second question first. You should never write any code in PageExtensions or Pages for that matter. Only code here should be to change the UI. And no matter if we talk field triggers, functions etc. [emoticon:c4563cd7d5574777a71c318021cbbcc8]
So you should put the code in the field trigger in the table extension. And you can use this code: