on 10-09-2015 11:15 AM
Hello all,
I am working on this XML formatter.I want to display button depending on the value of Stats,I have written code as below but its not working.
<Button text = "New"
press = "create"
id = "id1"
enabled = "{= ${Stats} == '2'}" />
The expression binding *only* allows strict comparison. As santhosh has suggested, you'll have to use '===' for comparison.
<Button text = "New"
press = "create"
id = "id1"
enabled = "{= ${Stats} === '2'}" />
Check the below link for the list of operators supported.
Expression Binding - User Interface Add-On for SAP NetWeaver - SAP Library
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try,
"{= ${Stats}=== '2'}"
or
"{= ${Stats}=== '2'?true:false}"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.