Automatically show XPaths where you stay within the same module as an arrow or hide completely. - Mendix Forum

Automatically show XPaths where you stay within the same module as an arrow or hide completely.

10

When writing Xpath's whenever you stay within the same data model replace /ModuleName with →

[MyModule.Entity_StartingPointInXpath → Entity → Entity_AssociatedEntity → AssociatedEntity  →

AssociatedEntity_ToLastEntity → LastEntity/id = '[%CurrentUser%]’]

instead of

[MyModule.Entity_StartingPointInXpath/MyModule.Entity/MyModule.Entity_AssociatedEntity/

MyModule.AssociatedEntity/MyModule.AssociatedEntity_ToLastEntity/MyModule.LastEntity/id = '[%CurrentUser%]’]

it would greatly improve the readability for XPaths and technically it would not alter any behavior.

Also it would allow for writing Xpath's a lot quicker if you can just type  – > to initialize selection of the next entity.

asked
0 answers