Override Enhancement on EditWord EditCode

Please log all suggestions for improvements and enhancements to Visual LANSA here. Entries may be acknowledged and may be added to the list for possible inclusion in later releases of Visual LANSA.
Post Reply
LANSAGuru
Posts: 68
Joined: Thu Mar 24, 2016 5:31 am

Override Enhancement on EditWord EditCode

Post by LANSAGuru » Wed Jul 24, 2019 12:51 am

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.

dannyoorburg
Posts: 177
Joined: Mon Jan 04, 2016 9:50 am
Location: Australia

Re: Override Enhancement on EditWord EditCode

Post by dannyoorburg » Tue Dec 03, 2019 12:55 pm

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 :

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 -''')
Regards,
Danny

Post Reply