Maybe it's possible with a client control addin which overrides the standard textbox.
Or you can simply add a '-' in the 4th character of the string during the onvalidate trigger. In this way, your '-' will be inserted even if you fill the field from code.
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso My Blog
If you want the dash inserted while typing, a control addin is your only option.
That way you can even just make the dash visual without having it in the actual data.
(make it a javascript addin if you want it to work in the web client)
You actually want a proper add-in (Those things you import into the Add-In Table) - and javascript/jquery is the way to go there.
All .NET dll's you include into NAV will only work in the windows-client.
That's a bit misleading. Javascript addins are .NET libraries as well.
The distinction is, 'Winform' .NET addins will only work in the Windows client. Javascript .NET addins will also work in the web client.
Comments
Or you can simply add a '-' in the 4th character of the string during the onvalidate trigger. In this way, your '-' will be inserted even if you fill the field from code.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
That way you can even just make the dash visual without having it in the actual data.
(make it a javascript addin if you want it to work in the web client)
Do you know examples on key stroke detecting code
Or, some guide to make Control Addin in Java :)
Thanks
All .NET dll's you include into NAV will only work in the windows-client.
Do you know some guide for making JavaScript/jquery Add-in to NAV...
That's a bit misleading. Javascript addins are .NET libraries as well.
The distinction is, 'Winform' .NET addins will only work in the Windows client. Javascript .NET addins will also work in the web client.
https://msdn.microsoft.com/en-us/library/dn182584(v=nav.90).aspx
But, what about a listpage... the field disappears
What to do ?
Thanks
(For now I do It with C# class, but I am looking at the jquery )