Dear all, |
Re: How to print the differences in Object Text History Select Tools / DXL Library and then browse to Some example programs which.... / Example to create a layout DXL DXL column that shows changes to object text: This tool creates a DXL column which uses a rich-text markup scheme to show changes to Object Text with respect to some original version. The original version can be selected from the following sources:
The original text is stored in a text attribute called "Old Text", and can be over-written by a subsequent use of the tool. The fonts used to mark up the changes in text can be selected. The default is to show inserted text using underline, and deleted text using strike-through. Current limitations:
|
Re: How to print the differences in Object Text History
If you really want to display the latest modification of "Object Text" you can use the layout DXL below.
pragma runLim, 0
// -----------------------------------------------------------------------------
void RichText2Text(Buffer buf)
{ // Replace a rich text buffer by its plain text
RichTextParagraph rp
Buffer tmp = create
tmp = ""
for rp in stringOf buf do
{ // Loop through rich text paragraphs
if (length tmp > 0){tmp += "\n"}
tmp += rp.text
} // Loop through rich text paragraphs
buf = stringOf tmp
delete tmp
} // Replace a rich text buffer by its plain text
// -----------------------------------------------------------------------------
void displayLastHistory()
{ // Display the last Object Text modification from the history
History hist
HistoryType histType
string histAttName
Buffer lastChangeBuf = create
Buffer currObjectTextBuf = create
Buffer diffResultBuf = create
bool foundObjTextHistory
foundObjTextHistory = false
for hist in obj do
{ // Loop through object history
histType = hist.type
histAttName = ""
if (histType == modifyObject)
{ // Object modification
histAttName = hist.attrName
if (histAttName == "Object Text")
{ // Modification of "Object Text"
lastChangeBuf = hist.oldValue
currObjectTextBuf = hist.newValue
foundObjTextHistory = true
} // Modification of "Object Text"
} // Object modification
} // Loop through object history
if (foundObjTextHistory)
{ // History contains at least one modification of "Object Text"
RichText2Text(lastChangeBuf)
RichText2Text(currObjectTextBuf)
if (lastChangeBuf != currObjectTextBuf)
{ // Do not show modifications of text formatting only
diff(diffResultBuf, lastChangeBuf, currObjectTextBuf)
} // Do not show modifications of text formatting only
displayRich tempStringOf diffResultBuf
} // History contains at least one modification of "Object Text"
delete diffResultBuf
delete lastChangeBuf
delete currObjectTextBuf
} // Display the last Object Text modification from the history
// -----------------------------------------------------------------------------
displayLastHistory()
|
Re: How to print the differences in Object Text History SystemAdmin - Wed Feb 09 06:34:01 EST 2011
The original text is stored in a text attribute called "Old Text", and can be over-written by a subsequent use of the tool. The fonts used to mark up the changes in text can be selected. The default is to show inserted text using underline, and deleted text using strike-through. Current limitations:
Thank you. It really help.
/**
* Created by: lupsanto
* Creation date: 09/02/2011
*
* DXL Editor is provided by SODIUS (www.dxleditor.com)
*/
pragma runLim, 0
// history DXL Example
/*
Example history DXL program.
Generate a report of the current Module's
history.
*/
// Function to print the DIFF
void print(History h, Object o) {
HistoryType ht = h.type
Buffer result = create ()
Buffer one = create ()
Buffer two = create ()
string s
if (ht==modifyObject) { //Get only Modified Objects
if (h.attrName == "Object Text"){ // Get mod only in Object Test
string oldV = h.plainOldValue
string newV = h.plainNewValue
one = oldV
two = newV
diff(result, one, two, true)
displayRichWithColor (stringOf(result) "\n \n")
}
}
}
// Main program
History h
int cont = 1
int a = 1
string s
for h in obj do{
cont++ //Get all history entry
}
for h in obj do {
a++
if (a == cont){ // get just the last change
print (h, obj)
//s = obj."Object Text"
//print s
}
}
cont = 1
|
Re: How to print the differences in Object Text History Peter_Albert - Wed Feb 09 07:05:42 EST 2011
If you really want to display the latest modification of "Object Text" you can use the layout DXL below.
pragma runLim, 0
// -----------------------------------------------------------------------------
void RichText2Text(Buffer buf)
{ // Replace a rich text buffer by its plain text
RichTextParagraph rp
Buffer tmp = create
tmp = ""
for rp in stringOf buf do
{ // Loop through rich text paragraphs
if (length tmp > 0){tmp += "\n"}
tmp += rp.text
} // Loop through rich text paragraphs
buf = stringOf tmp
delete tmp
} // Replace a rich text buffer by its plain text
// -----------------------------------------------------------------------------
void displayLastHistory()
{ // Display the last Object Text modification from the history
History hist
HistoryType histType
string histAttName
Buffer lastChangeBuf = create
Buffer currObjectTextBuf = create
Buffer diffResultBuf = create
bool foundObjTextHistory
foundObjTextHistory = false
for hist in obj do
{ // Loop through object history
histType = hist.type
histAttName = ""
if (histType == modifyObject)
{ // Object modification
histAttName = hist.attrName
if (histAttName == "Object Text")
{ // Modification of "Object Text"
lastChangeBuf = hist.oldValue
currObjectTextBuf = hist.newValue
foundObjTextHistory = true
} // Modification of "Object Text"
} // Object modification
} // Loop through object history
if (foundObjTextHistory)
{ // History contains at least one modification of "Object Text"
RichText2Text(lastChangeBuf)
RichText2Text(currObjectTextBuf)
if (lastChangeBuf != currObjectTextBuf)
{ // Do not show modifications of text formatting only
diff(diffResultBuf, lastChangeBuf, currObjectTextBuf)
} // Do not show modifications of text formatting only
displayRich tempStringOf diffResultBuf
} // History contains at least one modification of "Object Text"
delete diffResultBuf
delete lastChangeBuf
delete currObjectTextBuf
} // Display the last Object Text modification from the history
// -----------------------------------------------------------------------------
displayLastHistory()
It really helped me and a I got my code improved. Thanks |
Re: How to print the differences in Object Text History lupsanto - Wed Feb 09 07:30:32 EST 2011
Your script only reports the modification of "Object Text" if that is the last history entry at all. If there is a different modification after that one, e.g. the modification of a different attribute, or moving the object, then nothing is displayed.
pragma runLim, 0
// -----------------------------------------------------------------------------
void displayLastHistory()
{ // Display the last Object Text modification from the history
History hist
HistoryType histType
string histAttName
Buffer lastChangeBuf = create
Buffer currObjectTextBuf = create
Buffer diffResultBuf = create
bool foundObjTextHistory
foundObjTextHistory = false
for hist in obj do
{ // Loop through object history
histType = hist.type
histAttName = ""
if (histType == modifyObject)
{ // Object modification
histAttName = hist.attrName
if (histAttName == "Object Text")
{ // Modification of "Object Text"
lastChangeBuf = hist.plainOldValue
currObjectTextBuf = hist.plainNewValue
foundObjTextHistory = true
} // Modification of "Object Text"
} // Object modification
} // Loop through object history
if (foundObjTextHistory)
{ // History contains at least one modification of "Object Text"
if (lastChangeBuf != currObjectTextBuf)
{ // Do not show modifications of text formatting only
diff(diffResultBuf, lastChangeBuf, currObjectTextBuf)
} // Do not show modifications of text formatting only
displayRichWithColor tempStringOf diffResultBuf
} // History contains at least one modification of "Object Text"
delete diffResultBuf
delete lastChangeBuf
delete currObjectTextBuf
} // Display the last Object Text modification from the history
// -----------------------------------------------------------------------------
displayLastHistory()
|
Re: How to print the differences in Object Text History Peter_Albert - Wed Feb 09 08:13:29 EST 2011
Your script only reports the modification of "Object Text" if that is the last history entry at all. If there is a different modification after that one, e.g. the modification of a different attribute, or moving the object, then nothing is displayed.
pragma runLim, 0
// -----------------------------------------------------------------------------
void displayLastHistory()
{ // Display the last Object Text modification from the history
History hist
HistoryType histType
string histAttName
Buffer lastChangeBuf = create
Buffer currObjectTextBuf = create
Buffer diffResultBuf = create
bool foundObjTextHistory
foundObjTextHistory = false
for hist in obj do
{ // Loop through object history
histType = hist.type
histAttName = ""
if (histType == modifyObject)
{ // Object modification
histAttName = hist.attrName
if (histAttName == "Object Text")
{ // Modification of "Object Text"
lastChangeBuf = hist.plainOldValue
currObjectTextBuf = hist.plainNewValue
foundObjTextHistory = true
} // Modification of "Object Text"
} // Object modification
} // Loop through object history
if (foundObjTextHistory)
{ // History contains at least one modification of "Object Text"
if (lastChangeBuf != currObjectTextBuf)
{ // Do not show modifications of text formatting only
diff(diffResultBuf, lastChangeBuf, currObjectTextBuf)
} // Do not show modifications of text formatting only
displayRichWithColor tempStringOf diffResultBuf
} // History contains at least one modification of "Object Text"
delete diffResultBuf
delete lastChangeBuf
delete currObjectTextBuf
} // Display the last Object Text modification from the history
// -----------------------------------------------------------------------------
displayLastHistory()
However, I still have a problem... It is not working with OLE objects, such as figures and tables into DOC file for example. Do you have any idea how to also get this part of Object Text? Thanks a million and I am happy that I also could bring something new to you. |
Re: How to print the differences in Object Text History lupsanto - Wed Feb 09 09:29:05 EST 2011 There is no easy way for comparing OLE objects, and the situation is worse due to the fact that OLE objects seem to be modified just by looking at them. I vaguely remember a thread on the issue. Regards, Peter |
Re: How to print the differences in Object Text History Peter_Albert - Wed Feb 09 09:49:22 EST 2011 Any idea? |
Re: How to print the differences in Object Text History lupsanto - Wed Feb 09 09:54:55 EST 2011
Well, I have modified the script below such that if either the old or the new value of the last modification of Object Text contains OLE objects, then it displays both values instead of the difference.
pragma runLim, 0
// -----------------------------------------------------------------------------
int oleCount(string sInput)
{ // Count OLE objects in rich text string
RichTextParagraph rp
RichText rt
int nOLE = 0
for rp in sInput do
{ // Loop through rich text paragraphs
for rt in rp do
{ // Loop through rich text chunks
if (rt.isOle){nOLE++}
} // Loop through rich text chunks
} // Loop through rich text paragraphs
return nOLE
} // Count OLE objects in rich text string
// -----------------------------------------------------------------------------
void displayLastHistory()
{ // Display the last Object Text modification from the history
// If the "Object Text" contains an OLE object, just display the
// old and new versions
History hist
HistoryType histType
string histAttName
Buffer lastChangeBuf = create
Buffer currObjectTextBuf = create
Buffer diffResultBuf = create
string sOldValue
string sNewValue
int nOLE
int iHist
int nLastModificationOfObjectText
iHist = 0
nLastModificationOfObjectText = 0
for hist in obj do
{ // Loop through object history and get last modification of Object Text
iHist++
histType = hist.type
histAttName = ""
if (histType == modifyObject)
{ // Object modification
histAttName = hist.attrName
if (histAttName == "Object Text")
{ // Modification of "Object Text"
nLastModificationOfObjectText = iHist
} // Modification of "Object Text"
} // Object modification
} // Loop through object history and get last modification of Object Text
iHist = 0
for hist in obj do
{ // Loop through object history; only work on last modification of Object Text
iHist++
if (iHist == nLastModificationOfObjectText)
{ // Last modification of "Object Text"
sOldValue = hist.oldValue
sNewValue = hist.newValue
nOLE = oleCount(sOldValue) + oleCount(sNewValue)
//display nOLE "\n"
if (nOLE == 0)
{ // No OLE objects
lastChangeBuf = hist.plainOldValue
currObjectTextBuf = hist.plainNewValue
if (lastChangeBuf != currObjectTextBuf)
{ // Do not show modifications of text formatting only
diff(diffResultBuf, lastChangeBuf, currObjectTextBuf)
displayRichWithColor tempStringOf diffResultBuf
} // Do not show modifications of text formatting only
} // No OLE objects
else
{ // At least one OLE object in old or new value
display "Old Value"
displayRich sOldValue
display "\nNew Value"
displayRich sNewValue
} // At least one OLE object in old or new value
} // Last modification of "Object Text"
} // Loop through object history; only work on last modification of Object Text
delete diffResultBuf
delete lastChangeBuf
delete currObjectTextBuf
} // Display the last Object Text modification from the history
displayLastHistory()
|
Re: How to print the differences in Object Text History Peter_Albert - Wed Feb 09 10:33:00 EST 2011
Well, I have modified the script below such that if either the old or the new value of the last modification of Object Text contains OLE objects, then it displays both values instead of the difference.
pragma runLim, 0
// -----------------------------------------------------------------------------
int oleCount(string sInput)
{ // Count OLE objects in rich text string
RichTextParagraph rp
RichText rt
int nOLE = 0
for rp in sInput do
{ // Loop through rich text paragraphs
for rt in rp do
{ // Loop through rich text chunks
if (rt.isOle){nOLE++}
} // Loop through rich text chunks
} // Loop through rich text paragraphs
return nOLE
} // Count OLE objects in rich text string
// -----------------------------------------------------------------------------
void displayLastHistory()
{ // Display the last Object Text modification from the history
// If the "Object Text" contains an OLE object, just display the
// old and new versions
History hist
HistoryType histType
string histAttName
Buffer lastChangeBuf = create
Buffer currObjectTextBuf = create
Buffer diffResultBuf = create
string sOldValue
string sNewValue
int nOLE
int iHist
int nLastModificationOfObjectText
iHist = 0
nLastModificationOfObjectText = 0
for hist in obj do
{ // Loop through object history and get last modification of Object Text
iHist++
histType = hist.type
histAttName = ""
if (histType == modifyObject)
{ // Object modification
histAttName = hist.attrName
if (histAttName == "Object Text")
{ // Modification of "Object Text"
nLastModificationOfObjectText = iHist
} // Modification of "Object Text"
} // Object modification
} // Loop through object history and get last modification of Object Text
iHist = 0
for hist in obj do
{ // Loop through object history; only work on last modification of Object Text
iHist++
if (iHist == nLastModificationOfObjectText)
{ // Last modification of "Object Text"
sOldValue = hist.oldValue
sNewValue = hist.newValue
nOLE = oleCount(sOldValue) + oleCount(sNewValue)
//display nOLE "\n"
if (nOLE == 0)
{ // No OLE objects
lastChangeBuf = hist.plainOldValue
currObjectTextBuf = hist.plainNewValue
if (lastChangeBuf != currObjectTextBuf)
{ // Do not show modifications of text formatting only
diff(diffResultBuf, lastChangeBuf, currObjectTextBuf)
displayRichWithColor tempStringOf diffResultBuf
} // Do not show modifications of text formatting only
} // No OLE objects
else
{ // At least one OLE object in old or new value
display "Old Value"
displayRich sOldValue
display "\nNew Value"
displayRich sNewValue
} // At least one OLE object in old or new value
} // Last modification of "Object Text"
} // Loop through object history; only work on last modification of Object Text
delete diffResultBuf
delete lastChangeBuf
delete currObjectTextBuf
} // Display the last Object Text modification from the history
displayLastHistory()
Some OLE object are shown and other no... I dont really unsderstand why... Thaks anyway. |
Re: How to print the differences in Object Text History lupsanto - Wed Feb 09 11:04:44 EST 2011
See below the final version that works perfectlly:
/**
* Created by: lupsanto
* Creation date: 09/02/2011
*
* DXL Editor is provided by SODIUS (www.dxleditor.com)
*/
/*
* This script crates a LAYOUT DXL column that shows the Object Text before the CP applied.
* If the previous Object Text has no OLE object, the script shows the difference between the Old and the New Object Text
* If the previous Object Text has at least one OLE object, the script shows the fully old Object Text and do not show
* the differences between the old and new.
*/
pragma encoding, "UTF-8"
pragma runLim, 0
// -----------------------------------------------------------------------------
int oleCount(string sInput)
{ // Count OLE objects in rich text string
RichTextParagraph rp
RichText rt
int nOLE = 0
for rp in sInput do
{ // Loop through rich text paragraphs
for rt in rp do
{ // Loop through rich text chunks
if (rt.isOle){nOLE++}
} // Loop through rich text chunks
} // Loop through rich text paragraphs
return nOLE
} // Count OLE objects in rich text string
// -----------------------------------------------------------------------------
void displayLastHistory()
{ // Display the last Object Text modification from the history
History hist
HistoryType histType
string histAttName
Buffer lastChangeBuf = create
Buffer currObjectTextBuf = create
Buffer diffResultBuf = create
bool foundObjTextHistory = false
bool isOldEmpty = false
string s //String to save the old value not in PLAIN
int i = 0 // Counter off OLEs in Object Text
for hist in obj do
{ // Loop through object history
histType = hist.type
histAttName = ""
if (histType == modifyObject)
{ // Object modification
histAttName = hist.attrName
if (histAttName == "Object Text" || histAttName == "Object Heading")
{ // Modification of "Object Text"
lastChangeBuf = hist.plainOldValue
currObjectTextBuf = hist.plainNewValue
s = hist.oldValue
i = oleCount (s)
foundObjTextHistory = true
if (null stringOf(lastChangeBuf)){
isOldEmpty = true
}
} // Modification of "Object Text"
} // Object modification
} // Loop through object history
if (foundObjTextHistory)
{ // History contains at least one modification of "Object Text"
if (lastChangeBuf != currObjectTextBuf)
{ // Do not show modifications of text formatting only
diff(diffResultBuf, lastChangeBuf, currObjectTextBuf)
} // Do not show modifications of text formatting only
if (isOldEmpty){
display "Was: (Insertion)"
}
else{
display "Was: (Modification)"
}
if (i>0){
displayRich "\n" s //In case of has an OLE, show the full OLD VALUE
}
else{
displayRichWithColor "\n" tempStringOf diffResultBuf
}
} // History contains at least one modification of "Object Text"
delete diffResultBuf
delete lastChangeBuf
delete currObjectTextBuf
}
// Display the last Object Text modification from the history
// -----------------------------------------------------------------------------
displayLastHistory()
|
Re: How to print the differences in Object Text History lupsanto - Wed Feb 09 11:59:42 EST 2011
See below the final version that works perfectlly:
/**
* Created by: lupsanto
* Creation date: 09/02/2011
*
* DXL Editor is provided by SODIUS (www.dxleditor.com)
*/
/*
* This script crates a LAYOUT DXL column that shows the Object Text before the CP applied.
* If the previous Object Text has no OLE object, the script shows the difference between the Old and the New Object Text
* If the previous Object Text has at least one OLE object, the script shows the fully old Object Text and do not show
* the differences between the old and new.
*/
pragma encoding, "UTF-8"
pragma runLim, 0
// -----------------------------------------------------------------------------
int oleCount(string sInput)
{ // Count OLE objects in rich text string
RichTextParagraph rp
RichText rt
int nOLE = 0
for rp in sInput do
{ // Loop through rich text paragraphs
for rt in rp do
{ // Loop through rich text chunks
if (rt.isOle){nOLE++}
} // Loop through rich text chunks
} // Loop through rich text paragraphs
return nOLE
} // Count OLE objects in rich text string
// -----------------------------------------------------------------------------
void displayLastHistory()
{ // Display the last Object Text modification from the history
History hist
HistoryType histType
string histAttName
Buffer lastChangeBuf = create
Buffer currObjectTextBuf = create
Buffer diffResultBuf = create
bool foundObjTextHistory = false
bool isOldEmpty = false
string s //String to save the old value not in PLAIN
int i = 0 // Counter off OLEs in Object Text
for hist in obj do
{ // Loop through object history
histType = hist.type
histAttName = ""
if (histType == modifyObject)
{ // Object modification
histAttName = hist.attrName
if (histAttName == "Object Text" || histAttName == "Object Heading")
{ // Modification of "Object Text"
lastChangeBuf = hist.plainOldValue
currObjectTextBuf = hist.plainNewValue
s = hist.oldValue
i = oleCount (s)
foundObjTextHistory = true
if (null stringOf(lastChangeBuf)){
isOldEmpty = true
}
} // Modification of "Object Text"
} // Object modification
} // Loop through object history
if (foundObjTextHistory)
{ // History contains at least one modification of "Object Text"
if (lastChangeBuf != currObjectTextBuf)
{ // Do not show modifications of text formatting only
diff(diffResultBuf, lastChangeBuf, currObjectTextBuf)
} // Do not show modifications of text formatting only
if (isOldEmpty){
display "Was: (Insertion)"
}
else{
display "Was: (Modification)"
}
if (i>0){
displayRich "\n" s //In case of has an OLE, show the full OLD VALUE
}
else{
displayRichWithColor "\n" tempStringOf diffResultBuf
}
} // History contains at least one modification of "Object Text"
delete diffResultBuf
delete lastChangeBuf
delete currObjectTextBuf
}
// Display the last Object Text modification from the history
// -----------------------------------------------------------------------------
displayLastHistory()
But the last script from lupsanto only shows the change based on the last modification made instead of showing all changes made compared to a baseline - is this what was expected? I'm curious to know why it's important to only see the last change made. Paul Miller Melbourne, Australia |
Re: How to print the differences in Object Text History SystemAdmin - Wed Feb 09 15:23:26 EST 2011 Paul Miller Melbourne, Australia In my case, it is not necessary to check the changes of a changes... I just want to see the last modification, because it is the current requirement. Due to we close the baselines very often, the last modification view almost is a comparison between the current and the last baseline. Thanks a million about all of the help! Lucas |
Re: How to print the differences in Object Text History Peter_Albert - Wed Feb 09 10:33:00 EST 2011
Well, I have modified the script below such that if either the old or the new value of the last modification of Object Text contains OLE objects, then it displays both values instead of the difference.
pragma runLim, 0
// -----------------------------------------------------------------------------
int oleCount(string sInput)
{ // Count OLE objects in rich text string
RichTextParagraph rp
RichText rt
int nOLE = 0
for rp in sInput do
{ // Loop through rich text paragraphs
for rt in rp do
{ // Loop through rich text chunks
if (rt.isOle){nOLE++}
} // Loop through rich text chunks
} // Loop through rich text paragraphs
return nOLE
} // Count OLE objects in rich text string
// -----------------------------------------------------------------------------
void displayLastHistory()
{ // Display the last Object Text modification from the history
// If the "Object Text" contains an OLE object, just display the
// old and new versions
History hist
HistoryType histType
string histAttName
Buffer lastChangeBuf = create
Buffer currObjectTextBuf = create
Buffer diffResultBuf = create
string sOldValue
string sNewValue
int nOLE
int iHist
int nLastModificationOfObjectText
iHist = 0
nLastModificationOfObjectText = 0
for hist in obj do
{ // Loop through object history and get last modification of Object Text
iHist++
histType = hist.type
histAttName = ""
if (histType == modifyObject)
{ // Object modification
histAttName = hist.attrName
if (histAttName == "Object Text")
{ // Modification of "Object Text"
nLastModificationOfObjectText = iHist
} // Modification of "Object Text"
} // Object modification
} // Loop through object history and get last modification of Object Text
iHist = 0
for hist in obj do
{ // Loop through object history; only work on last modification of Object Text
iHist++
if (iHist == nLastModificationOfObjectText)
{ // Last modification of "Object Text"
sOldValue = hist.oldValue
sNewValue = hist.newValue
nOLE = oleCount(sOldValue) + oleCount(sNewValue)
//display nOLE "\n"
if (nOLE == 0)
{ // No OLE objects
lastChangeBuf = hist.plainOldValue
currObjectTextBuf = hist.plainNewValue
if (lastChangeBuf != currObjectTextBuf)
{ // Do not show modifications of text formatting only
diff(diffResultBuf, lastChangeBuf, currObjectTextBuf)
displayRichWithColor tempStringOf diffResultBuf
} // Do not show modifications of text formatting only
} // No OLE objects
else
{ // At least one OLE object in old or new value
display "Old Value"
displayRich sOldValue
display "\nNew Value"
displayRich sNewValue
} // At least one OLE object in old or new value
} // Last modification of "Object Text"
} // Loop through object history; only work on last modification of Object Text
delete diffResultBuf
delete lastChangeBuf
delete currObjectTextBuf
} // Display the last Object Text modification from the history
displayLastHistory()
Peter |
Re: How to print the differences in Object Text History Peter_Albert - Thu Feb 10 05:33:48 EST 2011 Thanks, Lucas, in Brazil |
Re: How to print the differences in Object Text History lupsanto - Thu Feb 10 05:42:29 EST 2011 First of all: an interesting thread about history here, very useful! My question to the topic would be: Is there any possibility to copy the history entries with the object? If I do copy manually the module (ctrl+c / ctrl+v), all the module and object history will be copied with. How could I do this by dxl? I have a script to get all the objects of a module and copy them into a newly created module. But the history is gone. How could I place the old history into the new module? Thanks in advance, vasgyuszi |
Re: How to print the differences in Object Text History vasgyuszi - Fri Apr 08 11:55:36 EDT 2011 Are you sure about this? When an object is copied and then pasted, DOORS will reset the history of the created copy as this is effectively a new object. The very first history record in the created copy will indicate the Absolute Number (the UID without the prefix) of the object that was the source of the copy. AFAIK, you cannot copy the history records of one object and write them into another object. You wrote that you are copying objects from one module to a newly created module - instead of copying the objects to the newly created module, a possible alternative is to use the DOORS 'Archive' feature to store a copy of the module in a file outside of DOORS, then use the DOORS 'Restore' function to restore the archive in the same database which will be an exact copy of the module (including all history) - then you just delete the objects that you don't want. That's the only way that I can think of where you can keep the history of a copied object. Paul Miller Melbourne, Australia |
Re: How to print the differences in Object Text History vasgyuszi - Fri Apr 08 11:55:36 EDT 2011 |
Re: How to print the differences in Object Text History Peter_Albert - Thu Feb 10 05:33:48 EST 2011 Is there a way to program this option to check and uncheck it. Or better even monitor it. Thanks Jester |
Re: How to print the differences in Object Text History jester76 - Thu Nov 29 12:41:09 EST 2012
|
Re: How to print the differences in Object Text History llandale - Thu Nov 29 15:54:05 EST 2012
Thanks Jester |
Re: How to print the differences in Object Text History jester76 - Fri Nov 30 11:43:34 EST 2012 Regards Jester |
Re: How to print the differences in Object Text History jester76 - Fri Nov 30 12:33:21 EST 2012
|
Re: How to print the differences in Object Text History llandale - Fri Nov 30 13:49:47 EST 2012
Jester |
Re: How to print the differences in Object Text History Would there be a way to use the original DXL script that DOORS has as an example, but only show objects with changed text? All of my objects are filtered as changed within the last hour because I deleted a linkset. And now I have no good way of filtering it. |
Re: How to print the differences in Object Text History
How to Take Print Without Objects?
Follow the steps below if you do not want to print objects in a worksheet.
1 Suppose you have some data and a button in your worksheet and you wantonly the data to be printed without the button.
2 Right click on the button which you do not want to print and select 'Format Control'.
3 Select Properties in ' Format Control' . Uncheck ' Print Object'.
4 Click OK. When you select the 'print preview', Now you can see the print out without the object.
Attachments How to Take Print without Objects.pdf |