StephanieStepha
10 years agoQrew Trainee
Use the Image Onload Technique to redirect to a specific report - or some other method.
I am trying to accomplish something with either the Image Onload Technique - or via my Formula URL, using an icon as a button.
I have a parent table where the user clicks a button to add a "detail" on the child record.
Once that window opens, they will fill out specific information, and then of course save the record.
What I WANT to happen, is for them to click on the Save Button/Icon, and it saves the record and then puts them back on the original parent record they came from - OR a specific report could work also.
An alternative could be: They click on the save button, it saves and then closes the window they are on.
What I have now - I have a button that they can click to save and it keeps them on the same record. I also have working the Image Onload Technique that will save the record and then redirect to the homepage of the app.
I need to either redirect to the homepage of the app, or have it close the current window. Can anyone help me with that one last step??
Here is my IOL code:
$("#RedirectURL").val(gReqAppDBID);
$("input[name=rl]").val("");
Here is my button code:
var text URL = "javascript:void(DoSaveAdd())";
var text URLtwo = URLRoot() & "db/" & [_DBID_APPOINTMENTS] & "?a=dr&rid=" & ToText([Related Appointment]);
var Text Image = "<a id='saveButton' class='Vibrant Success' onclick='DoSaveAdd()' href='#'>Submit</a>";
"<b href =" & $URL & URLEncode($URLtwo) &">" & $Image & "</b>"
Thanks in advance for any help
I have a parent table where the user clicks a button to add a "detail" on the child record.
Once that window opens, they will fill out specific information, and then of course save the record.
What I WANT to happen, is for them to click on the Save Button/Icon, and it saves the record and then puts them back on the original parent record they came from - OR a specific report could work also.
An alternative could be: They click on the save button, it saves and then closes the window they are on.
What I have now - I have a button that they can click to save and it keeps them on the same record. I also have working the Image Onload Technique that will save the record and then redirect to the homepage of the app.
I need to either redirect to the homepage of the app, or have it close the current window. Can anyone help me with that one last step??
Here is my IOL code:
$("#RedirectURL").val(gReqAppDBID);
$("input[name=rl]").val("");
Here is my button code:
var text URL = "javascript:void(DoSaveAdd())";
var text URLtwo = URLRoot() & "db/" & [_DBID_APPOINTMENTS] & "?a=dr&rid=" & ToText([Related Appointment]);
var Text Image = "<a id='saveButton' class='Vibrant Success' onclick='DoSaveAdd()' href='#'>Submit</a>";
"<b href =" & $URL & URLEncode($URLtwo) &">" & $Image & "</b>"
Thanks in advance for any help