Author: sh-sh-sh Date: Fri Oct 5 22:01:43 2007 New Revision: 41270 URL: http://svn.opensuse.org/viewcvs/yast?rev=41270&view=rev Log: fixed example Modified: branches/tmp/sh/mod-ui/core/libyui/doc/examples/Table5.ycp Modified: branches/tmp/sh/mod-ui/core/libyui/doc/examples/Table5.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/core/libyui/doc/examples/Table5.ycp?rev=41270&r1=41269&r2=41270&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/core/libyui/doc/examples/Table5.ycp (original) +++ branches/tmp/sh/mod-ui/core/libyui/doc/examples/Table5.ycp Fri Oct 5 22:01:43 2007 @@ -20,10 +20,11 @@ while ( UI::UserInput() != `cancel) { - integer current_item_no = (integer) UI::QueryWidget(`id(`table), `CurrentItem); - integer amount = tointeger( (string) UI::QueryWidget(`table, `Cell( current_item_no, 1 ) ) ); + integer current_item_id = (integer) UI::QueryWidget(`id(`table), `CurrentItem); + integer amount = tointeger( (string) UI::QueryWidget(`table, `Cell( current_item_id, 1 ) ) ); + amount = amount+1; y2debug( "amount: %1", amount ); - UI::ChangeWidget(`id(`table), `Item( current_item_no, 1 ), sformat( "%1", amount+1 ) ); + UI::ChangeWidget(`id(`table), `Cell( current_item_id, 1 ), amount ); } UI::CloseDialog(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org