Learning XPages Part 11 : Adding Some Forms And Data
Tags : Lotus Domino XPages Designer Forms Views
Bookmark :
Back in part one of this series I mentioned in the objectives that we would have two traditional forms in the application, a Location form and a Person form. I'm not going to get into any specifics on designing the forms as I'm going to assume that you have done traditional Notes Client development in the past and that you know how to create a form and a view. The download at the end of this blog entry will have the current version of the development database with the forms and a few documents in it however there are a few things I'd like to point out about the forms and views I'm about to create.
If you are developing an XPages application you still need forms and views but they can be simple with no need for styling or layout unless they are also going to be accessed from a notes client. In a pure XPages only application your form could just be a big long list of fields, although for your own sake you may want to create a table to put them into with a description of what field is so when you come back to an application in a year you'll know what your looking at.
The Location Document will contain the address and main phone and fax numbers for that location. It is as simple as that.
The person document will contain the persons name, their work details like their direct dial number, direct fax ( if they have one ) their internet email address, their managers name and so on, exactly like the 'work' section of the person document in the NAB. It will also contain their home address and details just like the nab also. My reason for doing this is due to another of my application objectives, the Domino agent to sync the contents with the names in the NAB. By chosing to use the same field names not it should make it easier as I get to that portion of the application.
I have also created a couple of views, one for the locations and one for the people and I have added in simple buttons to allow the notes client user to create new documents in both those categories and I have created a lookup view to populate the locations dropdown list in the person document.
Download the database and add some data while I start work on the next part of the series.
Bookmark :
Back in part one of this series I mentioned in the objectives that we would have two traditional forms in the application, a Location form and a Person form. I'm not going to get into any specifics on designing the forms as I'm going to assume that you have done traditional Notes Client development in the past and that you know how to create a form and a view. The download at the end of this blog entry will have the current version of the development database with the forms and a few documents in it however there are a few things I'd like to point out about the forms and views I'm about to create.
If you are developing an XPages application you still need forms and views but they can be simple with no need for styling or layout unless they are also going to be accessed from a notes client. In a pure XPages only application your form could just be a big long list of fields, although for your own sake you may want to create a table to put them into with a description of what field is so when you come back to an application in a year you'll know what your looking at.
The Location Document will contain the address and main phone and fax numbers for that location. It is as simple as that.
The person document will contain the persons name, their work details like their direct dial number, direct fax ( if they have one ) their internet email address, their managers name and so on, exactly like the 'work' section of the person document in the NAB. It will also contain their home address and details just like the nab also. My reason for doing this is due to another of my application objectives, the Domino agent to sync the contents with the names in the NAB. By chosing to use the same field names not it should make it easier as I get to that portion of the application.
I have also created a couple of views, one for the locations and one for the people and I have added in simple buttons to allow the notes client user to create new documents in both those categories and I have created a lookup view to populate the locations dropdown list in the person document.
Download the database and add some data while I start work on the next part of the series.
Download File xPhoneP11.zip
Comments
Posted by Ben Langhinrichs At 01:53:45 PM On 02/25/2009 | - Website - |