Login / Register  search  syndication

          Jason Buss' Blog

Jason Buss on SalesLogix development & customization, SQL, and more.

SageCRM - Building Workslips Part 1

Over the next few weeks, I'll be posting a walk-through which will outline building a Workslips module for SageCRM. In this part, I'll cover creating a new table, and defining fields in that table.

We're going to start with creating new table structure to hold basic Workslip information.  First we have to define the Workslip table. In SageCRM, got to Administration->Advanced Customization->Tables and Databases and then click the "Create Table" button

 

This will open the for where we enter the table details:

 

We'll set the following properties:

  • Table Name:  Workslip
  • ID Field Name:  Workslip_WorkslipID (Primary key for table)
  • Top Level Entity: Yes
  • Company Id Field: Workslip_CompanyID (Foreign key to Company table)
  • Table Caption: Workslip
  • Column Prefix: Workslip (All fields defined in this table will be prefixed by "Workslip_")
  • Person Id Field: Workslip_PersonID (Foreign key to Person table)
  • User Id Field: Workslip_UserID (Foreign Key to User table)
  • Solo Options: Filter by Company/Person

Click the "Save" button to create the new table.

Now that the table has been created, we have to define the fields in the table.  Under Administration->Customization, we should now see the new Workslip Entity under the Primary Entities.  Click "Workslips" and make sure you are on the "Fields" tab.  Click the "new" button to add fields.

In SageCRM,  the individual field definitions contain format settings that define which control is used, and how the control will ultimately be rendered in the client.  We're just going to add a couple fields for now.

The first field we will add is a memo-style, description field:

 

The field type of "Multiline Text" will display a multi-line memo field.  Set the width and height to define the size of the control once it is added to a form.

Next, we will add a Workslip Number field:

 

This is just a standard text field, with Max Length and Width fields defined as well.

Additional fields can be added as required.  Definitions of other field types can be found here.  System fields, such as the foreign keys for Company, Person and user numbers have been already created for you.  I'll be adding some additional fields, and in the next post for this walkthrough, we'll start getting into creating Lists and Screens.

 

Thanks for reading!  Smile

What's This?
Bookmark and Share

About Jason Buss

   Jason is a senior application developer with Customer FX.


Related Content
   Using SQL User defined functions and Cross Apply to parse SQL data
Recently, I worked on an import where I spent a considerable amount of time working out how to effectivel
Posted on Mar 08, 2010 by Jason Buss to Jason Buss' Blog
 
   Using the Reporting API enhancement in SLX 7.5.2 web
Sage has added an API enhancement to facilitate running Crystal reports in the SalesLogix web client. To
Posted on Feb 17, 2010 by Jason Buss to Jason Buss' Blog
 
   SageCRM v7 has entered Beta
Sage is getting ready to release the latest version of SageCRM and we will keep you posted as more i
Posted on Feb 11, 2010 by Scott Weber to SageCRM Product Blog
 
   Using SQL triggers to enforce data rules in SalesLogix.
In a recent project, I used triggers to enforce some data rules in the Ticket area of SalesLogix. We did
Posted on Feb 05, 2010 by Jason Buss to Jason Buss' Blog
 
   Message box dialogs in the SalesLogix web client
In the web client, there's not an easy way to present the user with a multiple choice dialog. One q
Posted on Jan 14, 2010 by Jason Buss to Jason Buss' Blog
 
Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2010 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register