Page 1 of 1

Advice on folder/file system, best way to implement

Posted: Sun Nov 29, 2015 2:37 pm
by MarcoPolo
Hi all,

I am trying to develop an app for the construction industry.

What I need to do is:
on my 1st card I have a text entry field (newJobName) on button add it puts the text/jobname into a text field/list (newJobList) on the same card. so when the user selects the item in the list - I want to create a folder with the newJobName as the folder name >> the user upon selecting the newJobName from the list they are taken to the second card: this is very similar to the 1st card.

on my 2nd card I have a text entry field (newSurveyName) on button add it the text/surveyname into a text field/list (newJobList) on the same card. so when the user selects the item in the list - I want to create a file with the newSurveyName as the file name.

folders will be created in (documents) so the user can view/export file or folder via email/cloud in a spreadsheet format. they will also be able to see the results in a result card at the end of the app

Any help will be appreciated

thanks in advance

MarcoPolo

Re: Advice on folder/file system, best way to implement

Posted: Sun Nov 29, 2015 5:01 pm
by dunbarx
Hi.

Do you want to create folders, or files? In any case, read up on the "create folder" and "open file" commands in the dictionary, and then experiment. Write back if you have problems.

Craig Newman

Re: Advice on folder/file system, best way to implement

Posted: Sun Nov 29, 2015 7:05 pm
by quailcreek
Hi MarcoPolo,
What platform are you writing your app for, iSO, MAC, Windows?
Follow Craig's advice and also look at specialFolderPath in the dictionary.

Re: Advice on folder/file system, best way to implement

Posted: Mon Nov 30, 2015 11:00 am
by AndyP
Hi MarcoPolo,

I've just added a stack to the LiveCode Sample Stacks / Community Share system which has all the info/code you need to do what you want.

Open LiveCode and hit the Sample Stacks button in the toolbar and look for Project Make

This is a stripped down version of a utility I use when creating any new project.
It creates project folders and sub folders.
Creates a blank project stack and saves it.
Creates a notes.txt file, adds project info and saves it.

http://livecodeshare.runrev.com/stack/796/Project-Make