Problem with iLogic rule for Update Copied Properties
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all
I've this rule (named CopiaPropietà) in my .idw and i've put the rune in the Event Trigger, After Open Document
Dim oControlDef As ControlDefinition
oControlDef = ThisApplication.CommandManager.ControlDefinitions.Item("UpdateCopiedModeliPropertiesCmd")
oControlDef.Execute2(True)
But when I open the idw, it show me an error
Error on line 5 in rule: CopiaProprietà, in document: DV33072.idw
Errore non specificato. (Exception from HRESULT: 0x80004005 (E_FAIL))
I've try to change This
oControlDef.Execute2(True)
to This
oControlDef.Execute
But it work differently. if I use .Execute it trigger the dialogbox to confirm the update copied properties.
Instead with .Execute2(True) it show the error after open the document.
But if i use Execute2(True), and run the rule manually after open the document, nothing visually happend. None windows pop up.
There is a solution with this?
Maybe i've to put in the event trigger, Before Safe Document, and not in After Open Document?
Thanks all