Skip to Content
avatar image
Former Member

How to control who can see an embedded component

Hi

I'd like to control who can see an embedded component by rol or by user

is that possible?

thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 30, 2015 at 10:54 AM

    Hi Ivan,

    Did you check if UI switches would help you? I never worked with them, but from what I could read in the documentation, they might help solve your request. You can find the description in chapter 9.5.2.3 in the SDK documentation.

    Best regards,

    Uwe

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Alessandro Iannacci

      Hi

      I am trying to hide my two EC sections based on business roles for few users. I have tried defining anchors in Extensibility Explorer but still I am facing issue in hiding the same in Page Layout.

      When we edit the layout and make the sections not visible , we still see the sections on the layout

      Hospitality Section not visible on Edit Page Layout , but we still see this section on UI for user with this layout.

      I am able to hide the section but the fields still remain as visible. May be I am missing some particular section to hide out.

      Please find screenshots below

      Am I missing something?

      Thanks

      saruchi

      screen1.png (66.3 kB)
      screen2.PNG (99.1 kB)
      screen3.PNG (79.0 kB)
  • avatar image
    Former Member
    Oct 30, 2015 at 08:48 AM

    Hi Ivan,

    you can use front-end scripting in the UI-Designer to achieve something similar to that:

    1. Add an OBN-navigation to the floorplan hosting the embedded component.
      Important: This navigation is used to control access restrictions: everyone allowed to navigate to the OBN destination will be able to see the Embedded Component.
    2. Verify the navigation is working correctly
    3. Add the embedded component
    4. On floorplan hosting the embedded component, select the EmbeddedComponentPane (the parent pane of the embedded component) and edit the "visibility" property:
    5. Use Scripting to control the visibility of the embedded component:
      result = $controller.CheckNavigationTarget('OBNNavigationOutport')
      Use the outport of your OBN navigation from step one.
    6. Enjoy

    Best regards,

    Ludger

    --

    Custom development with all4cloud.de

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 30, 2015 at 06:26 AM

    Hi,

    I don't think there is a direct access restriction on embedded view. You have to create a Page layout with or with out embedded view and assign that role to users.

    Thanks,

    Raju

    Add comment
    10|10000 characters needed characters exceeded