Jump to content
  • 0

Role Based Edits On Datapages


srauhe
 Share

Question

I have different users accessing datapages that have different roles.  Some users can search and view details and others can perform those functions plus insert, update and delete.  

 

Can this be performed within a single datapage?  If not is there a technique to keep datapages insync when making changes.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hello srauhe,

 

Go through the following steps:

1) Create a users tables and that table will have two yes no fields User & Manager along all the other fields.
2) Create two DataPages one for Admin and another for user
3) You will see a script for redirecting people depending on their authentication. 
4) In the User report you will filter the records by authentication so the user will be able to see what he is supposed to see. 
5) The other datapage for the manager will not have any filter.
 
Hope it helps  :)
 
IREN 
Link to comment
Share on other sites

  • 0

All users will be able to see all records.  A subset of users will be able to perform insert, update and deletes.

 

It sounds like to i will have to create 2 similar datapages

1) View Access

2) View Insert, Update and Delete Access

 

I was hoping to use the same datapage and Hide/Disable the Insert edit and delete access for non admin users.

Link to comment
Share on other sites

  • 0

You could add an HTML block to tabular report to replace the standard details link and remove details page. Then create a separate details page for each access type and set field types accordingly. This way user can use the same search form and tabular report, just the details page will be custom to their access level.

 

 

<script>
 
 
 if(parseFloat('[@authfield:UserAccessLevel]') == 1) {
document.write('<a href="INSERT_DATAPAGE_1_URL_HERE">Datapage1</a>');
}
 
else if(parseFloat('[@authfield:UserAccessLevel]') == 2) {
document.write('<a href="INSERT_DATAPAGE_2_URL_HERE">Datapage2</a>');
 
} else {document.write('');}
 
 
 
</script>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...