Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The above statement will fetch all the records from the Person entity and will put them in context by the name persons. Now this list by the name person will be iterated in the ftl file to show the records.

Wiki Markup
At this place an important reading is available at : \[ Which variables are available in screen context?\|http://docs.ofbiz.org/pages/viewpage.action?pageId=4459&focusedCommentId=5533#comment-5533 \]
\\

Step - 4 : Now in webapp "practice" create one ftl file by name "Person.ftl" which will be used to show the data fetched by groovy file.
Reference : http://freemarker.sourceforge.net/docs/
At this moment you need only to iterate the list of persons which is there in the context. The only code that is needed to that is:

...

Note If it is a service which is written in Java then it will be placed in "src" directory and if it is a service which is written in minilang then it will be placed in script directory. e.g. for java applications/party/src/org/ofbiz/party/party/PartyServices.java and for minilang applications/party/script/org/ofbiz/party/party/PartyInvitationServices.xml. Respective class path and file path will be mentioned in the service definition.

*Step - 2 :*In controller you have to create an entry for the request for the execution of a service and set the response like

...