This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jul 29, 2014, 12:18 PM
3 Posts

Multivalue view implementation problem

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 9

Hello Everyone,

 

I have encountered a problem I seemingly cannot overcome on my own. Mind that I'm more of a web-developer and VBA guy so lotus is pretty new to me... maybe you can help me out.

Believe me when I say I digged through the net and couldn't come up with something. Here's the situation:

I'm currently developing a rather simple employee data management application for my immediate team (roughly 50 ppl). I have one form for documents, the employee data form, which stores various data which I show in the Employee view. What I would also like to show though, in a different view, is a little more complex.

Each employee can have multiple countries that he's dealing with, and for each country, he might have different tasks. We're talking about 24 countries and 50ish task, from which each employee handles 2-3 countries (sometimes more), and 5-10 tasks per country. The problem is that in a document, there are multiple countries, multiple tasks, and I want to create a view per country. In this view, you can see per country, who is assigned to the country (can be multiple personnel), and what their tasks are for that particular country. So far I'm struggling to achieve this with the current architecture.

To get a little technical, the countries and the tasks are stored in a multivalue field; you can select main countries and backup countries from a dialog list. Then, the selected countries are displayed in computed fields one by one; and next to these fields (containing now a single country), you can select from a dialog list multiple tasks a person performs for the given country.

Any advice would be appreciated on how to create the desired view, or even if it cannot be done the way I approached it - then how?

Thank you in advance,

Attila

Jul 30, 2014, 7:39 AM
28 Posts
Can you deliver a testdatabase, with reasonable number of variations, for us ZIP'd ?
In this way we can provide a proven solution to you, hopefully.
Jul 30, 2014, 9:43 AM
3 Posts
Test database

Thanks for the tips guys. Embedded view can't seem to get it right, because I have a lot of filters to apply (maybe I'm just missing the point though).

Anyway, I uploaded a test database here: http://www12.zippyshare.com/v/25494649/file.html
 

Thank you so much for your help.

Jul 31, 2014, 6:45 AM
28 Posts
You need to allow us to Open the NSF within the ZIP, it gives..
the error:
The database has Local Access Protection (encrypted) and you are not authorrzed to access it.
I suggest you leave default access as Manager, bu make sure you not disclose information that should be secure.
Aug 1, 2014, 12:43 AM
8 Posts
You can't have two multi-value fields

This will not work because Notes cannot know which task belongs to which country. You can make the Country field multi-value and the Task field single-value, OR you can make the Country field single-value and the Task field multi-value. You cannot make both the Country AND Task fields multi-value.

Aug 1, 2014, 7:33 AM
28 Posts
Unless, you have a backend script, that..
Unless, you have a backend script, that kicks of during save, and make adjustments to Country Docs or Task Docs (for a few document relationships, it should not be a performance issue).
Could be put into the 'Query Save' Event.
Aug 1, 2014, 8:30 AM
3 Posts
Progress

Thank you all, these are proving useful.

I am here to inform you about my progress as I actually managed to achieve kind-of what I wanted.

I created a new form, with a single input field that is a dialog list (it contains the countries), and then I have multiple computed fields:

  • First, I fetch the employees whose main countries are the selected country, and the job descriptions (w. dblookup). I also fetch their serials to a hidden field.
  • Then, in a computed field, I use a rather complex formula to fetch the responsibilities (at least complex for me):
    • I check for each employee found, in which field is the current country defined for them. Then I fetch the responsibilities for that country. (this is done by a field-naming trick, eg. I have stored countries one-by-one as mctry_1, mctry_2 ...; and their respective tasks as mtask_1, mtask_2, ...).
    • Currently, I have a form that can display per country, who are the main and backup employees for them, and what are their tasks for the country.
  • Now I am looking for a method to display all countries in a view, if possible.

I made some screenshots: Country form, Employee form, Result

I can upload the current state, however as it is much easier for me to use actual data than dummy, It would take some time to anonymize the database.

Aug 1, 2014, 9:41 AM
28 Posts
is it possible for you, to Copy the database without ACL, and ZIP it ?
And to Anonymize, just change the Names of individuals in the few records you got.
Aug 6, 2014, 11:04 AM
28 Posts
Doesn't matter now, I won't be available for the next 3 weeks.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal