This topic is locked

How To go to a particular form based on information in record

2/11/2010 12:23:00 PM
PHPRunner General questions
K
KennyB author

I have a master detail relationship. Based on the information that is showing I would like to on Edit/view to be able to goto a particular page.
example

Colors = master
brown, blue, red = children to color.
brown needs to see its own unique fields

red needs to see its own and same with blue.
Based on the record selected in the view is it possible to on an Edit to go to a unique page instead of stacking all fields onto one field and hiding

J
Jane 2/15/2010

Kenny,
to show/hide fields on the edit page use BeforeShowEditevent:

http://www.asprunner.com/forums/topic/6196-how-to-hide-controls-on-addedit-pages/

K
KennyB author 2/17/2010



Kenny,
to show/hide fields on the edit page use BeforeShowEditevent:

http://www.asprunner.com/forums/topic/6196-how-to-hide-controls-on-addedit-pages/


Really looking to have a separate page for each. I tought it might be easier to maintain and add new ones as I go.
If for one color I had 30 fields and the enxt 25 and another 50 and so on. Could become a nightmare to maintain or add new ones.
so really looking to see if there is a way to replace the entire page depending on a value that is shown in the list page.
If not then maybe separate panels..

Sergey Kornilov admin 2/19/2010

This one is a bit tricky.
I would definitely suggest to have a separate page for each child view based on custom views. You can then link Colors (master) and one of child views (details). In BeforeProcess event of child table you can redirect to the proper child view based on selected master record.

K
KennyB author 2/19/2010



This one is a bit tricky.
I would definitely suggest to have a separate page for each child view based on custom views. You can then link Colors (master) and one of child views (details). In BeforeProcess event of child table you can redirect to the proper child view based on selected master record.


So to do in Runner I guess I would create say 5 master / child views. which will give me a page for each. Then use only one of the edit buttons and then on the click redirect, based on field selected in my View. So 1 child BEFOREPROCESS would contain the logic. Sounds simple. Haha

Sergey Kornilov admin 2/19/2010

Yes, something like that should work.
Let me know if additional help is required.