Newbie needs help with Pet Store example - WOImage binding
Newbie needs help with Pet Store example - WOImage binding
- Subject: Newbie needs help with Pet Store example - WOImage binding
- From: Helen Deasy <email@hidden>
- Date: Thu, 24 Apr 2003 22:32:58 -0400
All,
I'm trying to learn how to add a dynamic image to a WORepetition and
the WO Pet Store has a good example of what I'm looking for. Problem
I'm having is I can't figure out the binding for the WOImage - which is:
Image1: WOImage {
filename = currentProduct.imageName;
framework = "app";
key = currentProduct.imageName;
mimeType = "image/gif";
}
From the little I understand, WOrepetition is bound to a list of
products, and each item is the currentProduct. I also think I
understand that I got that array of products from an
EOFetchSpecification based on the PRODUCT table (with the qualifier
from the Search criteria).
The PRODUCT table in WOPetStoreX is:
PRODUCTID
NAME
DESCN
The WORepetition has three WOStrings and one WOImage.
I understand the bindings for productid and name:
String1: WOString {
value = currentProduct.productid;
}
String2: WOString {
value = currentProduct.name;
}
What I don't get (finally getting to the point) is the binding for the
WOImage (and the last WOString):
Image1: WOImage {
filename = currentProduct.imageName;
framework = "app";
key = currentProduct.imageName;
mimeType = "image/gif";
}
String3: WOString {
value = currentProduct.description;
escapeHTML = false;
}
What i can't figure out is how PRODUCT.DESCN becomes imageName and
description. One row of PRODUCT.DESCN might be "<image
src="../images/dog5.gif">Great hunting dog". I thought that the tag
might have been parsed out somewhere, but I couldn't find that. Where
am I not looking/understanding...?
Help will be greatly appreciated!
Thanks in advance,
Brendan Deasy
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.