Storing current queue item in PV

Certified Lead Developer

Hi All,

I'm building an use case where there is a need to iterate through a queue and Fill some forms. For this, I will need to save current row items from a queue in to few process variables. Later, I use these process variables to fill values on browser forms.

How do we save a queue current row/item into PV/PV's?

Thanks in advance,

Arjun.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    so if I understand this correctly, you need to iterate over a few forms (which I hope it has the same data type) and collect data from all of them, then display the data that was collected off of these forms in one interface.

    If you do use one datatype, then you could create an array that contains an index for each of the forms that needs to be sent, and as Stefan said, you can create a PV counter and use that counter to save each form data in the correct index of the array I mentioned earlier, then when you want to display the data, you can just iterate over the array of form data that you have and display it how ever you see fit.

    best of luck

  • 0
    Certified Lead Developer
    in reply to Ahmad Al-Buthom

    Thanks for the suggestions Stefan and Ahmad.   have an excel file with 1000 rows and 5 columns and we need to do a data entry to a system through browser. we have PV for each column and will need to save the row values (5 column) in to these PV's. 

  • 0
    Certified Senior Developer
    in reply to arjunv489

    my point still stands, you need an obj (or a CDT in this case) which has 5 attributes for your 5 columns in the excel sheet, and you need to read those columns and append them to the array of that same CDT you created earlier.

  • 0
    Certified Lead Developer
    in reply to Ahmad Al-Buthom

    Thanks for the quick response. Question is more towards how to implement it. how do we achieve saving the queue values in PV? can java code set values on a PV or is there a low code module available to store the value? Please share examples

    I'm able to access the values using currentItemQueue.functionalData() on a method written to access this data, but not sure how to store this in a PV.

  • 0
    Certified Lead Developer
    in reply to arjunv489

    we could think of 2 solutions at this point.

    1. Use an Appian process to read excel and call a robot with process variables in it iteratively. From the Appian process we can pass values to the Robots parameterized variables.

    2. use a queue and IRobotVariable to set the value in PV and later use this PV to fill in the UI forms with values.

    If there could be any other approaches, please suggest those as well.

Reply Children
No Data