Forum Discussion
JackFretwell
6 years agoQrew Assistant Captain
You may need to look into writing a Java script using Dan Diebolts iol technique. (This is very useful)
https://community.quickbase.com/quickbase/topics/how-do-i-setup-the-image-onload-technique-iol
https://community.quickbase.com/quickbase/people/dandiebolt
Dan has many Java scripts which are available to use but please ask Dan and give credit.
1) Create the new record with AddRecord API.
2) This can give you an XML result with the Record ID# of the new record.
The XML reply will look something like:
<qdbapi>
<action>API_AddRecord</action>
<errcode>0</errcode>
<errtext>No error</errtext>
<udata>mydata</udata>
<rid>21</rid>
<update_id>1206177014451</update_id>
</qdbapi>
3) Grab the Record ID via a Java script (Something like).
...
...then(function(xml){
$("record", xml).each(function() {
myvariable = $("rid", xml).text()
...
4) With the record ID you can select, refresh and open in Edit mode.
This is something I know I have to do.
There may be other methods to do this, this is what I'm aware of at the moment and what I'll be working to.
https://community.quickbase.com/quickbase/topics/how-do-i-setup-the-image-onload-technique-iol
https://community.quickbase.com/quickbase/people/dandiebolt
Dan has many Java scripts which are available to use but please ask Dan and give credit.
1) Create the new record with AddRecord API.
2) This can give you an XML result with the Record ID# of the new record.
The XML reply will look something like:
<qdbapi>
<action>API_AddRecord</action>
<errcode>0</errcode>
<errtext>No error</errtext>
<udata>mydata</udata>
<rid>21</rid>
<update_id>1206177014451</update_id>
</qdbapi>
3) Grab the Record ID via a Java script (Something like).
...
...then(function(xml){
$("record", xml).each(function() {
myvariable = $("rid", xml).text()
...
4) With the record ID you can select, refresh and open in Edit mode.
This is something I know I have to do.
There may be other methods to do this, this is what I'm aware of at the moment and what I'll be working to.