I cannot enter a text in Navision with a trailing space using a textbox. It does not matter if the text is stored in a variable or table field. In the OnValidate trigger of the field and the form, the trailing space has been removed. I know such behaviour from code type variables and field, but I cannot remember that from text fields/variables. Anybody out there who could enlighten me ?
Navision has always worked like this. There are ways to add trailing spaces, but not through normal C/SIDE, since any kind of validation will remove trailing spaces. A direct dataport that puts data direct in a field will allow trailing spaces, also you can do it with ODBC and SQL. I never tried it with C/FRONT though. Why do you want the trailing space? Is it to try to merge two fields together as one? If so put the space as the leading charachter of the next field.
Nope, completely different purpose: I’m currently writing my own Multilanguage Editor for our AddOn to have multlanguage captions for dynamic Navision controls. To not have to store these inside a new table (objects are money [;)]) I have to store the MLCaptions in the control table in a blob. Working quite nice, except for the trailing space.