on 06-15-2015 12:38 PM
Hi all,
I want to use enable rule for a field on edit transaction screen. There is a string property as "EDITABLEFIELDS" and it has names of editable fields. (ex. EDITABLEFIELDS: IMEINO,AHBNO,PRODUCTID,SERIALNUMBER...)
I want enable rule to work according to the "EDITABLEFIELDS" property has that field name. But it does not work correctly. How should i set this enable rule?
Best Regards,
Serkan DEMIR
Hi all,
I solved my problem to move and set EDITABLEFIELD property under main object. I could not reach "EDITABLEFIELDS" property when it's under the object which edit transaction works for.
Thanks all.
Best Regards,
Serkan DEMIR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try the following:
- add a label to the screen and set the update rule to :>Current Object> "EDITABLEFIELDS" Property... if it does not show the content (IMEINO,...) you need to find another way to access that EDITABLEFIELDS Property (e.g. via other objects in the property browser)
- wrap the FIND with an EQBOOL to enforce a boolean context on the FIND (since about a year or so, agentry changed the way implicit conversion works in rules...)
- use the test environment to debug the rule
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Serkan,
FIND will return a boolean if used for an enable rule in a boolean context, so you don't need the EQBOOL wrapper. Just do the FIND followed by the source string followed by the target string you are searching for, and the rule will return TRUE if found, and FALSE if not.
I wouldn't recommend using Current Object if you can avoid it. Always fully qualify your object names where possible.
Jason Latko - Senior Product Developer at SAP
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
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.