erdomke / InnovatorAdmin

A tool for managing Aras Innovator installations focusing on improving the import/export experience.
http://erdomke.github.io/InnovatorAdmin/
MIT License
58 stars 42 forks source link

"Run current" does not work #66

Closed rneuber1 closed 8 years ago

rneuber1 commented 8 years ago

I have two statements within one AML clause and when I call "Run current", not the one with the caret or the selection is executed, but all (or the first?!) is excuted.

erdomke commented 8 years ago

The current intended operation of the latest version is as follows. If additional scenarios need to be considered and/or supported, let me know.

Note that the | character is your cursor and the bold section is the selection.

Situation 1: Two root-level code blocks

Using Run Current will execute the code block that the cursor is in (in this case, the second one).

<AML>
  <Item type='User' action='get'>
    <last_name>Smith</last_name>
  </Item>
</AML>
<AML>
  <Item type='User' action='get'>
    <last_name>|Domke</last_name>
  </Item>
</AML>

Situation 2: One code block; multi-character selection

Using Run Current will treat the selection as your query and run it (in this case, only the first Item tag).

<AML>
  <Item type='User' action='get'>
    <last_name>Smith</last_name>
  </Item>|
  <Item type='User' action='get'>
    <last_name>Domke</last_name>
  </Item>
</AML>

Situation 3: One code block; no selection

Using Run Current can't find a "current" query and instead uses the entire document (both Item tags).

<AML>
  <Item type='User' action='get'>
    <last_name>Smith</last_name>
  </Item>
  <Item type='User' action='get'>
    <last_name>|Domke</last_name>
  </Item>
</AML>
rneuber1 commented 8 years ago

ok, in this case you may close this issue.