RyanFarrington
5 years agoQrew Member
Custom Save button, API calls, and redirects to specific pages
(This is kind of continued from this thread, but the question/subject is different)
What I would like to happen
I don't know how to get #3 to work. I've tried different methods.
Problems
If anyone has any ideas how to achieve this multi-step process, I'd appreciate the help!
------------------------------
Ryan Farrington
Graphic designer, project manager, copywriter, engraver, internal Quick Base developer
rfarrington@experiencepinpoint.com
------------------------------
What I would like to happen
- Click a button on a Contact record, Form 1
- Takes you to Contact record, Form 2
- Enter information on Form 2.
- Click button
- Saves the Contact record,
- API_AddRecord Creates a new Client with the just-saved info from the Contact record
- API_GenAddRecordForm starts a new Project related to the Contact and (ideally) the new Client.
I don't know how to get #3 to work. I've tried different methods.
Problems
- Either the client record isn't created with the updated info from step 2
- Or the system goes to an XML result page instead of redirecting to 3c
- Acheived with a button on Form 1. The button's code outline is like this:
API_EditRecord
to automatically change certain data about the contactrdr=
to the contact on Form 2&NextURL=
to specify what should happen when Form 2 is savedAPI_AddRecord
to automatically create the new Client recordrdr=
API_GenAddRecordForm
to create a new Project
- Achieved by a custom button on Form 2 with a javascript LinkAway. The button's code outline:
href='javascript:LinkAway(\"...
to save the updated data in the recordAPI_AddRecord
to automatically create the new Client recordrdr=
API_GenAddRecordForm
to create a new Project
- It doesn't like anything after step 1.a. and returns the XML result page. I'm pretty sure it successfully creates the client, but refuses to go on to the Project.
- I've also tried having it just
&disprec=1
instead of redirect to the new project but even that doesn't work. - I'd be fine with even redirecting to the Contact record, Form 3, so the user just has to click an "Add Project" button, but redirecting there doesn't work either
If anyone has any ideas how to achieve this multi-step process, I'd appreciate the help!
------------------------------
Ryan Farrington
Graphic designer, project manager, copywriter, engraver, internal Quick Base developer
rfarrington@experiencepinpoint.com
------------------------------