How to simulate portal tabs equivalent in SAIL

Certified Senior Developer

Hi,

we have Protal form with 3 Tabs contain some SAIL components like 1st,2nd having Grid and 3rd having Section with fields. how to achieve equivalent in SAIL.

Need some Working sample is more helpful to understand.

Some Approaches:

Approach:

1.Button Array with hide and show sections.

2.Hide and show sections based on conditions.

Thanks in Advance.

 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    you can always use the showWhen condition, wherein depending upon the conditions, the grid or the the section will show up in SAIL. For replicating tabs, you can use buttons. You can make three buttons and upon clicking each button, store a value in a local variable. And depending on the values stored in your local variable, show your grids or sections. For example:

    Use the following code for three buttons which upon clicked will display your first grid,second grid and your section:
    with(
    local!buttonValue,
    a!formLayout(
    contents:{
    a!buttonWidget(
    label:"Grid1",
    value:1,
    saveInto:local!buttonValue
    ),
    a!buttonWidget(
    label:"Grid2",
    value:2,
    saveInto:local!buttonValue
    ),
    a!buttonWidget(
    label:"Section1",
    value:3,
    saveInto:local!buttonValue
    ),
    a!gridField(
    showWhen:local!buttonValue=1
    ),
    a!gridField(
    showWhen:local!buttonValue=2
    ),
    a!sectionLayout(
    showWhen:local!buttonValue=3
    )
    }
    )
    )
    This is just an example explaining you the logic. You might need to check the syntax and also make necessary adjustments in order to suit your requirements.
  • 0
    Certified Senior Developer
    in reply to Aditya
    Hi,
    Thanks for the quick reply. will try and let you know...
Reply Children
No Data