Announcement

Collapse
No announcement yet.

Using a custom relationship for Side Panels (Detail)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using a custom relationship for Side Panels (Detail)

    I am stuck at this, created a custom side panel detail relationship extending the relationship class however i need to manipulate the fields to be show or hidden based on condition. e.g is status == 'Pending' show field (type) etc

    Anyone has been through this?

    As you can see from the screenshot i want to show or hide the (Type) field which is customer - investor etc based on certain conditions.

    yuri any thoughts on how to achieve this ? i am extending (views/record/panels/relationship) how can i show / hide fields on the custom panel ?

    Thanks
    Attached Files
    Last edited by rabii; 09-11-2023, 10:21 AM.
    Rabii
    Web Dev

  • #2
    When you say "created a custom side panel..." you mean in JS, right ?

    If yes, which class are you inhereting ?

    Comment


    • #3
      Yeah i have created a custom view for a relationship panel that i want to display on side panels, all is working fine but seems that i can manipulate the layout to hide or show fields as the layout is constructed within the view.
      The relationship class (views/record/panels/relationship).
      Rabii
      Web Dev

      Comment


      • #4
        You could add something in the afterRender in order to hide what you need for each row.
        Otherwise you'll be forced to edit the .tpl

        Comment

        Working...
        X