Book a Demo

Author Topic: Problems using RTF fragments  (Read 5475 times)

RobCDeJong

  • EA User
  • **
  • Posts: 29
  • Karma: +4/-0
    • View Profile
    • Soltegro site
Problems using RTF fragments
« on: April 12, 2013, 05:06:43 pm »
I am trying to use RTF fragments to show only the satisfy relation of a requirement in a document. The fragment uses a script that returns the expected xml.
When generating the template I missed relations in the generated document. The second time I generated the document, I got different results  >:(  The system output shows that there a errors but no error identification, see below.
Am I doing something wrong or is the RTF Fragment functionality not stable?

Cheers,
Rob

System output:
Script Trace - BlockName      
Error:       
Error:       
Script Trace - BlockName
Script Trace - BlockName


Luca Senter

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Problems using RTF fragments
« Reply #1 on: May 15, 2013, 12:46:34 am »
I've the same problem

natvig

  • EA User
  • **
  • Posts: 65
  • Karma: +7/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Problems using RTF fragments
« Reply #2 on: May 15, 2013, 01:09:14 am »
I have sucessfully used the SQL query below in a fragment that extracts every requirements that is satisfied by the current element. The fragment is used in an RTF template for a system specification. I use it to extract requirements that are satisfied by a specific activity (function).

Code: [Select]
SELECT SourceObject.Name AS ObjectName, RequirementTable.Name AS RequirementName, t_connector.Connector_Type, t_connector.Stereotype AS ConnectorStereotype, RequirementTable.Note AS RequirementNote
FROM t_object AS SourceObject, t_object AS RequirementTable, t_connector
WHERE t_connector.Start_Object_ID = SourceObject.Object_ID
AND t_connector.End_Object_ID = RequirementTable.Object_ID
AND t_connector.Stereotype = "satisfy"
AND SourceObject.Object_ID = #OBJECTID#

The RTF fragment looks like this:

custom >
<<{ConnectorStereotype}>>      {RequirementName}
{RequirementNote}
< custom

RobCDeJong

  • EA User
  • **
  • Posts: 29
  • Karma: +4/-0
    • View Profile
    • Soltegro site
Re: Problems using RTF fragments
« Reply #3 on: May 15, 2013, 01:19:04 am »
Looks like the SQL approach is more stable. Thanks, I willtry that next time  :)

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Problems using RTF fragments
« Reply #4 on: August 09, 2013, 04:05:20 pm »
Hi,

I have similar problems with Fragment Scripts. Not stable. Error messages like:
Error:
Error:

No idea what's wrong. I put all in a try catch construction. No change.

The interesting thing is:
  • On XP it worked without a problem
  • On Windows7/Windows8 I got error messages

     Sometimes it runs, sometimes not, sometimes the error position changed. It looks like chance.
[/list]

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