![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: View problems Topic Summary: Created On: 5-Jul-2004 10:49 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi all
I know this topic has been up more than once before, but I've read all the old posts and still cant manage to save my views. here's some of my code; ---------Start--------- void insertColumn(int i, string attr, string t, int w){ insert column i attribute(column i, attr) width(column i, w) title(column i, t) } void createNewModule(string name){ templateModule = create(name, "Template Module","template-", 500, true) set(templateModule, read|modify|delete|control, "xallu") current = templateModule create object type "String" attribute "ModuleName" create object type "String" attribute "Version" create object type "String" attribute "ChangeOrder" create object type "String" attribute "Date" create object type "String" attribute "Affected" create object type "String" attribute "Info" zeroView(templateModule) //delete's all existing columns insertColumn(0, "Object Identifier", "ID", 70) insertColumn(1, "ModuleName", "Module Name", 70) insertColumn(2, "Version", "Text", 70) insertColumn(3, "ChangeOrder", "Change Order", 70) insertColumn(4, "Date", "Date", 70) insertColumn(5, "Affected", "Pages Affected", 70) insertColumn(6, "Info", "Info", 100) refresh current save view "saveView" } ---------End--------- What happends is that I get an error at save (last line) saying <> incorrectly concatenated tokens <> incorrect arguments for function (save) I've tried with different approaches, such as this example (found on the forum); ---------Start--------- string viewName="Comments view" ViewDef vd // Insert your code here to set the columns and save the view save view viewName // Get a handle on the newly created viewDef vd=get view viewName // Insert code to set the view options useCurrent(vd, false) useWindows(vd, false) useFiltering(vd, false) useSorting(vd, false) useShowExplorer(vd, true) useLevel(vd, true) // Save the viewDef for the view save(view viewName, vd) ---------End--------- but I allways end up with the same errors at save, What is the problem? |
|
![]() |
|
![]() |
|
Didn't really look at the code. Can you manually overwrite the view or perhaps you can "C"reate a view but cannot "M"odify it?
|
|
![]() |
|
![]() |
|
I ran your code Alex, but I can't reproduce the errors.
Is the code on the forum EXACTLY what you are running? ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
yes, its a copy.
Im running DOORS v7.0 Perhaps it is a rights- issue as Louie Landale suggested Will look into that. thanks for the help |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
View problems
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.