‎2007 May 08 12:13 PM
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???
‎2007 May 08 12:28 PM
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
‎2007 May 08 12:45 PM
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.
‎2007 May 08 1:29 PM
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'.
‎2007 May 08 1:18 PM
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.
‎2007 May 08 1:35 PM
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.
‎2007 May 09 10:30 AM
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