FORM -> how to interact with FileMaker ?

This is the place to discuss all things relating to using LiveCode For FM, the LiveCode interface for FileMaker.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
simple
Posts: 3
Joined: Mon Nov 21, 2016 7:25 am

FORM -> how to interact with FileMaker ?

Post by simple » Mon Nov 21, 2016 9:26 am

I am totally new to LC.

I was trying the Form. My question is : When in form , how do I interact with FileMaker data ? For example, saving form data in FileMaker or displaying FileMaker data in Form ?

It will be great if you can provide an example file . This will speed up my learning process

Thank you

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 944
Joined: Thu Apr 11, 2013 11:27 am

Re: FORM -> how to interact with FileMaker ?

Post by LCMark » Mon Nov 21, 2016 1:07 pm

@simple: To interact with a form from FileMaker, you need to use a script which uses the 'LC()' plugin function to set initial control values, run the form then fetch the control values afterwards. For example, to use the provided 'lcrating' form from FileMaker you can use the following script steps:

Code: Select all

	Set Variable [ $ignore ; Value: LC ( "lcRating.Set" ; 2 ; 5 ) ]
	Set Variable [ $ignore ; Value: LC ( "lcRating.Run" ) ]
	Set Variable [ $value ; Value: LC ( "lcRating.Get" ; 2 ) ]
The first line here sets the second control (which is a slider going from 1 to 10) value to 5.

The second line runs the form, showing it to the user and waiting for them to finish it.

The third line here fetches the value of the slide which the user chose.

Hope this helps!

simple
Posts: 3
Joined: Mon Nov 21, 2016 7:25 am

Re: FORM -> how to interact with FileMaker ?

Post by simple » Wed Nov 23, 2016 6:08 am

I got this to work . Thanks

ipadzz
Posts: 3
Joined: Thu Nov 12, 2015 9:35 am
Location: Island of Gran Canaria, Canary Islands
Contact:

Re: FORM -> how to interact with FileMaker ?

Post by ipadzz » Sun Dec 11, 2016 7:20 pm

I am using Livecode 7 Community Edition, Will Livecode for FM work fine? (I'm using FileMaker 14 for Mac)

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1558
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: FORM -> how to interact with FileMaker ?

Post by monte » Wed Dec 21, 2016 3:33 am

LiveCode for FM is a plugin that you install into FileMaker so that you can use the features of the LiveCode engine in FileMaker. There is no open source version of the FileMaker plugin. We are working on a version of the IDE that will provide extra support for building components for FileMaker that can be licensed with your LiveCode for FM seat license.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply

Return to “LiveCode for FM”