![]() |
Telelogic System Architect (steve huntington) | ![]() |
Topic Title: Adding a Reference Doc through VBA Topic Summary: Why doesn't my code work :-( Created On: 8-Nov-2006 01:13 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Never mind - seems you have to add a CR at the end of the line for a reference doc to work. Forget I spoke ![]() | |
![]() |
|
Does anyone know how to successfully add an item to the reference documents property through VBA? All my other fields update just fine using the following code:
saDefinition.SetProperty CStr(vArray(2, i)), Trim(CStr(vRecord(vArray(1, i)))) saDefinition.Save Where vArray(2,i) contains the name of the property to update (in this case "Reference Documents", and vRecord(vArray(1,i)) contains the value to set it to (in this case a hyperlink). For all other properties it seems to work fine, and when I use it to insert a Reference Document it seems to work ok, and doing a GetProperty on it (?sa2001.Encyclopedia.GetDefinitionById(30856).GetProperty("Reference Documents") I get the expected value - http://serverlist/lease.asp?get=AUB44701QY - so it seems to be in the definition record, but it doesn't show up when I check the properties of the definition under the explorer, even if I log out of SA and back in again. If I add the value manually in definition properties using the explorer, it works ok. HELP please!!! |
|
![]() |
|
![]() |
|
Never mind - seems you have to add a CR at the end of the line for a reference doc to work. Forget I spoke
![]() |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.