Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
8 replies
Subscribers
7 subscribers
Views
4223 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Programatically controlling collapsible Sections ?
pauls985
over 8 years ago
Is it possible to control whether a section is collapsed or not dependent on an input ?
For instance I have a form that is displaying some summary data that is view able to all. I have two groups of data, one for users and one for managers that are presented in a section each.
I'd like to on loading the form, only have the relevant section open .. i.e if a manager views it, the user data is collapsed and the manager data open.
I'm guessing the alternative is to just use some radio buttons on the form and display the fields dependent on the value of the button, but that means I lose all the section goodness :(
OriginalPostID-263361
Discussion posts and replies are publicly visible
0
PhilB
A Score Level 1
over 8 years ago
There's an isInitiallyCollapsed property that you could set which might help? It's only available on some of the more recent versions of Appian, though.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Josh
Certified Lead Developer
over 8 years ago
This should be possible. Attached is an example of this, you would put your "is user a manager" logic into the local!collapsibleSection variable.
collapsible.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Josh
Certified Lead Developer
over 8 years ago
Misread the question! Thought you meant the ability to collapse vs already collapsed.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Josh
Certified Lead Developer
over 8 years ago
I just tested this quickly. It looks like you can pass a variable to the isInitiallyCollapsed property but it doesn't behave properly when hitting "Test" in the interface designer. In Tempo (Reports/Tasks/etc) it works just fine.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 8 years ago
Yeah that's a good point - the interface designer doesn't work correctly on that one!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
bhanuprakashm
over 8 years ago
@pauls985, yes it is possible.
By maintain rule input (ri!) based on logged in user in the interface
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ayishabanum1
over 8 years ago
Have one ri! of Boolean type , set value for it based on logged in user , (manager or user ) in interface . Try this ..it may work
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Raviteja Varma Jampana
A Score Level 2
over 8 years ago
I think you are looking for ability to save something when someone click on collapse or open section events. That is not possible as of now. If you are looking to show something by default on page load as others suggested it is possible by rule inputs or identifying logged-in users and checking whether he is member of group or not.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel