Book a Demo

Author Topic: How to search for Initial Code value?  (Read 5798 times)

chrvi

  • EA User
  • **
  • Posts: 75
  • Karma: +0/-0
  • There are so many hidden features...
    • View Profile
How to search for Initial Code value?
« on: September 20, 2007, 02:33:42 am »
Hi,

I've populated a method's Initial Code but I can't use Advanced search (searching Method Details) to find it. If it were Behavior field I'd obtain the object immediately. However, for the Initial Code field it doesn't work.

Does anybody know another way of searching for initial code values?

Thanks.

Radek
Radek

thomaskilian

  • Guest
Re: How to search for Initial Code value?
« Reply #1 on: September 21, 2007, 01:12:38 am »
Generate the source and use Notepad++ ;D

Ronaldo Juliatto

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: How to search for Initial Code value?
« Reply #2 on: April 02, 2009, 11:39:41 pm »
Well... one year and a half later, I redo the question:

- Is it possible to search for a word in the "Initial Code" field through the Model search not using SQL?
- And also: is it possible to search for a word in a Linked Document also not using SQL?

I am afraid the answers to these questions are still "No", and I sure don't have anything against SQL... the problem is that I wanted to add these searches to the 'Extended' predefined search profile, and did not want to code all this search in SQL.

Would anybody have a clue to do this?

Thanks in advance

Ronaldo Juliatto

Dorian Workman

  • EA User
  • **
  • Posts: 194
  • Karma: +0/-0
    • View Profile
Re: How to search for Initial Code value?
« Reply #3 on: April 16, 2009, 07:04:20 am »
Could you please post your SQL query for searching for a string inside a Linked Document?  It would be very useful to me.

Thanks.
<a href="http://www.linkedin.com/in/dorianworkman" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Dorian Workman

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to search for Initial Code value?
« Reply #4 on: April 16, 2009, 03:22:58 pm »
Dorian,

I'm afraid the content of the linked documents is stored in a binary format in the database. (t_document.BinContent)
So it won't be possible to query them.
If you really need this then you will need to write a small program that uses the API to get the linked documents in a string format, and then search in those strings.

Geert

Dorian Workman

  • EA User
  • **
  • Posts: 194
  • Karma: +0/-0
    • View Profile
Re: How to search for Initial Code value?
« Reply #5 on: April 16, 2009, 04:09:53 pm »
Thanks Geert, that's disappointing to hear though.

I'm no programmer; has anyone out there already written this program (wishful thinking perhaps)?

Thanks.
<a href="http://www.linkedin.com/in/dorianworkman" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Dorian Workman

Dorian Workman

  • EA User
  • **
  • Posts: 194
  • Karma: +0/-0
    • View Profile
Re: How to search for Initial Code value?
« Reply #6 on: April 17, 2009, 02:16:31 am »
As an aside, we use Linked Documents heavily for tables.  If Element's Notes field would support tables, our need would go away.  I've already submitted a feature request for table support in Element Notes fields.  I hope it happens soon, because the more time that passes, the more Linked Docs we will eventually need to convert.

Any word from the Sparxians on when we might get this table support please?  :-/

Thanks!
<a href="http://www.linkedin.com/in/dorianworkman" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Dorian Workman