diego bowen wrote:
> Hello Thomas, in trying to accomplish the following:
> 
> Objective is to have a dropdown, "releasetags" populated with contents
> of "/Users/diegobowen/tmp/test.sh"
> 
>  I have the following dataedit and ScriptAction defined within a node:
> 
> 
> <field path="cmscoredataset.releasetags" mandatory="yes"/>
> 
> 
> <scriptaction name="call_external">
>         <description>Calling external a program</description>
>         <script>
>         $executor.setExecutable("/Users/diegobowen/tmp/test.sh")
>         $executor.execute()
>         $wf.getDatabit("cmscoredataset.ps").setValue($executor.getStdout())
>         </script>
> </scriptaction>
> Note:  /Users/diegobowen/tmp/test.sh returns the following:
> 
> 1.5.0 
> 1.5.1 
> 1.5.3.1 
> 1.5.3.2 
> 1.5.3.3 
> 1.5.3.4 
> 1.6
> 
> 
> And the Databit Defined as:
> 
> <databit name="releasetags" description="testing testing" type="enum"
> state="read-write"/>

Hi Diego, tou need to set the enumeration values of the databit, not the value.
This can be done by
$wf.getDatabit("cmscoredataset.ps").setEnumvalues( ... )
after parsing the stdout into an array.

Greetings

-- 
Thomas Schmidt (tschmidt [at] suse.de)
SUSE Linux Products GmbH :: Research & Development :: Tools
"Don't Panic", Douglas Adams (1952 - 11.05.2001)

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
swamp-devel mailing list
swamp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swamp-devel
http://swamp.sf.net 

Reply via email to