How to display a backward field
Posted 17 June 2004 - 10:59 AM
I have a senario.
I need to write a superlayer screen which has a few fields at a paging screen. For example:
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?
Posted 17 June 2004 - 11:15 AM
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...
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.
Posted 17 June 2004 - 03:52 PM
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.
Posted 18 June 2004 - 06:34 AM
Just a cosmetic issue, if I overlay a Display only field back to the input field, the COLOR of the field will show Display Only color (instead of the color of a input field). Is that something I can do?
Posted 21 June 2004 - 04:21 PM
The screen has some strange behaviour and need some helps.
I have coded the paging screen looks like the followngs;
FLD4 <----- a check box with ENABLE(@NO-CR) at before logic
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?
Posted 21 June 2004 - 07:32 PM
We had some problem (that I don't exactly remember) when implementing a similar screen using @NO-CR.
I would recommend that you see if the same behavior occurs if you take out the @NO-CR...
Edited by Joseph Bove, 21 June 2004 - 07:36 PM.
Posted 22 June 2004 - 12:30 AM
I took out @NO-CR. Now after unchecked FLD4 at line2, I need to press enter to move cursor to next line. FLD2 and FLD3 of line2 then blank. However, same problem happens. I..e, FLD3 of line 3 to line 7 become blank too.
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users