SAP-samples / fiori-elements-feature-showcase

Sample application that demonstrates and documents a broad variety of features of SAP Fiori elements for OData V4. Developers can play around with the new features and learn how to implement them.
https://community.sap.com/topics/fiori-elements
Apache License 2.0
198 stars 70 forks source link

Copy/Pase functionality broken #23

Open nocin opened 10 months ago

nocin commented 10 months ago

Hi @schiwekM,

I am looking for a sample application that has a working copy/paste functionality on a list. I have two Fiori Element applications, where the button is visible but is always throwing a Failed to drill-down into exception. Now, when testing this sample, it is throwing the same error. Is this a general error with Fiori Elements or is there any missing annotation?

grafik

grafik

Log-dbg.js:499 2023-11-22 16:54:59.752500 Failed to drill-down into (ID=d419b9d9-897e-4e1f-9a7d-6a16e3c8f776,IsActiveEntity=true)/DataFieldForIntentBasedNavigation::FeatureShowcaseChildEntity2::manage::RequiresContext, invalid segment: DataFieldForIntentBasedNavigation::FeatureShowcaseChildEntity2::manage::RequiresContext - /srv1/RootEntities?$count=true&$select=HasActiveEntity,HasDraftEntity,ID,IsActiveEntity,childEntity2_ID,createdAt,createdBy,criticality_code,deletePossible,dimensions,fieldWithCriticality,fieldWithPrice,fieldWithURL,fieldWithURLtext,fieldWithUoM,forecastValue,imageUrl,integerValue,isoCurrency_code,modifiedAt,modifiedBy,starsValue,stringProperty,targetValue,uom_code,validFrom,validTo&$orderby=stringProperty&$filter=(IsActiveEntity%20eq%20false%20or%20SiblingEntity/IsActiveEntity%20eq%20null)%20and%20(criticality_code%20ge%200%20and%20criticality_code%20le%202)%20and%20(criticality_code%20ge%200%20and%20criticality_code%20le%202)&$expand=DraftAdministrativeData($select=DraftUUID,InProcessByUser,LastChangedByUser),childEntity2($select=ID,stringProperty),contact($select=ID,name) sap.ui.model.odata.v4.lib._Cache

I would be very interested in an error correction!

BR, Nico

gregorwolf commented 10 months ago

Hi @nocin ,

I would guess this issue occurs since 1.120.x. As this repository is also only consuming SAPUI5 you should file an incident via https://me.sap.com/servicessupport.

Best Regards Gregor

nocin commented 10 months ago

Hi @gregorwolf,

as I never got it working, I am not sure if it is an issue with the current UI5 version or just not setup correctly? Did you ever saw the copy functionality working somewhere?

BR, Nico

Joao247 commented 9 months ago

Hi @nocin I have the same issue as you. Have you been able to fix this?

nocin commented 9 months ago

Hi @Joao247,

unfortunately not. But I didn't have time to investigate this further.

Joao247 commented 9 months ago

Thank you for the response @nocin I followed this tutorial https://blogs.sap.com/2023/05/15/developing-cap-based-fiori-appdraft-enabled-with-node.js-and-vscode/ and the copy button works here. not sure what the problem is on our apps. maybe the way entitys are defined.

dinurp commented 9 months ago

The error is logged for some columns that are not copied. The rest of the columns do get copied. In this sample the issue is with two columns: IBN (shopping cart Icon), and changeProgress (Progress Indicator). If you exclude these columns (using settings), no error is logged.