lock gantt view

G

Gabriele

hi to all,
i'm using project professional and i would like to lock a view (i.e.
the gantt diagram) using a macro, because the project can't be
read-only. How can I detect changes or drag and drop on the view and
disable them?
Is there another way to lock only the view and not the full project?
Any suggestion will be appreciated!!
Gabriele
 
J

Jan De Messemaeker

Hi,

By far the simplest solution is to keep the View and the related Table in a
file of your own and copy them into the file after it has been altered.
 
G

Gabriele

hi,
i am not sure about what you mean, could you make an example?or, if you
can, a step to step instruction? in addiction, in your previous post,
you said "after it has been altered", what how can i detech changes in
a gantt diagram?
thanks in advance for your help!!
gabriele
 
J

Jan De Messemaeker

Hi again,

If you really don't know what I wa talking about this may be long..

1. You CANNOT read the properties of a view so you CANNOT detect whather it
has been altered or not.

2. Fortunately, you don't have to know that; you can reset it to the
original state by all means.

3. To be able to reset it to the state you want you have to define and save
that state. In other words, you have to store the View (which has all the
formatting in it) and the Table (which is the list of columns in teh left
side, width and Title)

4. Make a file (could be a copy of the life file) and define the view you
want.
Also set the columns you want to show.
In View, More Views, note the name of the View (probably Gantt Chart)
Note that you can rename it etcetera, try it.
Also look at the View Menu, Table:..... and note the name of the table.
Save this file (let's call it Viewfile)

5. When teh file you want to fix the view of comes along, open it together
with Viewfile and go to Tools, Organizer, Views; copy yiour standard view
from the Viewfile innto the target file
Same with Tools, Organizer, Tables.

Hope this helps,
 
G

Gabriele

Hi Jan,
first of all I'd like to thank you for your availability :D
i understood your solution but i think it's not exactly what i'm
looking for...my problem is not to 'restore' the view to a certain one
aftere user's modification, but to ignore the changes an user can apply
to the tasks by dragging and dropping them
on the view. In the gantt chart, for example, you can drag and drop a
task to change its dependencies, but i would like to ignore these
movements, otherwise when the user saves the project the changes (task
changes, i mean) made through the view will be saved too.
I hope to have been clear

Jan De Messemaeker ha scritto:
 
J

Jan De Messemaeker

Hi Gabriiele,

OK, this is primarily a matter of vocabulary, you do not (only) want to keep
the VIEW (which is what the data look like) but (also) the data themselves.

Again, by far the simplest way is to rset the whole project to the state it
was before the user made the changes: before allowing access, take a backup.

If you want to analyse differences between two project versions there are
several methods:

- Before allowing changes, save a baseline, and use the available variance
data;
- Use the Compare Projects add-in (available on Project 2003) through the
Compare Projects Toolbar.

Greetings,
 
G

Gabriele

Hi Jan,
my aim is to permit tasks' changes only through some buttons I have on
a custom toolbar I created. I must forbit changes made through any
other way (drag and drop in the gantt chart, in the table view, etc..),
but to permit the ones made with my buttons, so I can't reset the
project to a certain template otherwise I couldn't apply these changes
too..
Many greetings
Gabriele

Jan De Messemaeker ha scritto:
 
J

Jan De Messemaeker

Hi Gabrielle,

Unfortunately once a change has been made one cannot know by which method
the change has been made.
Education and disciplin may be the only answers..
 
G

Gabriele

Hi Jan,
so can't I lock only the drag and drop in the view? Isn't there a
method as, for example, application_afterTaskDragged similar to
application_app_ProjectBeforeTaskChange2 where I can set cancel = true
?
Greetings,
Gabriele
 

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