|
From: Tux H. <tu...@ya...> - 2007-05-21 14:29:19
|
you mean I needn't know which unit the user choose?
But some times the relationship is hard to handle in the Adam file, for example, different apple has different weight, I can't get the apple number from the weight of apple. So I must send the request to my client code to handle such relationship...
----- Original Message ----
From: Sean Parent <sp...@ad...>
To: Tux Han <tu...@ya...>
Cc: SourceForge ASL Users <ado...@li...>
Sent: Monday, May 21, 2007 6:17:55 AM
Subject: Re: [Adobe-source-devel] question about unit.
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
____________________________________________________________________________________Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/ |