Opened 10 years ago

Closed 10 years ago

Last modified 3 years ago

#456 closed enhancement (implemented)

Need ability to perform some task with all members of a selection list

Reported by: westram Owned by: westram
Priority: major Milestone: arb6
Component: Libraries (multi) Version: SVN
Keywords: Cc:

Description (last modified by westram)

Example:

  • search some species using search tool
  • with each hit selected execute a macro

Whole example should be recordable.

#455 only blocks macros that want to do somethingMore after doing something with all marked species (example above should already work).

Also need to be able to perform a macro with all marked species.

Attachments (1)

add_marked_self_filtered.amc (1.1 KB) - added by westram 10 years ago.
add one species to tree using itself as filter

Download all attachments as: .zip

Change History (9)

comment:1 Changed 10 years ago by westram

  • Description modified (diff)
  • Owner changed from devel to westram
  • Status changed from new to assigned

comment:2 in reply to: ↑ description Changed 10 years ago by westram

Replying to westram:

Also need to be able to perform a macro with all marked species.

Workaround added with [11763]:

  • start ARB_NT/TOOLS/Start XTERM
  • call
    $ARBHOME/PERL_SCRIPTS/MACROS/with_all.pl MARKED somemacro
    

Changed 10 years ago by westram

add one species to tree using itself as filter

comment:3 Changed 10 years ago by westram

  • [11766] allows to execute a macro with all marked species from GUI

comment:4 Changed 10 years ago by westram

  • Description modified (diff)

comment:5 in reply to: ↑ description ; follow-up: Changed 10 years ago by westram

Replying to westram:

  • search some species using search tool
  • with each hit selected execute a macro

Impossible: information whether species is queried is server/client local, i.e.

  • it cannot be retrieved from perl code
  • performing loop in server is hard to achieve (as it has to be in AW_root::main_loop in order to process macro-code

Workaround:

  • store config
  • 'mark listed unmark rest'
  • execute macro with marked species (restoring config if needed)
  • restore and delete config

comment:6 in reply to: ↑ 5 Changed 10 years ago by westram

Replying to westram:

information whether species is queried is server/client local

FYI: this can be seen in action like follows:

  • open db
  • export/mergeToNew
  • transfer species

The left query box acts on the same DB (as client) as the normal query box in ARB_NTREE (as server). They do not interfere.

comment:7 Changed 10 years ago by westram

  • Resolution set to implemented
  • Status changed from assigned to closed

by [11778]

comment:8 Changed 3 years ago by westram

  • Milestone changed from work2013 to arb6
Note: See TracTickets for help on using tickets.