4

I feel like I might be losing my mind...but if you search the AOT for anything with double colons "::", it fails completely. I'm trying to step through the Forms\SysAotFind to figure this out but I didn't want to spin my wheels a bunch for something that might be on my system only.

To reproduce in AX 2009, select Classes\SalesTableType, press Ctrl+F and put "CustLedgerAccounts::sumAccount" in the containing text box and click find now. You can see this is clearly located in the Classes\SalesTableType\accountCust method. I've tried searching for base enums inside objects with no luck either.

Alex Kwitny
  • 11,211
  • 2
  • 49
  • 71
  • 1
    Wow, I had noticed the same and have always worked around it. Great question. Maybe change the wording "search functionality" to "find... functionality" to help people in future, I suspect this has cause a lot of people problems! – AnthonyBlake Feb 02 '12 at 14:56

3 Answers3

8

I noticed the same behavior, but escaping the colons with a backslash makes the search work correctly.

So in your case you would need to search for "CustLedgerAccounts\:\:sumAccount".

dlannoye
  • 1,746
  • 19
  • 19
5

The search uses regular expressions in the syntax defined by the match function. Colon is a special character, hence it needs to be escaped by a backslash.

Jan B. Kjeldsen
  • 17,817
  • 5
  • 32
  • 50
0

For those searching for a fix, you can see where the issue is here and just tweak it if you want to allow specifically for double colons:

[c]    \Classes\SysTreeNodeSearch\isNodeInRange     #46

        if (!match(containingText,source))
            return false;
Alex Kwitny
  • 11,211
  • 2
  • 49
  • 71