> >> Anyone familiar with 4D database?
> > >
> >> Can MC access/read-write to a 4D database?
> >>
> >> Hinduism Today
> >> Sivakatirswami
> >> Editor's Assistant/Production Manager
>
>
> >Yes, in using appleevents on mac (sure) and sockets under win32 (not tested).
> >
> >Pierre Sahores
> >--
> >chef de projet cyberlibrairie
You can also access/read-write to 4D From MC on any platform using BlueWorld's lasso
with 4D module. On BlueWord web site
<http://www.blueworld.com/blueworld/default.html> you'll find all documentation
(Lasso 3.6.5 4D Module Guide.pdf)
In MC the syntax will be something like...
on mouseup
put "http://192.138.13.10/Action.lasso" into aPPP -- use your PPP address
post
"-dataSource=Auction&-table=bid&-keyField=bid+id&-Response=auction.lasso&-findall" to
url aPPP
if the result is not empty then
answer the result
else
put it
end if
end mouseup
You can add records, delete records, update (modify) records and find records by any
criteria using "-add" , "-delete", "-update" and "-find" commands instead of
"-findAll"
To test:
Download evaluation versions of both 4D server 6.5.6 and Lasso WDE 3.6.5.
In lasso examples folder find the "Auction" folder (it contains 4D example databases)
then use script above to test it.
Note: To get proper response in MC you'll need to create text file named
"auction.lasso", place it on the same directory as a "Lasso Web Server" on a mac or in
InetPub/wwwroot / on win and type in the following
----------
[Found_Count]
[records][Field:name,EncodeNone] any itemdel here [Field:amount,EncodeNone]
[/records]
----------
you will also need two computers, one for lasso + MC and one for 4D server to do this.
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.