Help master detail page
I'm building a coupon website I finish all the back end
management information into my database now I'm getting frustrated
I try to figure out how to create a detail page from my master
page.
Inside my master page I have a table with the list of all my
offers inside I have logo/store/description/coupon/date. I want the
peolpe to click on the link store and have the full coupon list of
that store.
So far what I did I get the right url string
store_detail.php?recordID=00inkjets.com but but on my store_detail
page I get only 1 record whatever link I click. I tested my
store_detail page putting manually my store id number like
store_detail.php?recordID=7 and it's working fine.
I'm using dreamweaver MX2004, php, mysql for my dabase
structure I have:
-merchants-
id
name
url
extra
-deals-
dealID
logo
merchID
description
coupon
expire
cat_id
-category-
id
name
thanks in advance for any help...
A Master Detail Page is a basically a game between two VOs(Master and Detail mostly connected through a View Link). You can also have a look at the View Link section in the Dev guide. Page Layouts is one thing which you can take a call yourself.
Regards
Sumit
Similar Messages
-
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 youHi 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 (ASP)
I have dreamweaver 8 I am running vista 64 bit I am trying to do a master detail page but get this error. My recordset test fine
1- I am using access 2000 I have 2007 but I changed the one I was using to 2000 compatible thinking that might help.
2- When I click on here on the error page it goes to a lot of information about asp and IIS I starting reading and going to other links and leared about the UAC on vista. When I try to setup a connection in the ODBCad32 under the system dsn it said that I don't have administration ability. So I went to the msconfig and shut off the UAC but that didn't change any thing.
3 - I am not sure how to turn off friendly errors I will look into doing that later I have to take of for now.
Thanks -
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,
SteveSteve,
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 -
Spry Tabbed Panels and Master/ Detail Page Set interraction
Hi,
I have created a feedback form and am using a Spry Tabbed Panel to allow users to review all responses to one question and then all responses to the next question in different tabs, there are 6 tabs in all. In each tab I have created a Master/ Detail Page set - well actually just the Master appears in the tab. This is working fine. I allow up to 20 responses to be shown on each tab, after which the user selects First/Previous/Next/Last. When they do this the screen refreshes and the tabbed panel display goes back to the default tab, clicking on the tab previously used correctly displays whichever of First/Previous/Next/Last the user selected. I'd like the display to remain on the user's current tab when they select First/Previous/Next/Last.
The page in question is here http://www.hollisterairshow.com/feedback-results2.php, then scroll about half way down the page and select one of the tabs.
Thanks.
TonyHi Tony,
Look at the following, blue coded is comment only, red coded is what has to be added to your existing code and orange coded is added by the SpryDataSet creator if done properly. Where the orange part starts, thats where you place your cursor when creating the dataset.
<p> </p>
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0">All feedback</li>
<li class="TabbedPanelsTab" tabindex="0">Suggestions for improvement</li>
<li class="TabbedPanelsTab" tabindex="0">What did you like the most</li>
<li class="TabbedPanelsTab" tabindex="0">What did you like the least</li>
<li class="TabbedPanelsTab" tabindex="0">What else would you like to see</li>
<li class="TabbedPanelsTab" tabindex="0">Any other comments</li>
</ul>
<div class="TabbedPanelsContentGroup">
<div class="TabbedPanelsContent">
<table border="1" align="center" id="allFeedback"> .... start feedback table tag (line 763)
<tr>
<td width="80"><strong>Feedback Number</strong></td>
<td><strong>Days attended</strong></td>
<td><strong>Arrived by</strong></td>
<td><strong>Arrival arrangements</strong></td>
<td><strong>Expectations met</strong></td>
<td><strong>Ticket price</strong></td>
<td><strong>Zip code</strong></td>
</tr>
.................... rest of table probably your PHP repeat area
</tr>
</table> .... end feedback table tag
<div spry:region="dsAllFeedback">
<table>
<tr>
<th spry:sort="Feedback_Number">Feedback Number</th>
<th spry:sort="Days_attended">Days attended</th>
<th spry:sort="Arrived_by">Arrived by</th>
<th spry:sort="Arrival_arrangements">Arrival arrangements</th>
<th spry:sort="Expectations_met">Expectations met</th>
<th spry:sort="Ticket_price">Ticket price</th>
<th spry:sort="Zip_code">Zip code</th>
</tr>
<tr spry:repeat="dsAllFeedback" spry:setrow="dsAllFeedback" spry:odd="row_odd" spry:even="row_even" spry:hover="row_hover" spry:select="row_select">
<td>{Feedback_Number}</td>
<td>{Days_attended}</td>
<td>{Arrived_by}</td>
<td>{Arrival_arrangements}</td>
<td>{Expectations_met}</td>
<td>{Ticket_price}</td>
<td>{Zip_code}</td>
</tr>
</table>
</div>
<br />
<table border="0">
I hope this helps.
Ben -
Spry Tabbed Panel and Master/Detail Page Set interraction
Hi,
I have created a feedback form and am using a Spry Tabbed Panel to allow users to review all responses to one question and then all responses to the next question in different tabs, there are 6 tabs in all. In each tab I have created a Master/ Detail Page set - well actually just the Master appears in the tab. This is working fine. I allow up to 20 responses to be shown on each page, after which the user selects First/Previous/Next/Last. When they do this the screen refreshes and the tabbed panel display goes back to the default tab, clicking on the tab previously used correctly displays whichever of First/Previous/Next/Last the user selected. I'd like the display to remain on the user's current tab when they select First/Previous/Next/Last.
The page in question is here http://www.hollisterairshow.com/feedback-results2.php, then scroll about half way down the page.
Thanks.
TonyHi Tony,
Have a look here http://labs.adobe.com/technologies/spry/samples/data_region/PagingSample.html and here http://labs.adobe.com/technologies/spry/samples/data_region/SpryPagedViewSample.html
If you need further assistance, go to the Spry Forum http://forums.adobe.com/community/labs/spry
I hope this helps.
Ben -
How to dynamically disable interactive report filed in master detail page
I am using APEX 4.0 & very new to APEX. I am not able to make disable a filed in detail region (which is a interactive report) of a master detail Page.
I.e. want to disable field of a row based on value of another field for same record, just like set_item_instance_property of oracle forms. Please help me out.its working fine for tabular form. But not working for master detail form (for detail section). Can you please help me out
-
Possible error when using ADFBC selectOneListbox in a master-detail page
Hi Everyone,
I'm trying to setup master - detail page with ADF BC, using Dept / Emp.
I want to use a listbox for the master object, rather than the form + navigation commands as shown in the classic demos, so I've setup a listbox as following:
<af:selectOneListbox value="#{bindings.DepartmentsView1.inputValue}"
label="Available Flows:"
id="listbox_depts">
<f:selectItems value="#{bindings.DepartmentsView1.items}"
id="id_Selcet_Items"/>
The details element is the classic read-only table created by dragging the Employees view (under the departments) into the page.
The problem arises when I run the page - the list box shows all the departments, but when I click on different departments the table data does NOT change (as it would when navigating between rows with the classical form navigation buttons).
I've set up the Table's partial triggers to both of the listbox ids: id_Selcet_Items and listbox_depts but this doesn't help.
Is this a bug, or am I doing something totally wrong?
Tal.Tal,
You need to drop the Dept collection onto your page as a navigation list.
Blaise -
I am trying to create a master - master -detail page
environment in PHP which uses joining between two tables within the
same MySQL db.
The first page (chessmenu.php - recordset chessmenu) displays
a list of chessboard types from a MySQL table called chessmenu in
the chess db:
The 3 fields are:
itemID (auto_increment),
itemName (ie. Marble) and
itemType (M)
(NOTE: In this test, there are 3 rows, Marble, Glass and
Theme -
itemType will be my joining field, M, G, and T respectively
- which are all unique)
I want this first page to link to the next page and send the
URL parameter = chessboards.php?recordID=<?php echo
$row_chessmenu['itemType']; ?>
I created the second page (chessboards.php - recordset
chessboards) and made the FILTER within the recordset as follows:
itemType = URL Parameter recordID
When I run the first page, displays the proper items,
however, when I click one of those items (ie Marble (M)) it
displays nothing on the second page. I ran the query TEST on the
second page in the recordset filtering and when I enter M, it
displays the correct records (2 total).
They would then select the type of Marble Chess board from
the second page, which would then, send them to the detail page (3
pages total, thus my comment about Master, Master, Detail)
What am I doing wrong? Am I sending the URL Parameter
incorrectly? Any help would be appreciated. I thought I was
following the instructions in the TUTORIAL on this site:
"If the recordsets are different, make sure the recordset on
the detail page contains at least one column in common with the
recordset on the master page. The common column is usually the
record ID column,
but it can also be the join field of related tables."
BTW - Both ItemType fields in both Tables are the same
(CHAR(1))
Thanks,
SteveOn Mon, 11 Dec 2006 04:03:08 +0000 (UTC), "omnigate"
<[email protected]> wrote:
>UPDATE: This does work (forgot to refresh the page in
testing) to a limited
>degree. As I mentioned above, when it sends the URL
Parameter from first page
>to second page (itemType = M), the second page IS
receiving the info, HOWEVER,
>it only displays the first record (There are 2).
>
> Is there a way to get the URL parameter to pick up
multiple records or am I
>just going about this the wrong way. Thanks.
Are you using a Repeat Region server behaviour on your second
page?
Steve
steve at flyingtigerwebdesign dot com -
hi all:
i'm using jdeveloper10.1.2 i developed a master detail page but i need to put a button when the user click this button it will display the the detail table and by default the master table is loaded when the page is browsed and the detail table is hided how can i do it using jsp?????
Best RegardsLook at the 10.1.2 Help.
Search on index for master-detail, with search title Creating a single JSP Page mast working with.... -
ADF: Master Details Page
Hello,
I have just started out trying to develop an application in JDeveloper with ADF and I am coming from a Apex/Forms/PL SQL background. I am trying to develop an online application form for our Grants program.
The problem I am having is I have a master detail type page where I have a section D (Master) and then I have a breakdown of cost (detail). I have created a creation page for the section D and I have then another creation section on the same page for the breakdown of the costs by dragging the view that is under the section D view.
The problem is the detail section seems to be bring back the first record from the table. This is not what I expected as I would assume this to be blank record as we have a blank record in the master part.
Is there anyway around this where on startup the detail section brings up a blank record instead of the first record in the view?
Cheers in advance in any help on this matter.
Paul.Most likely you dragged the wrong detail structure from the Data Control palette. When you created your Application Module, and added View objects to it, you would have seen a tree structure. Views will be listed separately, but if you have a View Link associating a detail view with its master, you will also see that view in the tree under the master. Something like this:
MyMasterView
MyViewLink
MyDetailView
MyDetailViewMake sure that this structure has been moved to the right side of your Application Module. There you will see something like:
MyMasterView1
MyDetailView2
MyDetailView1This is what creates the tree structure in the Data Control palette. When you created your master/detail page, you dragged MyMasterView1 for the fields from your master view. But you probably dragged MyDetailView1 for the details. This does not use the View Link to associate your details with the current master record. To do this, you must use MyDetailView2, which you will find by expanding the tree under the master.
Now, to get a blank record in the detail, you have to execute a Create action from that data control. You can drag a Create button to the page, and the user can press the button to get a blank record. Or you can cause a create action to happen whenever you enter that page. -
How to Create Master Detail Page with Query Region
Hi,
1. I have a requirement that i need to create a Master(Supplier) Detail(Supplier Site) Page with Query Region.
Eg. Supplier A in Australia has Supplier Sites X in Melbourne and Y in Sydney.
Supplier B in US has Supplier Sites C in New York and D in California.
I need to have Search, based on two fields Supplier Name and Country
Let us assume i am searching with Supplier Name A then the page should be in the below layout
Query Region
Supplier Name : A
Country:
Master
Supplier Name Country
A Australia
Detail
Supplier Site City
X Melbourne
Y Sydney
In detail VO it should allow me to add new sites which means i need to connect this VO to database to insert new records
I have gone few threads and understood that this can be achieved by creating SupplierVO, SupplierSiteVO and a ViewLink.
But when tried i don't know how can i relate my query region with the Suppleir Table(Header Reagin and Table Using Wizard) and Supplier Site Table(Header Region and Table Using Wizard) i am not sure if i am correct or not, please advise
2. Also i need to have a Open button in this page and if click the button it should navigate to some other page.
Please help me how can i achieve this.
- How to design my page with query region and master detail tables
- what is the AM and CO code need to be handled
- What is the code should i write in Open button to open new OAF page.
Thanks,
CSKHi,
This link will be useful for your requirement.
Master Detail Page using Hide Show and Advanced Table inside Advanced Table - OracleArea51.com
Let me know if you need more help in this.
Thanks and Regards,
Myvizhi -
Modify Master/Detail pages
<?php require_once('Connections/pdoConnect.php'); ?>
<?php
// Issue the query
$pdo_recordset1 = $conn->query("SELECT id, title, author, subject FROM audio");
$pdo_recordset1->setFetchMode(PDO::FETCH_ASSOC);
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Audio List</title>
</head>
<body>
<?php
// Now iterate over every row and display it
$n = 0;
while($r = $pdo_recordset1->fetch(PDO::FETCH_ASSOC))
?>
<a href="PDO_detail.php?item=<?php echo $r['id']?>">
<?php echo ($r['subject'])?><?php echo ($r['title'])?><?php echo ($r['author'])?></a><br />
<?php
++$n;
if(0 == $n)
echo "Sorry there are no items to display";
?>
</body>
</html>
This is the code produced by DW Master/Detail pages for the Master page using the PDO extension. This produces a list of all entries in the database. However I want to separate out the "subject" data as a heading above each title within that subject group. Eg:
SUBJECT 1
title 1
title 2
title 3
SUBJECT 2
title 1
title 2
etc
I think this will require an array of the subjects and a nested loop for the titles, but not sure how to modify the code to achieve this - any help would be very welcome.<?php require_once('Connections/pdoConnect.php'); ?>
<?php
// Issue the query
$pdo_recordset1 = $conn->query("SELECT id, title, author, subject FROM audio");
$pdo_recordset1->setFetchMode(PDO::FETCH_ASSOC);
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Audio List</title>
</head>
<body>
<?php
// Now iterate over every row and display it
$n = 0;
while($r = $pdo_recordset1->fetch(PDO::FETCH_ASSOC))
?>
<a href="PDO_detail.php?item=<?php echo $r['id']?>">
<?php echo ($r['subject'])?><?php echo ($r['title'])?><?php echo ($r['author'])?></a><br />
<?php
++$n;
if(0 == $n)
echo "Sorry there are no items to display";
?>
</body>
</html>
This is the code produced by DW Master/Detail pages for the Master page using the PDO extension. This produces a list of all entries in the database. However I want to separate out the "subject" data as a heading above each title within that subject group. Eg:
SUBJECT 1
title 1
title 2
title 3
SUBJECT 2
title 1
title 2
etc
I think this will require an array of the subjects and a nested loop for the titles, but not sure how to modify the code to achieve this - any help would be very welcome. -
Master Detail pages php/mysql Links
I have a master/detail page setup that is working properly. I
am trying ot add a Link to only a few of the detaill pages but not
to show up on others. I tried to set just do the html in a text
field but It owuld not come out as link. It did underline it like a
link.
I also tried to do a If statement but am getting parse errors
when I add the html code.
<? if ($row_detail['link'] {
echo "<a herf=$row_detail['link']>Expanded
Detail</a>
I get a parse error of unexpected <
Any body have any idea if this is possible and how I might
get it to work
Thanks
TimDavid
Getting closer I put in this
<? if ($row_rscdetail['link']) {
echo "<a herf='{$row_rscdetail['link']}'>Expanded
Detail</a>"; } ?>
Everything is good except it is not a link. It is underlined
and mouses over but not link.
The source code from ie is
<a herf='
http://www.sflcondos.com'>Expanded
Detail</a>
I also put the " " around the link in the table field and
removed the ' ' from <a herf='{etc}' and it came out in source
code as
<a herf="
http://www.sflcondos.com">Expanded
Detail</a>
It has got me stumped
Thanks for your help
Tim
Maybe you are looking for
-
Is it possible to force a single decimal in a specific column in the formula?
I am working with a report where the decimal placement needs to change in different columns of the same row (due to unions). Therefore, I am looking to show only 1 digit after the decimal point in one cell out of the whole row. Is there a formula I c
-
ITunes 10.2.1.1 is unresponsive
I upgraded to the new version on my computer on Wednesday. The old version worked like a charm and never had issues. Upgraded the same way I have everytime. However, the latest has given me nothing but issues. It now takes about 5 minutes to open. On
-
Unity player won't use discrete graphics--plugin-container?
I'm trying to play a Unity game in Firefox--honestly because Chrome doesn't support them anymore. My computer is a Lenovo Y50 with an 860M graphics card running Optimus. I've set Firefox to use the discrete graphics card, but Unity games refuse to ut
-
Quick story then question.....
My friend brought over his iphone,he doesn't have a computer but wanted to update to 2.0.It said that becuase this was not the computer he synced with originally that if he did update it would erase all music,video etc.He did it anyways.Then he wante
-
I recently upgraded from my Tungsten PDA to a Palm Centro. I followed all the instructions about installing the new Palm software over my old software on my computer. When I connected the Centro and computer to synch everything to my Centro, I fou