Hi
I have a screen element which accepts a file name on a POV. However, if I input a long filename, the cursor position goes towards the end.
Next time, when I try to change the filename to a short one, again on a POV, the cursor position is still at the end, giving me the feeling that it is blank.
If I press the "HOME" button on the keyboard, I can return to the beginning. However,
Is there a way to set the cursor position to offset zero, in a POV ? PBO is not called after POV right ?
Or can the property be set statically for that screen element in the screen painter itself ? If yes, how ?
I could not find it anywhere in the Screen Layout Properties.
Thanks
PS
You can force PBO from your POV Module by coding:
set screen 100. <==your screen number
leave screen.
I tried this in 4.6C and it invoked PBO.
Make sure the value retrieved from your help is properly tranported back to the screen.
Let us know how it goes.
I believe you are correct that your Process on Value (POV) request does not invoke PBO. I tried a brief test in 4.6C to use SET CURSOR in POV but it ignored me.
It sounds like your input field is defined as scrollable. If you make its visible size match its internal size and turn off the scrollable feature, maybe you will like it better.
Let us know how it goes.
Hi Prasad
You can use the "<b>OFFSET</b>" addition of the "SET CURSOR" statement. Pass 1 to <off> .
SET CURSOR FIELD <f> [OFFSET <off>].
<i>And as a last thing, let me introduce you the SDN forums pointing system: You can assign points to posts you find helpful while solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;
- one 10 points (solved)
- two 6 points (very helpful answer)
- many 2 points (helpful answer)</i>
Kind Regards...
*--Serdar
Hi,
You can call method cl_gui_cfw=>set_new_ok_code with new_code = space at the end of your POV module coding. It triggers PAI for the screen and then the cursor is set to the correct position usinf SET CURSOR OFFSET.
Kind Regards,
Sükrü
Isn't this a GUI Option? Under the local GUI options, on tab CURSOR, see if you have checked box 'Position cursor at end of text'.
Charles, Kenneth
Apologise for the late reply. I was on vacation.
Well, i am afraid to say,
1. Setting the Local Gui Options did not work. Same problem.
2. SET SCREEN 'xyz' and leave screen is not a feasible solution because SCREEN xyz is a modal dialog window and it must appear in a restricted area.( as per my requirement).
The screen is invoked using a CALL SCREEN 'xyz' starting at ... ending at ..
However, with the SET SCREEN approach, I get the window to cover the whole screen which is not desirable.
Any work around for this ?
Thanks
Prasad
Add a comment