Re: How do I switch the parent page after submitting AMD
Re: How do I switch the parent page after submitting AMD
- Subject: Re: How do I switch the parent page after submitting AMD
- From: David LeBer <email@hidden>
- Date: Thu, 12 Apr 2012 15:41:47 -0400
I think you need to set: isJavascriptRedirectEnabled to true on the ERXRedirect.
D
--
David LeBer
Codeferous Software
On 2012-04-12, at 3:16 PM, James Cicenia wrote:
> Hmmm, i am getting no submission still.
>
> I launch a standard AMD from AMDO.
> The following is my AjaxSubmitButton bindings:
>
> SubmitBtn: AjaxSubmitButton {
> action = saveAndSubmitChanges;
> value = "Save";
> name = "SaveAndSubmit";
> onClick = "Element.show('busy1')";
> id = "wiz-submit";
> onComplete = "function(x){Element.hide('busy1')}";
> }
>
>
> And this is the basic action method:
>
> CharterEdit nextPage = (CharterEdit) pageWithName("CharterEdit");
> EOEditingContext peerEC = ERXEC.newEditingContext();
> nextPage.setEditingContext(peerEC);
> nextPage.setItem( theNewProjectItem);
>
> ERXRedirect redirect = (ERXRedirect)pageWithName(ERXRedirect.class.getName());
> redirect.setComponent(nextPage);
> return redirect ;
>
> Anything obvious?
> Thanks
>
> James
>
> On Apr 12, 2012, at 1:06 PM, Johann Werner wrote:
>
>> ERXRedirect
>
> _______________________________________________
> 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