on 04-26-2019 11:24 AM
Greetings Folks,
I have a scenario wherein I have a Table (of 5 columns) inside an IconTabFilter of a view. Of which 2nd column of the table is Input field with F4. I have handled the F4 with valueHelpRequest of Input field. I have also created a fragment myDialog having just a SelectDialog control. I am creating an instance of the selectDialog in the eventHandler onValueHelp of valueHelpRequest as you can see below in the code snippet.
onValueHelp: function (oEvent) {
this.selectedInp = oEvent.getSource().getId();
var oDialog = new sap.ui.xmlfragment("fragments.fragments.myDialog", this);
oDialog.setTitle("Cities");
oDialog.open();
this.getView().addDependent(oDialog);
oDialog.bindAggregation("items", {
path: "/city",
template: new sap.m.StandardListItem({
title: "{cityName}",
description: "{state}"
})
});
},
The problem I am facing is, whenever I click on the F4, the dialog box doesn't pop up at the next instance I mouse-click. In fact, it holds the screen and again if I mouse click, then the dialog-box appears. Something like this:
1) I click F4 and there is no dialog box appearing and the screen holds
2) Now if I mouse-click AGAIN, then the Dialog Box appears
Ideally, as soon as I press the F4, this dialog box shall appear. But here this isn't the behavior.
What changes/addition in code do I have to in order to exhibit the correct behavior.
Any input is highly welcomed. I appreciate your time.
Hi PRATHAMESH,
try this.Wait for some time to get the DOM generated.
setTimeout(function(){
oDialog.open();
}, 500)
Regards,
Sagar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.