- This topic has 9 replies, 5 voices, and was last updated 10 years, 8 months ago by living.horses.
-
AuthorPosts
-
rick.gommersMemberHi 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!
BrandonMemberMake sure you are setting the screen as a target design, otherwise it thinks its a secondary screen and wont generate the files
rick.gommersMemberThx a lot man!
rick.gommersMemberUpdate, 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.
support-octavioMemberHi 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.
living.horsesMemberHi, 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
rick.gommersMemberHi 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.
support-michaelKeymasterHi 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
living.horsesMemberMine 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
living.horsesMemberdisregard my last comment, now again not working.
edit: I am running the latest release version 🙂
-
AuthorPosts