Popup List for Relationship
Popup List for Relationship
- Subject: Popup List for Relationship
- From: Jeremy Matthews <email@hidden>
- Date: Thu, 28 Oct 2004 13:12:59 -0400
Thanks for the great feedback; I'm working on elimination of code redundancy...
I can't get the list of items (toOne relationship popup) to appear, no matter what I do. The popup itself appears...I know I'm missing something...all that is in there is "-none-" when the project is run in Direct Connect mode.
I have two entities: LRGEntry and Called. There is a toOne relationship ("called") that the LRGEntry has. In the "Called" Entity, the attribute is labeled "timesCalled" (no quotes), so the spelling is correct. The foreign key is in LRGEntry as well, and the relationship has been mapped correctly in EOM.
In the "adding" (WOBuilder) component, is bound thusly:
destinationDisplayKey: "timesCalled"
relationshipKey: "called"
sourceEntityName: "LRGEntry"
sourceObject: anEntry
uiStyle: "popup"
------------------------
In Application.Java :
public class Application extends WOApplication {
public static Object[] timesCalledArray = new Object[]{"0","1","2","3"};
------------------------
In the "Adding" Component:
public class EntryAdd extends WOComponent {
Object[] timesCalledArray = Application.timesCalledArray;
public LRGEntry anEntry;
-----------------------
Am I missing something? Why won't the list populate?
Thanks,
Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden