Page 1 of 1
Getting user's name and address
Posted: Tue Oct 11, 2022 3:27 pm
by CAsba
How would I get the user's name, address, etc., store the info, then put the lines of info into a document ?
Re: Getting user's name and address
Posted: Tue Oct 11, 2022 6:10 pm
by dunbarx
Hi.
You can always just ask them for it.
Once you have the information, you would probably create a series of cards, each one having the data displayed in fields set up the way you prefer. You will want to put the the whole suite of controls into a group, and set its "backGroundBehavor". In that way every time you create a new card, all the controls are copied there. The fields will contain only data local to the card they live on.
You can add a "Find" function to navigate to the card of interest.
If you have many thousands of cards then a better way is to create a single card, similarly formatted. But now you store the data for each individual in a custom property, or perhaps a hidden field, and have a "Find" function load the proper data into the card.
The user would not be able to distinguish between the two methods. But LC does not like thousands of cards; it does no harm but it slows down.
Craig
Re: Getting user's name and address
Posted: Tue Oct 11, 2022 6:38 pm
by dunbarx
Just read the part about putting information into a document.
What kind of document? A text file? A PDF? A page in your stack that you might print?
Craig
Re: Getting user's name and address
Posted: Sat Oct 15, 2022 11:36 am
by CAsba
Hi dunbarx,
The document would be a page to be printed.
Re: Getting user's name and address
Posted: Sun Oct 16, 2022 1:02 am
by dunbarx
OK.
So what about the silly comment, "just ask them"?
Anyway, if you do have an idea how to gather the data, and load that data into one of more fields arranged the way you want it, then you can set up all the usual parameters, page setup, print area, font control over the output, everything. Each of those has its own command or property.
Then simply use the "print" command. You should read its rather detailed entry in the dictionary, and do not miss all of the "related" topics.
Craig