Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wiki - Framework Comparison
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00658792
Message ID:
00659066
Views:
23
>Hi,
>
>I was going through the comparison and I have noticed that it works with WestWind. Can I inquire more on this? Do u mean it works as a fat/rich-client? How does the form manipulate the data? Is the data records requested from the server in XML/cursor form? Any example I can check this out?
>
>Regards.

MM's business objects can be used within WebConnect, either via compiling them as COM objects or by "merging" a MM's project w/a WC project (so you can call the MM's objects directly, as opposed to adding a COM layer between them). There isn't any mechanism to directly convert a fat-client MM's app. to work with a WC backend. You would have to code something like this yourself. I have a MM's app that does something like this right now - the MM's app. feeds data to a WC server, which shares data with another MM's app.

MM's business objects can serve data up in VFP, ADO, HTML, and XML formats, so you can very easily pass this info back to a web client. For example, in your wwProcess subclass, you could have a method that might look like:
FUNCTION SendXMLSample()

* Create an instance of our Mere Mortals business object.
* In this example, I'm using a MM's bizobj via COM.

loBizObj = CreateObject("MyApp.MyBizObj")

* Set the output format to XML
* XML is actually the default format, but this 
* is just a sample.

loBizObj.iDataFormat = 3

* Requery the main alias, and retrieve the result in XML format

loBizObj.Requery()
lcXML = loBizObj.GetDataX()

* Send the result back to the web client

Response.Write(lcXML)

RETURN
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform