Editing of JavaScript files - Forum - Mobile - Progress Community

Editing of JavaScript files

 Forum

Editing of JavaScript files

  • Looks like JavaScript files that in Tiggzi appear under the "JavaScript" node in the project explorer are kept within the Progress Developer Studio project folder src/files/views/assets/js under the mobile app. Is it o.k. to edit those files in PDSOE? Should I close the Tiggzi Mobile AppBuilder while doing so? Any recommendation?
  • Sorry I missed your email. I am out of the office until Tuesday 9th April with little access to email.

    Thanks, Andrew

  • Syncing Tiggzi source is only one way from Tiggzi to PDSOE project, other way round is not supported. It means if you edit any of the synced Tigzzi sources in PDSOE, it doesn't sync to Tiggzi cloud project. Moreover these local modified files get overridden when you sync sources locally next time.

    Hope this answer your query.

    Thanks

    Yogesh Devatraj

  • Hope this answer your query.

     

    Technically yes!

    However, as Eclipse offers way more usability while editing and navigating source code, it would be a very nice feature to allow editing JavaScript code within Eclipse. I'm expecting that in a complex Mobile application there's going to be quite some JavaScript code involved.

    Is that already considered an enhancement for a future release?

    Other users with a similar POV?

  • The advantage of the having the files in the Mobile App Builder is that you can access them from anywhere.

    Depending on your requirements, you could have the JavaScript files defined as external resources. (In the Mobile App Builder: Project->App settings->External resources)


    You could have these files in an Eclipse project and use Eclipse to edit them.

    I hope this helps.

  • The advantage of the having the files in the Mobile App Builder is that you can access them from anywhere.

     

    But that's also the only advantage I see. One should not sacrifice usability = developer productivity for being accessible from everywhere.

    Eclipse offers collapsible blocks, editor macros, block selection, SCM integration (diff against previous version), ...

    And having them accessible from everywhere can also be ensured using a proper SCM solution. Together with Thomas Hansen's yet unanswered question about multi-developer setups this questions the suitability of the Mobile AppBuilder for larger projects.

    Depending on your requirements, you could have the JavaScript files defined as external resources.

    ... which would require an extra step to deploy them to a web server for every test run

    Another question: When referencing external libraries, will they also be built into the mobile app package or would they always be loaded from the remote location? In the latter case that might also cause a performance degradation.

    As you can pull them from Tiggzi to PDSOE, I believe that a push option for selected resource files from PDSOE to Tiggzi would solve a lot of usability issues.

  • Depending on your requirements, you could have the JavaScript files defined as external resources.

    ... which would require an extra step to deploy them to a web server for every test run

    You could add your directory in Eclipse as a virtual directory in your web server,

    Another question: When referencing external libraries, will they also be built into the mobile app package or would they always be loaded from the remote location? In the latter case that might also cause a performance degradation.

    As you can pull them from Tiggzi to PDSOE, I believe that a push option for selected resource files from PDSOE to Tiggzi would solve a lot of usability issues.


    The external resources are not in the Mobile App Builder. When you build a .ipa file or a .apk file they would not be included.

    Yes, I see that having a push option for selected resource files would be useful.

  • +++++1 Mike!

    Regards / Med Venlig Hilsen 

    Thomas Hansen

    Director

    Regards / Med Venlig Hilsen 

    Thomas Hansen
    Director
    ___________________________________
    appSolutions a|s

  • yup, it would be great if i can edit my js in the eclipse and sync it to Tiggzi

  • Any chance to get feedback from product management?

    It cannot be a big thing to implement. But would increase developer productivity a lot!

  • yes. It will help a lot to easily customize the in-built things too.

  • This gets my vote too. Soo many lacks in Tiggzi, the worst of which is losing your edit without warning if you forget to save. Code completion would be nice too
  • +++++1 Mike!

    Same opinion as Mike and Thomas.

    Best regards

       Robert