You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by prasad6779 <pr...@gmail.com> on 2011/07/08 09:01:56 UTC

dynamic loading window

hi guys

my problem was i created the login page with two fields username and
password and a button to submit.

my question is when i submit the button i want to load the window with
another window......

thanks
prasad6779

--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/dynamic-loading-window-tp3150979p3150979.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: dynamic loading window

Posted by Edvin Syse <ed...@sysedata.no>.
Den 08.07.2011 11:50, skrev prasad6779:
> thanks its working fine with login
>
> can u tell me how to load data from data base and display in the form during
> loading?
Loading data from a database is not Pivot-spesific in any way, but once 
you have a hold of your domain object you can call 
form.load(yourDomainObject) to have the form auto-populate with your 
values, provided you have set the correct textKey and equivalent 
properties for each gui element.

Instead of actually accessing your database directly from your Pivot 
app, you might want to consider using a remoting solution, where the 
actual db access is done on a remote server. I've made one called BRAP, 
see http://brap.tornado.no - that works really great with Pivot :)

-- Edvin

Re: dynamic loading window

Posted by prasad6779 <pr...@gmail.com>.
thanks its working fine with login

can u tell me how to load data from data base and display in the form during
loading?

Thanks
prasad6779

--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/dynamic-loading-window-tp3150979p3151368.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: dynamic loading window

Posted by Edvin Syse <ed...@sysedata.no>.
Den 08.07.2011 09:01, skrev prasad6779:
> hi guys
>
> my problem was i created the login page with two fields username and
> password and a button to submit.
>
> my question is when i submit the button i want to load the window with
> another window......
You say you have a login "page", but page is not a Pivot construct. Is 
it a Frame or a Window maybe?

In any case, you should be able to open a new Window and then call 
close() on your existing one.

NewWindow newWindow = new NewWindow();
newWindow.open(getDisplay());
close();

-- Edvin

RE: dynamic loading window

Posted by Jérôme Serré <je...@gmail.com>.
Hello,

If you do like this : http://46.237.215.228:8000/cave
You can use :
	String script = "loadPage(\"" + page + "\");";
	BrowserApplicationContext.eval(script, Application appli);

With script "xxxx.js" 
function loadPage(page) { window.location.replace(page); }

Jérôme

-----Message d'origine-----
De : prasad6779 [mailto:prasad6779@gmail.com] 
Envoyé : vendredi 8 juillet 2011 09:02
À : user@pivot.apache.org
Objet : dynamic loading window

hi guys

my problem was i created the login page with two fields username and
password and a button to submit.

my question is when i submit the button i want to load the window with
another window......

thanks
prasad6779

--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/dynamic-loading-window-tp3150
979p3150979.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.