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
3 replies
Subscribers
7 subscribers
Views
1379 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I have a textfield, whose value is being provided by a local variable called loc
aswinb
over 11 years ago
I have a textfield, whose value is being provided by a local variable called local!state. And local!state is sometimes null which leads to crashing. So to prevent that I put the following for the textfield:
if(COMMON_IsNullOrEmpty(local!state),{}, { a!textField(label:"State", value: local!state, saveInto:local!state)})
but the textField seems to not like null values even after providing an if check statement. Can anybody help?...
OriginalPostID-104189
OriginalPostID-104189
Discussion posts and replies are publicly visible
Parents
0
Aleksi White
Appian Employee
over 11 years ago
Is COMMON_IsNullOrEmpty an Appian function? Or is it custom? I was able to get this working using the APN_isEmpty() function:
load(
local!state: "",
a!dashboardLayout(
firstColumnContents: {
if(COMMON_IsNullOrEmpty(local!state),{}, a!textField(label:"State", value: local!state, saveInto:local!state))
}
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Aleksi White
Appian Employee
over 11 years ago
Is COMMON_IsNullOrEmpty an Appian function? Or is it custom? I was able to get this working using the APN_isEmpty() function:
load(
local!state: "",
a!dashboardLayout(
firstColumnContents: {
if(COMMON_IsNullOrEmpty(local!state),{}, a!textField(label:"State", value: local!state, saveInto:local!state))
}
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data