Solved

Embedded view

Posted on 2001-06-20
16
191 Views
Last Modified: 2013-12-18
I have an embedded view with docs and response docs in a form. In this form there is a field called "project". I want the view to show only response docs related to this project. How can I do that ?
0
Comment
Question by:pmeira
  • 5
  • 4
  • 3
  • +2
16 Comments
 
LVL 13

Expert Comment

by:CRAK
Comment Utility
Hope you are using R5....?

Categorize that view on the field "project". In the embedded views' proberties you can define (text or formula) which category you want to show.

In R4.x there is no such option. You'll have to resolve in a @DbLookup....
0
 

Expert Comment

by:ptenuta
Comment Utility
0
 

Expert Comment

by:ptenuta
Comment Utility
0
 

Author Comment

by:pmeira
Comment Utility
0
 

Author Comment

by:pmeira
Comment Utility
0
 

Author Comment

by:pmeira
Comment Utility
0
 

Expert Comment

by:mkraan
Comment Utility
Use @IsResponseDoc in your view selection

f.i SELECT Form="ResponseDocName" & Project="ParentDoc" & @IsResponseDoc = 1
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 63

Expert Comment

by:Zvonko
Comment Utility
pmeira,
No comment has been added lately (981 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to mkraan http:#6218200
Please leave any comments here within 4 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

Zvonko
EE Cleanup Volunteer
0
 
LVL 13

Expert Comment

by:CRAK
Comment Utility
Whatever you say, but why do you recommend to hard-code a view selection for an undefined number of projects over the ease of a generic single category view?
0
 
LVL 63

Expert Comment

by:Zvonko
Comment Utility
Hello CRAK,

the requirement was not to show a single category.
And the question here is not worth more efforts.
So let us close this as recommanded.

0
 
LVL 13

Accepted Solution

by:
CRAK earned 30 total points
Comment Utility
It's not about effort Zvo. And as far as I'm concerned, it's not about the points either! It's about leaving questions with a proper solution.

The question was written in a way that may not disclose all required info clearly. I don't have to tell you that with some experience (of which you have far more that me!) with notes some questions may read slightly different than what the text literaly offers.
This one reveils the existance of a view with documents (plural!) and responses. The fact that they are both shown in the same view (and being "docs" and responses) already tells us that they have a certain relation together!
The question also states that there is a form a form (unkown unfortunately) that holds an embedded view, which should show all responses, based on a field called "project".

Would this field be introduced on a new (3rd) form, to feed a selection criterium into the embedded view? And if so, why use a field if you really need it in the selection formula? I think that's not the intention.
So, would that field perhaps be contained in every one of those docs? And would it be the questionners goal to show all responses to an opened doc, with this field as (one of the) linking key(s)?
I bet that's what pmeira was after! And that's probably what a visitor to this question (once PAQ'ed) is looking for when searching google for "responses" and "embedded view".

mkraan's solution works. It provides a view with a selection... one that may even match the project in that field! But get a different project in there, and it'll fail since the selection does not adopt. Unless you create a view for every possible project and turn the embedded view into a computed one of course. But is the requirement of a design change for every new project a feature of a good appliction?
To make it a truly working application with multiple projects (docs) asks for something like the single category view and I bet that's what you would build it (probably using doc id's instead).

The focus wasn't on using @IsResponseDoc: Form="ResponseDocName" probably does the exact same thing! Focus was on making the view respond to what's in that field!

I'm not asking you to reconsider your recommendation. The solutions are here for everyone to test and use. Any visitor can read about mkraan's solution and where its restriction lies and find his/her way.
I know what it's like to volunteer for cleaning up. I don't wan't to cause you more hassle (honestly, I wouldn't like that either) and I don't want you to regret volunteering because of this comment. My only drive to respond was the thought of how the recommended solution was to be of proper use to visitors.

Personally I hate it when search results link me to places that only offer me opposite solutions....

So... to cut a long story short... points to mkraan.
Sorry for the delay.
(Actually, I expected your comment sooner...)
0
 
LVL 63

Expert Comment

by:Zvonko
Comment Utility
Oh man, you did me work.
Of course you are right and we have to do this right.
But as you stated yourself, the requirements are not absolutely clear, or even ambigeous.

So what shell we do now?
Split points is not possible, so I will recommand your explanation as the answer to the question. At least for not to confuse the readers.

0
 
LVL 63

Expert Comment

by:Zvonko
Comment Utility


NEW RECOMMENDATION: Award points to CRAK http:#10601278


-- Please DO NOT accept this comment as an answer ! --

Thanks,

Zvonko
EE Cleanup Volunteer
0
 
LVL 13

Expert Comment

by:CRAK
Comment Utility
Thanks!
Now, I've got to watch my back when I make my next recommendations, right?
;-))
0
 
LVL 63

Expert Comment

by:Zvonko
Comment Utility
No no. You was right, we have to do it the best way we can. I simplified the processing here.

See you,
Zvonko
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

13 Experts available now in Live!

Get 1:1 Help Now