cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sap fiori elements Overview page - Table Card (ODATA v4 - Travel service)

ramaanne
Participant
0 Likes
1,745

Hi

I had been trying to create SAP FIORI ELEMENTS overview page - Table card with a Travel 0DATA v4 service added a second datasource using vscode ,the first odata service when app is generated is using Booking odata v2 service

when using VSCODE open guided development - and using wizard steps to add a table card - when doing step 2

add a data field ,the property selection is disabled (cannot select it at all ) so no new column can be added

screenshot-from-2022-11-11-17-09-58.jpg

so i was not able to troubleshoot why the wizard filed for add data field property drop down disabed

I also see in vscode output window below messages

{"level":"error","message":"Error in AnnotationService. hover(): TypeError: Cannot read properties of undefined (reading 'serviceFile')"}{"level":"error","message":"Error in AnnotationService. HoverTrusted(): TypeError: Cannot read properties of undefined (reading 'serviceFile')"}{"level":"error","message":"Error in AnnotationService. hover(): TypeError: Cannot read properties of undefined (reading 'serviceFile')"}{"level":"error","message":"Error in AnnotationService. HoverTrusted(): TypeError: Cannot read properties of undefined (reading 'serviceFile')"}

Could some one please provide me hints/suggestions to overcome the same

thanksrama anne

Accepted Solutions (1)

Accepted Solutions (1)

ramaanne
Participant
0 Likes

Hi

I have noticed that after adding a second odata service after the SAP FIORI OVP app gereration ,somehow Add a table card wizard does not enable PropertyPath selection (remains disabled) for adding a new datafield from a entitytype in second odata service ,(but the Propery path for datafield gets enabled if mainservice is selected )

so I have to add the Lineitem in annotation file manually for secondary odata service ,however I do not think the issue is v2 vs v4 (OADATA)

Iam using VSCODE on my laptop

so Iam closing this issue though wonder why add a table card wizard does not function for secondary oadata service though

rama anne

Answers (2)

Answers (2)

MoritzM
Explorer
0 Likes

I also have the same problem for this exercise. Regardless of whether V2 or V4, I cannot perform step 2 because the property path is grayed out. Is there already a solution?

minjie_lao
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

I did not play with this wizard before, but from description of your issue.

I think you can try to use v2 model, there is a way to convert v4 model to v2 model. refer to this link

ramaanne
Participant
0 Likes

Hi Minjie

Thanks for the suggestion I will try to do that also I observed there is some 401 error as well attached a screen shot of the same I also face same issue when using sap btp trial - Business Application Studio as well as VSCODE on ,y laptop -screenshot-from-2022-11-12-11-21-41.jpg

the error when creating Table card using wizard and a ODATA v4 service which is added after the Fiori tools generated the Overview Page template - precise error in browser dev tools is - CardHelperInstance error - Sapinsights is not enabled for this system - Fiorielements.OVP.appcomponent

I have searched the sap community for similar questions but seems no one encountered the same Iam following open sap course - Developing and Extending SAP Fiori Elements Apps which ran a few weeks ago and the forum for posting questions on the opensap webiste is closed so basically Iam following the openapcourse -WEEK3 unit3 also I checked the course forum to see if any course participants encountered the same issue but does not seem so - Iam not sure if SAP BTP TRIAL ABAP something changed or some permission issue

thanks

rama anne

ramaanne
Participant
0 Likes

In addition to the above I also tried the same as above ( Overview page - adding a table crad v4 - odata v4 SERVICE SECONDARY ) using Google chrome brwoser when I view the app Preview ,the same error is diaplayed in chrome developer tools window -

Log-dbg.js:452 2022-11-12 12:08:51.956600 Failed to get CardHelperServiceInstance.Error: sap.insights is not enabled for this system. - FioriElements: OVP.app.Component

Also attaching the screenshot of the same ,so the issue is a show stopper - sap community forums suggest sap insights is an SAP ANALYTICS CLOUD FEATURE not sure why sap fiori tools generated Overview page template when adding a table card is complaining about SAP INISGHTS not enabled screenshot-from-2022-11-12-12-10-46.jpg

thanks

rama anne