-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from arbelatech/feature/FilterByObjectIds
Add the object ID to objects that have an ID (not just tables), and a…
- Loading branch information
Showing
7 changed files
with
161 additions
and
54 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
Metadata/AOTBrowser/AOTBrowser/AxClass/ARBAOTBrowserHelper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<AxClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> | ||
<Name>ARBAOTBrowserHelper</Name> | ||
<SourceCode> | ||
<Declaration><![CDATA[ | ||
using Microsoft.Dynamics.AX.Metadata.MetaModel; | ||
using Microsoft.Dynamics.AX.Metadata.Core.MetaModel; | ||
public final class ARBAOTBrowserHelper | ||
{ | ||
} | ||
]]></Declaration> | ||
<Methods> | ||
<Method> | ||
<Name>getObjectIdByName</Name> | ||
<Source><![CDATA[ | ||
public static int getObjectIdByName(anytype _object) | ||
{ | ||
INamedObject namedObject = _object as INamedObject; | ||
if (namedObject == null) | ||
{ | ||
return 0; | ||
} | ||
str objectName = namedObject.Name; | ||
int objectId; | ||
switch (true) | ||
{ | ||
case _object is AxTable: | ||
case _object is AxView: | ||
case _object is AxDataEntityView: | ||
objectId = tableName2Id(objectName); | ||
break; | ||
case _object is AxEnum: | ||
objectId = enumName2Id(objectName); | ||
break; | ||
case _object is AxClass: | ||
objectId = className2Id(objectName); | ||
break; | ||
case _object is AxEdt: | ||
objectId = extendedTypeName2Id(objectName); | ||
break; | ||
case _object is AxConfigurationKey: | ||
objectId = configurationKeyName2Id(objectName); | ||
break; | ||
} | ||
return objectId; | ||
} | ||
]]></Source> | ||
</Method> | ||
</Methods> | ||
</SourceCode> | ||
</AxClass> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<AxEdt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="" | ||
i:type="AxEdtInt"> | ||
<Name>ARBObjectId</Name> | ||
<Label>@AOTBrowser:ObjectId</Label> | ||
<ArrayElements /> | ||
<Relations /> | ||
<TableReferences /> | ||
<ShowZero>No</ShowZero> | ||
</AxEdt> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 52 additions & 50 deletions
102
Metadata/AOTBrowser/AOTBrowser/AxLabelFile/LabelResources/en-US/AOTBrowser.en-US.label.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,99 @@ | ||
NewLabel0=Label files created on 12/04/2019 20:20:46 for label file Id AOTBrowser and language en-US | ||
;Label file comment - see above label | ||
CompositeDataEntities=Composite data entity | ||
AggregateDataEntity=Aggregate data entity | ||
;ARB_AOTBrowser | ||
Maps=Map | ||
AOTBrowser=AOT browser | ||
;ARB_AOTBrowser | ||
Macros=Macro | ||
AOTBrowserMaintain=Maintain AOT browser | ||
;ARB_AOTBrowser | ||
Tiles=Tile | ||
AOTBrowserUser=AOT browser user | ||
;ARB_AOTBrowser | ||
Menus=Menu | ||
AOTObjectProperties=AOT object properties | ||
;ARB_AOTBrowser | ||
AOTBrowser=AOT browser | ||
AOTObjectPropertiesDevDoc=Holds the properties for the AOT object | ||
;ARB_AOTBrowser | ||
BaseEnum=Base enum | ||
AOTObjects=AOT objects | ||
;ARB_AOTBrowser | ||
MenuItemDisplay=Display menu item | ||
AOTObjectsDevDoc=List of objects in the application object tree | ||
;ARB_AOTBrowser | ||
MenuItemOutput=Output menu item | ||
BaseEnum=Base enum | ||
;ARB_AOTBrowser | ||
MenuItemAction=Action menu item | ||
CompositeDataEntities=Composite data entity | ||
;ARB_AOTBrowser | ||
SecurityRole=Security role | ||
ConfigKey=Configuration key | ||
;ARB_AOTBrowser | ||
SecurityDuty=Security duty | ||
ConfigKeyGroup=Configuration key group | ||
;ARB_AOTBrowser | ||
SecurityPrivilege=Security privilege | ||
LicenseCode=License code | ||
;ARB_AOTBrowser | ||
PopulateAOTObjectTable=AOTBrowser - Populate AOT object table | ||
Macros=Macro | ||
;ARB_AOTBrowser | ||
ObjectType=Object type | ||
Maps=Map | ||
;ARB_AOTBrowser | ||
Object=Object | ||
MenuItemAction=Action menu item | ||
;ARB_AOTBrowser | ||
OpenInAOTBrowser=Open in AOT browser | ||
MenuItemDisplay=Display menu item | ||
;ARB_AOTBrowser | ||
AOTObjects=AOT objects | ||
MenuItemOutput=Output menu item | ||
;ARB_AOTBrowser | ||
AOTObjectsDevDoc=List of objects in the application object tree | ||
Menus=Menu | ||
;ARB_AOTBrowser | ||
TableStatisticsDevDoc=Statistics about each table in the database | ||
NewLabel0=Label files created on 12/04/2019 20:20:46 for label file Id AOTBrowser and language en-US | ||
;Label file comment - see above label | ||
Object=Object | ||
;ARB_AOTBrowser | ||
PropertyValue=Value | ||
ObjectId=Object id | ||
;AOTBrowser | ||
ObjectType=Object type | ||
;ARB_AOTBrowser | ||
AOTObjectProperties=AOT object properties | ||
OpenInAOTBrowser=Open in AOT browser | ||
;ARB_AOTBrowser | ||
AOTObjectPropertiesDevDoc=Holds the properties for the AOT object | ||
OpenTableBrowserButton=Open table browser | ||
;ARB_AOTBrowser | ||
AggregateDataEntity=Aggregate data entity | ||
PopulateAOTObjects=Populate AOT objects | ||
;ARB_AOTBrowser | ||
WorkflowCategory=Workflow category | ||
PopulateAOTObjectTable=AOTBrowser - Populate AOT object table | ||
;ARB_AOTBrowser | ||
WorkflowApproval=Workflow approval | ||
PropertyValue=Value | ||
;ARB_AOTBrowser | ||
WorkflowTask=Workflow task | ||
Reference=Reference | ||
;ARB_AOTBrowser | ||
WorkflowAutomatedTask=Workflow automated task | ||
Report=Report | ||
;ARB_AOTBrowser | ||
WorkflowType=Workflow type | ||
Resource=Resource | ||
;ARB_AOTBrowser | ||
WorkflowHierarchyAssignmentProvider=Workflow hierarchy assignment provider | ||
SecurityDuty=Security duty | ||
;ARB_AOTBrowser | ||
WorkflowParticipantAssignmentProvider=Workflow participant assignment provider | ||
SecurityPrivilege=Security privilege | ||
;ARB_AOTBrowser | ||
WorkflowQueueAssignmentProvider=Workflow queue assignment provider | ||
SecurityRole=Security role | ||
;ARB_AOTBrowser | ||
WorkflowDueDateCalculationProvider=Workflow due date calculation provider | ||
Service=Service | ||
;ARB_AOTBrowser | ||
Resource=Resource | ||
ServiceGroup=Service group | ||
;ARB_AOTBrowser | ||
LicenseCode=License code | ||
TableStatisticsDevDoc=Statistics about each table in the database | ||
;ARB_AOTBrowser | ||
ConfigKey=Configuration key | ||
Tiles=Tile | ||
;ARB_AOTBrowser | ||
ConfigKeyGroup=Configuration key group | ||
ViewCode=View source code | ||
;ARB_AOTBrowser | ||
Reference=Reference | ||
ViewCodeHelp=Toggles the ability to view the source code. (NOTE: Viewing metadata from 3rd parties provided by deployable package is not supported with this turned on) | ||
ViewExtensionsInline=Show extensions inline | ||
;ARB_AOTBrowser | ||
Service=Service | ||
WorkflowApproval=Workflow approval | ||
;ARB_AOTBrowser | ||
ServiceGroup=Service group | ||
WorkflowAutomatedTask=Workflow automated task | ||
;ARB_AOTBrowser | ||
Report=Report | ||
WorkflowCategory=Workflow category | ||
;ARB_AOTBrowser | ||
PopulateAOTObjects=Populate AOT objects | ||
WorkflowDueDateCalculationProvider=Workflow due date calculation provider | ||
;ARB_AOTBrowser | ||
OpenTableBrowserButton=Open table browser | ||
WorkflowHierarchyAssignmentProvider=Workflow hierarchy assignment provider | ||
;ARB_AOTBrowser | ||
AOTBrowserMaintain=Maintain AOT browser | ||
WorkflowParticipantAssignmentProvider=Workflow participant assignment provider | ||
;ARB_AOTBrowser | ||
AOTBrowserUser=AOT browser user | ||
WorkflowQueueAssignmentProvider=Workflow queue assignment provider | ||
;ARB_AOTBrowser | ||
ViewExtensionsInline=Show extensions inline | ||
WorkflowTask=Workflow task | ||
;ARB_AOTBrowser | ||
ViewCode=View source code | ||
WorkflowType=Workflow type | ||
;ARB_AOTBrowser | ||
ViewCodeHelp=Toggles the ability to view the source code. (NOTE: Viewing metadata from 3rd parties provided by deployable package is not supported with this turned on) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters