The suggested jump is:
ProduceResponse := False;
DispatchPageName('Customers', WebContext.Response, []);
This gives a Intraweb error: Cannot find submit component.
This message disappear when on the target form exists an object with the
same name as the originating object on the first form.
The second form is then displayed, but actions on that form fall back to
the first form, which is reshown.
The browser navigator address field was not updated with the form name
and hoovering links show 'firstform#' .
I tried some alternatives (as suggested elsewhere in the groups):
One is to simply replace the respons from the currentpage with that of
the desired page.
- Web Context.Response.Content := NewPage.IWPageProducer.Content;
This gave the same problems as above.
The other was to use Sendredirect:
- WebApplication.Response.SendRedirect('Customers'); or
- WebContext.Response.SendRedirect('Customers');
With these two I fall back to the login screen.
It seems that I loose my user Session in this case.
If I look in the logs, I see the redirect to the second page, but in the
header the cookies are missing.
How can I add them?
PS: It makes no difference if I include ProduceResponse := False or not;
So, what is needed to make correct jumps inside Delphi from one
websnap/intraweb page to the other?
Regards, Gerard Vanderveken.
However I have a problem for jumping to pages which have not the
wpPublished setting in the WebPageInfo.
If I comment this setting out, an error 'Page not found' is shown.
How can I jump to unpublished pages?
Regards, Gerard.