Skip to Content

Value help Error : Uncaught TypeError: Cannot read property 'aKeys' of undefined

hi Guys,

I have an application with an Price Basis Input , which is a value help.

some times i get error as shown below & value help is empty. i.e. if application is launched 10 times, then 4 to 5 times i get the below error , where i have to log off , then login again and reload the application and then the value help works.

Please help to resolve.

Uncaught TypeError: Cannot read property 'aKeys' of undefined
    at f.d.update (eval at evalModuleStr (, <anonymous>:2138:424)
    at f.PriceBasisValueHelp (PriceBasis.controller.js?eval:167)
    at f.a.fireEvent (EventProvider-dbg.js:228)
    at f.a.fireEvent (Element-dbg.js:427)
    at f.fireValueHelpRequest (ManagedObjectMetadata-dbg.js:428)
    at f.eval (eval at evalModuleStr (, <anonymous>:2265:351)
    at f.a.fireEvent (EventProvider-dbg.js:228)
    at f.a.fireEvent (Element-dbg.js:427)
    at f.firePress (ManagedObjectMetadata-dbg.js:428)
    at f.c.<computed> [as onclick] (eval at evalModuleStr (, <anonymous>:282:130)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 05, 2019 at 09:53 AM

    hi Fabrice Podevin ,

    Please find the below code.

    var l_inputId_PriceInput = g_PriceViewPointer.getView().byId("Price_INPUTID");
    var oValueHelpDialog_Price = new sap.ui.comp.valuehelpdialog.ValueHelpDialog({
    	           	      basicSearchText: l_inputId_PriceInput.getValue(), 
    	           	      title: "Price",
    	           	      modal: true,
    	           	      supportMultiselect: false,
    	           	      supportRanges: true,
    	           	      supportRangesOnly: false,
    	           	      key: "Price",        
    	           	      descriptionKey: "Description",
    	           	      ok: function(oControlEvent) {
    var oContext = oValueHelpDialog_Price.getTable().getContextByIndex(oValueHelpDialog_Price.getTable().getSelectedIndex());
    var oselected = oContext.getModel().getProperty(oContext.getPath());
    sap.ui.getCore().getEventBus().publish("price_basis_exchange", "data", oselected);
    var selectedPrice = oselected["INC_CDE"];
    cancel: function(oControlEvent) 
    {"Cancel pressed!");
    afterClose: function() 
    g_PriceValueHelpDialog =  oValueHelpDialog_Price ;
    var oColModel = new sap.ui.model.json.JSONModel();
    	           	 cols: [
    	           	              {label: "Price", template: "INC_CDE"},
    	           	              {label: "Description", template: "INC_DESC"} 
    oValueHelpDialog_Price.getTable().setModel(oColModel, "columns");
     var oRowsModel = g_PriceViewPointer.getView().getModel("PriceModel");
    oValueHelpDialog_Price.setFilterBar(new sap.ui.comp.filterbar.FilterBar(
    	    advancedMode:  true,
    	    filterItems: [new sap.ui.comp.filterbar.FilterItem({ label :"Price Basis" , name: "Price Basis", control: new sap.m.Input("price_basis_filter_input")})],
    search: function() 
     g_PriceInput	 = sap.ui.getCore().byId("price_basis_filter_input").getValue();
     g_PriceViewPointer.getPriceValue(g_PriceInput);"Search pressed");
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.