Customer Portal

How to assign values to a parametre.

Comments 5

  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi,

    Unfortunately, you can't assign a query output to a parameters during the runtime since they are static and are resolved at the start of the graph. However, I would recommend that you use DBInputTable component and use the Query URL property to read incoming queries to be used in the SQL query attribute through the input port (e.g. port:$0.fieldname:discrete). You can read more about the DBInputTable component here.
  • Avatar
    prachi.bhatnagar
    0
    Comment actions Permalink
    I created a query in a reformat before DBInput table and passed that port as query URL, but now i am getting below error :
    D:\Users\prabhatn\Desktop
  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi,

    Could you please re attach your screenshot, I am not able to see it in your prior post.
  • Avatar
    prachi.bhatnagar
    0
    Comment actions Permalink
    Please let me know if there is a way to assign values to parametre
  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi,

    I would recommend that you use a Jobflow (you will need CloverETL Corporate Server) to assign the value to the parameter. To accomplish this use case, you will generate the SQL output (select * from ABC) and pass the value to a ExecuteGraph. You will need to create a Parameter in the ETL Graph (e.g. SqlURL) and map this value to the SQL output using the ExecuteGraph component Input Mapping property. Then you can use the Parameter to run the DBInputTable component. I have taken the liberty of attaching both example Jobflow and ETL Graph.

Please sign in to leave a comment.