The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.

Forum Discussion

Mikki's avatar
Mikki
New Contributor III
1 year ago
Solved

Combine 2 Methods of Data Adapters

Hi I want to combine data from 2 out-of-box methods in Data Adapter for a custom grid.  Is there a function that I can use in BR to read data from the methods - FormsStatusForWorkFlowUnit and Cer...
  • DanielWillis's avatar
    1 year ago

    Hi Mikki

    You would just need to get your method queries into the same format (if they aren't already) and then merge the 2 datasets/data tables together.

    Syntax for the method command is:

    Dim objDataSet As DataSet = BRApi.Database.ExecuteMethodCommand(dbConn, methodTypeId, methodQuery, resultDataTableName, customSubVars)

    There is an example of using method queries including looping through and working with the data within here:

    https://community.onestreamsoftware.com/t5/Reporting/Application-Workflow-Status-Report/m-p/34697/highlight/true#M5283

    There is a fair amount of info on google about joining data tables so I'll leave that to you!

    - Daniel