On 04/05/2008, at 7:23 PM, Yung-Luen Lan wrote:

Hi,

Here is my ERPPieChart.wod:

MyChart: ERPPieChart {
        items = hashes;
        nameKey = "Brand";
        valueKey = "Quality";
}

Although I've already supplied items, nameKey and valueKey, eclipse
still give me an error "Either items, nameKey and valueKey or dataset
must be bound."
(hashes return a HashMap)

Any idea? I use WO 5.4 on Leopard with Eclipse 3.3 and the latest
Project Wonder.

It's not a wolips problem, the API file for ERPPieChart is wrong.

It is :
<validation message="Either items, nameKey and valueKey or dataset must be bound">
    <or>
        <and>
             <unbound name="items"/>
             <unbound name="nameKey"/>
             <unbound name="valueKey"/>
         </and>
         <unbound name="dataset"/>
    </or
 </validation>

I think it should be something like:

<validation message="Either items, nameKey and valueKey or dataset must be bound">
    <or>
        <and>
              <or>
                  <unbound name="items"/>
                  <unbound name="nameKey"/>
                  <unbound name="valueKey"/>
              </or>
              <unbound name="dataset"/>
        </and>
        <and>
            <or>
                <bound name="items"/>
                <bound name="nameKey"/>
                <bound name="valueKey"/>
            </or>
            <bound name="dataset"/>
        </and>
    </or>
</validation>



Regards,
yllan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/qdolan%40gmail.com

This email sent to [EMAIL PROTECTED]



--
Seeya...Q

Quinton Dolan - [EMAIL PROTECTED]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to