Dynamic Information tutorial
This hands-on tutorial guides you through creating your first dynamic information fields in 3PL Dynamics. You'll start with simple examples and progress to more advanced scenarios.
Tutorial objectives
By the end of this tutorial, you'll be able to:
- Create basic field-based dynamic information fields
- Set up calculated information fields using function sets
- Configure FlowField-based information fields
- Apply formatting and styling
- Add information fields to page layouts
- Monitor and optimize performance
Prerequisites
- Access to 3PL Dynamics with appropriate permissions
- Basic understanding of Business Central navigation
- Familiarity with the data you want to extend
Tutorial 1: Create a simple field-based information field
In this tutorial, you create a dynamic information field that displays an existing field with custom formatting.
Scenario: Display Item Unit Cost with custom formatting
This scenario shows the unit cost of items with currency formatting and custom styling.
Step 1: Open Dynamic Information
- Press Alt+Q to open the search.
- Type "Dynamic Information" and press Enter.
- Select New to create a new information field.
Step 2: Basic configuration
- In Table No., enter
27(Item table). - In Code, enter
UNIT_COST_FORMATTED. - In Description, enter
Unit Cost (Formatted). - In Value Type, select
Decimal.
Step 3: Link to field
- In Field No., enter
22(Unit Cost field). - Notice that Is FlowField is automatically set to
false.
Step 4: Configure formatting
- In Decimals, enter
0:2(0 minimum, 2 maximum decimal places). - In Standard Format, select
No Thousand Separator.
Step 5: Save and test
- Select OK to save.
- Navigate to an Item List page.
- Check if your information field appears in the available fields.
Tutorial 2: Create a calculated information field
In this tutorial, you create an information field that calculates a value using a simple formula.
Scenario: Calculate item profit margin percentage
This scenario shows profit margin as a percentage based on unit cost and unit price.
Step 1: Create the information field
- Open Dynamic Information.
- Select New.
- In Table No., enter
27(Item table). - In Code, enter
PROFIT_MARGIN_PCT. - In Description, enter
Profit Margin %. - In Value Type, select
Decimal.
Step 2: Set up function set
- In Value Function Set ID, select the lookup (you'll need to create a function set).
- Create a simple calculation:
(Unit Price - Unit Cost) / Unit Price * 100. - Save the function set and note its ID.
- Enter the function set ID in the Value Function Set ID field.
Step 3: Configure display
- In Decimals, enter
0:1(show as percentage with 1 decimal). - In Standard Format, leave as default.
Step 4: Add performance monitoring
- In Track Performance Statistics, select
Yes (Session). - In Slow Calculation Threshold, enter
100(100 milliseconds).
Tutorial 3: Create a FlowField information field
In this tutorial, you create an information field that aggregates data from related tables.
Scenario: Show total quantity on sales orders
This scenario displays total quantity for all lines on a sales order.
Step 1: Create the information field
- In Table No., enter
36(Sales Header table). - In Code, enter
TOTAL_QUANTITY. - In Description, enter
Total Order Quantity. - In Value Type, select
Decimal.
Step 2: Configure FlowField
- In Field No., select a FlowField that sums quantities from Sales Lines.
- Is FlowField is automatically set to
true. - Set Calculate Field to
true.
Step 3: Set FlowFilter (optional)
You can filter which lines to include:
- In FlowFilter Values, enter
Type=Item(only include item lines).
Step 4: Configure caching
- In Buffer Recalculation Interval, enter
00:01:00(1 minute). - In Entry Recalculation Interval, enter
00:05:00(5 minutes).
Tutorial 4: Add conditional styling
In this tutorial, you enhance the profit margin information field with color coding.
Scenario: Color-code profit margins
This scenario shows profit margins in green (good), yellow (average), or red (poor).
Step 1: Edit existing information field
- Open your
PROFIT_MARGIN_PCTinformation field. - Go to the Style Function Set ID field.
Step 2: Create style function set
Create a function set that returns style names based on value:
IF Profit Margin >= 20 THEN 'Favorable'
ELSE IF Profit Margin >= 10 THEN 'Ambiguous'
ELSE 'Unfavorable'
Step 3: Apply the style
- Enter the style function set ID.
- Save the information field.
Tutorial 5: Set up layouts
In this tutorial, you control where your information fields appear on pages.
Step 1: Create an information layout
- Search for "Dynamic Information Layouts".
- Select New.
- In Table No., enter
27(Item table). - In Code, enter
ITEM_DASHBOARD. - In Description, enter
Item Dashboard Layout.
Step 2: Add layout lines
From the layout card, select Lines.
Add a new line for each information field:
- In Dynamic Information Code, enter
UNIT_COST_FORMATTED. - In Display Order, enter
10. - In Value Type, select
Decimal.
- In Dynamic Information Code, enter
Add another line:
- In Dynamic Information Code, enter
PROFIT_MARGIN_PCT. - In Display Order, enter
20. - In Value Type, select
Decimal.
- In Dynamic Information Code, enter
Step 3: Associate with page
- Search for "Dynamic Page Layouts".
- Find or create entry for Item table.
- Set Dynamic Info. Layout Code to
ITEM_DASHBOARD.
Tutorial 6: Test and validate
In this tutorial, you verify your attributes are working correctly.
Step 1: View on item list
- Navigate to the Item List page.
- Look for your dynamic information fields in the field list.
- Add them to your view if not already visible.
Step 2: Test calculations
- Select different items.
- Verify the profit margin calculations are correct.
- Check that styling is applied appropriately.
Step 3: Check performance
- Return to your Dynamic Information.
- Open the
PROFIT_MARGIN_PCTinformation field. - Check the performance fields:
- No. of Calculations
- Total Elapsed Calc. Time
- Max. Elapsed Calc. Time
Tutorial 7: Advanced scenario - warehouse KPIs
In this tutorial, you create a more complex example for warehouse management.
Scenario: Location utilization dashboard
This scenario shows utilization percentage and status for warehouse locations.
Step 1: Create utilization percentage
- In Table No., enter the Location table number.
- In Code, enter
UTILIZATION_PCT. - In Description, enter
Utilization %. - In Value Type, select
Decimal. - Create function set to calculate:
(Used Capacity / Total Capacity) * 100.
Step 2: Create status indicator
- In Code, enter
UTILIZATION_STATUS. - In Description, enter
Utilization Status. - In Value Type, select
Text. - Create function set that returns:
- "Optimal" for 70-85% utilization
- "Underutilized" for <70%
- "Overcrowded" for >85%
Step 3: Add visual indicators
- Create style function sets for both attributes.
- Use traffic light colors (green, yellow, red).
Step 4: Create comprehensive layout
- Create layout:
WAREHOUSE_KPI. - Add all warehouse-related information fields.
- Order them logically.
Common pitfalls and solutions
Issue: Information field not showing
Solutions:
- Check if information field is blocked
- Verify table number matches page
- Ensure layout is properly configured
- Check user permissions
Issue: Slow performance
Solutions:
- Enable performance tracking
- Increase caching intervals
- Simplify function set logic
- Add database indexes if needed
Issue: Incorrect calculations
Solutions:
- Test function sets independently
- Check FlowFilter syntax
- Verify field mappings
- Review data types
Issue: Styling not applied
Solutions:
- Verify style function set returns valid style names
- Check conditional logic
- Test with different data values
- Review style definitions
Next steps
You've learned the fundamentals of Dynamic Information. Here's how to continue your journey:
Immediate actions
- Practice: Create information fields for your own business scenarios
- Experiment: Try different value types and formatting options
- Monitor: Set up performance tracking for production use
Advanced topics
- Complex function sets: Learn advanced calculation techniques
- Multi-table information fields: Work with related table data
- Custom page integration: Add information fields to custom pages
- API integration: Use information fields in web services
Best practices
- Start simple: Begin with basic field-based information fields
- Plan performance: Consider caching and calculation complexity
- Document logic: Keep clear notes on business rules
- User training: Help your team understand new functionality