Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: oleInsert for attributes?
Topic Summary: Need to insert OLE object into object attribute
Created On: 21-Jun-2006 20:13
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 21-Jun-2006 20:13
User is offline View Users Profile Print this message


Ian Dees

Posts: 1
Joined: 4-Apr-2006

Hi, all. The documentation for oleInsert states that it only inserts into the "Object Text" attribute. Is there an equivalent that can insert into an attribute of my choosing? I suppose I could go ahead and insert the OLE item temporarily into a throwaway object, retrieve it as rich text with OLE, and then set my desired attribute to that value, but I was hoping for something a little more direct. My thanks in advance for any ideas you might have. --Ian
Report this to a Moderator Report this to a Moderator
 30-Jun-2006 15:33
User is offline View Users Profile Print this message


Dawid Ligus

Posts: 6
Joined: 13-Apr-2006

I also needed such a function. Only solution I developed was:

if (exists(attribute(atrName)))   //if given attribute found
    {
    oleInsert(o, file, true)    //place file 'nameCase' into object o as OLE object (visible as icon)
    oleCut(o)   //cut previously inserted object to clipboard
    o.atrName = richClip  //insert clipboard data (with OLE objects) to specified attribute in the same object
    clipClear(true) //clear clipboard
    }
else print "Attribute "atrName" not found in module "fullName(m)"!\n" //print info

Works nice.
Dawid
Report this to a Moderator Report this to a Moderator
 26-Jul-2006 14:35
User is offline View Users Profile Print this message


maria manco

Posts: 2
Joined: 17-Jan-2006

Hi
I am trying to travel across an out-link, copy the OLE object from an attribute in another module and paste it in an attribute for the object in the current module.  I have tried several ways (using your code as a guide and starting point) but cannot get this to work.  Do you have any suggestions?
Thanks!
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.