Forum Discussion

DanielOthwolo's avatar
DanielOthwolo
Qrew Member
6 years ago

Comparison between two tables and display the outcome on one column using the API_DoQuery

Good Day

I am an intern at an ISP assigned to develop a Reconciliation between bank deposits and the amount floated to vendors. I am having a problem with comparing the two different fields and displaying the corresponding value in the Reconciliation table onto a specific column. I have tried to apply the API_DoQuery which gives no errors but doesn't write the data into the other table. Please assist! Here is the function i have applied which doesn't include the field ID of the column to display the data. I have tried using the IF statement formula but i have no option to import from another table.

<qdbapi>
<usertoken>%user.token.b4s2ci_jdr8_brbx.VenFloat%</usertoken>
<apptoken>app_token</apptoken>
<udata>mydata</udata>
<query>{'7'.EX.'_FID_6'}AND{'27'.EX.'_FID_16'}</query>
</qdbapi>

------------------------------
Daniel Othwolo
------------------------------
  • AustinK's avatar
    AustinK
    Qrew Commander
    DoQuery will only do a query that you choose and return data. It will return everything you ask it to and then you need to do something with that data.

    After the DoQuery how are you handling the returned data?

    If you are wanting to get data from one table and import it to another one you are likely wanting to use ImportFromCSV but that qill require the data to be in csv format.
    • DanielOthwolo's avatar
      DanielOthwolo
      Qrew Member
      Yes, I intend to import data into one table from a CSV file then map one column onto another table if the criteria are met using the ImportFromCSV. I did attempt to do that but the results don't seem to display on the other table. How can I add an IF Statement to compare records and add the data where the criteria is met?

      ------------------------------
      Daniel Othwolo
      ------------------------------
      • DanielOthwolo's avatar
        DanielOthwolo
        Qrew Member
        Please help!!!!!

        ------------------------------
        Daniel Othwolo
        ------------------------------