-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Apache OfBiz Cookbook
Services may be called directly from HTML forms by setting the HTML form's action element to point to the URL of a controller.xml request-map that resolves to either an OFBiz Event that calls a Service or directly to a Service. To demonstrate this, the following section uses the WebTool's Run Service HTML form to invoke a Service.
For the purposes of this recipe, we shall use an existing Service called testScv and invoke it from the WebTools UI. In this example, we will not be creating an HTML form nor creating a Service, but rather using an existing form and Service:
To view the results of the testScv Service's execution, open an OFBiz console window from the command line
Alternatively, to view the results of the execution, run the Unix tail command tail -f ofbiz.log on the ofbiz.log file ~runtime/ofbiz.log while performing this recipe
Services may be called directly from HTML forms by following these steps:
1. Navigate directly...
Change the font size
Change margin width
Change background colour