Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic System Architect (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
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.
Answer This question was answered by Dale Moore, on Wednesday, November 8, 2006 1:21 AM

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 )
 8-Nov-2006 01:13
User is offline View Users Profile Print this message


Dale Moore

Posts: 23
Joined: 29-Jun-2006

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!!!


Report this to a Moderator Report this to a Moderator
 8-Nov-2006 01:21
User is offline View Users Profile Print this message


Dale Moore

Posts: 23
Joined: 29-Jun-2006

Answer 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 )
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic System Architect forum.
There are currently 1 users logged in.
The most users ever online was 16 on 30-Oct-2008 at 14:46.
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.