Like bulk delete, we have one use case to bulk update the set of JDO entity(of 
type OmSite).

>From the list of OmSite, some set of OmSite could be selected and click on 
>update button which should take to one page where in selected sites should be 
>seen and some new fields. These new fields are used to update the some 
>attributes of OmSite. So that I can update the attributes  of all selected 
>sites in a single shot.

So for this, what I have done is:

1.  Created a OmSiteGroup domain object(which is not mapped to any table) with 
attributes name, Set<OmSite>, some fields which are used to update the selected 
OmSite(s)

2.  In OmSite JDO entity, added a method update with @Bulk annotation and 
declared OmSiteGroup instance variable(not-persistent)

3.  OmSite.update method

(a)creates OmSiteGroup instance and add/update name attribute with selected 
OmSite(s) Id

(b)adds current OmSite in OmSiteGroup and returns the OmSiteGroup object so 
that this OmSiteGroup-page get rendered with list of selected sites and group 
name

So with this coding, I have got update button in OmSite List page and also in 
OmSite edit page.

And issues are:

1.  After selecting some OmSite(s) I click on Update button from list page. But 
it doesn't go to OmSiteGroup-page. Instead it refreshes the OmSite list page 
again

2.  I click on update button in OmSite edit page, OmSiteGroup-page is displayed 
with only name field but OmSite is not seen in the list.

Can anyone please suggest if bulk update is possible in ISIS?





BR
Ranganath Varma


The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

Reply via email to