Forum Discussion
MCFNeil
9 years agoQrew Captain
I should have looked at the details more. My bad.
You cannot run a code page, AND THEN some other API_ call via One button call
You need to either run the API call first and then the code page OR have the API run at the end of the code page. i.e. your API_AddGenRecordFrom needs to be included in your code page.
If you had an API_Edit then a code page call, that works, but because you are looking to go to the add form, you will need all of that to be included in the code page itself. With variable passing, which gets tricky if you are not a coder.
Or break it into two different button clicks if modifying the code page is not your strength.
(which is my recommendation)
One button does the code page, the next button does the new record.
You cannot run a code page, AND THEN some other API_ call via One button call
You need to either run the API call first and then the code page OR have the API run at the end of the code page. i.e. your API_AddGenRecordFrom needs to be included in your code page.
If you had an API_Edit then a code page call, that works, but because you are looking to go to the add form, you will need all of that to be included in the code page itself. With variable passing, which gets tricky if you are not a coder.
Or break it into two different button clicks if modifying the code page is not your strength.
(which is my recommendation)
One button does the code page, the next button does the new record.