Ask the Expert

LEI and DECS 1:n functionality

I connect Notes through DECS in an open event on a form with an Oracle view. On the Form I have a key, but it is not a unique key. There is a one to many relation. So, I tried to define the fields on the form as multi-value fields (newline) and in the DECS event I tried using of multi-value data fields. But, when I do this, I get, "Network operation did not..." When I do the same without the multi-value option, I get a mere 1:1 result, but at least I get a result. My question is this: Is it possible to get a solution for a (1:n-relation) on a form?


The way that the LEI and DECS 1:n functionality works is based on a common key that is used to identify a group of records. An example of this would be a relational table of invoice items. There would be 1 to n items on the invoice and each item record would have the invoice nubmer as its common grouping key. To solve the problem you need determine the appropriate common key that all the matching rows in the view share. Once you have determined the common key, try a query from the Oracle PL/SQL window (or a gui tool, if you have one). The query would be something like "select * from my_view where key_column = 'keyvalue';" This should return you 1 to n rows for the 'keyvalue' specified. If that works okay then you should be able to mimic the functionality in DECS. Note: you might not need to use the/a View for this type of operation; in my experience Views can effect performance if more than two tables are being joined. If you require the View be sure to have your dba create an index, which will improve your performance.

This was first published in September 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: