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
5 replies
Subscribers
9 subscribers
Views
1644 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
After installing the 16.1 release we have a number of forms failing due to the e
jarrods229
over 9 years ago
After installing the 16.1 release we have a number of forms failing due to the error "The load function cannot be used within rules called by looping functions, instead pass the necessary variables via rule inputs or use a!applyComponents"
We aren't using load() within child expression rule, but we are using SAIL components.
According to the help file
"apply() cannot be used with rules or functions that store local data, including rules using load() and certain SAIL components. In these cases, apply() will return an error. In these cases, use a!applyComponents()."
Does anyone have a definitive list as to which certain SAIL components this applies to - and also if this list of certain SAIL components has changed in either the 7.11 or 16.1 release?
OriginalPostID-193279
OriginalPostID-193279
Discussion posts and replies are publicly visible
Parents
0
jarrods229
over 9 years ago
Parent Rule:
with(
local!scopusMetaDataEntryArray:ri!More
,
apply(
rule!LIB_CRO_AddFundingFields(
More:_
),
enumerate(
local!scopusMetaDataEntryArray
) + 1
)
)
Child Rule:
a!sectionLayout(
label: "",
firstColumnContents: {
a!dropdownField(
label: "Funding body",
labelPosition: "ABOVE",
choiceLabels: {"ARC", "NHMRC",
"Other"},
placeholderLabel: "--- Select a Value ---",
choiceValues: {"ARC", "NHMRC", "Other"},
value:trim(ri!Grant_Body[ri!More]),
saveInto: {ri!Grant_Body[ri!More]},
validations: {}
),
if (trim(ri!Grant_Body[ri!More])="Other",
a!textField(
label: "Grant body name",
labelPosition: "ABOVE",
value:trim(ri!Grant_Body_Name[ri!More]),
saveInto: ri!Grant_Body_Name[ri!More],
refreshAfter: "UNFOCUS",
readonly: false,
disabled: false,
validations: {},
align: "LEFT"
)
,
a!textField(
label: "",
labelPosition: "ADJACENT",
refreshAfter: "UNFOCUS",
readonly: true,
disabled: true,
validations: {},
align: "LEFT"
)
)
},
secondColumnContents: {
a!textField(
label: "Grant number/ Description",
labelPosition: "ABOVE",
value: ri!grant_number[ri!More],
saveInto: ri!grant_number[ri!More],
refreshAfter: "UNFOCUS",
readonly: false,
validations: {},
align: "LEFT"
)
},
iscollapsible: true
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
jarrods229
over 9 years ago
Parent Rule:
with(
local!scopusMetaDataEntryArray:ri!More
,
apply(
rule!LIB_CRO_AddFundingFields(
More:_
),
enumerate(
local!scopusMetaDataEntryArray
) + 1
)
)
Child Rule:
a!sectionLayout(
label: "",
firstColumnContents: {
a!dropdownField(
label: "Funding body",
labelPosition: "ABOVE",
choiceLabels: {"ARC", "NHMRC",
"Other"},
placeholderLabel: "--- Select a Value ---",
choiceValues: {"ARC", "NHMRC", "Other"},
value:trim(ri!Grant_Body[ri!More]),
saveInto: {ri!Grant_Body[ri!More]},
validations: {}
),
if (trim(ri!Grant_Body[ri!More])="Other",
a!textField(
label: "Grant body name",
labelPosition: "ABOVE",
value:trim(ri!Grant_Body_Name[ri!More]),
saveInto: ri!Grant_Body_Name[ri!More],
refreshAfter: "UNFOCUS",
readonly: false,
disabled: false,
validations: {},
align: "LEFT"
)
,
a!textField(
label: "",
labelPosition: "ADJACENT",
refreshAfter: "UNFOCUS",
readonly: true,
disabled: true,
validations: {},
align: "LEFT"
)
)
},
secondColumnContents: {
a!textField(
label: "Grant number/ Description",
labelPosition: "ABOVE",
value: ri!grant_number[ri!More],
saveInto: ri!grant_number[ri!More],
refreshAfter: "UNFOCUS",
readonly: false,
validations: {},
align: "LEFT"
)
},
iscollapsible: true
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data