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
18 replies
Subscribers
7 subscribers
Views
7704 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Expression evaluation error at function a!util_sasaUiSource: An error occurred w
deepanc712
over 9 years ago
Expression evaluation error at function a!util_sasaUiSource: An error occurred while executing a save: java.lang.NullPointerException.
The dataset is loading perfectly good on sail environment but the same is returning null pointer exception..
The objective is to add/remove country to a paging grid.
Can some one help
Thanks in advance.
pagingGrid3.sail
OriginalPostID-149871
OriginalPostID-149871
Discussion posts and replies are publicly visible
Parents
0
sikhivahans
over 9 years ago
@deepanc Quick observations:
1. associatedRegions is initiated as an array variable in load().
local!associatedRegions:{}
2. But under "Add country" button you are expecting the same variable to behave as an CDT which is not right as per my knowledge. So this could be cause of an issue.
Example:
local!associatedRegions.REGION_EID
local!associatedRegions.NAME
In order to resolve this, initialise the associatedRegions to the desired cdt type. For instance it should be local!associatedRegions: {type!my_CDT()}. Go with this resolution only if you expect local!associatedRegions to behave as CDT. Else plan for an alternative way of coding.
Also please note that, under the "Add country" button component, you are using 'apend' instead of append which will result in an error down the line when you include a valid condition in if().
a!save(local!associatedRegions.REGION_EID,if(1, local!unassignedRegionID,apend(local!associatedRegions.REGION_EID, local!unassignedRegionID)))
AFAIK a!util_sasaUiSource() is an internal function used by Appian while rendering UI and this hasn't been exposed to us. I often see it in errors. So I guess we don't need to think about it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sikhivahans
over 9 years ago
@deepanc Quick observations:
1. associatedRegions is initiated as an array variable in load().
local!associatedRegions:{}
2. But under "Add country" button you are expecting the same variable to behave as an CDT which is not right as per my knowledge. So this could be cause of an issue.
Example:
local!associatedRegions.REGION_EID
local!associatedRegions.NAME
In order to resolve this, initialise the associatedRegions to the desired cdt type. For instance it should be local!associatedRegions: {type!my_CDT()}. Go with this resolution only if you expect local!associatedRegions to behave as CDT. Else plan for an alternative way of coding.
Also please note that, under the "Add country" button component, you are using 'apend' instead of append which will result in an error down the line when you include a valid condition in if().
a!save(local!associatedRegions.REGION_EID,if(1, local!unassignedRegionID,apend(local!associatedRegions.REGION_EID, local!unassignedRegionID)))
AFAIK a!util_sasaUiSource() is an internal function used by Appian while rendering UI and this hasn't been exposed to us. I often see it in errors. So I guess we don't need to think about it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data