SlideShare a Scribd company logo
1 of 31
Dynamics AX Lookups
Muhammad Anas Khan
Muhammad Anas Khan
Overview
• A lookup is a small form we use to
select a value for a control
• A lookup can list the values in a grid or
a form
• Often shows several fields that help us
find and select the correct record
• For example, lookup for customer
account number will also show
customer name
• We can bind a lookup form to a field in
the form datasource or a control in the
form design
Muhammad Anas Khan3
Controls
• Following are the controls which can be bound to a
lookup form:
– DateEdit
– GuidEdit
– Int64Edit
– IntEdit
– RealEdit
– ReferenceGroup
– StringEdit
– TimeEdit
Muhammad Anas Khan4
Types of Lookup Forms
• Standard Lookup Forms
• EDT Lookup Forms
• Runtime Lookup Forms
• Enum Lookup (Not exactly a lookup form)
Standard Lookup Forms
Example, Insight, Lab Activity, Demo
Muhammad Anas Khan6
Example
Muhammad Anas Khan
Insight
• A standard lookup form is a system generated form
• To add a standard lookup form:
– you bind a control to a field
– from the main table of the form data source
– that references the ID of a record in related table
• It uses a grid to list the records
• Field displayed in the control is dictated by the AutoIdentification field
group of the related table
Muhammad Anas Khan
Insight
• Fields appearing in the lookup form are specified by a field group or
another set of fields from the related table
– Lookup bound to surrogate/natural foreign key
• shows fields in the AutoLookup field group by default
• shows fields used in TitleField1, TitleField2 properties of the table if AutoLookup is empty
• shows the first natural key of the table if AutoLookup, TitleField1, TitleField2 all are empty
• Use it whenever possible because:
– Consistent experience across forms
– Easier to maintain as lookup forms get synced with field groups changes
Muhammad Anas Khan
Lab Activity
• In AOT, navigate to
– Forms>>Form>>Data Sources>>Table>>Fields
• Open Fields node in a new window
• In the AOT that shows the form, navigate to
– Designs>>Design
• Drag the field1 from the Fields list to the Design node of the form
• As a consequence, a control will be added to the Design node
• Check the properties of the newly added control
• Following above steps you will successfully build a standard lookup
form
Muhammad Anas Khan
Lab Activity
ReferenceGroup control
• Name
• DataSource
– Should be the intended table from
the form data source
• Label
• ReferenceField
– Should be the intended surrogate
foreign key field from the
DataSource table you want to bind
the control to
Other controls
• Name
• DataField
– Should be the intended foreign key
field in the DataSource table
• DataSource
– Should be the intended table from
the form data source
• Label
• LookupButton
– Should be set to Auto
After finishing lab activity, make sure the following fields have been set correctly
Muhammad Anas Khan
DEMO
Standard Lookup Form
EDT Lookup Forms
Example, Insight, Lab Activity, Demo
Muhammad Anas Khan13
Example
Muhammad Anas Khan
Insight
• EDT can be used to bind a lookup form, from the AOT, to
– A field in a form data source table
– A control in a form design. The control can be unbound
• Style property, of the AOT form to be used as a lookup form,
should be set to Lookup1
• Code must be added to the form that updates the value of the
control when you select a record. For example, onClose
method may be returning a record
• Use whenever the lookup form layout is complex
Muhammad Anas Khan
Lab Activity
• To add an EDT lookup form:
– To a field, set the ExtendedDataType property of that field to the name of
the EDT
– To a control, set the ExtendedDataType property of that control to the
name of the EDT
– Finally, set the FormHelp property of the EDT to the name of the AOT
form you want to use as a lookup
Muhammad Anas Khan
DEMO
EDT Lookup Form
Runtime Lookup Forms
Example, Insight, API, Demo
Muhammad Anas Khan18
Example
Muhammad Anas Khan
Insight
• It is a custom form you create with X++ code
• It can be added to a field in the form data source or a control in the
form design
• To add a runtime lookup form to a field, override lookup or
lookupReference method
• To add a runtime lookup form to a control, override lookup or
lookupReference method
• Difficult to maintain because changes to the lookup require updates to
the X++ code. Therefore use only when you need it
• Runtime lookup has higher precedence over standard and EDT lookups
Muhammad Anas Khan
lookup() method
Muhammad Anas Khan
lookupReference() method
Muhammad Anas Khan
DEMO
Runtime Lookup Form
Enum Lookup
Example, Insight, API, Demo
Muhammad Anas Khan24
Example
Muhammad Anas Khan
Insight
• Not exactly a lookup form
• Useful to know how to filter values in an enum lookup
• Possible in case of unbound controls
Muhammad Anas Khan
API
Muhammad Anas Khan
DEMO
Enum Lookup
When to use what?
Muhammad Anas Khan
• Consistent experience across different forms
• Easier to maintain as they get auto synced with
changes in field groups
• Best to show fields from a field group of a related table
Standard Lookups
• Best to use if the lookup form layout is complex
• Performance hit due to form rendering
EDT Lookups
• Best to leverage the power of query
• Difficult to maintain because of the need to update the
code in case of changesRuntime Lookups
Muhammad Anas Khan
Muhammad Anas Khan31
References
• http://msdn.microsoft.com/en-us/library/aa597861.aspx
• Inside Microsoft Dynamics AX 2012 – Pg#188

More Related Content

What's hot

AX 2012 R3 Installation Guide
AX 2012 R3 Installation GuideAX 2012 R3 Installation Guide
AX 2012 R3 Installation GuideBiswanath Dey
 
Microsoft Dynamics AX 2012 - Services Overview
Microsoft Dynamics AX 2012 - Services OverviewMicrosoft Dynamics AX 2012 - Services Overview
Microsoft Dynamics AX 2012 - Services OverviewFabio Filardi
 
Microsoft dynamics ax 2012 development introduction part 2/3
Microsoft dynamics ax 2012 development introduction part 2/3Microsoft dynamics ax 2012 development introduction part 2/3
Microsoft dynamics ax 2012 development introduction part 2/3Ali Raza Zaidi
 
Dynamics ax 2012 development overview
Dynamics ax 2012 development overviewDynamics ax 2012 development overview
Dynamics ax 2012 development overviewAli Raza Zaidi
 
Microsoft Dynamics AX 2012 - X++ Compiled to CIL
Microsoft Dynamics AX 2012 - X++ Compiled to CILMicrosoft Dynamics AX 2012 - X++ Compiled to CIL
Microsoft Dynamics AX 2012 - X++ Compiled to CILFabio Filardi
 
Axapta interview questions
Axapta interview questionsAxapta interview questions
Axapta interview questionsKD420
 
Developer's guide to customization
Developer's guide to customizationDeveloper's guide to customization
Developer's guide to customizationAhmed Farag
 
Deep Dive on the Microsoft Dynamics AX Platform
Deep Dive on the Microsoft Dynamics AX PlatformDeep Dive on the Microsoft Dynamics AX Platform
Deep Dive on the Microsoft Dynamics AX PlatformJuan Fabian
 
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013guvensahin
 
An Introduction to the Dynamics AX Application Integration Framework
An Introduction to the Dynamics AX Application Integration FrameworkAn Introduction to the Dynamics AX Application Integration Framework
An Introduction to the Dynamics AX Application Integration FrameworkFolio3-Dynamics-Services
 
Enterprise portal development cookbook Ax 2012
Enterprise portal development cookbook Ax 2012Enterprise portal development cookbook Ax 2012
Enterprise portal development cookbook Ax 2012Anilkumar Lella
 
Step by step installation of microsoft dynamics 365 finance and operations on...
Step by step installation of microsoft dynamics 365 finance and operations on...Step by step installation of microsoft dynamics 365 finance and operations on...
Step by step installation of microsoft dynamics 365 finance and operations on...Umesh Pandit
 
03. data forms in hyperion planning
03. data forms in hyperion planning03. data forms in hyperion planning
03. data forms in hyperion planningepmvirtual.com
 
Salesforce Integration
Salesforce IntegrationSalesforce Integration
Salesforce IntegrationJoshua Hoskins
 
Integration with dynamics ax 2012
Integration with dynamics ax 2012Integration with dynamics ax 2012
Integration with dynamics ax 2012Ali Raza Zaidi
 
Retail pos technical reference
Retail pos technical referenceRetail pos technical reference
Retail pos technical referenceAhmed Farag
 
Sap tranport,customization request
Sap tranport,customization requestSap tranport,customization request
Sap tranport,customization requestRajeev Kumar
 

What's hot (20)

AX 2012 R3 Installation Guide
AX 2012 R3 Installation GuideAX 2012 R3 Installation Guide
AX 2012 R3 Installation Guide
 
Microsoft Dynamics AX 2012 - Services Overview
Microsoft Dynamics AX 2012 - Services OverviewMicrosoft Dynamics AX 2012 - Services Overview
Microsoft Dynamics AX 2012 - Services Overview
 
Microsoft dynamics ax 2012 development introduction part 2/3
Microsoft dynamics ax 2012 development introduction part 2/3Microsoft dynamics ax 2012 development introduction part 2/3
Microsoft dynamics ax 2012 development introduction part 2/3
 
Dynamics ax 2012 development overview
Dynamics ax 2012 development overviewDynamics ax 2012 development overview
Dynamics ax 2012 development overview
 
Dynamics AX/ X++
Dynamics AX/ X++Dynamics AX/ X++
Dynamics AX/ X++
 
Microsoft Dynamics AX 2012 - X++ Compiled to CIL
Microsoft Dynamics AX 2012 - X++ Compiled to CILMicrosoft Dynamics AX 2012 - X++ Compiled to CIL
Microsoft Dynamics AX 2012 - X++ Compiled to CIL
 
Axapta interview questions
Axapta interview questionsAxapta interview questions
Axapta interview questions
 
Developer's guide to customization
Developer's guide to customizationDeveloper's guide to customization
Developer's guide to customization
 
Deep Dive on the Microsoft Dynamics AX Platform
Deep Dive on the Microsoft Dynamics AX PlatformDeep Dive on the Microsoft Dynamics AX Platform
Deep Dive on the Microsoft Dynamics AX Platform
 
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
 
An Introduction to the Dynamics AX Application Integration Framework
An Introduction to the Dynamics AX Application Integration FrameworkAn Introduction to the Dynamics AX Application Integration Framework
An Introduction to the Dynamics AX Application Integration Framework
 
Enterprise portal development cookbook Ax 2012
Enterprise portal development cookbook Ax 2012Enterprise portal development cookbook Ax 2012
Enterprise portal development cookbook Ax 2012
 
Fiori Presentation
Fiori PresentationFiori Presentation
Fiori Presentation
 
Step by step installation of microsoft dynamics 365 finance and operations on...
Step by step installation of microsoft dynamics 365 finance and operations on...Step by step installation of microsoft dynamics 365 finance and operations on...
Step by step installation of microsoft dynamics 365 finance and operations on...
 
03. data forms in hyperion planning
03. data forms in hyperion planning03. data forms in hyperion planning
03. data forms in hyperion planning
 
Salesforce Integration
Salesforce IntegrationSalesforce Integration
Salesforce Integration
 
Integration with dynamics ax 2012
Integration with dynamics ax 2012Integration with dynamics ax 2012
Integration with dynamics ax 2012
 
Retail pos technical reference
Retail pos technical referenceRetail pos technical reference
Retail pos technical reference
 
Sap tranport,customization request
Sap tranport,customization requestSap tranport,customization request
Sap tranport,customization request
 
SAP C4C overview
SAP C4C overviewSAP C4C overview
SAP C4C overview
 

Viewers also liked

AX2012 Technical Track - Infrastructure, Davy Vliegen
AX2012 Technical Track - Infrastructure, Davy VliegenAX2012 Technical Track - Infrastructure, Davy Vliegen
AX2012 Technical Track - Infrastructure, Davy Vliegendynamicscom
 
Ax 2012 enterprise portal development
Ax 2012 enterprise portal developmentAx 2012 enterprise portal development
Ax 2012 enterprise portal developmentMoutasem Al-awa
 
Deploying customizations across microsoft dynamics ax 2012 environments ax2012
Deploying customizations across microsoft dynamics ax 2012 environments ax2012Deploying customizations across microsoft dynamics ax 2012 environments ax2012
Deploying customizations across microsoft dynamics ax 2012 environments ax2012Prathamesh Joshi
 
Dynamics Day '11 - Manufacturing and Distribution Roundtable Discussion
Dynamics Day '11 - Manufacturing and Distribution Roundtable DiscussionDynamics Day '11 - Manufacturing and Distribution Roundtable Discussion
Dynamics Day '11 - Manufacturing and Distribution Roundtable DiscussionIntergen
 
Mule Microsoft Dynamics AX 2012 Connector
Mule Microsoft Dynamics AX 2012 ConnectorMule Microsoft Dynamics AX 2012 Connector
Mule Microsoft Dynamics AX 2012 ConnectorAnkush Sharma
 
whats New in axapta 2012
whats New in axapta 2012whats New in axapta 2012
whats New in axapta 2012H B Kiran
 
Report programming model for microsoft dynamics ax 2012
Report programming model for microsoft dynamics ax 2012Report programming model for microsoft dynamics ax 2012
Report programming model for microsoft dynamics ax 2012KiranVathaluru
 

Viewers also liked (10)

Azure overview
Azure overviewAzure overview
Azure overview
 
AX2012 Technical Track - Infrastructure, Davy Vliegen
AX2012 Technical Track - Infrastructure, Davy VliegenAX2012 Technical Track - Infrastructure, Davy Vliegen
AX2012 Technical Track - Infrastructure, Davy Vliegen
 
Ax 2012 enterprise portal development
Ax 2012 enterprise portal developmentAx 2012 enterprise portal development
Ax 2012 enterprise portal development
 
Deploying customizations across microsoft dynamics ax 2012 environments ax2012
Deploying customizations across microsoft dynamics ax 2012 environments ax2012Deploying customizations across microsoft dynamics ax 2012 environments ax2012
Deploying customizations across microsoft dynamics ax 2012 environments ax2012
 
Dynamics Day '11 - Manufacturing and Distribution Roundtable Discussion
Dynamics Day '11 - Manufacturing and Distribution Roundtable DiscussionDynamics Day '11 - Manufacturing and Distribution Roundtable Discussion
Dynamics Day '11 - Manufacturing and Distribution Roundtable Discussion
 
Whomovedmycheese
WhomovedmycheeseWhomovedmycheese
Whomovedmycheese
 
Mule Microsoft Dynamics AX 2012 Connector
Mule Microsoft Dynamics AX 2012 ConnectorMule Microsoft Dynamics AX 2012 Connector
Mule Microsoft Dynamics AX 2012 Connector
 
positive thinking
positive thinkingpositive thinking
positive thinking
 
whats New in axapta 2012
whats New in axapta 2012whats New in axapta 2012
whats New in axapta 2012
 
Report programming model for microsoft dynamics ax 2012
Report programming model for microsoft dynamics ax 2012Report programming model for microsoft dynamics ax 2012
Report programming model for microsoft dynamics ax 2012
 

Similar to AX 2012: All About Lookups!

Evolving The Optimal Relevancy Scoring Model at Dice.com: Presented by Simon ...
Evolving The Optimal Relevancy Scoring Model at Dice.com: Presented by Simon ...Evolving The Optimal Relevancy Scoring Model at Dice.com: Presented by Simon ...
Evolving The Optimal Relevancy Scoring Model at Dice.com: Presented by Simon ...Lucidworks
 
Fast-Formula-in-Oracle-Cloud-HCM.pptx
Fast-Formula-in-Oracle-Cloud-HCM.pptxFast-Formula-in-Oracle-Cloud-HCM.pptx
Fast-Formula-in-Oracle-Cloud-HCM.pptxDhanaraajDevelopers
 
Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03chazaabdul
 
Evolving the Optimal Relevancy Ranking Model at Dice.com
Evolving the Optimal Relevancy Ranking Model at Dice.comEvolving the Optimal Relevancy Ranking Model at Dice.com
Evolving the Optimal Relevancy Ranking Model at Dice.comSimon Hughes
 
Optimizing Application Performance - 2022.pptx
Optimizing Application Performance - 2022.pptxOptimizing Application Performance - 2022.pptx
Optimizing Application Performance - 2022.pptxJasonTuran2
 
Introducing Microsoft Forms - A New App for your Business Process Toolbox
Introducing Microsoft Forms - A New App for your Business Process ToolboxIntroducing Microsoft Forms - A New App for your Business Process Toolbox
Introducing Microsoft Forms - A New App for your Business Process ToolboxHaniel Croitoru
 
Tech Chat – What's New in Sumo Logic
Tech Chat – What's New in Sumo LogicTech Chat – What's New in Sumo Logic
Tech Chat – What's New in Sumo LogicSumo Logic
 
Oracle Forms : Multiple Forms
Oracle Forms : Multiple FormsOracle Forms : Multiple Forms
Oracle Forms : Multiple FormsSekhar Byna
 
A Catalogue of Software Requirement Patterns for the Domain of CMSs
A Catalogue of Software Requirement Patterns for the Domain of CMSsA Catalogue of Software Requirement Patterns for the Domain of CMSs
A Catalogue of Software Requirement Patterns for the Domain of CMSsGESSI UPC
 
Handling of Large Data by Salesforce
Handling of Large Data by SalesforceHandling of Large Data by Salesforce
Handling of Large Data by SalesforceThinqloud
 
Creating a Great XPages User Interface
Creating a Great XPages User InterfaceCreating a Great XPages User Interface
Creating a Great XPages User InterfaceTeamstudio
 
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014Howard Greenberg
 
Sumo Logic Quick Start - Feb 2016
Sumo Logic Quick Start - Feb 2016Sumo Logic Quick Start - Feb 2016
Sumo Logic Quick Start - Feb 2016Sumo Logic
 
Sumo Logic QuickStart
Sumo Logic QuickStartSumo Logic QuickStart
Sumo Logic QuickStartSumo Logic
 
Improved Search With Lucene 4.0 - NOVA Lucene/Solr Meetup
Improved Search With Lucene 4.0 - NOVA Lucene/Solr MeetupImproved Search With Lucene 4.0 - NOVA Lucene/Solr Meetup
Improved Search With Lucene 4.0 - NOVA Lucene/Solr Meetuprcmuir
 
Test Design and Automation for REST API
Test Design and Automation for REST APITest Design and Automation for REST API
Test Design and Automation for REST APIIvan Katunou
 
Sumo Logic QuickStart - May 2016
Sumo Logic QuickStart - May 2016Sumo Logic QuickStart - May 2016
Sumo Logic QuickStart - May 2016Sumo Logic
 
19 09-26 source reconfiguration and august release features
19 09-26 source reconfiguration and august release features19 09-26 source reconfiguration and august release features
19 09-26 source reconfiguration and august release featuresDede Sabey
 

Similar to AX 2012: All About Lookups! (20)

Evolving The Optimal Relevancy Scoring Model at Dice.com: Presented by Simon ...
Evolving The Optimal Relevancy Scoring Model at Dice.com: Presented by Simon ...Evolving The Optimal Relevancy Scoring Model at Dice.com: Presented by Simon ...
Evolving The Optimal Relevancy Scoring Model at Dice.com: Presented by Simon ...
 
Fast-Formula-in-Oracle-Cloud-HCM.pptx
Fast-Formula-in-Oracle-Cloud-HCM.pptxFast-Formula-in-Oracle-Cloud-HCM.pptx
Fast-Formula-in-Oracle-Cloud-HCM.pptx
 
Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03
 
Evolving the Optimal Relevancy Ranking Model at Dice.com
Evolving the Optimal Relevancy Ranking Model at Dice.comEvolving the Optimal Relevancy Ranking Model at Dice.com
Evolving the Optimal Relevancy Ranking Model at Dice.com
 
Optimizing Application Performance - 2022.pptx
Optimizing Application Performance - 2022.pptxOptimizing Application Performance - 2022.pptx
Optimizing Application Performance - 2022.pptx
 
Introducing Microsoft Forms - A New App for your Business Process Toolbox
Introducing Microsoft Forms - A New App for your Business Process ToolboxIntroducing Microsoft Forms - A New App for your Business Process Toolbox
Introducing Microsoft Forms - A New App for your Business Process Toolbox
 
Tech Chat – What's New in Sumo Logic
Tech Chat – What's New in Sumo LogicTech Chat – What's New in Sumo Logic
Tech Chat – What's New in Sumo Logic
 
Oracle APEX
Oracle APEXOracle APEX
Oracle APEX
 
Oracle Forms : Multiple Forms
Oracle Forms : Multiple FormsOracle Forms : Multiple Forms
Oracle Forms : Multiple Forms
 
Chromatography Data System: Report your Data
Chromatography Data System: Report your Data Chromatography Data System: Report your Data
Chromatography Data System: Report your Data
 
A Catalogue of Software Requirement Patterns for the Domain of CMSs
A Catalogue of Software Requirement Patterns for the Domain of CMSsA Catalogue of Software Requirement Patterns for the Domain of CMSs
A Catalogue of Software Requirement Patterns for the Domain of CMSs
 
Handling of Large Data by Salesforce
Handling of Large Data by SalesforceHandling of Large Data by Salesforce
Handling of Large Data by Salesforce
 
Creating a Great XPages User Interface
Creating a Great XPages User InterfaceCreating a Great XPages User Interface
Creating a Great XPages User Interface
 
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014
 
Sumo Logic Quick Start - Feb 2016
Sumo Logic Quick Start - Feb 2016Sumo Logic Quick Start - Feb 2016
Sumo Logic Quick Start - Feb 2016
 
Sumo Logic QuickStart
Sumo Logic QuickStartSumo Logic QuickStart
Sumo Logic QuickStart
 
Improved Search With Lucene 4.0 - NOVA Lucene/Solr Meetup
Improved Search With Lucene 4.0 - NOVA Lucene/Solr MeetupImproved Search With Lucene 4.0 - NOVA Lucene/Solr Meetup
Improved Search With Lucene 4.0 - NOVA Lucene/Solr Meetup
 
Test Design and Automation for REST API
Test Design and Automation for REST APITest Design and Automation for REST API
Test Design and Automation for REST API
 
Sumo Logic QuickStart - May 2016
Sumo Logic QuickStart - May 2016Sumo Logic QuickStart - May 2016
Sumo Logic QuickStart - May 2016
 
19 09-26 source reconfiguration and august release features
19 09-26 source reconfiguration and august release features19 09-26 source reconfiguration and august release features
19 09-26 source reconfiguration and august release features
 

Recently uploaded

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 

Recently uploaded (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 

AX 2012: All About Lookups!

  • 2. Muhammad Anas Khan Overview • A lookup is a small form we use to select a value for a control • A lookup can list the values in a grid or a form • Often shows several fields that help us find and select the correct record • For example, lookup for customer account number will also show customer name • We can bind a lookup form to a field in the form datasource or a control in the form design
  • 3. Muhammad Anas Khan3 Controls • Following are the controls which can be bound to a lookup form: – DateEdit – GuidEdit – Int64Edit – IntEdit – RealEdit – ReferenceGroup – StringEdit – TimeEdit
  • 4. Muhammad Anas Khan4 Types of Lookup Forms • Standard Lookup Forms • EDT Lookup Forms • Runtime Lookup Forms • Enum Lookup (Not exactly a lookup form)
  • 5. Standard Lookup Forms Example, Insight, Lab Activity, Demo
  • 7. Muhammad Anas Khan Insight • A standard lookup form is a system generated form • To add a standard lookup form: – you bind a control to a field – from the main table of the form data source – that references the ID of a record in related table • It uses a grid to list the records • Field displayed in the control is dictated by the AutoIdentification field group of the related table
  • 8. Muhammad Anas Khan Insight • Fields appearing in the lookup form are specified by a field group or another set of fields from the related table – Lookup bound to surrogate/natural foreign key • shows fields in the AutoLookup field group by default • shows fields used in TitleField1, TitleField2 properties of the table if AutoLookup is empty • shows the first natural key of the table if AutoLookup, TitleField1, TitleField2 all are empty • Use it whenever possible because: – Consistent experience across forms – Easier to maintain as lookup forms get synced with field groups changes
  • 9. Muhammad Anas Khan Lab Activity • In AOT, navigate to – Forms>>Form>>Data Sources>>Table>>Fields • Open Fields node in a new window • In the AOT that shows the form, navigate to – Designs>>Design • Drag the field1 from the Fields list to the Design node of the form • As a consequence, a control will be added to the Design node • Check the properties of the newly added control • Following above steps you will successfully build a standard lookup form
  • 10. Muhammad Anas Khan Lab Activity ReferenceGroup control • Name • DataSource – Should be the intended table from the form data source • Label • ReferenceField – Should be the intended surrogate foreign key field from the DataSource table you want to bind the control to Other controls • Name • DataField – Should be the intended foreign key field in the DataSource table • DataSource – Should be the intended table from the form data source • Label • LookupButton – Should be set to Auto After finishing lab activity, make sure the following fields have been set correctly
  • 12. EDT Lookup Forms Example, Insight, Lab Activity, Demo
  • 14. Muhammad Anas Khan Insight • EDT can be used to bind a lookup form, from the AOT, to – A field in a form data source table – A control in a form design. The control can be unbound • Style property, of the AOT form to be used as a lookup form, should be set to Lookup1 • Code must be added to the form that updates the value of the control when you select a record. For example, onClose method may be returning a record • Use whenever the lookup form layout is complex
  • 15. Muhammad Anas Khan Lab Activity • To add an EDT lookup form: – To a field, set the ExtendedDataType property of that field to the name of the EDT – To a control, set the ExtendedDataType property of that control to the name of the EDT – Finally, set the FormHelp property of the EDT to the name of the AOT form you want to use as a lookup
  • 17. Runtime Lookup Forms Example, Insight, API, Demo
  • 19. Muhammad Anas Khan Insight • It is a custom form you create with X++ code • It can be added to a field in the form data source or a control in the form design • To add a runtime lookup form to a field, override lookup or lookupReference method • To add a runtime lookup form to a control, override lookup or lookupReference method • Difficult to maintain because changes to the lookup require updates to the X++ code. Therefore use only when you need it • Runtime lookup has higher precedence over standard and EDT lookups
  • 25. Muhammad Anas Khan Insight • Not exactly a lookup form • Useful to know how to filter values in an enum lookup • Possible in case of unbound controls
  • 28. When to use what?
  • 29. Muhammad Anas Khan • Consistent experience across different forms • Easier to maintain as they get auto synced with changes in field groups • Best to show fields from a field group of a related table Standard Lookups • Best to use if the lookup form layout is complex • Performance hit due to form rendering EDT Lookups • Best to leverage the power of query • Difficult to maintain because of the need to update the code in case of changesRuntime Lookups
  • 31. Muhammad Anas Khan31 References • http://msdn.microsoft.com/en-us/library/aa597861.aspx • Inside Microsoft Dynamics AX 2012 – Pg#188