Advice on folder/file system, best way to implement

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
MarcoPolo
Posts: 12
Joined: Thu Feb 12, 2015 11:34 am

Advice on folder/file system, best way to implement

Post by MarcoPolo » Sun Nov 29, 2015 2:37 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Sun Nov 29, 2015 5:01 pm

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

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

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

Post by quailcreek » Sun Nov 29, 2015 7:05 pm

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.
Tom
MacBook Pro OS Mojave 10.14

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

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

Post by AndyP » Mon Nov 30, 2015 11:00 am

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
Andy .... LC CLASSIC ROCKS!

Post Reply