on 11-13-2008 4:08 PM
Hello.
I would like to see a pushbutton enabled at the end of each row depending the result of the comparaison of two fields in my table.
To explain much better, I want that only the personne who created the recording in the table would be allowed to delete its. So I check if the ID of the recording creator is the same as the current user, and depending this result, the pushbutton to delete the row has to be enabled.
So I marked the checkbox "disabled" in my pushbutton options and written the following condition :
bool ( if ( @ID == @CurrentID , 1 , 0 ))
The function is ok (I checked by displaying the result in another variable)... But it doesn't work !!!
So I tried to write directly "true" or "false" in the display condition, and : There is no difference between both, the pushbutton is desactivated in each case. So I don't understand.
Can Somebody help me please ?
Hi,
In your condition just put @ID != @CurrentID as there is a single condition there is no need of IF statement. If this statement is satisfied it would disable the field else enabled.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.