Code Comments
Programming Forum and web based access to our favorite programming groups.How can I modify the expression of a computed field in the detail band of a datawindow? dw_plan.object.cli.expression = "'ABC'" works but I would like to have a different expressions for each row ... Xaver
Post Follow-up to this messageYou cant change expression of a computed object row wise (as in the case of columns) To go around with this problem 1 .to the existing select list add a non existing column Select ................, 1000 AS 'comp_1' from tab1 2.in the script for i = 1 to dw_1.rowcount () dw_1.object.comp_1 [i] = dw_1.object.unitprice [i] * 2 next ( where unitprice of the current row * 2 is the expression) 3. if u r very specific on row number add if statements to create new expression based on row numbers like if i=123 then dw_1.object.comp_1 [i] = dw_1.object.unitprice [i] * 2.51 On Mar 21, 2:37 pm, "Xaver Trapichler" <xt...@aon.at> wrote: > How can I modify the expression of a computed field > in the detail band of a datawindow? > > dw_plan.object.cli.expression = "'ABC'" > works but I would like to have a different > expressions for each row ... > > Xaver
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.