Jump to content

This topic is 7149 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am very new to using Lasso and am in the process of moving our site over from CDML. I hope someone can help with this query which I also hope is a basic one:

Two databases, one where each record is an Event; another where Client creates a New Record as a Booking for one of the Events in the first database.

Scenario: Client browses Events database, then has link to an "Add New Record" page in the Booking database, with two of the fields from the record they were looking at Events database having been entered into two of the fields in the Booking database.

I could possibly call a script in FileMaker (set Global Values to two other fields etc.?) but how do I do it with LDML? Global Values? A Session?? Tokens???

This is probably a very basic query but I am new this week to LDML and currently trying to wade through Omnipilot's manuals, if anyone could post the required code that would be great, if not point me in the right direction?

Presumably once I know how to copy the contents of fields between databases in LDML that is a little way towards creating a DB of registered users, but one step at a time!

Thanks for your help

Posted

Hi, pdbe! I don't have lasso but I think what you want is a general web thing and not specific to Lasso. On the browsed page, you are probably showing field values like

[Field:eventname] (or in CDML [FMP-field:eventname] as I am just guessing at the Lasso syntax)

Well, you just want to reuse that information in the next page, right? Well, you can submit that data as hidden inputs in your web form that creates the record and takes them to the new record page.

In CDML web form, it'd be something like...

<input type='hidden' name='eventname' value='[FMP-field:eventname]'>

<input type='submit' name='-new' value='Create Record Based on This Data'>

Or I suppose you could do it in a link using something like...

<a href='http://www.mysite.com?eventname=[FMP-field:eventname]&-new'>Add New Record</a>

You'd have to use Lasso syntax, though, and I'd stay away from scripts-over-the-web as much as possible. Try to do as much as you can in the web code and then just perform the basic actions in FileMaker. You'd also have to add a 2nd hidden input line or a 2nd url parameter for you 2nd field (or more), but I think that'll work for you unless I didn't understand correctly.

Hope this helps some!

--ST

This topic is 7149 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.