Create a '''VisitForm''' with a '''GroupBox''' (this just looks better). Inside the group box, add two fields: '''StartField''' and '''EndField''', both of them dates.

Create a '''VisitForm''' with a '''GroupBox''' (this just looks better). Inside the group box, add two fields: '''StartField''' and '''EndField''', both of them dates.

−

Finally, add a '''ParticipantTableField'''. Use '''Grid H''' 4. More if you typically have large meetings. :)

+

Finally, add a '''ParticipantsField''' of type '''TableField'''. Use '''Grid H''' 4. More if you typically have large meetings. :)

Add a '''NewVisitMenu''' and a '''EditVisitMenu''' to the '''VisitTablePage'''.

Add a '''NewVisitMenu''' and a '''EditVisitMenu''' to the '''VisitTablePage'''.

Line 61:

Line 61:

{{warning|Permission denied|If you added [[{{BASEPAGENAME}}/Permissions|Permissions]] to your Minicrm, you will need to '''grant yourself the permission''' to create, read and update visits before you can use the menu!}}

{{warning|Permission denied|If you added [[{{BASEPAGENAME}}/Permissions|Permissions]] to your Minicrm, you will need to '''grant yourself the permission''' to create, read and update visits before you can use the menu!}}

−

Note how '''we did not add a column''' to the '''ParticipantTableField'''. Before we do that, we need to write a '''PersonLookupCall'''. In the '''PersonLookupService''', use the following SQL statement:

+

Note how '''we did not add a column''' to the '''ParticipantsField'''. Before we do that, we need to write a '''PersonLookupCall'''. In the '''PersonLookupService''', use the following SQL statement:

<source lang="java">

<source lang="java">

Line 73:

Line 73:

"<all> </all> ";

"<all> </all> ";

</source>

</source>

+

+

Using this, we can create a '''ParticipantsColumn''' for the '''ParticipantsField'''.

Contents

What is this chapter about?

We will build a new table page for the Minicrm. It will list visits (or appointments, if you want). We will build a new form to edit visits. This form will contain a table field listing the people participating.

This chapter assumes that you're pretty proficient at creating tables, forms and services. No more hand-holding. :)