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: Copy table(s) from one module to another
Topic Summary:
Created On: 29-Mar-2005 09:15
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.
 29-Mar-2005 09:15
User is offline View Users Profile Print this message


Vintila Valentin

Posts: 1
Joined: 22-Feb-2005

Hello
Is anyone who can help me?
I want to copy a table from one module to another one (with help of dxl scripting) ...how can I make this? Maybe a tips or a code ...?
Thanks to all
Vali
Report this to a Moderator Report this to a Moderator
 1-Apr-2005 12:53
User is offline View Users Profile Print this message


Karen Hidalgo

Posts: 55
Joined: 4-Nov-2003

Under View uncheck show table cells then select the >> Table you want and drag it to the other module.

-------------------------
Karen Hidalgo<BR>Northrop Grumman - TASC<BR>karen.hidalgo@ngc.com
Report this to a Moderator Report this to a Moderator
 29-Mar-2006 16:19
User is offline View Users Profile Print this message


Frank Löber

Posts: 4
Joined: 29-Mar-2006

Hi there! I'm trying to do the exact same thing, I got the following code but am stuck.... :
the situation is as follows: 1 target module,  1 source module, with one object, with below a table. this table needs to be copied to the target module..

here's the code, it seems to work until the pasteDown() function..then it just won't paste it in the target module... any help, thx!!
Regards
Rick

The target module is already open (current)

// try to open the Module with the Table
Module Table = edit("/Templates/Table", true)
 if (Table != null) then {

  // Module Succesfully Opened
  // go to the last object, contains the table
  Object o1 = last(current)

 // copy the object and all hierachy, to be certain
  bool success = copyHier()
  if success == true then {
   // Copy succeeded

   // now, open the old module again.. do this by closing the current module
   // close(Table, false) 
   bool success = pasteDown()
    if success == true then { 
     infoBox ("PASTE of table succeeded .")
    }

                     }
  else {
   // Copy NOT succeeded
   errorBox("Unable to copy the Table check, Module : /Templates/Table")
  // close the module again, without saving.
  close(Table, false)    halt
  }
 }
 else {
  //stop processing
  errorBox("Unable to open Module : /Templates/Table")
  halt
 }

Report this to a Moderator Report this to a Moderator
 31-Mar-2006 11:43
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

You cannot use clipboard functions to copy objects between modules.
Try it in the GUI - doen't work.

Use the copy objects function or drag-and-drop.

If you really need a DXL solution then you have to create the new objects in the target module and copy the attributes across.

-------------------------
Tony Goodman
http://www.smartdxl.com
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.