SAP-docs / sapui5

This is the markdown version of the official SAPUI5 documentation from the SAPUI5 Demo Kit for external contributions.
Creative Commons Attribution 4.0 International
72 stars 119 forks source link

How to make Dynamic visibility of custom section in manifest.json with OData V2? #81

Closed jberthe closed 9 months ago

jberthe commented 9 months ago

Issue description

Is there a way to dynamically control the visibility of a custom section, similar to custom actions using the "applicablePath" property?

Feedback Type (Optional)

content gaps

Page Title on SAP Help Portal (prefilled)

No response

Page URL on SAP Help Portal (prefilled)

No response

KvM2 commented 9 months ago

Hi @jberthe, thanks for your contribution. Can you add a link to the documentation that is affected in this issue? thanks

jberthe commented 9 months ago

Hi, here is the documentation (OData V2 part) : Extension Points for Sections on the Object Page

KvM2 commented 9 months ago

Thanks, @jberthe! We will look into this .

Abhishek-Anand12 commented 9 months ago

From Fe side, there is no manifest settings available for the captioned feature. However, you can set the 'visible' property of the parent/first UI5 control which is used in the extension fragment to the path which determines the visibility of the custom section and based on the control's visibility, its parent section's visibility would be changed as well.

mishuagrawal commented 9 months ago

Hello @jberthe,

Our expert has provided an update for your concern. Please confirm if this resolves your concern. If not, please feel free to write back to us.

Thanks and regards, Mishu Agrawal

jberthe commented 9 months ago

The solution provided, would works for content inside the section. But it will not hide the whole section.

Abhishek-Anand12 commented 9 months ago

The solution provided, would works for content inside the section. But it will not hide the whole section.

Could you provide the application URL, its credentials and steps to replicate the issue. The proposed solution should have worked but if it doesn't, I could have a look.

mishuagrawal commented 9 months ago

Hello @jberthe,

Since this is not an issue related with our documentation I will be closing this issue. You can create a ticket regarding your concern and reach out to Abhishek using the CA-UI-ST-OP component and he will get back to you with a resolution for your concern.

If you have any concerns, please feel free to reach out to us.

Thanks and regards, Mishu Agrawal