This topic is locked

After record update event to direct to a page in edit mode

8/1/2009 10:09:06 PM
PHPRunner General questions
woodey2002 author

Hi Guys,
Just a quick question as i am going crazy here trying to figure it out.
I have a main table called patients which is related by its "referralId" to

my table called actionPoints.
My actionPoints table holds six questions i need to get the user to answer relating to stages of a patients visit.
I added 6 custom views named "part1" through to "part6" of the master table actionPoints, they are related by "stageId".
I am trying to allow the user to see the main table page in list mode, click on the related actionPoints record then Once there

the user will see the first view "part1" in a frm or pop up window asking the first question. Once they save the record i was

trying to use an after record update page event on the list page on custom view 1 called "part1" to present the next custom view called "part2"
header("Location: part2_edit.php?mastertable=tblpatients&masterkey1=" . $keys["referralid"]);exit()
This code only allows me to move to the next custom view called "part2" but it opens on a list page and the user has to select which patients actionpoint record to edit.
Is there an easier way to do this?
Please please help i am losing my mind.
Thanks so mUch
Ireland
P.S. is there an easier to create a user question pathway where questions are asked via differant forms or pop up windows that are linked?

J
Jane 8/3/2009

Hi,
I suppose you need to redirect to the edit page and pass editid1 value:

header("Location: part2_edit.php?editid1=" . $keys["referralid"]);

exit();


If it doesn't help publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.

woodey2002 author 8/4/2009

Many thanks for the help Jane.
You are my life saver.
What would this forum do without you.
Anyway thanks again.
Regards,
J
Ireland.