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

PUSHBOTTON

Former Member
0 Likes
790

Hi,

I HAVE CREATED A SCREEN WITH A PUSHBOTTON ,the purpose of this button is to

<b>page-down</b> when the the screen area if filled and the same button will act as <b>page-up</b> to move to initial area. how should i create???

6 REPLIES 6
Read only

Former Member
0 Likes
761

I think u can not scrool an ordinary screen. Any ordinary scren will have a fixed area and that area will occupy your scre completely.

you can scrool only a screen elemtn like a table control or subscreen etc., that is present in the screen.

r u scrooling any of these?

<u>If u r having only two pages in that particular element.</u>

If u r scrolling any of these u can use the name of the button as 'Page UP/Down'. If u r looking at the top of that screen elemet then it will work as 'Page Down' otherwise as 'Page Up'

<u>otherwise</u>

u have to go for two buttons

<b>Dont forget to award if useful</b>

Sudheer

Read only

0 Likes
761

Hi,

The number of rows displayed is based on the screen size (8X40). If not all rows from table will fit on one screen use page up and page down buttons.

Read only

0 Likes
761

Yes Chaitanya,

we can can have a max size of 200*255 for a screen.

If u r sure that u will have only pages in the screen, what u can do is.

We can change the button name using the screen attributes.

otherwise

In the place of the upshbutton use a subscreen.

create two subscreens one with name 'Page Down' and second with name 'Page Up'.

Read only

Former Member
0 Likes
761

Hi

In the PAI of the flow layout first check for the label name of the button if it is Page-down write the logic for the page-up and in the last line of the logic see tat u r changing the button name to page-up.

Write two if loops in the PAI one to check wheather the button name is page up and the other to check weather it is page down r u can use if-else loop.

Read only

Former Member
0 Likes
761

u cant use one push button for 2 purposes.

u need to create 2 separate push buttons and write the code for each of the push button.

Read only

0 Likes
761

Hi,

U have to <b>award points for useful answers</b> and u have to mention it as <b>Solved</b> if ur question is solved. Dont forget.

Regards,

Sudheer