2024 Jul 17 1:29 PM - edited 2024 Jul 17 1:30 PM
G'day,
Can I know how do I get the inner control of the sap.fe.macros.Field control? (something like getInnerControl method for Smartfields). I did get the controlEdit function, however when i try to change the valueState there, it didn't work.
The question is because I'm trying to programmatically reset the value for a sap.fe.macros.Field to blank/null after an error state is set by a value help validation (via annotations) as per this example. (https://sapui5.hana.ondemand.com/test-resources/sap/fe/core/fpmExplorer/index.html#/buildingBlocks/f...).
Using the context.setProperty method works only if the fields is not in a value state error. When i try to Message Manager to remove the error message and reset the value, it didn't work either.
@nicolas_lunet I've already tried setValue to '' or null (I'm assuming on the fe.macros.Field control itself) and it's not working either.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Weird,
I just did the following on this page https://sapui5.hana.ondemand.com/test-resources/sap/fe/core/fpmExplorer/index.html#/buildingBlocks/f...
Type 444 in Dynamic Field Control (Path Based) -> UI turns red
sap.ui.getCore().byId("sap.fe.core.fpmExplorer.fieldEdit::Default--FieldControlValue").setValue(0) -> all good again
Make sure you are on the FieldAPI when doing so 🙂
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.