View Full Version : [CLOSED]Screen to screen program
ktoole
04-05-2010, 03:38 PM
I want to create a program that allows record selection from the initial screen (like a subfile). I am using a viewport object, that takes up the entire area of the screen. Once I have selected a record from the grid, I want the select viewport to hide and a new view port to show up based on the selected data. I have tried to get the original viewport to hide by using viewPortName.hide(), but it still shows up on the screen. It moves to the bottom of the screen. My code is fairly large, that is why I did not include it here.
sairam@cnxcorp.com
04-05-2010, 03:50 PM
You can only have one viewport per page. The viewport is the topmost panel available and if you want to achieve the functionality you are talking about you can use two panels with "fit" layout inside a viewport with a "card" layout and switch between the panels. So you will only show one panel inside a viewport at a time based on the required condition.
ktoole
04-05-2010, 03:55 PM
So if I hide the panel, it will not be visible on the screen and I can show the other panel. I can then reverse the process to display the original screen, correct? I will try this and let you know what happens.
sairam@cnxcorp.com
04-05-2010, 04:01 PM
Yes you can hide one panel at a time using card layout. You can look at Examples-Layouts-Card Layout to see how it is done.
richard.milone
04-05-2010, 06:33 PM
In sairam's previous post he says "...you can hide one panel at a time using card layout." I just want to clarify that so there's no confusion. In a card layout when you specify the "active" card that one is brought to the front. All the other cards are pushed back automatically so that from the user perspective it seems like they are moving between pages. A card layout is in fact absolutely identical to a tabpanel only without the tabs. The difference being that you move between panels by specifying the active one via code rather than the user clicking on a tab.
ktoole
04-08-2010, 02:46 PM
I have it working by hiding the screen panels all on one viewport. I have buttons setup to perform this function....thanks.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.