Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Extending Microsoft Dynamics AX 2012 Cookbook

You're reading from   Extending Microsoft Dynamics AX 2012 Cookbook This is a brilliantly accessible book, packed with practical examples, that's perfect for business professionals who want to make more of the advanced features of Dynamics AX to save money and increase management efficiency.

Arrow left icon
Product type Paperback
Published in Aug 2013
Publisher Packt
ISBN-13 9781782168331
Length 314 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Murray Fife Murray Fife
Author Profile Icon Murray Fife
Murray Fife
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Extending Microsoft Dynamics AX 2012 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Extending Out with SharePoint FREE CHAPTER 2. Reports and Dashboards 3. Dashboards, Charts, and Scorecards 4. Communication and Collaboration 5. Using Cases to Manage Incidents and Requests 6. Organizing Your Workflows 7. Reporting in Office 8. Talking to the Outside World 9. Creating Help 10. Web Services and Forms 11. Role Center Personalization and Customization Index

Building InfoPath lookups using OData queries


A feature of InfoPath that makes forms even more useful is the ability to allow fields to be populated with dynamic data coming from static lists, databases, and also web data sources, so that users do not have to remember field values such as part codes and customer numbers. Since you are able to query Dynamics AX data through web queries, we can use these queries to create dynamic lookups in our forms.

In this recipe, we will show how you can turn text fields into drop-down lists that use OData queries as a data source.

How to do it...

To use an OData query as a data source for a field, follow these steps:

  1. We need to first define the data source. To do this, select the From XML File option in the From Other Sources menu in the Get External Data group of the Data ribbon bar in the form designer.

  2. When the Data Connection Wizard pops up, paste the URL for the OData query that you want to use as a data source and click on Next.

  3. To store the data source...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image