Page 1 of 1
Use Override to change the attribute.
Posted: Tue Oct 29, 2019 4:44 pm
by sohashi
Hi
If the field has no focus, 0 is displayed.
Use overrides to change attributes.
[Override Field(#SYAIN_C) Edit_Code(4)]
If the field does not have focus, ZERO is not displayed.
However, ZERO is displayed when the focus is set.
I think the default value is ZERO.
Is there a way to prevent ZERO from being displayed when the focus is set?
Thank you for your support.
Best Regards,
Shumpei
Re: Use Override to change the attribute.
Posted: Wed Oct 30, 2019 5:26 am
by atostaine
Here is the list of valid IBM Edit codes.
https://www.ibm.com/support/knowledgece ... d_summ.htm
You might need to use an edit word though. If your field is 7.2, try this edit word
' . 0'
Edit word documentation.
https://www.ibm.com/support/knowledgece ... fedwrd.htm
I'd guess that LANSA follows all of the edit code rules from IBM.
Re: Use Override to change the attribute.
Posted: Wed Oct 30, 2019 1:30 pm
by sohashi
Hi atostaine
You might need to use an edit word though. If your field is 7.2, try this edit word
' . 0'
⇒Information about the fields I use.
Type :Signed
Length:5
Default Value:*ZERO
Edit Mask:1
Is there a way to prevent zeros from being displayed when focus is selected?
Thank you for your support.
Best Regards,
Shumpei
Re: Use Override to change the attribute.
Posted: Wed Oct 30, 2019 1:41 pm
by atostaine
Deleted for auto correct
Re: Use Override to change the attribute.
Posted: Wed Oct 30, 2019 1:41 pm
by atostaine
Try edit word ‘ 0’
Re: Use Override to change the attribute.
Posted: Wed Oct 30, 2019 1:51 pm
by sohashi
Hi atostaine
Try edit word ‘. 0’
⇒Override Field(#xxx) Edit_Code(4) Edit_Word(' . 0')
Filed xxx has been assigned both an edit code of 4 and an edit word of . 0. The edit word will be ignored.
Duplicate definitions are not changed.
Do you know other good ways?
Shumpei Ohashi
Re: Use Override to change the attribute.
Posted: Wed Oct 30, 2019 2:25 pm
by atostaine
Yes