3
On this screen I need to do a validation so that in each record, when the record has permission, in case it is marked bring me the record marked with it every time I edit (mark or deselect the checkbox).
In case the best way I found is using the foreach
in javascript and have to validate the cases following example below.
For each functionality, that is (maintain material, request material, send reports and request material) make a validation for each action in the case (view screen, search, register, edit, activate/inactivate and request chargeback) in the case staying 24 validations. I am correct?
I wanted an example of how I could do this in the best possible way. I’ve looked, but I haven’t found anything specific to solve my problem. I’m doing a C# project on MVC.
Each permission is a different identifier and also depends on each chosen profile.
You are using Gridview?
– Marconi
Please put your code in View in the question.
– Leonel Sanches da Silva
Right. With the normal table tag.
– Mariane Ribeiro
@Gypsy?
– Mariane Ribeiro
Just [Edit] the question and put the code used to generate the View.
– Leonel Sanches da Silva
You need all the records where the checkbox, when changed, is checked ? I didn’t get it very well.
– Lucas Fontes Gaspareto
@I’m sorry I couldn’t find the code...
– Mariane Ribeiro
That screen that’s in the body of the question, there’s no code started, that’s it?
– Leonel Sanches da Silva
@Ciganomorrisonmendez It would have how to specify better where I meet, or send as comment even, because it can help other people.
– Mariane Ribeiro
@Ciganomorrisonmendez has no code started to validate that. Only the function that when selecting a profile it loads the gridview... only this
– Mariane Ribeiro
@devgaspa Yes exactly. I need that when the checkbox is changed to checked or not checked I want it to update my database, in case it is boolean data.
– Mariane Ribeiro