Is there possible to display altered values in one column?

Is there possible to display altered values in one column?

ploaieploaie Posts: 3Questions: 2Answers: 0

I have ageda with name and phone number that I need to "rent" to a customer for use. But I dont want them to see/get/extract phone numbers. Using render function is just half of the solution because the numbers are in clear text received from the server in json. A smart user can extract all datas without problem. I will disable buttons for that kind of table so I need to receive altered numbers FROM server script.

Thank You.

Answers

  • rf1234rf1234 Posts: 3,004Questions: 87Answers: 421

    All you need to to do is not to return the phone numbers from the server in case the user isn't entitled to see them. In case you are using Editor on the server you can use a getFormatter, for example, and check the user rights. In case the user isn't entitled you just return SPACES instead of the phone numbers.

Sign In or Register to comment.