back to top

Conditional SmartParts Module

The Conditional SmartParts Module is a configurable module for Infor CRM that allows you to specify SmartParts to show or hide based on values of an entity property.

This module allows you to easily show or hide SmartParts based on values of the entity. For example, if you wanted to show certain SmartParts only for Account records with a Type value of “Customer” and other SmartParts only for Account records with a value of “Vendor”. This can be easily configured in this module’s config file and then it all magically works at runtime.

Using the Conditional SmartParts Module

To use this module, simply perform the following steps:

  1. Install the provided bundle FX.ConditionalSmartParts.Module.zip
  2. Open the SlxClient portal in Application Arhitect and select the SupportFiles tab
  3. Locate the FX.ConditionalSmartParts.json file and double-click to open it
  4. Add an entry for the entity, the property to check, and the SmartParts that should show for each value
  5. Deploy

The way this works is if a SmartPart is not listed for a value in the config file, the SmartPart will show for all records. If a SmartPart is listed for a value in the config file, it will only show for records with that value. You can use this for several different entities or even for moltiple different fields for the same entity.

Sample Configuration File

After installing the bundle, the configuration file will be located in the root of the SupportFiles folder of the SlxClient portal. The following is a sample configuration:

{
  "Active": true,
  "ConfigEntities": [
    {
      "Entity": "Account",
      "EntityProperty": "Address.City",
      "ConfigValues": [
        {
          "Value": "Chicago",
          "SmartParts": [
              "AccountContacts",
              "AccountDetails"
          ]
        },
        {
          "Value": "Phoenix",
          "SmartParts": [
              "AccountOpportunities"
          ]
        }
      ]
    }
  ]
}

The Active property allows you to turn on/off this module with one setting.

Note: The EntityProperty specifies a property for the current entity (specified in the Entity property). This can be a simple or complex property. For example, for the Account entity, this can be a simple property, such as “Type”, or a complex property, such as “Address.City”. This is a case-sensitive property name.

Download the Conditional SmartParts Module

Download

Note: Source is also available on Github, visit the repository here.

The following articles will assist you in getting started

License

The Conditional SmartParts Module is licensed under the MIT License. View the license details. No warranties are given or implied. Use as-is at your own risk.

Additional Add-ons for

Activity Customization Module

The FX.ActivityModuleJS is a javascript library module that provides simple, configurable customization to the activity and history dialogs & tabs in Infor CRM Web. The library allows for customizations to be easily configured with only minimal code.

Sublogix

Sublogix is a development tool that provides a single object model and repository for Infor CRM and allows you to work with objects instead of SQL queries. The purpose of Sublogix is to give you the ability to work with Infor CRM entity objects no matter what environment you’re in and allows you to more quickly create outside or stand alone applications that work with the Infor CRM data.

Mail Queue Job

The Customer FX Mail Queue Job is a job for Infor CRM that implements an e-mail queue and allows sending e-mails by simply adding records to a MailQueue table.

Custom Loader Module

The Custom Module Loader is a module for Infor CRM Web that will dynamically load custom Javascript and CSS Stylesheet files without the need to modify any of the master pages to add code to load them.

Subscribe to our Newsletter

Contact us to discuss your Creatio or Infor CRM SLX project so our team of experts can help make it a success