File Upload in Interface called from another Interface or Interface called from Page that is defined as a Page in Site

Appian Family, 

Here is my Interface -- JR_InterfaceName

1) File Upload field in an interface >> Define the Target Folder with all correct permissions.

2) Submit Button: "submit" set to true.

I have 2 scenarios here

1) Just the interface by itself is just working fine when I upload the file and click submit. It gets save to the target folder.

2) When the same interface is either called from another interface as rule (rule!JR_InterfaceName) it doesn't work. The file is not saved to the target folder. I am pretty sure the document object is there but it's just not available to either save in a target folder or for anything else.

  • What is it that I am missing?
  • is it an Appian shortfall/Issue? I am assuming that this is very basic need for almost everyone.

3) Just to play around further

  • I called a Process Model using "saveinto" property of the button passing some dummy variables and the Document Uploaded from the upload control,
  • The PM got called and ended w/o issues.
  • When I looked at the Process Details, I saw the Document Object passed with the ID, but the input process variable was blank only for the document object.
  • I used the ID and used it in Document Viewer field in another Interface which worked fine, but it did not in the same interface where the upload file control was there.

Below is snippet of code

a!formLayout(
label: "Form",
contents: {
a!sectionLayout(
contents: {
a!fileUploadField(
label: "File Upload",
labelPosition: "ABOVE",
target: cons!JR_DELETE_ME,
maxSelections: 1,
value: ri!document,
saveInto: ri!document,
validations: {}
)
}
)
},
buttons: a!buttonLayout(
primaryButtons: {
a!buttonWidget(
label: "Submit",
submit: true,
style: "SOLID"
)
},
secondaryButtons: {
a!buttonWidget(
label: "Cancel",
value: true,
saveInto: ri!cancel,
submit: true,
style: "OUTLINE",
validate: false
)
}
)
)

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data