AxAssist

Main Features Downloads Purchase Forum Support  

Features

Contents
  1. All contents

  2. 1. Dynamics AX AOT
  3. 2. Dynamics AX Editor
    1. 2.1. Suggestions
      1. 2.1.1. Variable list
      2. 2.1.2. Variable names list
      3. 2.1.3. Name Matching
      4. 2.1.4. Acronyms
      5. 2.1.5. User list
    2. 2.2 Browsing and navigation code
  4. 3. Hotkeys
  5. 4. Settings
  6. 5. Code reformatter
  7. 6. How to...
    1. 6.1. How to add new button on toolbar
    2. 6.2. How to add new hotkey
    3. 6.3. How to use your text as suggestion
      1. 6.3.1. In User list
      2. 6.3.2. In Acronyms list
    4. 6.4. How to customize tooltips
    5. 6.5. How to set up the auxiliary panel (HelpPane) in Dynamics AX Editor
    6. 6.6. How to start AxAssist after Dynamics AX startup
How to use your text as suggestion


User List

To add new suggestion, add the following code into \Classes\DEV_AxAssistUserList\addUserList method:

formActiveXControl.addHelpItem(newSuggestion, "" , toolTip, "" , 0, DEV_AxAssistVarType::UserList, 0, 0);

newSuggestion – text of suggestion, for example "info(strfmt(\"%1\", ));",
toolTip – tooltip text.

New suggestion will be appeared in list in according to settings (by default it is enough to enter two first symbols to get suggestion):

Note: new suggestion will be available only after reload of Dynamics AX client (if AxAssist is already running).
Therefore it is recommended to perform these changes before start AxAssist.

Acronyms list

Beginning with version 1.08.0 it is possible to define your own acronym for suggestion.
For example, to correlate acronym “FE” with “fieldExt2Id” in suggestion list you can add the following code into \Classes\DEV_AxAssistUserList\addUserList method:

formActiveXControl.addHelpItem( "fieldExt2Id" , "" , "Returns the fieldId part of an extended FieldId" , "FE" , 0, DEV_AxAssistVarType::ALL, DEV_AxAssistVarType::UserList, 0);

Note: new suggestion will be available only after reload of Dynamics AX client (if AxAssist is already running).

Result:


Function addHelpItem description:

void addHelpItem(str itemName, str itemTypename, str itemTip, str itemAcronym, int id, DEV_AxAssistVarType listType, DEV_AxAssistVarType dataType, int flag);

itemName – text that will be added to list of suggestion (for example, InventTable).
itemTypename – type name corresponding with itemName. Can be used for variables of classes/tables etc. only.
itemTip – tooltip text.
itemAcronym – acronym corresponding with suggestion. If acronym is not defined then standard algorithm for acronym will be used.
Id – ID of element in Dynamics AX or 0 (zero) if element do not have id.
listType – type of suggestion list. Use DEV_AxAssistVarType::UserList for User list. For lists "Name Matching" and "Acronyms" use DEV_AxAssistVarType::ALL.
dataType – inserting data type.
flag – 0 – insert element, 1 – remove all elements from list listType, 2 – refresh element using its id (this value is used to synchronize AOT and AxAssist).


© 2007 - 2008 - axassist.com