Is it possible to find (search) in Dynamics AX 2009 for an exact match?
For example, when I am searching in the AOT for "AddressRelationship", I don't want to see DirPartyAddressRelationship in the results.
Is it possible to find (search) in Dynamics AX 2009 for an exact match?
For example, when I am searching in the AOT for "AddressRelationship", I don't want to see DirPartyAddressRelationship in the results.
Okay, it took me a while, but I have figured this out, it Is possible.
Adding a breakpoint to the find form shows that it uses a class called
SysUtilScanSource
to find your string within the AX source code.In
SysUtilScanSource.do()
the methodmatch
is used to find a match against the specific source code. You can read more aboutmatch
here;http://msdn.microsoft.com/en-us/library/aa886279(v=ax.10).aspx
The
match
method allows you to use expressions.The expression you require is as follows;
:SPACE
For example:
Therefore, in your example you need enter the following string in the "containing text" field;
Note that in the above string there are spaces in the following locations;
Try it. I did, it works a treat.
When you do the find, look at "properties" tab at the end of the find form window. This allows you to scale down the search based on properties. I do not believe there is a way to use an exact match but you can narrow your search down using the properties.