Passing a button value as PV to a Process

Hello All,

I am using an interface to invoke a Process Model to download my claim report. I am able to invoke the process and download the report successfully. But the problem is, when I am trying to invoke a condition such as If the button pressed is Download, I should download the file and if it is Email, I should email the report instead.

For this scenario, I am using Button Widget to save the information of the form and filters. And the button value, I am saving into the variable local!buttonValue. Now, my questions are

1. I am not able to access the values from save!into in the process I am invoking. How can I access these variables?

2. How can I access the buttonValue as a PV inside the process I have designed?

3. I have tried doing this  saveInto: {local!export, a!save(ac!buttonValue, cons!CLAIMREP_BUTTON_VALUES[2])}. But when I am using the condition if ac!buttonValue = 1, I am getting the error, variable not found ac!buttonValue.

can you please suggest?

 

Edit: To add to this, I cannot use ri variable to share the data. Adding the ri variable is invalidating the interface with an error "Expected 1 parameter, passed 0 parameters"

 

Thanks,

Adi

  Discussion posts and replies are publicly visible

Parents Reply
  • Hi Adi,

    If you are using UI as start form for process model, then you can have ri variable.

    What I have done.

    1) In UI,defined ri varible ri!button. Below is the code.

    load(
      local!export: bind(
        null(),
        startprocesswrite(80115,
          _
        )
      ),
      a!linkField(
        links: a!submitLink(
          label: "Download",
          value: "Download",
          saveInto: {
            a!save(ri!button,"Download")
          }
        )
      )
    )
    screenshots.docx

     

    2) In Process Model, created PV as paramater (buttonValue)

    3) Under Process Start form, mapped PV (under value drop down) to an interface ri variable.

    The same is working fine for me. I have tried to attached the screenshots.

Children
No Data