Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3116

Re: Recommended SAP UI5 F4 SearchHelp JS code organization/structure

$
0
0

Hi Ankit, first thanks for the answer. I'm still struggling. I have attached the code extraction:

 

=============================================

 

UI5 PROJECT NAME: ROOT
Subfolder: searchhelp, contained file "SearchHelps.js"

 

Worklist.view (XML View)


<Input...

  valueHelpRequest="handleValueHelpLocation"

 

Worklist.controller.js


sap.ui.define([

...

"ROOT/searchhelp/SearchHelps"

...

], function(...,SearchHelps,...) {

"use strict";

return BaseController.extend("ROOT.controller.worklist", {

...

 

handleValueHelpLocation: function(oEvent) {

      SearchHelps.handleValueHelp(oEvent);    "here error occures

},

 

SearchHelp.js

 

sap.ui.define([], function() {

"use strict";

return {

 

handleValueHelp: function(oEvent) {

...

}

});

 

Result in Chrome Debugger:

SearchHelps.handleValueHelp is not a function

 

Maybe you have again a tip. Thanks. Klaus


Viewing all articles
Browse latest Browse all 3116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>