PaulPeterson1
5 years agoQrew Assistant Captain
Conditionally check a checkbox
I've put in too many hours this week and am making stupid mistakes.
I need a button that will check a checkbox if a corresponding checkbox is checked. There are several services and not all are subscribed on each order. Rather than checking a submit button for all services that have not been submitted I want to add a button that will check the submit button for any services that have not been submitted.
This is my first real attempt at a button and I am a bit blind.
I am currently using:
var text URLRemoteServices = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord & rid=" & [Record ID#] & "&_fid_3008=1" & Rurl();
If([Remote Services] and [Remote Services] != [Remote Services - Submit], $URLRemoteServices)
and getting the following error
------------------------------
Paul Peterson
------------------------------
I need a button that will check a checkbox if a corresponding checkbox is checked. There are several services and not all are subscribed on each order. Rather than checking a submit button for all services that have not been submitted I want to add a button that will check the submit button for any services that have not been submitted.
This is my first real attempt at a button and I am a bit blind.
I am currently using:
var text URLRemoteServices = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord & rid=" & [Record ID#] & "&_fid_3008=1" & Rurl();
If([Remote Services] and [Remote Services] != [Remote Services - Submit], $URLRemoteServices)
and getting the following error
<qdbapi>
<action>API_EditRecord </action>
<errcode>5</errcode>
<errtext>No Such Operation</errtext>
<errdetail>
This operation does not exist. Please check the URL.
</errdetail>
</qdbapi>
I only have the first service in the list added at the moment. I will use the approach I saw in this post.
I hope one of you can point me in the right direction.
I only have the first service in the list added at the moment. I will use the approach I saw in this post.
I hope one of you can point me in the right direction.
------------------------------
Paul Peterson
------------------------------