facebook

Generate application files : CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #346587 Reply

    rick.gommers
    Member

    Hi all,

    I have created a new screen, from which I want to view and edit the index.html

    Whatever I try, I cannot generate these files. There’s no www folder created inside that project folder.

    Two of my screens have a WWW folder, but for this specific screen it just doesn’t work.

    How can I export this single .mobi file to HTML ?

    Big thx in advance!

    #346589 Reply

    Brandon
    Member

    Make sure you are setting the screen as a target design, otherwise it thinks its a secondary screen and wont generate the files

    #346603 Reply

    rick.gommers
    Member

    Thx a lot man!

    #346620 Reply

    rick.gommers
    Member

    Update, as far as I can see this function is NOT working at this moment. There’s never a www folder generated for my other screens.

    #346637 Reply

    Hi marcoevich,

    Check if your generated files are in <.mobi path>/www/app-name

    Also, if your .mobi file is not set as a startup screen it won’t generate files on main design dir.

    #346968 Reply

    Hi, I just discovered the same problem.
    (and I think that may be why I have been having problems with my coding).
    Even if I set the file as Project Design, it does not create a www file in the same project file.
    Instead it is creating it under C:\Users\Monika\AppData\Local\Temp\mobione_temp_files\ as 01297c38112b423cbb2949cfa7046e05\and

    #346970 Reply

    rick.gommers
    Member

    Hi Living.horses,

    It seems that where are searching for something that doesn’t exist. According to this guide: https://www.genuitec.com/mobile/docs/workingWithGeneratedFiles/workingWithGeneratedFiles.html you can

    only modify the -custom.js for your startup screen file. The -custom.js file for secondary screens is not used and will be overwritten when you generate files from your startup screen.

    #346995 Reply

    support-michael
    Keymaster

    Hi Guys,

    I hope this additional info is helpful.

    Background
    In pre-2.5 the code generator created a www/ folder for both the primary startup design file – this is your PROJECT code base directory – and transient (temporary) folders for non-startup designs run in the simulator. These latter transient www folders are junk and should not have ever been visible to developers; they confused a lot of our users (uncool). Beginning with mobione 2.5 we wanted to fix this. Now only your startup design file will generate a www folder. When you run a non-startup file in the simulator, mobione now generates code to a tmp directory and deletes it when completed.

    The take-aways are:
    Your project should have 1 and only 1 design file marked as the startup file (see the design’s root properties for the startup property).
    – if you don’t set a startup file you will be warned by the code generator and the generated code will not be visible to you. If you have multiple startup files you will be warned.
    MobiOne will generate the project’s code to a subdirectory named after the startup file

    #347262 Reply

    Mine appears to be a bit of a hit miss.

    If I start a new project, and save as to a folder, even after setting it as my Target Design, my generated files, sometimes, are created in my Local drive :users:My_PC:AppData:Local:Temp:mobione-temp-files

    to over come this, I have been copying an existing project, and renaming it to use it.

    EDIT:

    I have just tried creating a new project, save as to new folder, set as target deisgn, generated files, and sub-folder www created in same folder.

    appears to work now

    #348605 Reply

    disregard my last comment, now again not working.

    edit: I am running the latest release version 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Generate application files : CLOSED

You must be logged in to post in the forum log in