Note that there are some explanatory texts on larger screens.

plurals
  1. POSrpy dataset if decision based on value from different dataset
    primarykey
    data
    text
    <p>Many thanks for reading this. I have asked as well in Adobe forums with no luck.</p> <p>I am building a small library application for school books. I have created a database with lets say 2 tables</p> <pre><code>Books ( ID_Book , Writer , Title , Copies) and Loans ( ID_Book , Load_ID , Loan_Date ) etc </code></pre> <p>I have used correctly spry to create easily a table which print the book list in a table with pagination .</p> <pre><code>var ds1 = new Spry.Data.XMLDataSet("ajaxquery.php", "root/row", {sortOnLoad: "Writer", sortOrderOnLoad: "ascending"}); ds1.setColumnType("ID_Book", "number"); var pv1 = new Spry.Data.PagedView( ds1 ,{ pageSize:10 }); var pv1PagedInfo = pv1.getPagingInfo(); pv1.setColumnType("ID_Book", "number"); </code></pre> <p>I have made the necessary declarations to produce the dataset for the Loans</p> <pre><code>var ds3 = new Spry.Data.XMLDataSet("ajaxallloans", "root/row", {sortOnLoad: "ID_Book", sortOrderOnLoad: "ascending"}); ds3.setColumnType("ID_Book", "number"); ds3.setColumnType("ID_Dan", "number"); </code></pre> <p>I would like to find a way to change the table row color for the BOOKS table <strong>IF an ID_Book is within the Loans table - ds3.</strong></p> <p>The table is created</p> <pre><code>&lt;div spry:region="pv1" id="bibliapv"&gt; &lt;div spry:state="loading" class="loading" &gt;Loading...&lt;/div&gt; &lt;div spry:state="ready"&gt; &lt;table&gt; &lt;tr &gt; &lt;th width="75" spry:sort="ID_Book"&gt; Book No&lt;/th&gt; &lt;th width="123" spry:sort="Writer"&gt;Writer &lt;/th&gt; etc... &lt;/tr&gt; &lt;tr spry:repeat="pv1" spry:select="mySelectClass" spry:hover="hover"&gt; &lt;td &gt;{ID_Book}&lt;/td&gt; &lt;td&gt;{writer}&lt;/td&gt; etc .. &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; &lt;div&gt; </code></pre> <p>Many thanks again. Dinos - Greece</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload