o4w:oi10:quick_start_guide:creating_o4w_wysiwyg_forms

Creating O4W WYSIWYG Forms

I. Creating a Product Entry Form from the PRODUCTS table

- From the O4W Main Menu choose O4W WYSIWYG.

o4w_089.jpg

* From the O4W WYSIWYG Menu choose Create/Modify. The O4W WYSIWYG IDE will display. The left panel of the IDE consists of the Menu choices and Widgets Toolbar. The center panel is the Design panel. The right panel is the Property Panel. The bottom of the IDE has additional navigation modes.

o4w_090.jpg

* From the Menu panel choose File, New to open the Quick Form Definition dialog.

o4w_091.jpg

* For the Form Type choose: Key and Search. Select the PRODUCTS table from the Table drop down list. Choose the dictionary items you want to include on this form. In the example below we have chosen the CATEGORY, CAT_DESC, ID, ORDER_DATE, PRICE and SALES_YTD fields. Click the OK button to continue.

o4w_092.jpg

* The QuickForm Details page has three tabs: Search Fields, Results Fields and Form Fields. Prior to selecting the Generate Form… button, make sure you have filled out the desired information on each tab. You cannot go back once the Generate Form button is selected.

o4w_093.jpg

* On the Search Fields tab select the dictionary fields you want to search on and provide the filed type. In this example we are choosing ID, DESCRIPTION, CATEGORY and CAT_DESC to search on..

o4w_093a.jpg

* On the Results Fields tab select the dictionary items for the items you want to return for your search results. In this example we will display the ID, DESCRIPTION, CATEGORY and CAT_DESC fields. You can change the order of the fields by dragging and dropping.

o4w_094.jpg

* On the Form Fields tab select the dictionary items you want to display on your form. Use drag and drop to order your fields. Choose your field type for editing on the form. Next you can place your fields in different tabs on the form. In this example the ID and DESCRIPTION will be on the General Tab and CATEGORY, CAT_DESC, PRICE, ORDER_DATE and SALES_YTD will be placed on the Next Tab. The tab names will be renamed later. You can choose to put labels next to fields, above fields, use inline prompts or omit automatic labels. When all three tabs have been completed, click the Generate Form… button.

o4w_095.jpg

* Your form will be generated and you can begin editing on Page 1 of your form. This form will have three pages: Search page, Results page and Data Entry page. You can now start editing Page 1 which is the Search page. You can navigate between pages from the bottom panel.

o4w_096.jpg

* You can click and drag fields anywhere on the form. In this example the Go.. button has been moved next to the ID Text Box. The Category Description label has been resized and the text for this label has been modified via the Property Panel on the right side.

o4w_097.jpg

* Clicking on a control will display the properties for that control in the property panel on the right hand side of the form. If you would like to expand the properties for this control, click on the blue folder at the top left of the property panel. In the example below we can now view the Textbox Properties for the CAT_DESC field. The property panel has several tabs of properties to navigate.

o4w_098.jpg

* While on Page 1, clicking on the Edit Page Properties link on the bottom panel will display the Enter Key or Search Properties page. On this page we can define how we want to search on the ID, DESCRIPTION,CATEGORY and CAT_DESC fields.

o4w_099.jpg

* Click on the Edit Form Properties link on the bottom panel will open the Overall Form Properties dialog. This form has three tabs: Appearance, Behavior and Data. Below is the Appearance Tab.

o4w_100.jpg

* Below is the Behavior Tab for the Overall Form Properties.

o4w_101.jpg

* Below is the Data Table for the Overall Form Properties.

o4w_102.jpg

* From the Bottom Panel choose Page 2 from the Go to page: link. This will display Page 2 of your form which is the Search Results page. The fields we selected to return our results are: ID, DESCRIPTION, CATEGORY, CAT_DESC.

o4w_103.jpg

* Expand the area to display our search results by dragging to the right and dragging down to allow more rows to display on the form.

o4w_104.jpg

* Click on the blue folder at the top left of the Property Panel to display the Table Properties for this control. Here you can modify your Column Header text as well as many other table properties.

o4w_105.jpg

* From the bottom panel select the Edit Page Properties link to display the Key List Properties.

o4w_106.jpg

* From the bottom panel select Page 3 from the Go to page: link. This will display Page 3 of your form which is the Data Entry page.

o4w_107.jpg

* Click on the CATEGORY field to display the Text Properties. Modify the text alignment.

o4w_108.jpg

* Click on the HEADER to display the Header Properties. Modify the header description. Please note that each page has its own Header Properties. If you modify the description on Page 1 you will need to modify it on the other pages.

o4w_109.jpg

* While on Page 3, from the bottom panel click on the Edit Page Properties link. This will display the Display record contents Properties dialog.

o4w_110.jpg

* From the Menu panel select File, Save to save your form.

o4w_111.jpg

* Enter the name of your for..

o4w_112.jpg

* Build your O4W WYSIWYG commuter module.

o4w_113.jpg

* The commuter module will be generated and created as a stored procedure within OpenInsight.

o4w_114.jpg

* Your O4W WYSIWYG commuter module can be edited via the OpenInsight system editor.

o4w_115.jpg

* Exit to Menu.

o4w_116.jpg

* To run your O4W WYSIWYG Form, choose O4W WYSIWYG from the O4W menu.

o4w_117.jpg

* From the O4W WYSIWYG menu choose Run.

o4w_118.jpg

* Select your form and choose to run in desktop or mobile mode.

o4w_119.jpg

* The Product Entry form running in desktop mode. This is the Search screen.

o4w_120.jpg

* This is the Results screen in desktop mode.

o4w_121.jpg

* This is the Data entry screen in desktop mode.

o4w_122.jpg

* This is the Search screen running in Mobile mode.

o4w_123.jpg

- From your O4W Menu choose DB Management.

o4w_123d.jpg

* From the DB Management Menu choose OI Maintenance.

o4w_123e.jpg

* From the OI Maintenance Menu choose Procedures.

o4w_123f.jpg

* Select the stored procedure created by the O4W Form.

o4w_123a.jpg

* You can now modify your code, compile it and save it.

o4w_123b.jpg

  • o4w/oi10/quick_start_guide/creating_o4w_wysiwyg_forms.txt
  • Last modified: 2023/10/25 10:50
  • by 127.0.0.1