• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Showing new items without saving?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing new items without saving?


  • Subject: Re: Showing new items without saving?
  • From: Ramsey Gurley <email@hidden>
  • Date: Tue, 23 Dec 2014 13:37:24 -0700

It seems your problem here is probably the database data source. It sounds more like a job for an EditRelationship template, not a Query and List combo you are using. EditRelationship components are designed to create items and changes that only exist in memory until a final save by using an EODetailDataSource.

In my head you have something like

Order ->> OrderItem -> Product

For which you’d use something like

EditOrder
-EditRelationshipOrderItem
--EditRelationshipProduct

The trick is you want that all in one page. ERModern does this really nicely with inline edit relationship pages. R2 can do those too, but without ajax, the update mechanism is not as slick.


On Dec 23, 2014, at 10:05 AM, James Cicenia <email@hidden> wrote:

>
> I have a situation where I am creating order items and inserting them into the context.
>
> However, when I refresh the page nothing shows up. If I put a save to the context after creating the records I see them.
>
> I am using a ERXListPage with a EODatabaseDataSource
>     public ERXDisplayGroup<?> displayGroup(){
>     	if(displayGroup == null){
> 	    	displayGroup = new ERXDisplayGroup();
> 	    	EODatabaseDataSource ds = new EODatabaseDataSource(ec(),OrderItem.ENTITY_NAME);
> 	    	ds.setAuxiliaryQualifier(OrderItem.ORDER.eq(editOrder));
> 	    	displayGroup.setDataSource(ds);
>     	}
>     	return displayGroup;
>     }
>
> If I create a orderItem in the same context shouldn’t it just appear?
>
> Thanks
> James
>
>
> _______________________________________________
> 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


 _______________________________________________
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


  • Follow-Ups:
    • Re: Showing new items without saving?
      • From: James Cicenia <email@hidden>
References: 
 >Showing new items without saving? (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: More newbie questions: customizing D2W's templates
  • Next by Date: Re: More newbie questions: customizing D2W's templates
  • Previous by thread: Showing new items without saving?
  • Next by thread: Re: Showing new items without saving?
  • Index(es):
    • Date
    • Thread