Forum Discussion

GeorgeBramhall1's avatar
GeorgeBramhall1
Qrew Member
10 months ago

Editin Button working in a report but not working from same report in a Dashboard

access issue when editing a record with a button from a report within a Dashboard: 

<qdbapi>
<action>API_EditRecord</action>
<errcode>3</errcode>
<errtext>Insufficient permissions</errtext>
<errdetail>You don't have permission to access that page.</errdetail>
<username>ilya@maximind.ca</username>
</qdbapi>
However no access issue when clicking the same button in the native report (not from the Dashboard):
Testing as a specific so user get the expected error upon clicking the button:
<qdbapi>
<action>API_EditRecord</action>
<errcode>2</errcode>
<errtext>Invalid input</errtext>
<errdetail>ILYA BAM can edit data but you're testing as that user, so your change wasn't saved</errdetail>
<rid>4295</rid>
<num_fields_changed>0</num_fields_changed>
<update_id/>
</qdbapi>
Any idea why user can't edit the records within the dashboard?


------------------------------
George Bramhall
------------------------------
  • In your first example - are you confirming that if the original user (ilya) clicks it anywhere but the dashboard it works? 

    Your second error is unrelated and simply a security matter that you can't update info while testing as another user. That is expected. 

    If you test as that user - can you go to the record that you're clicking the button on and just 'edit' it natively? As in - instead of clicking the button - can you click the pencil on the row to enter into the Edit Form?



    ------------------------------
    Chayce Duncan
    ------------------------------
    • GeorgeBramhall1's avatar
      GeorgeBramhall1
      Qrew Member

      To your first question, yes I can confirm that he will not get the access error if he clicks the button anywhere but in the Dashboard. For your second question,  testing as the user he can click the edit pencil on any record for the report where the button resides and enter the edit form.



      ------------------------------
      George Bramhall
      ------------------------------
      • ChayceDuncan's avatar
        ChayceDuncan
        Qrew Captain

        Interesting. And the button on the dashboard is part of a report correct? The behavior doesn't really make sense at a high level. I would recommend doing a quick stare and compare when you hover over the button. If you go to the dash - and hover your mouse over the button, take a look at the link that pops up. In chrome - it should be at the lower left of your window of what link the button is referencing. Do the same in the report where it's working. Is there any difference? 



        ------------------------------
        Chayce Duncan
        ------------------------------