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
4 replies
Subscribers
7 subscribers
Views
1406 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
I am having a problem with conditionally displaying tabs inside a section in a f
padmanabhanv
over 11 years ago
I am having a problem with conditionally displaying tabs inside a section in a form.
For the tab titles, I have ="Package ID - " & pv!reqPackageList[1].package_id and ="Package ID - " & pv!reqPackageList[2].package_id.
On the tab display, I have defined "Only show this tab when..." as =if(isnull(pv!reqPackageList),false(),if(isnull(pv!reqPackageList[1]), false(), true())) etc
But even when the reqPackageList is empty all the tabs get displayed with error. What am I doing wrong here?...
OriginalPostID-93373
OriginalPostID-93373
Discussion posts and replies are publicly visible
0
padmanabhanv
over 11 years ago
tried all combinations of null checks and indexes, not working. Anyone seen this issue before?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
hemalathat
A Score Level 1
over 11 years ago
Hi,
You can add empty check along with null check in your condition. Your CDT is multiple so its better to check the length also.
You can try this rule
if(or(isnull(ri!givenValue),ri!givenValue=""),false(),if(length(ri!givenValue)=0,false(),true()))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
shelzle
over 11 years ago
If you want to show or hide the tabs depending whether the lists are empty or not, isnull() will not help you. Have you tried to using length()? Beware that length() does not like null values, so you might have to use both.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
padmanabhanv
over 11 years ago
Yes length with null did the trick, thanks all.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel