Page 1 of 1

Adding a screen to Appery Eclipse project

Posted: Thu Oct 03, 2013 7:47 pm
by Corinne

I Exported Appery project as Eclipse Project(1).

Say I add a basic popup screen without any other resources to the Appery project and export another Eclipse Project(2)

To get the added popup content from Eclipse Project(2) to Eclipse Project(1).

Could you tell me what I need to add/edit ?

Obviously I add the popup.js, popup.html,popup.css
Maybe over-write the appery.js ?

Or is there too many potential issues.

Thanks again!


Adding a screen to Appery Eclipse project

Posted: Thu Oct 03, 2013 8:23 pm
by Maryna Brodina

Hi, you don't need to rewrite, but on all pages in JS files all screens are listed. For example:
preAppery.AppPages = [{
"name": "FacebookLogin",
"location": "FacebookLogin.html"
}, {
"name": "profile",
"location": "profile.html"
}, {
"name": "startScreen",
"location": "startScreen.html"
}]; /pre

If you add the page you have to add for all pages in JS file corresponding object to array.


Adding a screen to Appery Eclipse project

Posted: Thu Oct 03, 2013 10:06 pm
by Corinne

Really?
So All I have to do is add my popup js, html, css
And push mypopup name, location to all other popup screens...
Is it really that easy??


Adding a screen to Appery Eclipse project

Posted: Fri Oct 04, 2013 7:17 am
by Kateryna Grynko

Hi Corinne,

I hope so. Let's try :)


Adding a screen to Appery Eclipse project

Posted: Fri Oct 04, 2013 6:11 pm
by Corinne

IT WORKED!!!
Thank you soooooo much.

I did exactly as Marina Said. Adding my popups name location pairs to the Array on all other existing pages...

Did lots of App stress testing and all is well
THIS IS AWESOME !!!