Sapui5 值帮助对话框在触摸屏中不工作

Sapui5 值帮助对话框在触摸屏中不工作,sapui5,Sapui5,我使用的是“值帮助”对话框,但它不适用于触摸屏。我无法选择任何值。这是我的controller.js: onValueHelpStorageBinDest : function(oEvent) { var that = this; that.theTokenInput = this.getView().byId("DestinationStorageBinInput"); this.theTokenInput.setEnableMultiLineMode(sap.

我使用的是“值帮助”对话框,但它不适用于触摸屏。我无法选择任何值。这是我的controller.js:

    onValueHelpStorageBinDest : function(oEvent) {
    var that = this;
    that.theTokenInput = this.getView().byId("DestinationStorageBinInput");
    this.theTokenInput.setEnableMultiLineMode(sap.ui.Device.system.phone);`     

var oValueHelpDialog = new sap.ui.comp.valuehelpdialog.ValueHelpDialog({
                    // basicSearchText: this.theTokenInput.getValue(),
                    title : "{i18n>SelectStorageBin}",
                    supportMultiselect : true,
                    supportRanges : false,
                    supportRangesOnly : false,
                    // key: this.aKeys[1],
                    // descriptionKey: this.aKeys[1],
                    stretch : sap.ui.Device.system.phone,

                    ok : function(oControlEvent) {
                        // that.aTokens = oControlEvent.getParameter("tokens");
                        // that.theTokenInput.setTokens(that.aTokens);
                        that.getView().byId("DestinationStorageBinInput").setValue();
                        var oCore = sap.ui.getCore();
                        var oDestinationStorageBin = oCore
                                .byId("DestinationStorageBinInput");
                        var oHelpTable = oValueHelpDialog.getTable();
                        var oContext = oHelpTable.getContextByIndex(oHelpTable.getSelectedIndex());

                        if (oContext) {
                            var oSel = oContext.getModel().getProperty(
                                    oContext.getPath());
                            var token2 = new sap.m.Token({
                                key : oSel.Lgpla,
                                text : oSel.Lgpla
                            });
                            var oDestinationStorageBin = oSel.Lgpla;
                            that.aTokens[1] = [ token2 ];
                            that.theTokenInput.setTokens(that.aTokens[1]);
当我使用普通鼠标选择一条线时,它就会工作,我可以选择一条线。原因可能是什么? 我已经勾选了这个,并且在行前面有复选框,但是我没有得到它们。 感谢您的帮助。
Tim

您是否用不同的浏览器(如Chrome、FireFox等)测试过它?你提到的plunkr在IE和Chrome上给了我不同的结果。你有什么样的触摸屏:智能手机、平板电脑等等,…?安卓、iOS、Windows等等?这是否适用于您的触摸屏?您是对的,行为取决于浏览器。似乎选择的项目不适用于Chrome,但适用于IE。我们使用的是windows 8笔记本电脑。我只能在下周测试这个示例。您提到的这个示例是否同时适用于Chrome和IE?这在我的Win10桌面(无触摸屏)上使用Chrome和IE的鼠标效果很好。在使用触笔的Win10 Surface book上也可以。在我使用Chrome的Android 4.4.2智能手机上,有一个中间步骤,我点击“从列表中选择”,然后获得选项。您提供的plunkr在我使用Chrome的Win10桌面上运行良好,但在IE上我得到了一个空屏幕。