Hi ,
I have a scenario , where if a request is rejected by a user , the same request cannot be delete by the same user who rejected it .
a!buttonWidget( label: "Delete", icon: "times", value: cons!Deleted[2] saveInto: {ri!buttonAction} style: "DESTRUCTIVE"
showwhen: and(
ri!readonly = false,
loggedinuser() = ri!maker ---- this is just a rule input with type text
a!isNotnullorempty(ri!rejectedby)
),
disabled: if(
ri!rejectedby = loggedinuser(),
true,
false
validate:false
Can anyone please help me with it . Thank you in advance.
Discussion posts and replies are publicly visible
What is the issue that you are facing with the code?
The delete button is not being disabled .
Then are you sure that the rejected by and loggedinuser matching?? if the values are same try wrapping loggedinuser in tostring()
What is the type of rejectedby variable?
Try comparing the variable of same type.
tostring(ri!rejectedBy) = tostring(loggedinuser)
Thank you very much . It worked