That could be an idea...
But... in this way a displayGroup is very similar to a simple array..
What are the advantages?
By the way... a very simple request...
I want to bind a record attribute with a textfield.
I can do for a "read-only" page.
But is there a way to have a bidirectional bound?
I mean...this is the html
<wo:WORepetition list="$ipnDisplayGroup.displayedObjects" item="$luogo">
<p><wo:textfield value = "$luogo.nome"></wo:textfield></p>
</wo:WORepetition>
</wo:if>
If I edit the text in the textfield how can this modify the item in
the displayGroup (so that the only thing to do is to call
saveChanges() on the editing context..
On 06/dic/08, at 14:58, Johann Werner wrote:
Hi Francesco,
you mean to use those functions as deleteSelection() and so on? I
don't use these as I am using display groups for the sole purpose to
display batched lists. But I think you should put a link in each row
of a repetition with an action of displayGroup.selectObject(item)
and then you can refer to it by displayGroup.sekectedObject() later
on.
jw
Am 06.12.2008 um 14:42 schrieb Francesco Romano:
Thanks for the reply...
But.. how can the displaygroup manage the selection?
On 06/dic/08, at 13:27, Johann Werner wrote:
Am 06.12.2008 um 11:56 schrieb Francesco Romano:
Hi...
Looking in the API and in various sites I understand that
WODisplayGroup could be a very useful object for managing a table..
I understand how to create it using WOLips or programmatically (I
think the following rows are right..)
EODatabaseDataSource ds = new
EODatabaseDataSource(session().defaultEditingContext(),_table);
displayGroup.setDataSource(ds);
displayGroup.fetch();
But.. I don't understand how to display data managed by my
WODisplayGroup...
Somebody can explain how to do that?
The primary usage of display groups is in repetitions where you
would use displayGroup.displayedObjects()
This gives you an NSArray that reflects the sort orderings and
qualifiers of your display group. Additionally it returns only a
specific batch of objects if you set
displayGroup.setNumberOfObjectsPerBatch(int). Of course there is a
plethora of other features to discover ;-)
jw
Francesco
_______________________________________________
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/werner%40isd.uni-stuttgart.de
This email sent to [EMAIL PROTECTED]
_______________________________________________
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]