>
> From: Gregory Lypny <[EMAIL PROTECTED]>
> Subject: MetaCard Posting to a Web Form
>
> Hi Everyone,
>
>
>      I serve some FileMaker databases (you can see them at
> http://rubbersoul.concordia.ca/pareto); but, while FileMaker is handy for
> simple database tasks on the web, like creating, finding, and viewing
> records, it's scripting capabilities are limited, and it makes more sense
> to use MetaCard as a "client-side" helper that would get updates from and
> post new information to the server (FileMaker).  MetaCard would do all of
> the important data handling offline very effectively.  Any suggestions
> would be appreciated.
>
>      Regards,
>           Greg

This will work on your database, just activate/deactivate the script lines:

on mouseUp
   put "http://rubbersoul.concordia.ca/pareto/FMPro" into theURL
  -- post "-db=Pareto&-lay=Main&-Format=home.html&-findany" to theURL
-- or
  -- post "-db=Pareto&-lay=Main&-Format=search.html&-view" to theURL
-- or
  --  post "-db=Pareto&-lay=Main&-Format=search_results.html&-FindAll" to theURL
-- or
  --  post
"-db=pareto&-format=search%5fdetail.html&-lay=main&-sortfield=Date%20Modified&-sortorder=descend&-sortfield=Time%20Modified&-sortorder=descend&-sortfield=Title&-op=eq&Keywords%20find=News&-recid=32852&-find"
to theURL
-- or
  post
"-db=pareto&-format=search_results.html&-lay=main&-sortfield=Date%20Modified&-sortorder=descend&-sortfield=Time%20Modified&-sortorder=descend&-sortfield=Title&-op=eq&Keywords%20find=News&-find"
to theURL

  if the result is not empty then put the result else  put urldecode (it) into
posttext
  if posttext contains "HTML" then
    set the htmltext of last fld to posttext
  else
    put posttext into last fld
  end if
end mouseup

you can  update, delete, search - do any data manipulation in FMP from MC
  -- You can also use put command or load command or socket from MC to do the
same things

 Best regards
Tariel Gogoberidze



Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to