Author Topic: Get selected rows / items of Search window  (Read 4373 times)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Get selected rows / items of Search window
« on: July 26, 2014, 06:21:39 pm »
Hello,

is there a way to get the selected items of the search window?

Thanks,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Get selected rows / items of Search window
« Reply #1 on: July 26, 2014, 09:26:29 pm »
Maybe via copy/paste. I don't know if Windoze offers a method to mimic a  copy operation so you could inspect the paste buffer.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Get selected rows / items of Search window
« Reply #2 on: July 28, 2014, 04:02:17 pm »
I needed something similar (I use the existing SQL Searches to select items for my document generator) and I wrote my own search window.
Too bad  couldn't use the existing search window, but it wasn't too much work either to show the results of the search in a grid.

Geert

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Get selected rows / items of Search window
« Reply #3 on: July 28, 2014, 04:31:13 pm »
Thanks a lot!

I think I have to drop the subject or use a workaround like Geert.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Get selected rows / items of Search window
« Reply #4 on: July 29, 2014, 01:02:55 am »
Unfortunately I had the same struggle in the past.
Like Geert I filled a datatable ->Gridview so solve the Issue.

The Code is posted somewhere in the forum.

Best regards

Stefan
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website