Spry Master Detail from two HTML tables?

I'm trying to use two spry tables generated from html on the same page.I would like to set up an advaned master detail region where the "tbl_adrs" (contains Multiple addresses) references the "tbl_provider" (contains a provider name and the unique identifier 'ProNo'). Is this possible with spry data set from html tables? All examples reference spry tables from XML. If it is possible, here is the HTML to look at.
Thanks in advance.
John
</style>
<script src="../SpryAssets/SpryData.js" type="text/javascript"></script>
<script src="../SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
var ds_provider = new Spry.Data.HTMLDataSet(null, "tbl_provider");
ds_provider.setColumnType("ProNo", "number");
var ds_adrs = new Spry.Data.HTMLDataSet(null, "tbl_adrs");
ds_adrs.setColumnType("ProNo", "number");
ds_adrs.setColumnType("ID", "number");
//-->
</script>
<table width="300" border="0" id="tbl_provider">
      <tr>
        <th scope="col">Provider</th>
        <th scope="col">ProNo</th>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_rs_provider['BigName']; ?></td>
          <td><?php echo $row_rs_provider['ProNo']; ?></td>
        </tr>
        <?php } while ($row_rs_provider = mysql_fetch_assoc($rs_provider)); ?>
    </table>
    <p> </p>
    <div spry:region="ds_provider ds_adrs">
      <table>
        <tr>
          <th spry:sort="Provider">Provider</th>
          <th spry:sort="ProNo">ProNo</th>
        </tr>
        <tr spry:repeat="ds_provider" spry:odd="odd" spry:even="even" spry:hover="hover" spry:select="selected">
          <td>{Provider}</td>
          <td>{ProNo}</td>
        </tr>
      </table>
      <p>{ds_adrs::ProNo}{ds_adrs::ID}</p>
      <p>{ds_adrs::Group}</p>
      <p>{ds_adrs::Complex}</p>
      <p>{ds_adrs::Institution}</p>
      <p>{ds_adrs::Street}</p>
      <p>{ds_adrs::City}</p>
      <p>{ds_adrs::Phone}</p>
      <p>{ds_adrs::Fax}</p>
    </div>
    <p> </p>
    <p> </p>
    <table width="300" border="0" id="tbl_adrs">
      <tr>
        <th scope="col">ProNo</th>
        <th scope="col">ID</th>
        <th scope="col">Group</th>
        <th scope="col">Complex</th>
        <th scope="col">Institution</th>
        <th scope="col">Street</th>
        <th scope="col">City</th>
        <th scope="col">Phone</th>
        <th scope="col">Fax</th>
        <th scope="col">County</th>
      </tr>
      <?php do { ?>
        <tr>
          <td><?php echo $row_rs_adrs['ProNo']; ?></td>
          <td><?php echo $row_rs_adrs['ID']; ?></td>
          <td><?php echo $row_rs_adrs['Group']; ?></td>
          <td><?php echo $row_rs_adrs['Complex']; ?></td>
          <td><?php echo $row_rs_adrs['Institution']; ?></td>
          <td><?php echo $row_rs_adrs['Street']; ?></td>
          <td><?php echo $row_rs_adrs['Adrs_Comp']; ?></td>
          <td><?php echo $row_rs_adrs['Phone']; ?></td>
          <td><?php echo $row_rs_adrs['Fax']; ?></td>
          <td><?php echo $row_rs_adrs['County']; ?></td>
        </tr>
        <?php } while ($row_rs_adrs = mysql_fetch_assoc($rs_adrs)); ?>
    </table>

Moved to the Spry forum.

Similar Messages

  • Master Detail between two updatable tables ( advance tables)

    Hi,
    I have two advanced table regions, and both are updatable. They have Master detail relationship , and on clicking on the select button in the Master region, the updatable child region ( with generally more than one records), is displayed.
    The problem is, if I enter the details in the child region for one of the master records, and then without saving , move to the second master record, then the data is lost for the child records for the first master record.
    How do I retain that, without explicitly saving?
    I am having a handleSelection PPR event on the select radio button, and in that, I am executing the query for the child VO.
    Any help is appreciated !
    Thanks,
    AJ

    Hi!
    I don't understand that question.
    A Master Table could have a lot of Detail Tables.
    You can see that with SQL Workshop.
    Can you give me more details of that problem?
    Gerhard

  • Table appears for a second before spry Master/Detail loads

    Hi!
    I'm using the Spry Master/Detail function on a page to display an interactive version of the table on the same page. On browser load, the table is briefly displayed before it is replaced by the Spry interactive table. Is there any way to avoid this? It looks kinda hokey.
    ps I know I could avoid it by putting the table on another page, but then it wouldn't be searchable.
    Thanks in advance.
    Mignonne

    Sorry for butting in, Hi Beth,
    Considering the number of images that have to be loaded before the data can be displayed, the page is quite fast.
    There are a couple of things that can be done to make it load faster and to give it a feel that is is loading faster.
    To make it run faster consider
    compressing components with GZip, see here http://developer.yahoo.com/performance/rules.html#gzip
    placing expiry headers on images, css and js see here http://developer.yahoo.com/performance/rules.html#expires
    place the reference to js files further down, see here http://developer.yahoo.com/performance/rules.html#js_bottom
    use a Content Delivery Network, see here http://developer.yahoo.com/performance/rules.html#cdn
    To make it feel as though it runs faster, hide the contents until the data has been processed and issue a message or loading bar to that extent.
    1. add the following style rule to make use of the SpryHiddenRegion feature
    .SpryHiddenRegion {visibility:hidden;}
    2. change the first part of the Master/Detail region to
      <div class="MasterDetail">
        <div spry:region="dsepimediums">
         <div spry:state="loading" align="center"><h2>Loading data, please wait ...</h2></div>
          <div spry:state="ready">
            <div class="MasterContainer">
              <div class="MasterColumn" spry:repeat="dsepimediums" spry:setrow="dsepimediums" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected"><span spry:content="{Plant_Name}"></span></div>
            </div>
          </div>
        </div>
        <div spry:detailregion="dsepimediums" class="DetailContainer SpryHiddenRegion">
          <div class="DetailColumn"><h2>{Plant_Name}</h2></div>
    Here we are making use of the various states that Spry goes through see here http://livedocs.adobe.com/en_US/Spry/1.4/help.html?content=WSFC2EB69F-9F15-4005-A993-B7667 BA7EB75.html
    We are also doing our best to hide our data until fully available see here http://livedocs.adobe.com/en_US/Spry/1.4/help.html?content=WSFC2EB69F-9F15-4005-A993-B7667 BA7EB75.html
    I hope this helps.

  • How Do I: Bind a YUI Calendar Widget to a Spry Master Detail Region?

    Hello All,
    Does anyone know how to bind a YUI Calendar widget to a Spry
    master detail region? I have the dataset, yui calendar inserted but
    no clue how to bind the two so my dataset populates the calendar
    (Highlights dates that have a event) and when a date in the
    calendar is clicked it shows in the details section.
    I have found a tidbit or two via google but they don't deal
    with the new yui cs4
    widget. I have seen some video on adove tv that touches on
    inserting the yui calendar into a spry dataset but not how to bind
    the two together...
    Any thoughts on this would be greatly appreciated.

    You have to write some code that sets up a select callback on
    the YUI side of things, and then set the current row of the data
    set that matches that date.
    Something like this:
    var cal1 = new YAHOO.widget.Calendar("cal1","YUICal1");
    cal1.render();
    cal1.selectEvent.subscribe(function(type, args, obj)
    // Get the selected date string from cal1.
    var selectedDate = cal1.getSelectedDates()[0].getDate();
    // Find the first row in the data set that has the
    // selected date in it's "date" column.
    var row = ds1.findRowsWithColumnValues({"date":
    selectedDate}, true);
    // If we have a matching row, make it the current row for
    the data set.
    if (row)
    ds1.setCurrentRow(row.ds_RowID);
    }, cal, true);
    --== Kin ==--

  • OBIEE 11g - Combine data from two Oracle tables

    Good day!
    I tried to combine data from two Oracle tables as fact data, but it doesn't work.
    My steps: I created SCOTT.EMP2 table from SCOTT.EMP table, update EMPNO and ENAME values of EMP2 table to distinguish data of my tables. Then I imported physical tables DEPT, EMP and EMP2 to BIEE 11g, created joins DEPT-EMP and DEPT-EMP2 in physical diagram. Then I dragged DEPT and EMP tables to BMM, and EMP2 table to EMP as second LTS. In Content tab for EMP and EMP2 I checked "This source should be combined with other sources at this level" checkboxes. Then I renamed logical tables EMP and DEPT to Employees and Departments and dragged them to Presentation area. In Answers I created Analysis with columns DNAME and ENAME.
    The problem is that data on results tab is only from one physical table EMP or EMP2 (depending on the order of sources EMP and EMP2 of LT Employees) and not from both.
    Can anybody help? Am I missed something?
    Al.

    Hi Al,
    I think you have to define the content of the LTS.
    http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_BusModSetup16.html
    You have to specify the content of the different fragments.
    http://download.oracle.com/docs/cd/E12096_01/books/admintool/admintool_SetUpAggNav3.html#wp1005333
    Maybe you have to add an additional column 'Source' ('EMP1', 'EMP2')
    Good Luck,
    Daan Bakboord
    http://obibb.wordpress.com

  • Master Data from two source systems

    Hi Gurus,
    I need to load master data from two different source systems. What is the best way I could do that ?
    I know one approach is add system id 0logsys as prefix in compound tab and load it. But problem is master data table will have two different records and in the report it will display 2 records, can not summarized it in the report. But I need one record in the report. What is the best approach ?
    Thanks
    Liza

    Hi,
    Create two DataSources. one for each of the source system.
    Create two separate flows to the master from these two DataSources.
    Hope this helps!

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to create a foreign key for the table from two different tables?

    Hi All,
    I have a three table like below. In the below table SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK will be having the primary key for NAME column. The same SAMPLE_CONS3_CHECK table also having the primary key for NAME column and forieign key for SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK tables. See the below code 2
    code 1:
    CREATE TABLE SAMPLE_CONS_CHECK
            (NAME VARCHAR2(10),
            SERIES  VARCHAR2(5)
    CREATE TABLE SAMPLE_CONS2_CHECK
            (NAME  VARCHAR2(5),
             MODEL  NUMBER
    CREATE TABLE SAMPLE_CONS3_CHECK
            (NAME  VARCHAR2(5),
             MODEL_NO  NUMBER
            )code 2
    alter table SAMPLE_CONS_CHECK
    add constraint SAMPLE_CONS_CHECK_pk primary key (NAME)
    alter table SAMPLE_CONS2_CHECK
    add constraint SAMPLE_CONS2_CHECK_pk primary key (NAME)
    alter table SAMPLE_CONS3_CHECK
    add constraint SAMPLE_CONS3_CHECK_pk primary key (NAME)
    ALTER TABLE SAMPLE_CONS3_CHECK ADD
    CONSTRAINT SAMPLE_CONS3_CHECK_FK1 FOREIGN KEY
         NAME
    ) REFERENCES SAMPLE_CONS_CHECK
        NAME
    ) ON DELETE CASCADE;
    ALTER TABLE SAMPLE_CONS3_CHECK ADD
    CONSTRAINT SAMPLE_CONS3_CHECK_FK2 FOREIGN KEY
         NAME
    ) REFERENCES SAMPLE_CONS2_CHECK
        NAME
    ) ON DELETE CASCADE;From the above schenario i am able to insert the data to SAMPLE_CONS3_CHECK table. But the parent data is already available in the parent table. The problem is here two different constarints from two different tables. While inserting, it is checking from both the tables whether the parent is exist or not.
    How can i solve this problem? Can anyone halp me about this?
    Thanks
    Edited by: orasuriya on Aug 8, 2009 2:02 AM

    Actually the design is completely incorrect.
    What you say is
    I have
    'foo', 'foo series'
    'foo','foo model'
    'foo',666
    By virtue of table3 referring to both table1 and table2.
    This means you actually need to have 1 (one) table:
    'foo','foo series','foo model', 666
    And the 'problem' disappears.
    Sybrand Bakker
    Senior Oracle DBA

  • Retrieve values from a HTML table !!!

    Hi.
    How can i retrieve values from a HTML table using javascript ?
    I´m trying to use the command "document.getElementsByTagName" without success.
    Thanks in advance.
    Eduardo

    Hi, Deepu.
    I´m still with trouble in retrieving the value in HTML.
    In debug the C_CELL_ID seems to be correctly updated but
    when using the command "document.getElementById" the value is always "null".
    I implemented in the method DATA_CELL the code :
      if i_x = 3 and i_y = 2.
      C_CELL_ID             = 'zs'.
      C_CELL_CONTENT = 10. 
      endif.
    And in HTML :
    var ztest = document.getElementById('zs');
    alert(ztest);
    Could you help me please.
    Many regards
    Eduardo S.
    Message was edited by: Eduardo   Silberberg

  • Get the Common from Two Internal Tables with same structure

    Hi ,
    I need to get the Common data from Two Internal Tables with same structure with using the looping method.
    For e.g.
    I have two internal table say ITAB1 and ITAB2.
    ITAB1 has values A,B,C,D,E,F
    ITAB2 has values A,H,B,Y,O
    Output at runtime should be : A,B

    Hi mohit,
    1. If u want to compare all fields,
       for matching purpose,
       then we can do like this.
    2.
    report abc.
    data : a like t001 occurs 0 with header line.
    data : b like t001 occurs 0 with header line.
    loop at a.
      LOOP AT B.
        IF A = B.
          WRITE :/ 'SAME'.
        ENDIF.
      endloop.
    ENDLOOP.
    regards,
    amit m.

  • Selecting data from two different tables.

    Do we need to use join two tables with primary/foreign key while trying to use select statement for getting data from those to table.? If no who can i go about do it.

    872959 wrote:
    If i am using From clause to get data from two different tables, is it necessary that both tables have column of identical data in them.In general, they ought to (or you need to join in a third table that tells you how to map rows from one table to rows of the other table).
    It is not strictly necessary that there be any join condition between tables. If you don't provide a join condition, Oracle has to do a Cartesian product. That means that if there are n rows in one table and m rows in the other, the result set will have n * m rows. It is very rarely a good idea to write queries that do Cartesian products but it does occasionally happen.
    Justin

  • Using Spry Master Details And Flash Videos

    I orginally posted this in the Dreamweaver forum but found
    this one and figured it was a more appropriate place.
    Hi, I am using the Spry Master Detail set to Dynamically load
    a flash player into a detail area. Works great in Firefox but
    doesn't load the player in IE.
    http://www.3screensart.com/default5.cfm
    I have tried various methods
    http://www.3screensart.com/default6.cfm
    but still isn't working as intended.
    I could go back to iFrames but really don't want to do that
    either.

    Did you ever get this to work? I am trying to do something
    similar with no success. I tried swfobject and other ways of
    getting the parameters through Spry to Flash to no avail. Something
    in Spry is mangling my embed on the way to IE whenever it's
    included in a Spry region.
    I am reluctantly being forced to find something other than
    Spry due to IE.

  • How to create a master detail form using single table

    Hi,
    how to create a master detail form using single table.
    Regards,
    M. Satish

    Hi
    how to create a master detail form using single table.Make the Master ur pks the details the rest of ur data base field in the detail it's a mater of organizing fields on a form M-Detail...
    Now What ?
    Regards,
    Amatu Allah

  • How to create a master detail from using jdeveloper

    i am using developer 9.0.2 is it possible to create a master detail from using developer like in forms and also the detail form should be in tabular form
    thank u

    Yes. Just use BC4J and JClient
    Frank

  • Lgical table from two physical table

    Hi,
    I am trying to design a logical fact table from two physical table. One table has transaction data and another has accounting data. The requirement is, I need to merge the rows between these two tables, where were it matches. If the keys are not matching between these two table then also I need to bring those rows from both tables as separate rows. How can i do this? Also can i have a logical table as source for my fact table.

    You'll need outer joins in your physical layer and you can drag the columns from both physical tables to a single logical table and you will see in the BMM layer it will create the two logical table sources.

Maybe you are looking for