Can I have a Master/Detail page without a repeating region for the Master links?

Hi there.
I have been trying to find the solution to this for hours, but with no luck at all.
I have a master/detail page that uses an HTML dataset.  It's pulling content from DIV tags within the same page, using 2 colums ("topic" and "description") and is working properly using this code:
<ul spry:region="ds1" spry:repeatchildren="ds1">
<li class="product" spry:setrow="ds1" spry:select="selected" spry:hover="hover">{topic}</li>
</ul>
What I'd really like to do though, is have some individual images serve as the {topic} links instead of having the {topic} listing built dynamically using the repeatchildren. So, basically, I'd like to hard-code the topics using images, and when you click on it, it then loads the specific {description} content.
But as soon as i remove the repeatchildren, and hard-code the <li>'s, it doesn't load the description. It does do the spry:select and spry:hover part, but it just doesn't change the detail region content. I even tried various "onclick"s such as setCurrentRow(2), and that doesn't work either.
Any advice you can give me I really appreciate!
Below is my code:
var ds1 = new Spry.Data.HTMLDataSet(null, "sourceContainer", {rowSelector: "div.topic", dataSelector: "div.QandA", columnNames:["topic", "description"]});
<table width="90%" border="1">
<tr>
<td width="21%" valign="top">
        <div spry:region="ds1">
<ul>
                 <li onclick="ds1.setCurrentRow(0);" spry:setrow="ds1" spry:select="selected" spry:hover="hover">[an image goes here]</li>
                <li onclick="ds1.setCurrentRow(1);" spry:setrow="ds1" spry:select="selected" spry:hover="hover">[an image goes here]</li>
                <li onclick="ds1.setCurrentRow(2);" spry:setrow="ds1" spry:select="selected" spry:hover="hover">[an image goes here]</li>
</ul>
            </div>
</td>
  <td width="79%" valign="top">  
  <div spry:detailregion="ds1">
  <div>{description}</div>
  </div>
  </td>
  </tr>
</table>         

Your onclick and setrows are conflicting. (they do the same thing....)
Get rid of the spry:setrow attributes and it should work fine.
Hope this helps,
Don

Similar Messages

  • Bc4j:RowScope on a Master Detail page always returns 0 rows for detail

    Hi,
    I have a problem with a Master Detail page that is called from another page. The Master Detail page has two View Objects, Budgets and Budget Versions. These are linked properly in BC4J and when I use these VOs together I can navigate through the Budgets (master) and the Budget Versions (details) are populated correctly.
    However, I want to navigate to this page from another page which lists all possible Budgets. I pass the key of the selected Budget to the Master Detail page and the correct Budget is displayed, BUT the Budget Versions are NOT displayed - I get 0 rows returned.
    The mechanism I use to pass the selected Budget ID to my Master Detail page is:
    <ctrl:property name="key">
    <ctrl:selection name="ViewTable" key="key"/>
    </ctrl:property>
    My BC4J Registry is set up as follows:
    <bc4j:registryDef>
    <bc4j:rootAppModuleDef name="BudgetModule"
    defFullName="BudgetPackage.BudgetPackageModule"
    configName="BudgetPackageModuleLocal"
    releaseMode="stateful">
    <bc4j:viewObjectDef name="ItiBudgetsView1">
    <bc4j:rowDef name="CurrentBudgetRow" usesCurrency="True">
    <bc4j:propertyKey name="key"/>
    </bc4j:rowDef>
    </bc4j:viewObjectDef>
    <bc4j:viewObjectDef name="ItiBudgetVersionsView2" rangeSize="15"/>
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    I then use
    <bc4j:rowScope name="CurrentBudgetRow">
    to get the correct Budget row in my master VO. But this always returns 0 rows in my detail VO. If I comment out the rowScope element, I don't get the desired Budget row, but I do get the correct Budget Version rows displayed. Is the rowScope element on the Budget VO interfering with the Budget Version VO?
    Hope this is not too confusing!!
    Thanks,
    Steve

    Steve,
    I tried to create a comparable set of two pages and initially ran into the same problem. I just realized that my issue (which I hope is yours too) is that the rootAppModule name was different across my two pages. This led to each page having its own application module instance, so the currency was different on each page.
    By changing all of my pages to use the same application module name (in the registryDef, in the appModuleScope tags in the page, and in the findAppModule tags in the handlers), I resolved this problem.
    My event handler to go to the master/detail page from the master page, FYI, looks like this:
      <event name="details" >
       <bc4j:findRootAppModule name="MyApp" >
        <!-- establish the ViewObject scope -->
        <bc4j:findViewObject name="CustomersView1" >
         <!-- find the selected Row -->
         <bc4j:findRowByKey>
          <bc4j:keyBinding>
           <bc4j:selectionKey name="viewTable" key="key" />
          </bc4j:keyBinding>
         </bc4j:findRowByKey>
        </bc4j:findViewObject>
        <bc4j:executeQuery />
        <go name="OrdersByCustomer_View" redirect="true" />
       </bc4j:findRootAppModule>                     
      </event>Hope this helps.
    -brian
    UIX Team

  • Run Detail Page without Parent page

    I need to extend a OA page, that is a detail page. If and how can I bring the detail page up in JDeveloper without having to bring in the parent page into JDeveloper project?
    In the Project Setting | Run Connection there is "Optional URL parameter" is that where I add it? Please advice. Thanks.

    Jen,
    As Shiv said in his update earlier, please get all the relevant Pages (and their VOs, AMs, COs etc) in your project and then you can easily work on your details Page without worry.
    Now if you donot want to do so.
    1. Go to the Controller of your details page and see which parameters are expected in the process Request.
    2. Then check whether any method gets called from the PR and see whether the method expects some value from some previous page.
    3. Thereafter the next step is to check whether there is any VO referred in your page which has been initialized in any of the earlier pages. May be some logic which occurred on any previous page has a role to play.
    I hope it helps.
    Thanks
    Sumit

  • Can I link from Interactive report Page 1 to Master Detail page 2?

    Hi folks-
    I know how to create a Page as an Interactive Report; it creates 2 pages automatically (primary page with the great interactive bar) and a 2nd page that's a single record.
    I know how to create a Page as Master Detail, whereby I get a tabular list without the super interactive bar, and I can select a record, and get transported to a nice page with 2 regions (master on top, detail on bottom).
    I want to have the First page from the Interactive Report, select the record, and go to the 2nd page of a MasterDetail.
    Do I create the Interactive Report, and customize the 2nd page, to add a region?
    Or, do I create both page types, and redirect from the 1st page of the Interactive Report to the DML Form from the MD report? I tried that, re-assigning the link from the Interactive Report to be a Link to Custom Target, and specify the page # of the Master-Detail page. And it is taking me to the right page, but the data from the selected row is not coming with me, and the detail in the bottom region is not appearing at all.
    Can someone please give me a nudge as to the sequence I should be doing?
    (As you can tell, I'm new to Apex.... I'm trying to use it to create a prototype or proof-of-concept for a database driven web application)
    Thank you
    Marion

    Yes, I tried that after I wrote to you - and it's fine, but not what I'm after; it's only based on 1 table and I'm working with 2 tables.
    Perhaps I can explain in better.
    I want one page as an interactive tabular report (of the master records)
    I want to select a row, and transfer to a page that has the corresponding row on top (as a form), and a tabular region below of records from a related detail table.
    ie, I want page 1 from the Interactive Report, and page 2 of the Master Detail report.
    OK - I just took the form page, and added a region below in a tabular report. And I'm getting the data, but I'm getting all the records (not just the ones associated with the single record on top. I figure I need to edit the Region Definition->Source (to specify that the id numbers need to match), but the code is not editable.....
    So I am in Structured Query Attributes, and I've Modified the Join Conditions - but I still get all the detail records in the bottom region. I''m trying to add in the ( + ) qualifier, but it doesn't affect anything...
    I'm soo close to what i'm trying to do!
    Thank you for your continued patience and assistance
    Marion
    here's the Source I have for the region..... (I'm including the excess ID columns just for learning purposes)
    SELECT
    "PHONENUMBERS"."PHONE_ENTITY_ID" "PHONE_ENTITY_ID",
    "ENTITIES"."ENTITY_ID" "ENTITY_ID",
    "ENTITIES"."FIRSTNAME" "FIRSTNAME",
    "ENTITIES"."LASTNAME" "LASTNAME",
    "ENTITIES"."COMPANY" "COMPANY",
    "PHONENUMBERS"."PHONE_ID" "PHONE_ID",
    "PHONENUMBERS"."PHONETYPE" "PHONETYPE",
    "PHONENUMBERS"."PHONENUMBER" "PHONENUMBER",
    "PHONENUMBERS"."PHONECOMMENT" "PHONECOMMENT"
    FROM
    "PHONENUMBERS",
    "ENTITIES"
    WHERE ENTITIES.ENTITY_ID = PHONENUMBERS.PHONE_ENTITY_ID
    Edited by: mtpaper on Oct 12, 2009 1:30 PM
    Edited by: mtpaper on Oct 12, 2009 1:32 PM

  • Can I set up a Master-Detail Page with report regions for 2 Detail Tables?

    Hi there,
    I am just starting to use Application Express.
    I have a Table (A) with Master-Detail relationships to two Tables B & C.
    I can set up a Master-Detail Page between Table A and Table B, where the records displayed in Table B change when switching between records in Table A. I would like to add Table C to the page and for this to work in the same way.
    Is this possible in APEX? (I've tried adding a report region for Table C and making the Region Source dependent on the same ID field as is used by the report region for Table B but I keep getting "No Data Found" for Table C).
    Many thanks.

    Thanks, but the text needs to be on a single master page which every page is assigned to. This is so the text alternates correctly regardless of whether new pages are inserted or moved. If I assigned separate master pages to individual pages and then moved the pages to a different location, the alternating footer text would then fall out of sync. I hope that made sense!

  • OAF matester detail page : How to have a "Show All" feature on screen, so that all the master and details records are expanded .

    Hi ,
    I was trying to have a "SHOW ALL" feature on the master - detail page,
    the detail table is an advancec table.
    Please help me with inputs on how to have  "SHOW ALL" feature,
    Currently, we have to click on  ":Show" for each record at master level to view the child data.
    Trying to achive "Show All" Feature so that on click of this the master records on the page 'Expands"  showiing all master records with respective detail records.
    Regards
    bhuvanm

    Hi,
    You should not set DetailFlag = "Y" in whereclause because there is no such record.
    Also detail flag is transient attribute and not the query column, hence the error "Invalid indentifier".
    I asked you to use DetailFlag as query column with static value "Y".
    for example:
    SELECT "Y" detail_flag
    FROM <table_name>
    This will display all the table records in expanded format. if you want it conditionally then use decode on some bind parameters.
    For example:
    SELECT DECODE(:1, "SHOWALL", "Y", "N") detail_flag
    FROM <table_name>
    This bind parameter should be passed whenever you want to execute query for the table.
    Regards,
    Sandeep M.

  • I have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY?

    i have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY? for example if i trust that image on particular page doesnot contain any adult material and safe to see that page from home, can i temparory view image on page?

    -> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
    -> go to Tools Menu -> Options -> Content -> click '''Exceptions...''' button infront of '''Load images automatically''' -> type the address of the website on which you want to load images e.g. yahoo.com and click '''Allow''' button -> click Close
    -> Click OK on Options window -> Restart Firefox
    Check and tell if its working.

  • Refresh problem by combination of programmatic view and master-detail page

    I am using the latest versions of both ADF (10.1.3.2.0.4066) and JHeadstart (10.1.3.1.26) and I have an application with 1 page in which I have as root page a programmatic view (table-form) which I fill with request parameters.
    Under that programmatic view I have a master (table) with 3 detail pages (table).
    The programmatic view is populated with always 1 row, which goes always correct.
    The problem is occuring when iterating through the first entity based master table which contains lots of rows. Then the problem is that when you navigate through the master table the detail pages are refreshed correctly, but when you navigate back to the first row that row won't get updated.
    The next thing I tried is create a new jheadstart application with only the master-detail pages (entity based), so without the programmatic view, and then the iterating through the master table and the refresh of the child tables is working correct.
    What can be the problem here.

    Have you tested this in the ADF Business Components Browser? That's the tester that you can find by right-clicking your ADF BC Application Module and choosing Test. If you go to the View Object instance for the programmatic view, and using the ViewLinks to its children, do you get the same behavior as in the JHeadstart application?
    kind regards,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Help!  After validation failure, Detail region of Master Detail page does not refresh.

    Hello.
    I am running a validation to prevent deletion of a purchase order (PO) when invoices exist for the PO.
    When the condition is found (invoices exist), the deletion process is halted and a message is posted to the page.
    I would like for both Master and Detail data of the PO to be refreshed.  However, only the Master
    record is refreshed.  I get the following error for the detail data:  The detail is found through the Master Header primary Key (DetailRecord.PO_ID = :P230_PO_ID )
    ORA:01445: Cannot select ROWID from, or sample, a join view without a key preserved table.
    ORA-06510 - PL/SQL unhandled user-defined exception.
    I'm not sure why this message should come up.  I do not clear cache or reset the page or anything like that.
    Any hints?

    Just an FYI for everybody who may have this very same problem in the future.  I fixed the error and it had nothing to do with ROWID or views or anything like that.  Under the Page Rendering section where you define the region definition under the source section, I had included the 'order by' clause in my SQL statement.  This was the cause of my ORA-01445 error!  When I removed the clause from the source definition and instead included it within the Report Attributes by checking the Sort box for the appropriate column (thus allowing APEX to generate the sort for me), the error disappeared!  The Oracle error message would NEVER have given me a clue into what caused the error.  I just happened to think 'what if I take the order by clause out'!  How's that for a flukey fix! 

  • Issue in FF v 3.6.10: I have a page which have more than 20 link, clicking on these link opens up a popup using window.showModalDialog, for the first 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open.

    Issue in FF v 3.6.10: I have a web page which have more than 20 link, clicking on each of these link opens up a pop-up using window.showModalDialog, for the first consecutive 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open. This is m problem, the real user on the web page can click on more than 20 link in such a scenario it may create problem, please help

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • Master & Detail Pages

    Hello all,
    I am asking for help on creating Master - Detail pages. I am using Wamp version 2. Database name "TestingCo" with 3 tables:
    Users:      user_id                int(4)           Primary_Key
                   user_fname          varchar(30)
                   user_lname          varchar(30)
                   user_license_id    int(4)
                   user_pix_id          int(4)
    Licenses: license_id           int(4)             Primary_Key
                   license_no          varchar(10)
    Pictures:  pix_id                 int(4)             Primary_Key
                   pix_url                varchar(50)
    1. I create a recordset called: rsMasterDetail:
         * with all fields from all 3 tables.
         * Where users.user_pix_id = pictures.pix_id AND users.user_license_id = licenses.license_id
         * Order By users.urser_fname
    2. On Master page, I insert Master Detail Page Set:
         * Master page fields: All fields from rsMasterDetail recordset.
         * Link to Detail from: user_id          / later I tried: user_fname         
         * Pass unique key:   user_id          / later I tried: one by one from each field of Users table.
         * Show: All records
         * Detail page name:     Detailpage.php
         * Detail page fields:     All from rsMasterDetail recordset.
    3. Result: (I always get the same result as below).
         * Masterpage.php - perfect - All correct display between 3 relational tables
         (*) Detailpage.php - when I click on any link from the Masterpage.php:
              - All the fields from Users table are displayed correctly depending on which link I clicked on Masterpage.php
              (+) The fields from table Licenses are displayed the first row only (1st record of the table.)???????????????
              (+) The fields from tabel Pictures are displayed the first row only???????????????
    A. When I built the rsMasterDetail recordset, I test it and the result is good.
    B. The masterpage.php shows all fields in perfect order.
    There must be something wrong when the information passes from Master page to Detail page!??!!???
    Please help me!
    Thank you

    Hi Lon,
    When I test it, the tables relationship is perfect since all three tables line up correctly on the masterpage.php. If there is problem with tables relationship, I should also have such problem with the masterpage.php.
    I, once tried to build another recordset called: rsTest. This time I had only 2 tables: Users and Licenses. The result was the same; only the first row of the licenses table would show on the detailpage.php; while the masterpage.php the rows on both tables line up correctly.
    I have tried many ways to find solutions unsuccessfully. What I get so far is:
    * The recordset is display correctly every single time when I click the "Test" button, as well as on the masterpage.php (I meant the tables relationship).
    * When the link on the masterpage.php is clicked, the detailpage.php supposes come up and display all rows of 3 tables of the linked record. However, all rows of the 1st table are correctly displayed, and the other table(s) only show its first row regardless which link on the Masterpage.php was clicked.
    I hope you and others gurus can help me out.
    I appreciate your help.

  • Master / details pages set in a .htaccess protected directory

    Hi
    I am using Dreamweaver CS4 functionality to create a Master/Details page set. I have done this many times before without a problem, however, i am now trying to create the master / detail page set in the members area of a web site. The directory that contains both the master and the details page is .htaccess protected which means that the master page works fine but the details do not get passed to the details page. The details page remains blank where the echo statements should be. If i copy  the exact same master and detail pages and then paste them in to an unprotected directory the pages work fine and the details are passed from the master to the details page without a problem.
    I have been unable to find any information on this so any help would be gratefully received.

    I'm not using secure access (https). I started with the most basic configuration, standard http: on port 80, etc. The configuration works perfectly fine when tested on my home PC. The problem seems to be in Safari on the iphone it prompts me for a login, and accepts it.. then it fires up the media/movie player and I'm guessing it's not passing the authentication/credentials/whatever to the movie player. When the media tries to play, it notes it's an access controlled file and just quits out. The movie player doesnt seem to allow asking of login/password info. Thoughts??

  • Master Detail Page

    Hi,
    I'm new at JDeveloper (using it for 3 weeks now), and I need some assistance in a little problem that I have. Let me give a description:
    I need to develop a master-detail page (I've tried several examples that I've found in this forum and blogs, but I can't seem to put it right), with a little difference from the usual. Let me start by describing my problem:
    I need to develop a Master-Detail page with a little information form on the top, and a Master-Detail Table on the bottom. There will be 3 tables related in this page, let's call it Table Emp, Table tabMaster (Master), Table tabDetail (Detail). The following information can be useful:
    Cardinality : Emp 1 - * tabMaster
    tabMaster 1 - * tabDetail
    The information form will be populated by a query that will execute on Emp, with a Emp.Id received by (for example) sessionScope. With this same Emp.id received by sessionScope, e need to develop a Master-Detail Table based on tabMaster and tabDetail. With this same Emp.id, I will query tabMaster to show the items related with Emp. The tabDetail will show the items related with tabMaster selected item.
    I'm sorry for the trouble, but I'm around this problem, for quite some time, and I've tried almost anything I can remember (since, invokeAction, viewlinks, you name it...).
    Thanks in advance
    Tiago Soares

    Hi,
    try the following
    1. drag and drop the form on top
    2. drag and drop the dependent master view as a table
    3. drag and drop the dependent detail table
    4. Add an ID to the buttons that force a currency change on the top form
    5. Select the table components and put in all the IDs as the value for the PartialTrigger property
    This will ensure the tables are getting refreshed when the form changes
    Frank

  • Master Detail Page Set link - to a Lightbox feature?

    I'm hoping someone can point me in the right direction here. I have set-up a master & detail page from a recordset and it is working as it should, however my client would like to have the details show up in a lightbox instead of going to another page. How can I accomplish this? I have a lightbox that I am using called pretty photo... which is also working, I just am looking for a way to have them work together.
    Thanks,
    Bret

    Thank you! that is getting me there I think I did change a couple things.... although I am still not sure how to tie the two links together.
    <a href="#inline-1" rel="prettyPhoto[inline]">Click to view details </a>
         <div id="inline-1" style="display:none;">
              <p>This is inline content opened in prettyPhoto.</p>
              <p>ECHO HERE</p>
         </div>
    This is the current link that redirects to a new page showing all info from recordset:
    <a href="staffDetail.php?recordID=<?php echo $row_rsStaffMaster['staffID']; ?>"> <?php echo $row_rsStaffMaster['lastName']; ?></a>
    What I need is the current link to display into the lightbox. How do I seperate the echo and still keep the staffID part?
    Thanks
    UPDATE:
    Ok so I have updated the link this way...
        <a href="#inline-1 staffDetail.php?recordID=<?php echo $row_rsStaffMaster['staffID']; ?> "rel="prettyPhoto[inline]"><?php echo $row_rsStaffMaster['lastName'];?></a>
            <div id="inline-1" style="display:none;">
                <p>This is inline content opened in prettyPhoto.</p>
                <p>ECHO HERE</p>
            </div>
    And this now open the lightbox... but all it does is give me a tiny lightbox of content | null
    Would I add my  -  staffdetailspage code & recordset to the ?
    <p>ECHO HERE</p>
    (the page that the link goes to now)          

  • Exporting Master/Detail page in Flash...

    Hi...
    Is it possible to have a master/detail page created in
    Dreamweaver like these (ASP or PHP):
    http://www.macromedia.com/support/dreamweaver/building/master_detail_net/
    http://www.macromedia.com/support/dreamweaver/building/master_detail_php/
    to be displayed in a flash scrollable box maintaining the
    ability to click on the single items and view their details?
    Thanks.

    Hi,
    It can be achieved using View Link.
    More information can be found at ToolBox Tutorial Guide.
    Regards,
    Gyan

Maybe you are looking for