One of the designs i am attempting is to have a screen with a grid on the top half, and a panel on the bottom half. The idea is when you select a row on the grid, it will then display all the details for that record in the panel below.
So for instance, my grid might show ID#, name, effective date. Clicking on a row would then display below ID#, name, effective date, address, # of employees, etc etc.
Is there a way to do this without going back to the server, like hiding all of the necessary fields in the grid and then enabling the widgets below to set their values and turn on their visibility indicator?
Or do i have to return control back to the server to populate all of my widgets on the panel and then turn on my visibility indicator?
Display grid row details on panel
-
- Profound User
- Posts: 27
- Joined: Tue Feb 07, 2012 11:29 am
- First Name: john
- Last Name: holsombach
- Company Name: stoneriver, inc.
- Contact:
- Brian
- Profound Logic Staff Member
- Posts: 286
- Joined: Thu Apr 14, 2011 10:23 am
- First Name: Brian
- Last Name: May
- Company Name: Profound Logic Software
- Contact:
Re: Display grid row details on panel
Yes it is possible to hide data in your grid to be used elsewhere. You could then write a javascript function for onrowclick to load all of your widgets on your panel.
however, I would be wary of putting too much hidden data in the grid. When you start adding large amounts of data to each row of a lengthy grid, the extra time to send the grid data across the wire could be longer than a return trip to RPG to load the data for a single record.
however, I would be wary of putting too much hidden data in the grid. When you start adding large amounts of data to each row of a lengthy grid, the extra time to send the grid data across the wire could be longer than a return trip to RPG to load the data for a single record.
-
- Profound User
- Posts: 27
- Joined: Tue Feb 07, 2012 11:29 am
- First Name: john
- Last Name: holsombach
- Company Name: stoneriver, inc.
- Contact:
Re: Display grid row details on panel
I also have all of my widgets (text output areas/text boxes, labels) conditioned on a bound indicator for visibility (to hide all of the fields when no row is selected).
Can the visibility be altered (turn on indicator 1st of course) without reexecuting the screen format?
Can the visibility be altered (turn on indicator 1st of course) without reexecuting the screen format?
- Brian
- Profound Logic Staff Member
- Posts: 286
- Joined: Thu Apr 14, 2011 10:23 am
- First Name: Brian
- Last Name: May
- Company Name: Profound Logic Software
- Contact:
Re: Display grid row details on panel
you can hide or unhide widgets using the following:
ID.style.visibility = "hidden";
ID.style.visibility = "visible";
ID of course being the ID of the widget in question.
ID.style.visibility = "hidden";
ID.style.visibility = "visible";
ID of course being the ID of the widget in question.
- Brian
- Profound Logic Staff Member
- Posts: 286
- Joined: Thu Apr 14, 2011 10:23 am
- First Name: Brian
- Last Name: May
- Company Name: Profound Logic Software
- Contact:
Re: Display grid row details on panel
Correction:
getObj(ID).style.visibility = "hidden";
or
getObj(ID).style.visibility = "visible";
My mistake.
getObj(ID).style.visibility = "hidden";
or
getObj(ID).style.visibility = "visible";
My mistake.
Who is online
Users browsing this forum: No registered users and 6 guests