Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Move Screen Elements Up dynamically

jitendra_it
Active Contributor
0 Likes
1,745

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.

6 REPLIES 6
Read only

Former Member
0 Likes
1,059

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.

Read only

former_member219762
Contributor
0 Likes
1,059

Hi Soni,

      Hide the text field if it is empty,then remaining fields move up automatically .

Regards,

Sreenivas.

Read only

0 Likes
1,059

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.

Read only

0 Likes
1,059

Hiding with the 'screen-active = 0' works for both label and input field as well.

Thanks & Regards,

Krishna N

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,059

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.

Read only

Former Member
0 Likes
1,059

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.