Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
datagrid/dataedit without datastore?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Willem Rein Oudshoorn  
View profile  
 More options Dec 30 2011, 5:40 am
From: Willem Rein Oudshoorn <wouds...@xs4all.nl>
Date: Fri, 30 Dec 2011 11:40:25 +0100
Local: Fri, Dec 30 2011 5:40 am
Subject: datagrid/dataedit without datastore?
I am playing around with weblocks.  
The standard datagrid/dataedit widget has most of the functionality I
want.  However I am struggling with the datasource side of things.

I would like to give the datagrid an explicit list of items, and the
datastore seems to be getting in my way.

So take the following example,  I have a class 'person and
want to display a list of persons in datagrid.  
I would like to show two (or more) lists of persons, lets say:

1 - Friends
2 - Enemies

Now as far as I can tell I can configure the datagrid
with

 :data-class 'person

However this will show all persons in a datagrid.  

Does anybody have an idea or pointers how to approach this?

I can think of one way to do this, but that seems cumbersome:

- For each instance of the datagrid make a specific datastore
- Carefully manage each datastore to have the right instances.

So is there a better/easier way?
Oh note, I am not (at the moment :-)) interested
in persistence.

Kind regards
Wim Oudshoorn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leslie P. Polzer  
View profile  
 More options Jan 1 2012, 10:30 am
From: "Leslie P. Polzer" <s...@viridian-project.de>
Date: Sun, 1 Jan 2012 16:30:31 +0100
Local: Sun, Jan 1 2012 10:30 am
Subject: Re: [weblocks] datagrid/dataedit without datastore?

Take a look at the on-query slot; just specialize a datagrid
to use your own function there (which in turn can derive
the objects to return from the data-class slot, or have
its own logic to decide between Friends and Enemies).

  Leslie

--

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Willem Rein Oudshoorn  
View profile  
 More options Jan 4 2012, 3:25 pm
From: Willem Rein Oudshoorn <wouds...@xs4all.nl>
Date: Wed, 04 Jan 2012 21:25:58 +0100
Local: Wed, Jan 4 2012 3:25 pm
Subject: Re: datagrid/dataedit without datastore?
"Leslie P. Polzer"

<s...@viridian-project.de> writes:

> Take a look at the on-query slot; just specialize a datagrid
> to use your own function there (which in turn can derive
> the objects to return from the data-class slot, or have
> its own logic to decide between Friends and Enemies).

>   Leslie

Thank you for the hint.  It took a few tries but I got it working.

Kind regards,
Wim Oudshoorn.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »