You are here

Steps to Create VBC

1. Create a new BC based on the Class CSSBCVExtern.
2. Do not associate any tables to this BC since VBC are not based on an underlying table but rather is based on a Business Service.
3. Create the fields associated with VBC.
4. The field names must exactly match the name of the columns of the table that this VBC will reference.
5. Do not specify column or type for the fields.
6. Under the Business Component / Business Component User Property, create a new entry:
  a. Name: Service Name
  b. Value: AAA Test Business Service
  c. The Value can be any name that will use to create your new Business Service.
  d. "Name" must be "Service "Name".
7. Create a new Business Service with the same name that you used in the Business Component User Property above.
8. Create the various methods for your Business Service.
Some examples are:
  a. Delete, Init, Insert, Preinsert, Query, Update
  b. The minimum that you should have is Init and Query.
  c. Sample codes are given below.
9. Now define the Business Service Method Arg that goes with each of the Methods.
10. Associate your new VBC to a Business Object.
11. Create a new applet based on your VBC.
12. The example here is a list applet.
13. Add the VBC columns to the list applet.
14. Create a new view based on your new applet that is based on your VBC.
15. Associate the new View to a screen.
16. Don't forget to add the view to Application / Views in the application.
17. Also, add the view to an appropriate responsibility.