2013 Jul 05 11:16 AM
Hello ,
I am having a screen in which there are 6 text field. They are populated in PBO using some logic.
My requirement is that if any text field is empty , I want to move rest fields up. Is it possible ? Please suggest.
2013 Jul 05 2:13 PM
Hi,
Not as far as I know. You can hide/unhide doing a loop at screen it but you can not dynamically move the other fields up.
Regards,
David.
2013 Jul 05 3:54 PM
Hi Soni,
Hide the text field if it is empty,then remaining fields move up automatically .
Regards,
Sreenivas.
2013 Jul 05 4:23 PM
Ok. I was able to do it with the normal screen-active. The trick is to empty all elements in the same row so if you have a label, you should also hide it.
Regards,
David.
2013 Jul 05 5:36 PM
Hiding with the 'screen-active = 0' works for both label and input field as well.
Thanks & Regards,
Krishna N
2013 Jul 06 4:09 AM
Hi Jitendra Soni,
Yes, it is possible. As Sreenivasa Rao Yarru suggested, hide the fields to get it done.
In PBO, set screen-invisible option active for your empty fields to achieve this.
Regards.
2013 Jul 06 5:35 AM
Text1
Text2
Text3
Text4 - Field label
Text5
Text6
Suppose your screen looks like above.
Now if you want to hide text4 its label and text5 and text6 should come after Text3.
Text4 and Text5 are empty here.
LOOP AT SCREEN.
IF SCREEN-NAME EQ 'TEXT4' OR
SCREEN-NAME EQ 'TEXT5' OR
SCREEN-NAME EQ 'Field label' .
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
If you want to hide one row, all fields in that row should be set as SCREEN-ACTIVE = 0, then automatically all below will come up.
Note: All the above process should be done in PBO.