You can override a repository field in a lot of ways. One thing you can not do is use an Edit Word against a field if it already has and Edit Code. If you try to use override to assign an EditWord in a specific context for a field which already has and Edit Code assigned the editor tells you the following ...
Field XXXXXXXX has been assigned both an edit code of x and end Edit word of xxxxxxxxxx. The Edit Word will be ignored.
I would like to suggested the following enhancement. Allow the setting of an Edit Code of none in an override.
e.g.
Override Field(#std_numl) Decimals(2) Edit_Code(None) Edit_Word('$ , , , , 0 -')
So I can override the Edit Code and use the Edit Word. The repository already implies this in the wording EditMask and includes the selection of possible values together.
Override Enhancement on EditWord EditCode
-
- Posts: 177
- Joined: Mon Jan 04, 2016 9:50 am
- Location: Australia
Re: Override Enhancement on EditWord EditCode
Hi LANSA Guru,
just found this unanswered question that I happen to know an answer to...
You should be able to reset the edit code and then specify the edit word, as in :
Regards,
Danny
just found this unanswered question that I happen to know an answer to...
You should be able to reset the edit code and then specify the edit word, as in :
Code: Select all
Override Field(#std_numl) Decimals(2) Edit_Code('') Edit_Word('''$ , , , , , , 0 -''')
Define Field(#xnuml) Decimals(2) Reffld(#std_num) Edit_Code(' ') Edit_Word('''$ , , , , , , 0 -''')
Danny