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
Advice on folder/file system, best way to implement
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Advice on folder/file system, best way to implement
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
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
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
Re: Advice on folder/file system, best way to implement
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.
What platform are you writing your app for, iSO, MAC, Windows?
Follow Craig's advice and also look at specialFolderPath in the dictionary.
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: Advice on folder/file system, best way to implement
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
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
Andy .... LC CLASSIC ROCKS!