-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic hiding/showing columns with OData V2 and CDS Annotations #67
Comments
Hi @harelyshau , thanks for your contribution. We appreciate it and will look into this. |
@harelyshau : The property isHidden is associated via the navigation property 'Parent' to the PO Lines. So an association set describing the same (POLines to Parent) should be available in the metadata along with the Parent to POlines association. |
Hello! Unfortunately, I can't provide you this code right now, I can try to make a simplified version a little later and give you access to it. However, I want to note that in the screenshots I provided the annotations that I use and they show that Parent.isHidden is successfully obtained and displayed in the column near. I would be happy with at least one working example of dynamically hiding an entire column using some field in the parent entity with OData V2 and CDS Annotations. Do you have one? |
Please check this example where the column 'Sub-Property 2' can be hidden based on the header property 'Hide subProperty column'. |
Thanks for quick answer. If I'm wrong could you provide me your annotations.cds file (or another named file where you made this settings). |
@ArunBharathiKumarasamy do you have any updates? |
For SAP Fiori elements implementation related queries kindly post here https://answers.sap.com/tags/ed5c1ef6-932f-4c19-b2ba-1be375109ff5 |
Hello @harelyshau, Is your concern addressed now? Can I close this issue as well as #68 (comment) this one? I feel they both are similar. Please do let me know. Thanks and regards, |
Hello @harelyshau, Can you please confirm if your concern is resolved? Thanks and regards, |
@ArunBharathiKumarasamy can you answer which annotations do you use in example that you provided. I'm interested in CDS annnotations and OData v2 as you can see in title of issue? I will check the link that you attached but I've not found this solution so far. |
Hello @mishuagrawal. I don't think so. I've not got any example with stack that I described (OData V2 & CDS Annotations). And another issue that you attached doesn't link with this one. It's really another question. |
The annotation that you have mentioned here should work and I anticipate the problem is with the missing association to the parent. To analyze the issue further please post the query in "https://answers.sap.com/tags/ed5c1ef6-932f-4c19-b2ba-1be375109ff5". |
Hello. Your colleague has already helped me. Issue was in our data model. I wrote wrong Association relationship between Parent and Child entities. So if anyone else faces with similar problem, don't forger about using $self in condition of Association (if you use SAP CAP). Thanks for support. |
Issue description
Hello.
I am using odata v2 with adapter from v4 (because we are using CAP Model). And I see in your documentation this example to dynamically show/hide coulmns in table.
But I am using cds annotations and trying to do the same. But there is no some affect when I put it in LineItems Annotation. It works well in FieldGroup, but not in LineItems.
My question: how I can make dynamic visible of columns with OData V2 and cds annotations?
Feedback Type (Optional)
clarity
Page Title on SAP Help Portal (prefilled)
Additional Features in SAP Fiori Elements for OData V2 DataField Records in Tables
Page URL on SAP Help Portal (prefilled)
https://sapui5.hana.ondemand.com/sdk/#/topic/ca00ee45fe344a73998f482cb2e669bb.html
The text was updated successfully, but these errors were encountered: