Menu

Using document params in SqlEnrich?

Help
fbareuther
2004-03-11
2004-03-11
  • fbareuther

    fbareuther - 2004-03-11

    Hi,

    I need to use document parameters in my sqlScript. I tried several formats, but nothing works.

    Any suggestions?

    Thx,
    Frank

    <stage-inst>
         <stage-name>CheckLastImport</stage-name>
         <stage-desc>Checks database for last update</stage-desc>
         <stage-type>SqlEnrich</stage-type>
         <option>
            <option-name>sqlScript</option-name>
            <option-value/>
            <sub-option>
               <option-name>CHKLSTIMPORT</option-name>
               <option-value>select '1' as CHKLSTIMPORT from GEP_PARAMETER where GPA_LAST_UPDATE > ${document.get("TIMESTAMP")</option-value>
            </sub-option>
         </option>>
         <option>
            <option-name>resourceName</option-name>
            <option-value>gemdb</option-value>
         </option>
      </stage-inst>

     
    • Sherman Wood

      Sherman Wood - 2004-03-11

      $document.get("TIMESTAMP") should do it.

      Are you sure that TIMESTAMP is set before you get to this stage? Look in the log.

      Sherman

       
    • Michael Ansley

      Michael Ansley - 2004-03-11

      It seems there is a syntax error in your document.  There is no trailing } after the document.get().  This assumes, of course, that you pasted the xml into the message.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.