RandyGibbons
8 years agoQrew Trainee
Button to create child record error Missing ""rid"" parameter due to save
I have a button that creates a child record from the parent record. It works perfectly only after the parent record has been saved the first time, thus creating the Record ID#. I have the 'Save parent record automatically when a child record is created.' box checked. When I hit the button on a newly created parent record, it will save the parent record, but produces this error message when trying to run through the button code to create a child record:
<qdbapi>
<action>API_EditRecord</action>
<errcode>30</errcode>
<errtext>No such record</errtext>
<errdetail>Missing "rid" parameter.</errdetail>
</qdbapi>
So to summarize, the button works correctly only after the parent has been saved and retrieved. I'm looking for the button to save the record, create a child, and return back to the parent in edit mode, updating some fields (status) and to continue working in the record.
<qdbapi>
<action>API_EditRecord</action>
<errcode>30</errcode>
<errtext>No such record</errtext>
<errdetail>Missing "rid" parameter.</errdetail>
</qdbapi>
So to summarize, the button works correctly only after the parent has been saved and retrieved. I'm looking for the button to save the record, create a child, and return back to the parent in edit mode, updating some fields (status) and to continue working in the record.