Book a Demo

Author Topic: Keywords  (Read 4614 times)

Fred Bevan

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Keywords
« on: August 27, 2011, 04:36:32 am »
Does anyone know how to access element keywords from scripts?

pha

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Keywords
« Reply #1 on: August 27, 2011, 07:22:54 am »
In EAP Database Keywords is PDATA5.
Write a script for access to a database.
Use Repository.SQLQuery() and Repository.Execute().

for example:

Repository.Execute("UPDATE t_object SET PDATA5 = 'Keywords' WHERE Object_Type = 'Class'");
  
Repository.SQLQuery("SELECT PDATA5 FROM t_object");
 

« Last Edit: August 27, 2011, 07:32:02 am by 666999 »

Luis J. Lobo

  • EA User
  • **
  • Posts: 252
  • Karma: +0/-0
  • IT Consultant
    • View Profile
Re: Keywords
« Reply #2 on: August 29, 2011, 10:58:43 pm »
More simple:

[size=12]Element.Tag[/size]

This attribute (read-write) is equivalent to the "Keywords" field.

Regards,

Fred Bevan

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: Keywords
« Reply #3 on: August 30, 2011, 09:50:41 pm »
Thanks Luis!

The "tag" attribute did the trick. I had been looking for a property called "keywords".  

Fred