Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8594

Re: Variable in SQL atom

$
0
0

Hi Frederik,

 

in the SQL call atom there is an option to take the SQL code from a previous XFORM atom.

I always use this option if I want to fill any values from variables.

 

You only need to enter the XPath, where you're SQL statement can be found (without leading #).

I attached a screenshot, where I prepared the SQL statement including variables in atom7:

     /vpf:Msg/vpf:Body/vpf:Payload[./@id='atom7']/SQL

 

In XFORM atom7, there is following segment <SQL>:

xsl:template name="transform"><SQL xmlns="">SELECT DocEntry, DocNum, NumAtCard FROM ORDR WHERE NumAtCard LIKE &apos;%<xsl:value-of select="concat($vpdocentry,&apos;*&apos;,$vpdocnum)"/>%&apos;</SQL></xsl:template>

Capture.PNG

Best regards

Bastian


Viewing all articles
Browse latest Browse all 8594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>