Select Business View dynamically for a grid

Rauf

Rauf

VIP Member
Is it possible to change the Business View of a grid dynamically. For example, I have header table and detail table. So if I click the "Summary View" button, I need to load V55HDR on the grid. I click the "Detail View" button, I need to load V55DTL on the grid.
 
Not possible (Or else I'm quitting my job today
tongue.gif
). You'll have to code it yourself. I.e.: Read from Table A or from Table B, depending on your 'Mode', and then populate your grid. Consider writing the records to a Workfile first (and create a businessview over this workfile, and attach it to your grid), depending on your specific situation.
 
Use a PowerForm.

put a tab object on the form

put a SubForm on each tab(bsvw A, bsvw B)

show/hide either tab.

regards

(db)
 
Using powerform + two separate views simultaneously: Hadn't even thought of that one. Good one! (AND easier :))
 
Just adding to Brian here ... we have several apps that use a tree control on the left side. Based on what node is selected in the tree, we show a different subform on the right. Each of these subforms is very different so it allows the user to see a ton of stuff from one place.
 
Don't let you users see it in action. They will want a 20 Grid PowerForm. :-(
 
Could not just send the user to a different form?
Form A form B that look identical.
Apart from the load up time, the user may not even know
wink.gif


Or.....
Could you try to do this

Have your main grid on the first BSVW, it loads as normal

Then in your button, set a flag
If that flag is set, then SUPPRESS the grids functions and call a loop and use the insert grid buffer row

Only issue I can see with that is saving records, but all that can be done in the OK with a loop and table IO
 
How 'bout some feedback, Rauf?

PS: Since nobody came up with a way to change the Business View of a grid dynamically: I guess I'll be stuck with my current job a little bit longer, huh?
smile.gif
 
Back
Top