These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Get "next" entity of a type
PostPosted: Tue Mar 16, 2010 11:58 am 
Newbie

Joined: Tue Mar 16, 2010 11:35 am
Posts: 1
Howdy y'all,

I'm working on a WCF-application.
Now the UI-guys need the following:
There is an overview table showing a (paged) list of an entity. If you click on one of the entities another page will load where you are able to modify the properties of this entity.
So far no problem.
Usually you modify the properties, click on a save button and return to the overview table.
Also no problem.
Now they want a "save & previous" and a "save & next" button. This actually makes sense in certain scenarios...
Is there a non-violent way of getting the next or previous entity (e.g. the entity has a "Name" property and the entities are supposed to be sorted by name)?
To make matters worse: Because we use WCF(!) I have got a new session for every service method call.
The violent way would be to query all entities of a type, look for the one we got and return the next or previous one...yikes!
Any ideas?

Regards,
void*


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.