Book a Demo

Author Topic: Property Exclude package from RTF in database/API  (Read 6861 times)

pisokol

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Property Exclude package from RTF in database/API
« on: October 20, 2014, 04:22:40 am »
Where is the property Exclude package from RTF saved in the database or accessable through the API?
Setting in Project Browser: Documentation->Generated Reports Options->Generation Status (Include Package in Generated Reports/Exclude Package from Generated Reports).
Thanks in advance
PiSokol

Ian Mitchell

  • EA User
  • **
  • Posts: 507
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Property Exclude package from RTF in database/
« Reply #1 on: October 20, 2014, 07:11:03 pm »
I think it's in the StyleEx attribute, as ExcludeRTF=1. At least, that's what eaDocX looks for.
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

pisokol

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Property Exclude package from RTF in database/
« Reply #2 on: October 20, 2014, 09:16:00 pm »
thx, I know about this column (StyleEx) in t_object, I read it for diagrams and its looks ok, but for package this attribute in StyleEx does not contain "ExcludeRTF=1" :(
« Last Edit: October 20, 2014, 09:30:22 pm by pisokol »

pisokol

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Property Exclude package from RTF in database/
« Reply #3 on: October 21, 2014, 09:52:10 am »
Next informations after invigilation :)...
First, I work on EA ver.9.3.930.
Secound, my collection of attributes count 0 (I count it, using API, from attribute and attributeex connected to package.element).

I think, I found information about exclude packages from reports in database in package.flags (values set "RTF=F" for exlude, empty or "RTF=T" for include). It is good solution or not? What do you think?
« Last Edit: October 21, 2014, 10:00:22 am by pisokol »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Property Exclude package from RTF in database/
« Reply #4 on: October 21, 2014, 10:15:09 am »
I have no idea about that RTF but setting flags that way in the DB is suspicious. Can't you achieve something similar by using TVs?

q.

pisokol

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Property Exclude package from RTF in database/
« Reply #5 on: October 21, 2014, 10:32:48 am »
thx for reply, but I don't understand... TVs?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Property Exclude package from RTF in database/
« Reply #6 on: October 21, 2014, 10:52:58 am »
Quote
thx for reply, but I don't understand... TVs?
Tagged Values
The Sparx Team
[email protected]

pisokol

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Property Exclude package from RTF in database/
« Reply #7 on: October 21, 2014, 11:08:17 am »
sorry, of course :) it's to late
I try find it tomorrow, sorry today for a few hours :(
thx and good night

pisokol

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Property Exclude package from RTF in database/
« Reply #8 on: October 21, 2014, 08:58:10 pm »
I tried find anything useful in t_attribute and t_objectproperties and they are empty for connected packages.
Code: [Select]
select * from t_attribute where t_attribute.Object_ID in ( select  t_package.Package_ID from t_package where t_package.Name = "<package_name>")
select * from t_objectproperties where t_objectproperties.Object_ID in ( select
t_package.Package_ID from t_package where t_package.Name = "<package_name>")
or
select * from t_attribute where t_attribute.Object_ID in ( select  t_package.Package_ID from t_package where t_package.Package_ID = "<package_id>")
select * from t_objectproperties where t_objectproperties.Object_ID in ( select
t_package.Package_ID from t_package where t_package.Package_ID = "<package_id>")
(not important tables in this case: t_objectproperties holds the tagged values for attributes, t_operationtag holds the tagged values for operations, t_connectortag holds the tagged values for connectors)

Reading values from package.flags for package looks good and works.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Property Exclude package from RTF in database/
« Reply #9 on: October 21, 2014, 09:36:58 pm »
Quote
(not important tables in this case: t_objectproperties holds the tagged values for attributes, t_operationtag holds the tagged values for operations, t_connectortag holds the tagged values for connectors)
That is not entirely correct
t_objectproperties contains tagged values for elements
t_attributetag contains the tagged values for attributes

pisokol

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Property Exclude package from RTF in database/
« Reply #10 on: October 21, 2014, 09:53:07 pm »
Of course  :o I mistake name of tables t_objectproperties with t_attributetag in notes in "(<...>)". Selects are ok  ;)