Forum Discussion

preetiverma1's avatar
preetiverma1
Qrew Member
5 years ago

Missing "rid" parameter.

i have created one formula (button) which updated the checkbox to checked and  redirect to the new custom page.
URLRoot() & "db/" & Dbid() &"?a=API_EditRecord&rid="& URLEncode ([Record ID#])& "&_fid_24=" & URLEncode("true") & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid()&"?a=dbpage&pageID=4") 

but i got rid parameter error.
<qdbapi>
<action>API_EditRecord</action>
<errcode>30</errcode>
<errtext>No such record</errtext>
<errdetail>Missing "rid" parameter.</errdetail>
</qdbapi>



------------------------------
preeti verma
------------------------------
  • Normally you can encode true/false values as 1 or 0.
    You also might need an apptoken if your application has apptokens turned on.

    Try this instead:

    URLRoot() & "db/" & Dbid() &"?act=API_EditRecord&rid="& URLEncode ([Record ID#])
    & "&_fid_24=1"
    & "&rdr=" & URLEncode(
    URLRoot() & "db/" & Dbid( )& "?a=dbpage&pageID=4")

    with an AppToken (where xxxx is the application token value):

    URLRoot() & "db/" & Dbid() &"?act=API_EditRecord&apptoken=xxxxxxxx&rid="& URLEncode ([Record ID#])
    & "&_fid_24=1"
    & "&rdr=" & URLEncode(
    URLRoot() & "db/" & Dbid( )& "?a=dbpage&pageID=4")


    ------------------------------
    Laura Thacker (IDS)
    laura@intelligentdbs.com
    (626) 771 0454
    ------------------------------
    • preetiverma1's avatar
      preetiverma1
      Qrew Member
      i did not turn on the application token 
      URLRoot() & "db/" & Dbid() &"?act=API_EditRecord&rid="& URLEncode ([Record ID#])
      & "&_fid_24=1"
      & "&rdr=" & URLEncode(
      URLRoot() & "db/" & Dbid( )& "?a=dbpage&pageID=4")   this code also gave me same error.



      ------Original Message------

      Normally you can encode true/false values as 1 or 0.
      You also might need an apptoken if your application has apptokens turned on.

      Try this instead:

      URLRoot() & "db/" & Dbid() &"?act=API_EditRecord&rid="& URLEncode ([Record ID#])
      & "&_fid_24=1"
      & "&rdr=" & URLEncode(
      URLRoot() & "db/" & Dbid( )& "?a=dbpage&pageID=4")

      with an AppToken (where xxxx is the application token value):

      URLRoot() & "db/" & Dbid() &"?act=API_EditRecord&apptoken=xxxxxxxx&rid="& URLEncode ([Record ID#])
      & "&_fid_24=1"
      & "&rdr=" & URLEncode(
      URLRoot() & "db/" & Dbid( )& "?a=dbpage&pageID=4")


      ------------------------------
      Laura Thacker (IDS)
      laura@intelligentdbs.com
      (626) 771 0454
      ------------------------------
      • LauraThacker's avatar
        LauraThacker
        Qrew Captain
        Is this button you are using displayed on the same table where the data-change is occurring?

        ------------------------------
        Laura Thacker (IDS)
        laura@intelligentdbs.com
        (626) 771 0454
        ------------------------------