Page 1 of 2

impossible to add new components after a simple change in the source files

Posted: Tue Sep 03, 2013 3:54 pm
by ciccio

when i add a new component by the editor i can see it on the editor page but i can not see it in the app preview nether on my desktop nor on my mobile.

if i add a button by the editor:

Image

i can't see it in the emulator

Image

i just changed something in the source files (i changed the header in code
<div data-role="header" data-position="fixed" data-theme="b" name="mobileheader"
id="destinatari_mobileheader" class=' destinatari_mobileheader '>
<div style="text-align: center;"> <img src="files&#47;views&#47;assets&#47;image&#47;logo&#46;png" alt="Real Time Doctors" height="39" width="200"&#47;> <&#47;div>/code

and it seems i can not add any component anymore


impossible to add new components after a simple change in the source files

Posted: Tue Sep 03, 2013 3:56 pm
by Maryna Brodina

Hello! After you edit Source code changes won't be applied to the visual view. If you want to undo changes you need to delete edited (blue colored) files first, then click "Undo all source changes". More information here.


impossible to add new components after a simple change in the source files

Posted: Tue Sep 03, 2013 4:23 pm
by ciccio

i understand that after editing Source code changes won't be applied to the visual view. but my problem is that after editing Source code if i try to use the appery platform to add some new appery components it seems that it doesn't work. it looks like if you edit source code you can not add any new component to your app with the visual editor anymore


impossible to add new components after a simple change in the source files

Posted: Tue Sep 03, 2013 4:43 pm
by Maryna Brodina

This is how it works now... First you need to edit app in editor then change Source code (because for now, once you start editing the source files, the changes will not be reflected in the visual view). To see changes you've made you should delete edited (blue colored file) and "Undo all source changes"


impossible to add new components after a simple change in the source files

Posted: Wed Sep 04, 2013 9:07 am
by susil kumar sahoo

Image

I am trying to call a function on image click.It won't work for the first time but,after reloading the page it works fine.please help me out to overcome the issue


impossible to add new components after a simple change in the source files

Posted: Wed Sep 04, 2013 1:00 pm
by Maryna Brodina

Hello! Please check if there any error in console when you run app for the first time.


impossible to add new components after a simple change in the source files

Posted: Fri Sep 06, 2013 4:28 am
by fender

Hi, I've update 3 files with "" and then removed " ", but the files are still blue and a CSS file is now blue even though I'm sure I did not update it. Where is the button to "Undo all source changes"? Still can't see my editor changes. Thanks


impossible to add new components after a simple change in the source files

Posted: Fri Sep 06, 2013 4:48 am
by Illya Stepanov

Hi - take a look at this part, it may help :: http://docs.appery.io/tutorials/sourc...


impossible to add new components after a simple change in the source files

Posted: Fri Sep 06, 2013 4:54 am
by fender

Thanks! Please fix refrences to this source-editing-tutoriall link http://docs.appery.io/tutorials/sourc...


impossible to add new components after a simple change in the source files

Posted: Fri Sep 06, 2013 6:53 pm
by jeffrey.stilwell

I had the same issue with editing the source (not knowing it would lock us out of the visual editing capabilities!) - I feel this is a fatal flaw with the platform that REALLY needs to be addressed. We have lost a ton of time on our project due to this issue :/