
How to display a backward field
Started by
Vol Yip
, Jun 17 2004 10:59 AM
20 replies to this topic
#1
Posted 17 June 2004 - 10:59 AM
All,
I have a senario.
I need to write a superlayer screen which has a few fields at a paging screen. For example:
\PS\
FLD 1
FLD 2
FLD 3
FLD 4
\PE\
User will navigator across FLD1, FLD2 and FLD3. Where FLD3 is actually a check box where if checked, FLD1 and FLD2 will be defaulted to some special values.
I have no problem to code such that if FLD3 is checked, assign values to FLD1 and FLD2. However, since the cursor now is at FLD3 and will keep on move to FLD4, how can I code such that the screen displays the assigned values in FLD1 and FLD2 after user checked FLD3?
Regards,
Vol
I have a senario.
I need to write a superlayer screen which has a few fields at a paging screen. For example:
\PS\
FLD 1
FLD 2
FLD 3
FLD 4
\PE\
User will navigator across FLD1, FLD2 and FLD3. Where FLD3 is actually a check box where if checked, FLD1 and FLD2 will be defaulted to some special values.
I have no problem to code such that if FLD3 is checked, assign values to FLD1 and FLD2. However, since the cursor now is at FLD3 and will keep on move to FLD4, how can I code such that the screen displays the assigned values in FLD1 and FLD2 after user checked FLD3?
Regards,
Vol
#4
Posted 17 June 2004 - 11:15 AM
Hi,
If I remeber correctly, your on the Glovia kernel?? If you were on the ProIV Kernel, version 5.0+ has the .Refresh property that you could use to redisplay the value.
In versions before 5.0, you would have to have the fields defined twice so that they get redisplayed...
\PS\
FLD 1
FLD 2
FLD 3
FLD 1
FLD 2
FLD 4
\PE\
You might have to do some 'Manual' positioning since you are in SL, because you will need to get the row/col of FLD2 & 3 to the same value as the previous fields 1 & 2.
Rob D.
If I remeber correctly, your on the Glovia kernel?? If you were on the ProIV Kernel, version 5.0+ has the .Refresh property that you could use to redisplay the value.
In versions before 5.0, you would have to have the fields defined twice so that they get redisplayed...
\PS\
FLD 1
FLD 2
FLD 3
FLD 1
FLD 2
FLD 4
\PE\
You might have to do some 'Manual' positioning since you are in SL, because you will need to get the row/col of FLD2 & 3 to the same value as the previous fields 1 & 2.
Rob D.
#5
Posted 17 June 2004 - 11:15 AM
Oops... you beat me to it Lewis

#7
Posted 17 June 2004 - 03:52 PM
Vol,
You may also need to do the following "trick".
The problem (with what you are doing) is that clicking a check box does not advanced the user to the next field. Rather, the user is now sitting in the check box field.
So, the default values will only appear if the user clicks the check box and then presses enter.
You can make the check box a display only field. This still allows the user to click the check box, but then also allows you to do work immediately upon the check.
hth,
Joseph
You may also need to do the following "trick".
The problem (with what you are doing) is that clicking a check box does not advanced the user to the next field. Rather, the user is now sitting in the check box field.
So, the default values will only appear if the user clicks the check box and then presses enter.
You can make the check box a display only field. This still allows the user to click the check box, but then also allows you to do work immediately upon the check.
hth,
Joseph
#10
Posted 21 June 2004 - 04:21 PM
All,
The screen has some strange behaviour and need some helps.
I have coded the paging screen looks like the followngs;
\GS\
FLD0
\PS\
'' DAO
FLD1 DAO
FLD2
FLD3
FLD4 <----- a check box with ENABLE(@NO-CR) at before logic
FLD5 DAO
FLD6 DAO
FLD7 DAO
\PE\
\GE\
Where FLD5 overlays to FLD2 and FLD6 overlays to FLD3
The '' field is to read file for the paging group.
When first diaplay the screen, everything looks good.
When cursor goes to FLD4 and check, FLD2 and FLD3 will display some values set at the Header which is good.
The function is designed such that if FLD4 is unchecked, FLD2 and FLD3 need to set to empty.
Now, the problem is:
If the paging screen has many lines. (Say 20). And each page can display 8 lines.
All the lines have been checked. I.e., all FLD2 and FLD3 have values display at screen. If I go to unflag line 2. FLD2 and FLD3 of line 2 become blank which is good. And the cusor goes to FLD2 of line 3 which is good too. However, all FLD3 become empty from line 3 to line 7. If I press Page Down and Page Up again, the values show up again. I.e., actually the values are there but just do not display.
Don't understand why all the FLD3's values disappear for line 3 to line 7. (But FLD2 has no problem) Is that something relates to Overlay field?
Regards,
Vol
The screen has some strange behaviour and need some helps.
I have coded the paging screen looks like the followngs;
\GS\
FLD0
\PS\
'' DAO
FLD1 DAO
FLD2
FLD3
FLD4 <----- a check box with ENABLE(@NO-CR) at before logic
FLD5 DAO
FLD6 DAO
FLD7 DAO
\PE\
\GE\
Where FLD5 overlays to FLD2 and FLD6 overlays to FLD3
The '' field is to read file for the paging group.
When first diaplay the screen, everything looks good.
When cursor goes to FLD4 and check, FLD2 and FLD3 will display some values set at the Header which is good.
The function is designed such that if FLD4 is unchecked, FLD2 and FLD3 need to set to empty.
Now, the problem is:
If the paging screen has many lines. (Say 20). And each page can display 8 lines.
All the lines have been checked. I.e., all FLD2 and FLD3 have values display at screen. If I go to unflag line 2. FLD2 and FLD3 of line 2 become blank which is good. And the cusor goes to FLD2 of line 3 which is good too. However, all FLD3 become empty from line 3 to line 7. If I press Page Down and Page Up again, the values show up again. I.e., actually the values are there but just do not display.
Don't understand why all the FLD3's values disappear for line 3 to line 7. (But FLD2 has no problem) Is that something relates to Overlay field?
Regards,
Vol
Reply to this topic

0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users