The problem has been solved:
I scroll through all the objects in the current datawindow and dynamically create the objects in a new datawindow that serves as a base template.
I also detected an error in code that generated duplicates some objects.
FOR THE LAST TIME, any idea for the following?
The application dynamically creates tooltip in line and oval objects so that the user is informed, when the user finishes modifying when saving I make a cleaning removing the tooltip in the following way:
If dw_1.Describe( ls_Valor + ".Tooltip.Enabled" ) = "1" Then
dw_1.Modify( ls_Valor + ".Tooltip.Enabled=0" )
dw_1.Modify( ls_Valor + ".Tooltip.Title=''" )
dw_1.Modify( ls_Valor + ".Tooltip.Tip=''" )
End If
Then I save the DW to PSR format but if I edit it, it is not removing the tooltip entries, although it has no content. This I understand is NOT correct.
line(name=a01481630 pointer="Help!" tag="02760008148439" band=detail background.mode="0" background.color="16777215" tooltip.enabled="0" tooltip.tip="" tooltip.title="" tooltip.isbubble="1" tooltip.textcolor="0" tooltip.backcolor="12632256" tooltip.icon="1" tooltip.maxwidth="0" tooltip.transparency="0" tooltip.delay.visible="32000" tooltip.delay.initial="0" tooltip.hasclosebutton="0" pen.style="0" pen.width="1" pen.color="12632256" x1="19211" y1="5519" x2="19278" y2="5487" )
Any possible solutions?
Thank you.
SOLUTION
The solution has been to go through each of the current objects and create new objects without the tooltip property.
The problem is the one already mentioned in this post about the way the DW works with the tooltip in the objects. When you create a DW, no object contains tooltip properties, when you add a tooltip to an object even if you deactivate it internally, all its properties exist. I think it would be necessary that in the Optimize for DW function the deactivated tooltip is removed internally. Besides, from code we can call a function and perform an Optimize for a DW.