Skip to main content
May 17, 2023
Question

Not getting output of Process Variables in Interface while using Site

  • May 17, 2023
  • 5 replies
  • 0 views

Hi All ,

I have a very strange scenario .

I have created an Interface which shows Data in Editable Grid, I want to Export this Data into an Excel File.

In order to Export the Excel File , I have created a Process Model which stores the required document into One Document Folder.
Now, I want to have a link to download that particular file.

I am able to do everything , While testing Interface , I am getting output of process variable ( i.e. the Exported Document) but when I am using that Interface in Site I am not getting output from Process Model.

Here is the image of Process Model:

  a!startProcess(
                      processModel: cons!MBUA_PM_EXPORTEXCEL,
                      processParameters: { gridData: ri!excelData,  },
                      onSuccess: a!save(
                        ri!document,
                        fv!processInfo.pv.exportedExcel
                      )
                    )
Here is the code which I have used for Starting this Process Model.

5 replies

stewart.burchell
May 17, 2023

Any reason you're trying to save the generated document to a rule input (ri!document) rather than a local! variable? (note: is your ri!document variable mapped to a corresponding ac! variable in your process? Remember that an ri! rule input is not a variable in its own right, it's a pointer to a variable. If your pointer isn't mapped to an actual ac!variable then your a!save() isn't going to work)

stefanhelzle0001
Brainy
May 17, 2023

Adding to what Stewart said, Sites do not support rule inputs for interfaces. Open that site and you will see a red triangle showing this error. Use local variables instead.

stewart.burchell
May 17, 2023

Doh! You're right, hadn't spotted the Site context. In which case, yes, fully endorse use of a local! variable.