Hey,
I'm using: SmartClient_v83p_2013-02-24.
I have a List Grid which uses generic data provider. In the data provider class I create DSResponse that contain the relevant data. Sometimes the user is unauthorized to view the data so I return an empty DSResponse, that cause the List Grid to display "No items to show" message. I would like to have the opportunity to display another message in case the user is unauthorized to view the data.
I was thinking about setting specific status code in the server DSResponse and catch the returned client DSResponse in the ResultSet.transformData and than check what is the status code and change the message accordingly, but this sound to me a bit workaroundy. Can you direct me to a better solution (or what is the best approach will be)?
Thank you.
I'm using: SmartClient_v83p_2013-02-24.
I have a List Grid which uses generic data provider. In the data provider class I create DSResponse that contain the relevant data. Sometimes the user is unauthorized to view the data so I return an empty DSResponse, that cause the List Grid to display "No items to show" message. I would like to have the opportunity to display another message in case the user is unauthorized to view the data.
I was thinking about setting specific status code in the server DSResponse and catch the returned client DSResponse in the ResultSet.transformData and than check what is the status code and change the message accordingly, but this sound to me a bit workaroundy. Can you direct me to a better solution (or what is the best approach will be)?
Thank you.
Comment