Versions Compared

Key

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

...

Now moving to create a form for showing the content of Person entity on the screen:(Using Form Widget)

*Step - 1 :* Now add one more menu item to by name "PersonForm" to your PracticeMenus.xml file.

Step - 2: Create one file in widget by name PracticeForms.xml and create a list form for showing the records from person entity.
(Take reference from ExampleScreens.xml and ExampleForms.xml files).

*Step - 3 :* Create new screen by name personForm and include this list form in it.

...

Now its the time to show practice application in the app bar :

*Step - 1 :* For this just make app-bar-display="true" in ofbiz-component.xml file.

...

Note: -Here remember to create an entry for the config directory in your ofbiz-component.xml file.

{color:#000000which which will be :

Code Block

<classpath type="dir" location="config"/>

That means you have to place the config directory on the classpath to access configuration files.

...

From this place if you want to run these services then you can run them by webtools--> Run Service . By this place you can test your services.

Note:* At this place you must read http://www.nabble.com/The-fancy-new-entity-auto-service-execution-engine-td18674040.html. This feature has been recently added against the traditional approach of writing CRUD operations for an entity.

...

After doing this entry when you will run the command ant run-install to load demo data then the data from this file will be loaded as demo data and once you start the server you can see this record added for person by going to Person Form in practice application or you can prefer to go to https://localhost:8443/webtools/control/entitymaintImage Removed and find each entity and check the records have gone in the database or not.

...