Fill in company details

In order for a company to be able to post job ads, it must be identified with certain details (like the name and address). Since these fields are not stored in the general user table, it becomes mandatory to fill in these details after registering and logging in for the first time. To access the com_details page, there is a link on the company main page.

To create this page follow the next steps:

  1. Open the company/com_details page in Dreamweaver.
  2. Apply the Insert Record Form Wizard.
  3. In the first step, configure it to use your database connection and the company_com table. For the redirect setting, browse to the company/index page.
  4. In the second step, set the fields to be used in the transaction:
  5. Now you can click on the Finish button to add the form into the page. In Dreamweaver, remove the first row displaying the user ID, as it should not be visible.
  6. To make sure the company only visits this page once, right after registering, you can make it the page that registration redirects to. To do this, you will have to edit the Insert Transaction on the company/register page.
    1. Open the company/register page in the browser
    2. Double-click the Insert transaction in the Server Behaviors tab of the Application panel
    3. In the After inserting, go to text field, click the Browse button, and select the company/com_details page.
    4. Click on OK to close the dialog box, and save the page. Upload it to the server and close it.
  7. When a new company registers to the site, and finishes entering the main account data, a login form will be displayed, asking for the newly defined credentials. Once the company logs in correctly, the company details form is displayed, asking for the official name and address:

 
As improvement, you should build on your own a page that allows updating company details, and which can be accessed from the company's main page. To build it, use the Update Record Wizard, and select the company to update based on the session stored user ID (or an URL parameter  -your choice).
In the next section of the tutorial, you will build an essential page for the companies: the means to post the job offers.