on ‎2017 May 29 11:37 AM
Using a smart filter bar with value help dialog - is it possible to default values of highlighted input fields?

E.g. Having 2 fields in the smart filter bar: 'Currency' (combobox) and 'Company code' if I select currency 'GBP' and then open the value help of Company Code I would like to have the field 'Currency Code' already defaulted with what was selected in the smart filter bar.
Request clarification before answering.
Hi Radek Chudziak,
You need to default the data of the model bind to the controls in smart filter.
thanks
Viplove
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We can use this as an example as mine is pretty much the same: Smart Filter Bar
So if I click on the value help of the 'Company Code' I would like to default the 'Currency' field in the dialog.
The pseudocode would be something like this:
var oDlg = sap.ui.getCore().byId("__dialog6");
var fBar = oDlg.getFilterBar();
//Create a JSON model, populate it with default values and set it below:
fBar.setFilterData(new JSONModel());But the problem is that the dialog has a dynamic ID so I can't access it using the id.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.