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
7 replies
Subscribers
7 subscribers
Views
4357 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hello, I've created an interface with sail to replicate a form for a pr
marcoc200
over 10 years ago
Hello,
I've created an interface with sail to replicate a form for a process. The interface works fine, but when I click on the button submit the values of the various fields are not saved in the process variables (CDT) as I expect, someone can help me to understand why?
This is the sail expression
=a!formLayout(
label:"Enter your Apac Request Details",
instructions: "Please fill in the form below",
firstColumnContents: {
a!sectionLayout(
firstColumnContents: {
if(ri!errorStartDate = true (), a!textField(
readOnly: true, value: "The Start Date cannot be before today"
), a!textField(disabled:true()))
},
secondColumnContents: {
if(ri!errorEndDate = true (), a!textField(
readOnly: true, value: "The End Date cannot be before the Start Date"
), a!textField(disabled:true()))
}
),
a!sectionLayout(
firstColumnContents: {
a!pickerFieldUsers(
label: "Requestor",
...
OriginalPostID-133556
OriginalPostID-133556
Discussion posts and replies are publicly visible
0
marcoc200
over 10 years ago
... readOnly: true,
required: true,
value: loggedInUser(),
saveInto: ri!requestor
)
}
),
a!sectionLayout(
firstColumnContents: {
a!dateField(
label: "Start Date",
required: true,
value: ri!StartDate,
saveInto: ri!startDate
),
a!dateField(
label: "End Date",
required: true,
value: ri!endDate,
saveInto: ri!endDate
)
},
secondColumnContents:{
a!dropdownField(
label: "Start Time",
required: true,
value: ri!startTime,
choiceLabels: {cons!TimeAmPm},
choiceValues: {cons!TimeAmPm},
placeholderLabel: {"--- Select the Start Time"},
saveInto: ri!startTime
),
a!dropdownField(
label: "End Time",
required: true,
value: ri!endTime,
choiceLabels: {cons!TimeAmPm},
...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
marcoc200
over 10 years ago
... choiceValues: {cons!TimeAmPm},
placeholderLabel: {"--- Select the End Time ---"},
saveInto: ri!endTime
)
}
),
a!sectionLayout(
firstColumnContents:{
a!dropdownField(
label: "Leave Type",
required: true,
value: ri!leaveType,
choiceLabels: {cons!ApacRequestType},
choiceValues: {cons!ApacRequestType},
placeholderLabel: {"--- Select Leave Type ---"},
saveInto: ri!leaveType
),
a!paragraphField(
label: "Reason",
required: true,
value: ri!reason,
saveInto: ri!reason
)
}
)
},
buttons: a!buttonLayout(
primaryButtons: {
a!buttonWidgetSubmit(
label: "Send to Approval",
style: "PRIMARY"
)
},
secondaryButtons: {
a!buttonWidgetSubmit(
...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
marcoc200
over 10 years ago
... label: "Cancel",
skipValidation: true,
value: true,
saveInto: ri!cancel
)
}
)
)
and this is the form expression of the process
=rule!InsertApacRequestMobileForm(
errorStartDate: pv!errorStartDate,
errorEndDate: pv!errorEndDate,
requestor: pv!requestor,
endDate: pv!ApacRequetMobile.ToDate,
startDate: pv!ApacRequetMobile.FromDate,
reason: pv!ApacRequetMobile.Reason,
startTime: pv!ApacRequetMobile.FromTime,
endTime: pv!ApacRequetMobile.Totime,
leaveType: pv!ApacRequetMobile.LeaveCode,
cancel: pv!cancel).
The form in tempo appear as in the image
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
matthew.shutt
Appian Employee
over 10 years ago
I think your error may be the using of process variables, which cannot be updated from a task form.
Look at the documentation for submitting a user input to process:
forum.appian.com/.../SAIL_Design.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
marcoc200
over 10 years ago
Sorry I've read the guide on the link that you have posted. But really as specified in this guide when a SAIL form is used as a task form:
•Process variables cannot be updated from a task form.
•Local variables cannot be used to update node input values.
If it's true what the guide says where is the utility to use sail instead of the classic task form where this is possible? There is no way taht we can update a process variable from a task form?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
matthew.shutt
Appian Employee
over 10 years ago
I suggest setting up an activity class parameter and passing the information using that. This documentation may help you further:
forum.appian.com/.../Data_Tab.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
marcoc200
over 10 years ago
Ok, perfect.
Thank you very much
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel