|
From: Sean P. <sp...@ad...> - 2007-05-20 22:18:00
|
The assumption is that it doesn't matter which the user chooses as
the logic in the property model (Adam) description will handle the
relationship and provide the output with the desired result. The
information that led to the result is reported in the contributing
information (usually used for scripting - but could also be used to
remember what it is the user requested).
Effectively, an edit_number is multiple controller/views when bound
to more than one cell.
Sean
On May 20, 2007, at 12:31 AM, Tux Han wrote:
> Now I want to display an edit_number on my dialog.
> For example the edit_number represents how many apples I should
> choose, the user has 2 options, he can choose the numbers of
> apples or the weight of apples( e.g. 3 apples or 1kg apple ), so I
> use a unit to represent this:
> edit_number( name: "Apples", min_value: 0,
> units:[
> { name: "num", bind: @apple_num,
> format: "#" },
> { name: "kg", bind: @apple_kg,
> format: "#.##" }
> ] );
>
> Then I want to know how I can know which unit the user choose? Or
> can the edit_number "bind" to another value to show the unit?
>
> Thanks
>
>
> Building a website is a piece of cake.
> Yahoo! Small Business gives you all the tools to get online.
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Adobe-source-devel mailing list
> Ado...@li...
> https://lists.sourceforge.net/lists/listinfo/adobe-source-devel
|