Project views

N

Norin

hi,
project view id seems to be stored in a session. When i navigate from one
project to another for which no view id has been explicitly set , the view id
of last visited project is applied. Is there a way to forcefully set or clear
these view ids.
 
B

Brian K - Project MVP

Norin said:
hi,
project view id seems to be stored in a session. When i navigate from one
project to another for which no view id has been explicitly set , the view
id
of last visited project is applied. Is there a way to forcefully set or
clear
these view ids.

What is it that you want to do exactly? maybe we can suggest something.
 
N

Norin

I have a project say project1 that has been displayed on web through a custom
URL. This custom URL has an attribute of view id set to a certain value. Now
when I navigate from this custom URL to another project in project center
view , this second project doesn’t have parameter of view id(as it is in
project center view and it is not a custom URL) , so this project is
displayed with the old view id of poject1 which is totally irrelevant.
 
E

Ed Morrison

You start off with a URL such as
..../ProjectReport.asp?_projectID=102&_viewID=31&noBanter=0. This is a view
of the project plan's detail. Next you are navigating to the Project Center
where you see the list of project plans (url .../PortfolioView.asp?_oid=-1).
You then click on a Project and go to the details page of the project (a
different project than you first viewed) and it is not retaining the
_viewID. In my example you want it to go to _viewID=31.

Is my summarization of your issue correct?

If so, first verify your url. It should be in the format above. If you are
still having difficulties, check your security. You be accessing the first
project using a category that has the rights to use the first view. You may
be accessing the second project using a different category that does not
have rights on the first view.

Hope this helps.
--
Ed Morrison
msProjectExperts
"We wrote the books on Project Server"
http://www.msprojectexperts.com
FAQ - http://www.projectserverexperts.com
 
N

Norin

The problem is that the viewid = 31 is retained for the second project(the
one displayed in projecty center). Now if the user category does not have
rights to view this project with viewid =31,permission denied error will be
generated, which should not be happening. wht i want is to associate projects
in project center with a default view. I know that project 2003 doesnot
maintain any relationship between projects and views...but is there anyother
way around?
 
E

Ed Morrison

You are correct in that the user always goes to the last view used. Out of
the box, project server does not have the ability to change the view based
on the project you are using. But their is always another way...

Try creating a asp or aspx page called Default View and import it into
Project Server. This page can do a redirect to the appropriate view based
on the projid value.

Let us know if this works for you.

--
Ed Morrison
msProjectExperts
"We wrote the books on Project Server"
http://www.msprojectexperts.com
FAQ - http://www.projectserverexperts.com



Norin said:
The problem is that the viewid = 31 is retained for the second project(the
one displayed in projecty center). Now if the user category does not have
rights to view this project with viewid =31,permission denied error will
be
generated, which should not be happening. wht i want is to associate
projects
in project center with a default view. I know that project 2003 doesnot
maintain any relationship between projects and views...but is there
anyother
way around?
 
N

Norin

can u plz guide me how to go about it...

Ed Morrison said:
You are correct in that the user always goes to the last view used. Out of
the box, project server does not have the ability to change the view based
on the project you are using. But their is always another way...

Try creating a asp or aspx page called Default View and import it into
Project Server. This page can do a redirect to the appropriate view based
on the projid value.

Let us know if this works for you.

--
Ed Morrison
msProjectExperts
"We wrote the books on Project Server"
http://www.msprojectexperts.com
FAQ - http://www.projectserverexperts.com
 
E

Ed Morrison

One way to do this is to create an asp page using vb script. Use a select
case method with a case for each possible project id (or a database
reference table) returning a view id. Then use the redirect command to
change the view using the view id.

Place this new file in the ..Program Files\Microsoft Office Project Server
2003\IIS Virtual Root\VIEWS\Portfolio\ASP

On the admin page of PWA, go to Manage views. Click on the Get Additional
views button. Change the security and name for the newly added view by
selecting it and clicking Modify View. Test.

Please let us know how this works for you.
--
Ed Morrison
msProjectExperts
"We wrote the books on Project Server"
http://www.msprojectexperts.com
FAQ - http://www.projectserverexperts.com
 
N

Norin

Thankz Ed it worked like a charm.
there is one more thing that i wud like to know....is there a way to limit
the number of custom views displayed to a user. i wud like this to happen cuz
by setting simpleui=15 in the querystring, all the views appear in the
dropdown for which the user category has permission. I wud like to limit this
dropdown of views to only those that are relevant to the project in question.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top