Filtered many-to-many Assoc/Link?

Hi,
quite new to ADF (UIX) but already in serious trouble ;-)
I have 3 Entity Objects: Items, Audiovisuals and Images which map to 3 (different!) Tables. Strictly speaking Audiovisuals and Images are SubTypes of generell Items. But I decided not to implement the super-class-sub-class on entity level but on view level instead.
(Items only contains primary keys)
Based on those 3 entites are 3 view objects. Here AudiovisualsView and ImagesView inherit form ItemsView.
For Items/ItemsView exists a many-to-many Assoc/Link to an Entity/View called Categories/CategoriesView.
The Assoc is based on an intersection table.
This intersection contains besides the two foreign keys another column with some number from a lookup, say 1, 2 and 3.
Q1: how can I retrieve all Categories for an Item having e.g. 2 as number in the intersection? (just like filtering the retrieved Categories to some special attribute in the intersection)
Q2: where do I have to place the code for this filtering? At the entity level or view level or ItemViewRowImpl?
I supposes the signature must be something like "RowIterator getCategoriesView(int intersectionAttr)"
Q3: at the level of UIX, how can I pass the parameter to getCategoriesView?
Thanks in advance for any help, Christian
p.s. my data control palette only shows methods exposed at the view level but does not show methods at the view row level. How can I bind methods exposed in the client row interface to my uix page?

any hints?
thanks, Christian

Similar Messages

  • One-to-many table linking

    Hi all,
    I'm trying to write a report with multiple one-to-many table links.  The issue is I only want a single record from the linked tables.  The main table is an item table and the linked tables are issue and receipt.  I want to display information from the last issue record and the last receipt record along with the item information.  Not sure how to restrict the joins to just a single record (also need to sort desc on dates in the linked tables).  Does this require the use of a view? or a custom sp?
    Thanks for taking your time to help.
    Kevin

    To bring back a single record then you will probably need to use a View , command or SP.
    However, in Crystal you can bring back multiple records and only display the record you want. The easiest way will be to group
    Data on Date and then Item code.
    Place the data you want to see in in Item group footer and suppress details and all other Group headers and footers.
    To get receipt date just use a maximum summary of receipt date in item group footer
    Ian

  • ORA-02020: too many database links in use ; but OK with where clause...

    Hello all,
    I have a view called V_MEDGEN_LISTRADIO but I can't run
    SELECT * FROM V_MEDGEN_LISTRADIO
    ORA-02020: too many database links in useThe cause is that we call in the view 5 tables over dblink and the open_links parameter is set to 4.
    What is strange is that when I run this select by adding a where clause then it works!
    SELECT * FROM V_MEDGEN_LISTRADIO WHERE SPRR = 3645;Can someone explain me ? (use of index so all tables are not called ???)
    Thanks

    Explain plan for SELECT * FROM V_MEDGEN_LISTRADIO WHERE SPRR = 3645;
    | Id  | Operation                              | Name            | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop | Inst   |IN-OUT|
    |   0 | SELECT STATEMENT                       |                 |     1 |   244 |    19   (6)| 00:00:01 |       |       |        |      |
    |   1 |  SORT ORDER BY                         |                 |     1 |   244 |    19   (6)| 00:00:01 |       |       |        |      |
    |   2 |   NESTED LOOPS                         |                 |     1 |   244 |    18   (0)| 00:00:01 |       |       |        |      |
    |   3 |    NESTED LOOPS                        |                 |     1 |   218 |    17   (0)| 00:00:01 |       |       |        |      |
    |   4 |     NESTED LOOPS                       |                 |     1 |   188 |    15   (0)| 00:00:01 |       |       |        |      |
    |   5 |      NESTED LOOPS                      |                 |     3 |   384 |    10   (0)| 00:00:01 |       |       |        |      |
    |   6 |       NESTED LOOPS                     |                 |     3 |   186 |     4   (0)| 00:00:01 |       |       |        |      |
    |   7 |        REMOTE                          | SPRR            |     1 |    20 |     2   (0)| 00:00:01 |       |       | DEV10~ | R->S |
    |   8 |        REMOTE                          | MPAT_MF         |     3 |   126 |     2   (0)| 00:00:01 |       |       | DEV10~ | R->S |
    |   9 |       REMOTE                           | SPER_P          |     1 |    66 |     2   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |* 10 |      TABLE ACCESS BY GLOBAL INDEX ROWID| DOSSIER_MEDICAL |     1 |    60 |     3   (0)| 00:00:01 | ROWID | ROWID |        |      |
    |* 11 |       INDEX RANGE SCAN                 | DOSMED_MPR_IDX2 |     2 |       |     1   (0)| 00:00:01 |       |       |        |      |
    |  12 |     REMOTE                             | MEP             |     1 |    30 |     2   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |  13 |    REMOTE                              | SSV             |     1 |    26 |     1   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    Predicate Information (identified by operation id):
      10 - filter("DM"."EXAM_TYPE"='TELEM')
      11 - access("DM"."MPR"="P"."SPER")
    Remote SQL Information (identified by operation id):
       7 - SELECT "SPRR","MNEMO" FROM "SPRR" "MP" WHERE "SPRR"=3645 (accessing 'DEV10_DBLK' )
       8 - SELECT "SPAT","DU","RMPB","SPRR_MF","AU" FROM "MPAT_MF" "MF" WHERE "SPRR_MF"=3645 AND NVL("AU",:1+1)>=:2 AND
           "RMPB"='PRINC' AND "DU"<=:3 (accessing 'DEV10_DBLK' )
       9 - SELECT "SPER","NOM","PRENOM","DTE_NAI" FROM "SPER_P" "P" WHERE "SPER"=:1 (accessing 'ORAP_DBLK' )
      12 - SELECT "MSJ","MEPNO_SEQ","SSV_OU_PAT_SEJOURNE" FROM "MEP" "MEP" WHERE :1="MSJ" AND :2="MEPNO_SEQ" (accessing 'ORAP_DBLK' )
      13 - SELECT "SSV","LIB_1" FROM "SSV" "SSV" WHERE :1="SSV" (accessing 'ORAP_DBLK' )Explain plan for SELECT * FROM V_MEDGEN_LISTRADIO
    Plan hash value: 3820716840
    | Id  | Operation                                | Name                  | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop | Inst   |IN-OUT|
    |   0 | SELECT STATEMENT                         |                       |     7 |  1708 |   771   (1)| 00:00:10 |       |       |        |      |
    |   1 |  SORT ORDER BY                           |                       |     7 |  1708 |   771   (1)| 00:00:10 |       |       |        |      |
    |   2 |   NESTED LOOPS                           |                       |     7 |  1708 |   770   (1)| 00:00:10 |       |       |        |      |
    |   3 |    NESTED LOOPS                          |                       |     7 |  1568 |   763   (1)| 00:00:10 |       |       |        |      |
    |   4 |     NESTED LOOPS                         |                       |     7 |  1386 |   756   (1)| 00:00:10 |       |       |        |      |
    |   5 |      NESTED LOOPS                        |                       |     7 |  1176 |   742   (1)| 00:00:09 |       |       |        |      |
    |   6 |       NESTED LOOPS                       |                       |   194 | 24444 |   414   (1)| 00:00:05 |       |       |        |      |
    |   7 |        TABLE ACCESS BY GLOBAL INDEX ROWID| DOSSIER_MEDICAL       |   194 | 11640 |    23   (0)| 00:00:01 | ROWID | ROWID |        |      |
    |*  8 |         INDEX RANGE SCAN                 | DOSMED_EXAM_TYPE_IDX2 |   194 |       |     1   (0)| 00:00:01 |       |       |        |      |
    |   9 |        REMOTE                            | SPER_P                |     1 |    66 |     2   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |  10 |       REMOTE                             | MPAT_MF               |     1 |    42 |     2   (0)| 00:00:01 |       |       | DEV10~ | R->S |
    |  11 |      REMOTE                              | MEP                   |     1 |    30 |     2   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |  12 |     REMOTE                               | SSV                   |     1 |    26 |     1   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |  13 |    REMOTE                                | SPRR                  |     1 |    20 |     1   (0)| 00:00:01 |       |       | DEV10~ | R->S |
    Predicate Information (identified by operation id):
       8 - access("DM"."EXAM_TYPE"='TELEM')
    Remote SQL Information (identified by operation id):
       9 - SELECT "SPER","NOM","PRENOM","DTE_NAI" FROM "SPER_P" "P" WHERE :1="SPER" (accessing 'ORAP_DBLK' )
      10 - SELECT "SPAT","DU","RMPB","SPRR_MF","AU" FROM "MPAT_MF" "MF" WHERE NVL("AU",:1+1)>=:2 AND "RMPB"='PRINC' AND "DU"<=:3 AND
            :4="SPAT" (accessing 'DEV10_DBLK' )
      11 - SELECT "MSJ","MEPNO_SEQ","SSV_OU_PAT_SEJOURNE" FROM "MEP" "MEP" WHERE :1="MSJ" AND :2="MEPNO_SEQ" (accessing 'ORAP_DBLK' )
      12 - SELECT "SSV","LIB_1" FROM "SSV" "SSV" WHERE :1="SSV" (accessing 'ORAP_DBLK' )
      13 - SELECT "SPRR","MNEMO" FROM "SPRR" "MP" WHERE :1="SPRR" (accessing 'DEV10_DBLK' )

  • ORA-02020 too many database links

    Hello,
    I'm getting the ORA-02020 too many database links error in my Apex application. This error occurs when I run an interactive report in a page. There are 21 pages and 7 database links in the application. Each page has one interactive report that references one database link in the region source.
    The database links are referenced in each page as follows: database link1 (page 1); database link2 (pages 2 and 3); database link3 (pages 4-7), database link4 (pages 8-15); database link5 (pages 16-18); database link6 (pages 19); and database link7 (pages 20-21). Each database link is referenced to separate schemas in one remote Oracle database.
    I tried to eliminate the error by setting the open_links and open_links_per_instance parameters in the init.ora file of the remote and XE databases to 100 then restarted the both databases. This solution did not work. I created separate Application Processes from the Shared Components to close each database link by implementing the following:
    Click on Shared Components&gt; Logic &gt; Application Processes &gt; Create &gt;
    Name: CLOSE_LINK1
    Sequence: 1
    Point: On Load: Before Header (page template header)
    Type: PL/SQL Anonymous Block
    Process Text: execute immediate 'ALTER SESSION CLOSE DATABASE LINK LINK1';
    Error Message: Database Link Error
    When I run the application now, the ORA-02081: database link is not open error appears.
    Please help anyone! I know someone has experienced these same errors.
    Thanks,
    Ms. H

    Joel,
    Thank you for your quick response. For clarification purposes, could you provide samples for 1) issuing the CLOSE DATABASE LINK and catching the exception; and 2) querying from V$DBLINK prior to issuing the CLOSE DATABASE LINK from the Shared Components &gt; Logic &gt; Application Processes?
    Lets assume the following query with a database link in the region source is referenced for Page 1.
    Page 1 - Employee Listing
    Region Source:
    select ename, job, hiredate
    from scott.emp@link1
    Lets assume the following Application Processes from the Shared Components is referenced to close the database link:
    Click on Shared Components&gt; Logic &gt; Application Processes &gt; Create &gt;
    Name: CLOSE_LINK1
    Sequence: 1
    Point: On Load: Before Header (page template header)
    Type: PL/SQL Anonymous Block
    Process Text: execute immediate 'ALTER SESSION CLOSE DATABASE LINK LINK1';
    Error Message: Database Link Error
    My thoughts are to do the following:
    1. Log in SQL*Plus as SYS
    SQL&gt; grant select to v_$dblink to scott;
    2. In Apex, goto Shared Components&gt; Logic &gt; Application Processes and add the following queries in the Process Text:
    Name: CLOSE_LINK1
    Sequence: 1
    Process Text:
    select db_link from v$dblink;
    execute immediate 'ALTER SESSION CLOSE DATABASE LINK LINK1';
    3. Catch the exception???
    Your assistance is greatly appreciated. :8}
    Ms. H

  • Many to Many View Link

    Hello All
    I just wish to know how to create a many to many view link. I have created a many to many association. In the view link wizard it is supposed to show me an association in 2 tables which are associated via the intersection table in the association right? Because that does not happen. I can only see the association in one table, while it is just not there in my source table. The expose check is clicked in both the source and the destination but in the destination table it is just not shown.
    I do not know if I am approaching this the right way? Should I create a view for the intersection table?
    If anyone can shed any light on this I would be eternally gratefull

    I solved the problem but now have a different one.
    The problem was I created some views and then created an association. Unfortunately associations are based on entities and views do no automatically update from the entities, so I had to create a new view, based on the entity AFTER I had created the association. This allowed me to create a many to many view link between the two.
    Here is a question. Is it really neccessary to create these many to many relations (which are in my database) if all I need is to create a read only page (for users with only read privileges)? Because after dropping my new view with a many to many view link onto my jspx page and creating a read only form, It did not really work that well for showing what I needed shown, all it did was show the attributes from the one table, not the 3 (the 2 tables and the intersection) I needed.
    I am probably not making sense, this is just a web of entangled entanglement.

  • Many - to - many view links (master-detail)

    Case :
    I have a relation many-to-many between two tables, composed of 3 tables:
    Table Users ( User_Id, User_name ) // Master 1
    Table Groups ( Group_Id, Group_name ) // Master 2
    Table Users_Groups ( User_Id, Group_Id ) // Child (holding then many - many relation)
    Need :
    I want to make Master-detail relation, so that when I change the group (Master 2) the details of the users - user_id, user_name - in this group appear in table below.
    problem :
    All the master-detail examples I have seen in Jdeveleoper, between One - many realtionship, where the details table contain the information to be displayed; now my case that the details to be displayed is in another table (Master 1) not in the child table directly.
    So using ordinary view Link between the a master table and the child table displayes only the Id's of the child table but I need that the names that in (Master 1) table which is related to the selected master id.
    Thankx

    Duplicate of add where clause to detail view in master/detail relation
    Timo

  • SQL-Only Many-to-Many View Links?

    Hi,
    ADF, BC4J, Jdeveloper 10.1.3
    I am working on a reporting system that contains a number of reports on tables that are linked with many-to-many relationships.
    So for example, I have a COMPANIES table that is linked through an intermediate table to a CENTRES table. COMPANIES is also linked in a similar way to VOLUNTEERS. All these links are many-to-many.
    From the companies report page, one can see the centres associated with that company, and vice versa. I would like these to be displayed as clickable links that take the user through to the report page for that table...
    What is the best way to do this?
    Because I am only reporting on these tables (no updates), I have created SQL-only view objects. I thought that View Links might be a good way of listing the associated rows and setting the appropriate row for the reports page when the user clicks a link, but I cant see a way of implementing a view link on a many-to-many relationship between sql-only views.
    Is this possible? Or am I approaching this in the wrong way?
    Any help greatly appreciated,
    Alex.

    Hi,
    ADF, BC4J, Jdeveloper 10.1.3
    I am working on a reporting system that contains a number of reports on tables that are linked with many-to-many relationships.
    So for example, I have a COMPANIES table that is linked through an intermediate table to a CENTRES table. COMPANIES is also linked in a similar way to VOLUNTEERS. All these links are many-to-many.
    From the companies report page, one can see the centres associated with that company, and vice versa. I would like these to be displayed as clickable links that take the user through to the report page for that table...
    What is the best way to do this?
    Because I am only reporting on these tables (no updates), I have created SQL-only view objects. I thought that View Links might be a good way of listing the associated rows and setting the appropriate row for the reports page when the user clicks a link, but I cant see a way of implementing a view link on a many-to-many relationship between sql-only views.
    Is this possible? Or am I approaching this in the wrong way?
    Any help greatly appreciated,
    Alex.

  • I have Yahoo as my homepage but many news links won't load

    When trying to look at Yahoo news some pages will load but many will not. While the address bar shows the link site the screen appears blank.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Also check the cookie exceptions to make sure that you aren't blocking cookies.<br />
    To see all the History and Cookie settings, select:
    * Firefox/Tools > Options > Privacy > History: Firefox will: "Use custom settings for history"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Adobe has removed many useful links from their web site

    Many links in the "Knowledge Base" are now broken on the Adobe web site. What can we do about this? How do we tell Adobe to fix this?
    Examples:
    http://kb2.adobe.com/cps/402/kb402894.html
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb400848&sliceId=1

    Yes, it's been this way for quite a while now. Adobe knows about it, but they don't seem to be in any hurry to fix it, unfortunately.

  • ViewObject.writeXml iterating many view links

    Hi!
    I am trying to create an Xml file using ViewObject.writeXML(). The main VO is the Purchase Order Header.
    Here's the code:
    ApplicationModule applicationModule = (ApplicationModule)Configuration.createRootApplicationModule(appModule, cfg);
    ViewObject vo = applicationModule.findViewObject("ViewPOHeader");
    node = (XMLNode)vo.writeXML(3, XMLInterface.XML_OPT_ALL_ROWS);
    The VO here (ViewPOHeader) has many viewlinks and those VOs in turn have other viewlinks (all are in the same project). Thus, the writeXML iterates through all the viewlinks many times giving me thousands of lines of data instead of the 100 or so i require.
    Is there any way I can choose which ViewLinks I want to traverse, or where to stop. Is there another way around this?
    Thanks!
    Mansi

    Hi,
    you used a depth of 3 when writing the xml. This means that all ViewLinks are traversed from master->detail->detail->detail. So without knowing your physical model, all I can say is to set the depth to 1 or 2. Then check the output if it's more convenient to your needs.
    The other think you can to is to use a special VO which only has the desired VLs and use this to write the XML (this is probably the better way to do it.)
    Timo

  • Many topics linked to Word files in RoboHelp 10

    Is RoboHelp 10 robust enough to cope with a large project that has the majority of its topics linked to their own individual Word file?

    Apologies. Perhaps some background information may help.
    My company produces a suite of software products and the online Help (created in RoboHelp) covers all of these, including the installation instructions. Therefore, the RoboHelp project is a very large one, containing hundreds of topics.
    We have just upgraded to RoboHelp 10 (RH10) from RH9 and I am starting the project from scratch. Because the project information is originally created in Word, and by a number of sources, I am investigating the possibility of linking nearly all of the topics to these Word files to make it easier and quicker to create and update the project. I was wondering if having a lot of these links may possibly lead to instability in the program (as we experienced with RH9), in which case I would import the content from the Word files into RH10 instead.

  • Ora-02020 too many database links in use

      Hi All,
                    While trying to  update Table through datalink in my program I am getting the above error.   Without modifying the  v$parameter  value ( 'open_links' ) in database how to use this feature to close Inactive sessions  in BPEL ?

    Yes, I set the init.ora parameters on all servers and then restarted them. I still get the error.
    Note that, for convenience, all my servers have public database links to all other servers in my private network.
    This procedure (described at the start) works for one run of copying 50 tables from one server to one other server:
    server1 runs the procedure and copies data from server2 to server3 (total of 3 servers in the process)But I get the error when I run the procedure to copy 40 tables from multiple servers to one other server:
    server1 runs the procedure and copies data from server2, server3, and server4 to server5The error occurs when only four (or five) servers are involved in the process.
    Any suggestions are greatly appreciated.
    Edited by: user652257 on Nov 1, 2009 12:40 PM

  • Since 5.1 many image links do not work

    This must be the most bizarre bug of all times. Since upgrading to Safari 5.1 clicking on certain images produce NO result. Example: the icons (smileys, links, pictures, etc) of all of the forums I use when composing a post do nothing when I click on them.
    To make the situation even weirder, the same problem with Firefox and Opera. As if they are all jinxed!
    And to make is even more bizarre (if this was possible), after upgrading to Lion the probelm persists!!!
    HELP HELP HELP
    ++++++++++++++

    How to uninstall Safari 5.1: Apple Support Communities
    See: Hawaiian Starman's post and that depends on which Mac OS X you have installed. Rather involved.
    To make the situation even weirder, the same problem with Firefox and Opera. As if they are all jinxed!
    But that won't help the other browser issues.
    Check the startup disk. It may need reparing.
    Using Disk Utility to verify or repair disks

  • Report error: ORA-02020: too many database links in use

    I am getting error ORA-02020 in a report that works exactly the same in other APEX instance.
    The query refers several tables from Oracle Financials with a single database link.
    The weird thing is that for some parameters the report shows the expected lines, and for other parameters it shows the error message.
    There are three other regions in the same page running grouped versions of the same query and they work perfectly.
    Any idea will be welcome.
    Francisco
    ============
    Below is the FROM section of the query, just one link to Oracle Financials:
    FROM GL.GL_JE_HEADERS@ORAFIN A,
    GL.GL_JE_LINES@ORAFIN B,
    GL.GL_CODE_COMBINATIONS@ORAFIN C,
    APPLSYS.FND_FLEX_VALUES@ORAFIN D,
    APPLSYS.FND_FLEX_VALUES_TL@ORAFIN E,
    APPLSYS.FND_FLEX_VALUES@ORAFIN F,
    APPLSYS.FND_FLEX_VALUES_TL@ORAFIN G,
    GL.GL_PERIODS@ORAFIN H,
    FIN_ALLOCATION_PERCENTAGES I

    Related threads:
    Re: SESSION_PER_USER limit gets exceeded
    Re: APEX Sessions and Database sessions
    Scott

  • Why so many broken links under otn regarding db web services????

    on this page
    http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html
    these are broken:
    1. Oralce 9i database web services
    http://www.oracle.com/technology/tech/webservices/htdocs/dbwebservices/Database_Web_Services.pdf
    2. Basic Web service Call-out using PL/SQL UTL_HTTP
    http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html
    3. Publish PLSQL as a web service using JDEveloper
    http://www.oracle.com/technology/tech/webservices/htdocs/series/plsql/index.html
    4. Use Oracle 9iAQ with JMS for Web Services
    http://www.oracle.com/technology/tech/webservices/htdocs/series/jms/
    (so EVERY Tutorial results in a 404)

    two of the links at the bottom of this page are broken:
    http://www.oracle.com/technology/products/jdev/howtos/10g/WS_LoadJava/LoadJava_HowTo.html

Maybe you are looking for

  • Skype crashing and poor performance

    Hello! I have a Lumia625 with WP8.1. My problem is that Skype has a really poor performance on my phone. It crashes 6 times out of 10 on startup, and even if I manage to start it, the whole app is slow and laggy. Sometimes I can't even write a messag

  • HT3509 I lost my photo library in Aperture, any ideas?

    I lost my photos in Aperture and have no idea how to find them. Can anyone help with my dilema?

  • Grid control interface for non-DBA users...

    I was wondering if there is a way to provide non-DBAs an account to log into OEM (OMS Grid Control) for 11g. We have some SQL Server DBAs and developers/report writers who are quite curious about OEM, especially after I gave them all a presentation o

  • ANNOUNCE: Visual J2EE Development Environment Released

    Roaming Media announces a public beta release of Roaming Studio 1.0. Roaming Studio is a comprehensive software development environment that fully supports pattern-driven design, assembly and deployment of Java™ 2 Platform, Enterprise Edition (J2EE™)

  • DreamWeaver CC trial-APPCRASH

    So here I am again, friends with a huge issue. Was very HAPPY with  my cs6 software till I read the DW CC reviews and decided to download the trial version. Had my reservations because Adobe made sure that it was not for XP.- 1st strike against. You