cancel
Showing results for 
Search instead for 
Did you mean: 

Could not open app: TypeError - i.getKey is not a function

jon_m_bergara
Explorer
0 Kudos

Hello SCN,

We are having a problem with custom Fiori apps that we have deployed on the SAP HANA Cloud Platform.

The Fiori apps work well when we preview them, but then they don't open in the Fiori Launchpad.

We get the error message: "Could not open app. Try again later"

In the browser console we find the following detailed error:  "TypeError - i.getKey is not a function"

We don't use that function in any of our code, so I understand it belongs to a standard SAP controller.

In fact, the problem seems to be linked to Select UI input elements: if I remove the Select elements from the UI, then the apps work fine in FLP.

It's only when the Select elements are in place that the FLP scenario fails.

Looking forward to hearing the experts' feedback.

Thanks in advance!

Jon

Accepted Solutions (0)

Answers (1)

Answers (1)

elgoher
Explorer
0 Kudos

Hi Jon

I solve the problem by asigning the selectedItem, selectedItemId and selectedKey atributes of the select element and I setup the id and key atributes of the select's items like this:


<Select id="oSTipId" selectedItem="Element sap.ui.core.ListItem#oI_Vacio" selectedItemId="oI_Vacio" selectedKey="oI_Vacio">

  <items>

  <sap.ui.core:ListItem id="oI_Vacio" key="oI_Vacio" text=""/>

  <sap.ui.core:ListItem id="oI_CC" key="oI_CC" text="Cédula de Ciudadanía"/>

  <sap.ui.core:ListItem id="oI_TI" key="oI_TI" text="Tarjeta de Identidad"/>

  </items>

</Select>

regards

pavlo_denysyuk
Participant
0 Kudos

Hi John,

Solution from Eliu does not help me. Do you have any suggestions ?

Thanks