Displaying a list of custom options
Besides normal lookups, Dynamics 365 for Finance and Operations provides a number of other ways to present the available data for user selection. It does not necessarily have to be a record from the database; it can be a list of hardcoded options or some external data. Normally, such lists are much smaller as opposed to those of the data-driven lookups, and are used for very specific tasks.
In this recipe, we will create a lookup of several predefined options. We will use a job for this demonstration.
How to do it...
- Add a new project and add a new
RunnableClass
namedPickList
:
class PickList { /// <summary> /// Runs the class with the specified arguments. /// </summary> /// <param name = "_args">The specified arguments.</param> public static void main(Args _args) { Map choices; str ret; ...