Customer Portal

WAy to pass parameter to queries

Comments 3

  • Avatar
    oldforum
    0
    Comment actions Permalink
    Hi, I checked posibility to involve parameter into query and it works. Bellow is a part of code where dbInputTable with query definition and internal parameter definition are:

    <Property id="GraphParameter0" name="date" value="20070308"/>
    </Global>
    <Phase number="0">
    <Node dbConnection="DBConnection0" enabled="enabled" guiHeight="0" guiName="DB Input Table" guiWidth="0" guiX="101" guiY="228" id="DB_INPUT_TABLE0" sqlQuery="select * from license where date_format(valid_from,'%Y%m%d') = '${date}'" type="DB_INPUT_TABLE"/>


    Tomas
  • Avatar
    oldforum
    0
    Comment actions Permalink
    Hi Tomas,

    Thanks for your reply.
    I was using a wrong syntax, assuming I should use the same one as what is used in clover's transformation language, that is I was using '${par.id}' for parameter name id, instead of '${id}'.

    Thanks again,

    Franck
  • Avatar
    oldforum
    0
    Comment actions Permalink
    Any comment someone ?

Please sign in to leave a comment.