List Info

Thread: Bug




Bug
user name
2006-12-26 13:31:26
Bahruz Mehdiyev wrote:
> Hallo,
> 
> Danke für schnelle Antwort.
> ich habe noch andere Fragen:
> Kann man databits mitenander addieren, substrachieren
oder multiprlizieren?
> Zum Bsp. in einem Schritt die Daten einfügen und im
nächsten das Resultat in anderem databit zu bekommen.

Hallo, folgendes Beispiel führt eine einfache Berechnung
durch:

<scriptaction name="calc_groovy_example"
language="groovy">
	<description>Doing calculations</description>
	<script>
	i1 =
wf.getDatabit("testdataset.int_test").getValueAsIn
t();
	i1 = i1 * 120;
	wf.getDatabit("testdataset.int_test").setValue(i1
.toString());
      	return "Calculation done, result: " + i1;
      </script>
</scriptaction>

Das Databit "testdataset.int_test" sollte dabei
vom Typ "number" sein.
MfG

-- 
Thomas Schmidt (tschmidt [at] suse.de)
SUSE Linux Products GmbH :: Research & Development ::
Internal Tools
"Computers are useless. They can only give you
answers."
Pablo Picasso

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
swamp-devel mailing list
swamp-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swamp-devel

http://swamp.sf.net 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )