Hi,I am trying to populate a text field with a simple string returned from a datasource. It does not work means even though datasource is getting executed and value is returned still DCT has blank value. I have gone through the previous posts and then returned something like below:< html >< ?xml version="1.0" encoding="UTF-8"? >< substitution >< default >+000010< /default >< /substitution >< /html >or< html >< substitution >< default >+000010< /default >< /substitution >< /html >Here is my DCT element:
<item pathid="waitTimeout" name="waitTimeout"> <text required="t"><default> <inline command="Datasource:executeComponent:getValueFromConfigDS:configKey=translation_wait_timeout"/ ></default> </text > </item >
I am trying to populate a text field with a simple string returned from a datasource...
...returned something like< html >< ?xml version="1.0" encoding="UTF-8"? >< substitution >< default >+000010< /default >< /substitution >< /html >
'inline' Tag Command must print valid 'substitution' XML into STDOUT. It is not sufficient just to return a String. Either make sure that your Datasource generates proper STDOUT or use a wrapper to call Datasourceand output the result.That's incorrect. substitution must be a root Tag of the returned XML. Correct string will be:<?xml version="1.0" encoding="UTF-8"?><substitution><default>+000010</default></substitution>