Solved

Display child links in parent form

Posted on 2003-11-18
8
324 Views
Last Modified: 2013-12-18
I have a form that has responses. When the user views the
parent document from a view I want them to see links to all
the response documents that belong to the parent. how can this be done?
0
Comment
Question by:apparition
  • 5
  • 2
8 Comments
 
LVL 31

Expert Comment

by:qwaletee
ID: 9771324
Set up the view s it displays response hierarchy (a view property), add a column of type "response column," and add | @AllChildren to the view selection.
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9771339
(Use | @AllDescendants instead of | @AllChildren if there are multiple levels of children you wish to display.)
0
 
LVL 5

Author Comment

by:apparition
ID: 9771349
I can already see the document hierachy in the view. I want to see
the child links when the user actually clicks to view the document.
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 35 total points
ID: 9771363
Now, reading your question, it is a little unclear whether you meant you wanted to display all the chidren in the view, or if tyou wanted links on the parent form itself.  (The confusing thing is you mention "parent form" in the title, but start with "views the parent document from the view").

To show al immediate children directly on theform:

1) Build a hidden view named (ByParent)

2) make the view NOT show response hierarchy

3) Column 1 is categorized, formula @Text($Ref)

4) Save the new view

5) Open the parent form in designer

6) Choose Create -> Embedded Element -> View

7) Select the new view, click OK

8) In the code pane at the bottom, click on the Show Single Category section for the embedded view

9) Type formula @Text(@DocumentUniqueID)
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Author Comment

by:apparition
ID: 9772137
Getting a category not found error
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9773115
That woudl occur for any parents that have no children (is that an oxymoron?).  To get around this, we'll code a check to see if there are any documents with the crrect key.  if there are none, display no view.  If there are any, display the view.

NB: Step 3a should have been "add at least a second column to teh new view; this will be what displays to the user for each child, on the parent form."

Change the view from a fixed name to a formula.  the formula should be:
check := @DbLookup("":"NoCache"; ""; "(ByParent)"; @Text(@DocumentUniqueID); 1);
@If(@IsError(check); NOTHING_TO_DISPLAY; "(ByParent)")

Note: the above formula is to calculate which view is selected.  The formula from the earlier post is for which category to display.  View select and Show single category are separate things.
0
 

Expert Comment

by:marefin
ID: 9773750
I think I know why this might be happening......the children are not realy children
they are just older versions of the form would this have something to do with it?
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9776924
Yes, it would.  You need to have some sort of key value tieing the documents together, categorize on that key, and use that key as the show-single-category.  In th case of parent/child, the key is tehparent unique ID, which is obtainable atthe parent as @Text(@DocumentUniqueID) - hence teh single category... and in teh children as @Text($Ref), hence the view categorized column.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lotus Notes in Windows 8 Appearence Issue 15 741
Lotus notes email code 2 194
How to connect (using VBA) to a IBM Notes webmail server 3 233
Installing Lotus Notes on Citrix XenApp 3 105
For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now