Execute Stored Procedure

I am facing a problem while fetching data from stored procedure.

M giving Select query as input through Appian to stored procedure where the column sequence is specified.

While retrieving the data the columns are in different order than specified in the select statement.

Is there any way to maintain the column order as per the select statement sequence as the select query is generic and can be provided at runtime.

  Discussion posts and replies are publicly visible

Parents
  • Hi Robert,
    I am building kind of generic Export To Excel functionality for all grids we have in our application. I am going to use Exportable Data subset plugin for it.I also want to extend this feature as generic export to excel to generate run time export of data.

    Idea is
    1. Form a dynamic select query.
    2. Using execute stored procedure get the data.
    3. Parse the datasubset to get the column names.
    4. The output execute SP has all data in label value pairs but the sequence is not maintained.
Reply
  • Hi Robert,
    I am building kind of generic Export To Excel functionality for all grids we have in our application. I am going to use Exportable Data subset plugin for it.I also want to extend this feature as generic export to excel to generate run time export of data.

    Idea is
    1. Form a dynamic select query.
    2. Using execute stored procedure get the data.
    3. Parse the datasubset to get the column names.
    4. The output execute SP has all data in label value pairs but the sequence is not maintained.
Children