Mimicing Relational Views

PROBLEM:I’m setting up a Project Tracking Database for a client who wants to see all project information in one form, not in Parent/Child documents; as well as have the deliverable data broken down as separate line items in a view. Each “Project” has multiple possible deliverables and activities. Each of these deliverables should show up in a summary view with it’s own due date, owner, etc.

SOLUTION:

Should I?

  1. Upon save, write descendants for each deliverable with an agent so that the view has required elements?

  2. Have users create the responses in the standard way, and then pull that information into the parent? (don’t really wanna do it this way, for useability reasons)

  3. Write a custom view to break out all the dates and display the details? (if this is the way, please give me an overview of how to do this)

  4. Something else I haven’t thought of?

  5. Tell the client to forget it???

Thanks!

Subject: Mimicing Relational Views

What about a single category view? I’m assuming that there is some unique key between the project and the deliverables. For the deliverables, build a categorized view off of this key and then add a single category view to your project form so that when it is opened, it also displays the deliverables.

Subject: RE: Mimicing Relational Views

So then, are you suggesting that I either have the user create the child docs, or I create them with an Agent? Once I do that, I know how to create the views. It’s just that currently, the deliverables are line items within the overall project document. I have to break them out as separate entities within the view, or I cannot display the associated owner, status, due date of the deliverable.

Subject: RE: Mimicing Relational Views

I guess I was thinking that you already had child docs for the deliverables.

Is this for the web or the Notes Client? If for the web, you could create an HTML view that will do this for you. You would need to build your own … for each deliverable.

Make sense?

Subject: Mimicing Relational Views

Ok, thanks for the feedback, but I know how to create the views. The question is how do I create the descendant documents? They do not exists, and I’m trying to decide how to create them or if there is a work around.

Subject: RE: Mimicing Relational Views

You don’t have to create them. If the data is in the project doc and if this is for the web, you can create an html view that will display the deliverables on a separate row under the project info.

You could even load the data as xml from a ?ReadViewEntries URL and then transform the data using XSLT into your desired output.

By the way, how is your deliverable data stored in the project doc? I’m guessing multi-value fields?

Subject: RE: Mimicing Relational Views

Yes… but the problem with that is that i need it to also display deliverable sorted by date, which would mean they cannot be listed under the project, but should be separate entries, i.e. within a calendar view. Also, the client is using a notes client, not a web client.

Subject: RE: Mimicing Relational Views

Documents can both be in a hierarchy (for display under a “parent” umbrella, or as “line items” on a parent document’s form) and “free range”. That is true whether the hierarchy is a common category value or an actual main/response arrangement. (Responses can be displayed “flat” if the view setting “Show response documents in a hierarchy” is not selected.)

Subject: Mimicing Relational Views

Hi Monica -

I just finished writing a PM application. What I did was allow the user to create the project document first through a wizard. It prompts the user for project demographics such as project team, start and end dates, etc. Then, the user could click another button to set up the milestones and deliverables. At first I had the milestone and deliverable documents created with the initial wizard interface. However, I discovered that some project managers just wanted to “register” the project first and get it on the board. They may even decide based on priority to cancel the project before any milestones are created or reached.

I created the milestones and deliverables through lotuscript and link back to the project document through UNID. I use reference documents to bring over information about the milestone such as default person in charge and MS Office template (for deliverables). This way, if the PM process changes the database admin can easily change the system to accomodate.

I show the milestones and deliverables in an embedded view on the project document. I also have status reports, meeting minutes, project roles and project time entries on the project document in embedded views.

I hope this answers your question.

Melissa

Subject: RE: Mimicing Relational Views

Thanks… this is helpful. I guess I’m going to have to write some script to create the deliverables. I was hoping there is a way around this, as I am not an adept scripter, and will have to hardcode much of it. But I guess this is probably the best way to go.

Subject: Mimicing Relational Views

If your deliverables, milestones, etc, all contain a common project reference field (“project name”) the put all the forms into the view and categorize by that field (or set of fields). Then add a hidden column that will keep things in order. You don’t need to use a response document method at all.

View selection formula:

SELECT Form = “Project”:“Deliverable”:“Milestone”:and whatever.

Category column

ProjectName (from Project form):

ProjectName (from Deliverable form):

ProjectName (from Milestone form)

Hidden, sorted ascending order column, something like this:

@if( Category = “Investigate”;

@if( Form = “Project”; 0;

   Form = "Milestone"; 1;

   Form = "Deliverable"; 2;

   3 );

Category = “Plan”;

@if( Form = “Project”; 0;

   Form = "Milestone"; 1;

   Form = "Deliverable"; 2;

   3 );

Category = “Develop”;

@if( Form = “Project”; 0;

   Form = "Milestone"; 1;

   Form = "Deliverable"; 2;

   3 );

Category = “Deliverable”;

@if( Form = “Project”; 0;

   Form = "Milestone"; 1;

   Form = "Deliverable"; 2;

   3 );

Category = “Followthrough”;

@if( Form = “Project”; 0;

   Form = "Milestone"; 1;

   Form = "Deliverable"; 2;

   3 );

4 )