Re: Newbie D2JC Context-Sensitive Dropdowns
Re: Newbie D2JC Context-Sensitive Dropdowns
- Subject: Re: Newbie D2JC Context-Sensitive Dropdowns
- From: David Avendasora <email@hidden>
- Date: Tue, 6 Dec 2005 06:23:29 +0000
Dave,
Based on the lack of responses from the list, I doubt there is a
ready-made way of doing this which seems odd as this seems to be
something that any decent-sized D2JC project would need.
I'm also going to submit it to a couple other WO lists and directly
to a couple of the more knowledgeable people on the wo-dev list. In
the end I believe I (we) will need to create this functionality from
scratch. I think it will mean writing fetch specifications on the
entity that will populate the drop-down and calling that instead. It
looks like if I do this the only way to make use of a custom FS in
D2JC is to freeze the interface and add my own interface elements.
Dave
On Dec 5, 2005, at 7:32 PM, David Howes wrote:
Dave,
I had hoped to see a reply to this question by now. I'm still way
behind you but I did finally find Assistant, I was looking in the
Xcode Tools menu instead of the app's. I'm trying to develop
enough of a prototype to get some interest from the company I used
to work for. It is a framework for describing C4ISR architectures,
(DOD), based upon a large ER model (300+ entities). I think your
question is very relevant to my need to have pick-lists for
attributes be able to be updated based upon other inputs and be
based on entity data in the DB. The idea is to develop a
semantically constrained vocabulary which describes the
architecture and builds a glossary and ER model for the arch.,
which are 2 of the products produced by the description. I am
currently trying to understand the options for populating the
EOOneValueEnumerationController, which is also what I think I
should be using.
Looking forward to an answer on your question
Regards,
Dave
On Dec 1, 2005, at 4:21 AM, David Avendasora wrote:
Hi all,
This is a newbie question. I am building a Direct to Java Client
app and I've got the data and object models and the basic screens
pretty well nailed down. I'm now starting to add some business
logic into the application.
I have no problem creating the custom classes, setting defaults or
adding additional actions but I'm drawing a blank when it comes to
making EOOneValueEnumerationControllers context sensitive.
I want to limit the number of options available for a given
attribute depending upon other attributes in the same object. For
example, once I specify that the unitOfMeasureType a given object
is "length" then I only want to see unitOfMeasure values that are
of type "Length" instead of seeing all of the types which include
weight, volume, etc.
Right now I am simply displaying ALL the possible unitOfMeasure
values in the database in the drop-down, only some of which are
valid for any given object.
I'm assuming that I will do it by calling a fetch specification,
but I can't find any examples of this in any of the WO books I
have, or Apple's examples. If they are there and I've just missed
them, please point me to them.
Thanks,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40usa.net
This email sent to email@hidden
_______________________________________________
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