Linking to a detail page
I have the letters A to Z in a master page and would like to
link to a
detail page, where all companies are displayed whose names
begin with A,
or B depending which letter the user has clicked.
On the detail page (compdetail.php) I have that code:
$query_rsCompanies = sprintf("SELECT id, name FROM
tblcompanies WHERE
name LIKE %s", GetSQLValueString($colname_rsCompanies . "%",
"text"));
But how do I link from the master page to that detail page?
I have as example for the letter "p" <a
href="compdetail.php?name=colname">p</a>, but that
doesn't work - I
fear, the link is ridiculous, sorry :(
Could someone point me the right way?
Thank you
Leo
On 13 May 2008 in macromedia.dreamweaver.appdev, Leolux
wrote:
> I have the letters A to Z in a master page and would
like to link to
> a detail page, where all companies are displayed whose
names begin
> with A, or B depending which letter the user has
clicked.
>
> On the detail page (compdetail.php) I have that code:
> $query_rsCompanies = sprintf("SELECT id, name FROM
tblcompanies
> WHERE name LIKE %s",
GetSQLValueString($colname_rsCompanies . "%",
> "text"));
>
> But how do I link from the master page to that detail
page?
> I have as example for the letter "p" <a
> href="compdetail.php?name=colname">p</a>, but
that doesn't work - I
> fear, the link is ridiculous, sorry :(
>
> Could someone point me the right way?
Since you're using PHP, I'll assume MySQL.
The link winds up looking like:
<a href="compdetail.php?name=p">p</a>
Then the SQL winds up looking like:
SELECT id, name FROM tblcompanies WHERE LEFT(name,1) = asdf
ORDER BY
name ASC
You'll use the Advanced screen in the recordset definition.
In the
parameter box, you'll add asdf; default value is A and
runtime value is
$_GET['name']
You can even generate a dataset for the master page with the
first
initials of all the companies:
SELECT DISTINCT LEFT(name) AS initial FROM tblcompanies ORDER
BY
initial ASC
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/contact.php
Similar Messages
-
I'm trying to replicate the traditional "Go to detail" link
used in ASP etc, but from a Spry list. So the idea would be that
the user would see a list of records and click on one of them to go
to a traditional asp detail page from where they can modify or
delete the record.
Any help would be appreciated.The usual way to go to a detail page is to specify the URL
and append a unique parameter to the end.
href="thedetailpage.asp?id=4"
So in Spry, if you have that unique identifier in the XML,
you can do something like
<a
href="thedetailpage.asp?id={dataref}">{listref}</a>
Hope this helps.
Donald Booth
Adobe Spry Team -
Linking JSP master-detail pages
Hi all,
I am developing a JSP-BC4J application with JDev903.
I have a hierarchy of 5 view objects, let's say VO1,..,VO5, linked to each other by one-to-many view links. I would like to make a drill-down for this data.
With the JSP for BC4J wizard, I generated an JSP application, which contains (among others) 4 JSP master-detail pages:
- VO1 DataRecord with VO2 DataTable
- VO2 DataRecord with VO3 DataTable
etc.
In the DataTable's, I added the next master-detail page as an edittarget. If you click it, the next page appears, but the data on this page do not correspond with the master table row that you clicked. So probably, you have to add some extra code to synchronize the row sets.
My questions:
- how can you get this to work ?
- what is the best place to change things ?
- does anyone have an example of this ?
Cheers,
FrankAs long as you add ViewLinks between your master-detail levels, the synchronization is automatic. You just have to make sure you use the 'correct' view object usage name. Look at your ApplicationModule's model via its editor.
-
SAP LSO- (WBT)Confirm Participation link in course detail page is missing
The end user has finished working on the content and has properly logged off and closed the Content Player.
When he comes to the course detail page in the Learning Portal, he finds that the 'Confirm Participation' link is missing.
Following is the configration that has been set for the Course Type( has the delivery method 0003-WBT)-
SPRO(Training and Event Management->SAP Learning Solution->Training Management->Recurring Activites->Follow-Up->Control of Process Steps)
0003, L, K, SIGNATURE(BLANK), ACTIVATE(X)
0003, S, C, SIGNATURE(BLANK), ACTIVATE(X)
0003, S, E, SIGNATURE(BLANK), ACTIVATE(X)
0003, S, G, SIGNATURE(BLANK), ACTIVATE(X)
IT5047 has the following settings for the course type-
L, A, Signat. On/Off(BLANK), ACTIVATE(X)
S, B, Signat. On/Off(BLANK), ACTIVATE(X)
S, C, Signat. On/Off(BLANK), ACTIVATE(X)
B, I, Signat. On/Off(BLANK), ACTIVATE(X)
The 'Confirm Participation' link should have appeared. Suggestions on root cause of the problem and problem resolution are appreciated.Dear Amit Tyagi
How solve this issue?
Thanks in advance,
Regards -
done this loads of time but can some just help me
i have a page that show some of the results of a query but need to show this rest with a view details here
looking at it too long i think
mysql_select_db($database_hostprop, $hostprop);
$query_Recordset1 = sprintf("SELECT tk_job_title, tk_job_location, tk_job_salary, LEFT(tk_job_desc,200) as truncated_job_desc FROM think_jobsearch WHERE tk_job_title LIKE %s OR tk_job_location LIKE %s OR tk_job_salary LIKE %s", GetSQLValueString("%" . $var_tk_job_title_Recordset1 . "%","text"),GetSQLValueString("%" . $var_tk_job_location_Recordset1 . "%", "text"),GetSQLValueString("%" . $var_tk_job_salary_Recordset1 . "%", "text"));
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $hostprop) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
the link is here
<a href="job-description.php?<?php echo $row_Recordset1['tk_job_title']; ?>=">view more</a>
the results page is here
$colname_Recordset1 = "-1";
if (isset($_GET['tk_job_title'])) {
$colname_Recordset1 = $_GET['tk_job_title'];
mysql_select_db($database_hostprop, $hostprop);
$query_Recordset1 = sprintf("SELECT * FROM think_jobsearch WHERE tk_job_title = %s", GetSQLValueString($colname_Recordset1, "text"));
$Recordset1 = mysql_query($query_Recordset1, $hostprop) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
tabe below
<td>Job TItle</td>
<td><?php echo $row_Recordset1['tk_job_title']; ?></td>
</tr>
<tr>
<td>location</td>
<td><?php echo $row_Recordset1['tk_job_location']; ?></td>
</tr>
<tr>
<td>salary</td>
<td><?php echo $row_Recordset1['tk_job_salary']; ?></td>A querystring consists of name/value pairs. You are only including the value in yours. Try
<a href="job-description.php?tk_job_title=<?php echo $row_Recordset1['tk_job_title']; ?>=">view more</a> -
Just looking for some help, not coding, for a site I'm
planning. I want keywords in my articles to be hyperlinks that link
to the record in the database that they are associated with. For
example, if you view espn.com, and you click on any article of
theirs, they will put a person's name or a team's name as a
hyperlink in an article in mid-sentence that links to the "detail
page" in the database.
For example... "
Michael Vick's dog fighting drew criticism from the
Atlanta Falcons on Monday."
Perhaps I am overcomplicating this. But it doesnt seem
realistic to me that some sports write for ESPN knows how to create
a hyperlink to a dynamic page.
How do I go about doing something like this in theory?
Are they just manually linking and they know the player and
team to the parameter (ID) address.... www.espn.com/?id=1234
Do they have some kind of alphabetical list of names that
they drag and drop on screen that automatically creates a
hyperlink?
Is there a way to make this dynamic by dragging and dropping
the dynamic {player.name} code?
How is this done?
Thanks for any help.Buehler? Buehler?
-
Dynamic image gallery on detail page
I have a master page listing 8 products. I have inserted a dynamic image gallery on the detail page which looks ok, but has one major flaw: when you click on a thumbnail the main image opens on the wrong page. e.g. if you click on page ../dragons.php?id=3 the main image opens on ../dragons.php/id=1 and shows the following url: .../dragons.php?image=btf.jpg (or whatever the image file name).
I have only just started using php and I would appreciate some guidance on how to resolve this problem.
The relevant sections of the code are as follows?
$vardragon_dragons_species = "1";
if (isset($_GET['id'])) {
$vardragon_dragons_species = $_GET['id'];
mysql_select_db($database_cjwebsite, $cjwebsite);
$query_dragons_species = sprintf("SELECT dragons.Order, dragons.family, dragons.Latin, dragons.English, dragons.Img1, dragons.Img2, dragons.Img3, dragons.img4, dragons.Img5, dragons.text, `dragons gallery`.filename, `dragons gallery`.caption, dragons.id, `dragons gallery`.image_id, dragons.id FROM dragons, `dragons gallery` WHERE dragons.id = `dragons gallery`.image_id AND dragons.id=%s", GetSQLValueString($vardragon_dragons_species, "int"));
$dragons_species = mysql_query($query_dragons_species, $cjwebsite) or die(mysql_error());
$row_dragons_species = mysql_fetch_assoc($dragons_species);
$totalRows_dragons_species = mysql_num_rows($dragons_species);
if (isset($_GET['image'])) {
$mainImage = $_GET['image'];
else {
$mainImage = $row_dragons_species['filename']; }
<body>
<div class="main_image"><img src="../images/dragons/<?php echo $mainImage; ?>" alt="<?php echo $row_dragons_species['caption']; ?>" />
<div class="capt"><?php echo $row_dragons_species['caption']; ?></div>
<ul class="gallery">
<?php do {
if ($row_dragons_species['filename'] == $mainImage) {
$row_dragons_species['caption'];
}?>
<li><a href="<?php echo $_SERVER['PHP_SELF'];?>?image=<?php echo $row_dragons_species['filename']; ?>"><img src="../images/dragons/thumbs/<?php echo $row_dragons_species['filename']; ?>" alt="<?php echo $row_dragons_species['caption']; ?>" /></a></li>
<?php } while ($row_dragons_species = mysql_fetch_assoc($dragons_species)); ?>
</ul>
Many thanks
CJI'm still at an early stage in building this site and because it is allvery experimental I am and just using local testing.
So to try to explain my objective. I have a master page with 8 products there is a link to a detail page based on product id. So from the master page (dragons.php) you can select a product which will show the product information on a detail page (eg. dragons_species.php?id=1 or dragons_species.php?id=2 etc). This works ok.
Each detail page has various pieces of information and 5 images. I wanted to show the images in an image gallery format and so used the code you provide in your book PHP Solutions (Creating a Dynamic Online Gallery pp.323-330). This works ok on the first page where id=1, but on subsequent pages (id=2, id=3 etc) I am loosing the id link infavour of an image based link.
This is the complete script for my detail page (dragons_species.php)
<?php require_once('../Connections/cjwebsite.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$vardragon_dragons_species = "1";
if (isset($_GET['id'])) {
$vardragon_dragons_species = $_GET['id'];
mysql_select_db($database_cjwebsite, $cjwebsite);
$query_dragons_species = sprintf("SELECT dragons.Order, dragons.family, dragons.Latin, dragons.English, dragons.Img1, dragons.Img2, dragons.Img3, dragons.img4, dragons.Img5, dragons.text, `dragons gallery`.filename, `dragons gallery`.caption, dragons.id, `dragons gallery`.image_id, dragons.id FROM dragons, `dragons gallery` WHERE dragons.id = `dragons gallery`.image_id AND dragons.id=%s", GetSQLValueString($vardragon_dragons_species, "int"));
$dragons_species = mysql_query($query_dragons_species, $cjwebsite) or die(mysql_error());
$row_dragons_species = mysql_fetch_assoc($dragons_species);
$totalRows_dragons_species = mysql_num_rows($dragons_species);
if (isset($_GET['image'])) {
$mainImage = $_GET['image'];
else {
$mainImage = $row_dragons_species['filename']; }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Odonata Species</title>
<link href="../Css/dragons.css" rel="stylesheet" type="text/css" />
<link href="../Css/menu.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<?php include('../Includes/logo2.inc.php'); ?>
</div>
<div id="content"> <div id="title">
<h1>Damselflies & Dragonflies</h1>
</div>
<div class="family")><?php echo $row_dragons_species['Order']; ?></div>
<div class="subfamily">
<?php echo $row_dragons_species['family']; ?>
<div class="main_image"><img src="../images/dragons/<?php echo $mainImage; ?>" alt="<?php echo $row_dragons_species['caption']; ?>" />
<div class="capt"><?php echo $row_dragons_species['caption']; ?></div></div></
<div class="description">
<div class="text" id="name"><?php echo $row_dragons_species['Latin']; ?></div>
<div id="vernname"><?php echo $row_dragons_species['English']; ?></div>
<?php echo $row_dragons_species['text']; ?></div>
<ul class="gallery">
<?php do {
if ($row_dragons_species['filename'] == $mainImage) {
$row_dragons_species['caption'];
}?>
<li><a href="<?php echo $_SERVER['PHP_SELF'];?>?image=<?php echo $row_dragons_species['filename']; ?>"><img src="../images/dragons/thumbs/<?php echo $row_dragons_species['filename']; ?>" alt="<?php echo $row_dragons_species['caption']; ?>" /></a></li>
<?php } while ($row_dragons_species = mysql_fetch_assoc($dragons_species)); ?>
</ul>
<div id="footer">
<?php include('../includes/footer.inc.php'); ?>
</div></div>
</div>
</body>
</html>
<?php
mysql_free_result($dragons_species);
?>
The code for my master page dragons.php is as follows
<?php require_once('../Connections/cjwebsite.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
mysql_select_db($database_cjwebsite, $cjwebsite);
$query_dragons_species = "SELECT id, Latin, English, Thumbs FROM dragons";
$dragons_species = mysql_query($query_dragons_species, $cjwebsite) or die(mysql_error());
$row_dragons_species = mysql_fetch_assoc($dragons_species);
$totalRows_dragons_species = mysql_num_rows($dragons_species);mysql_select_db($database_cjwebsite, $cjwebsite);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Odonata</title>
<link href="../Css/menu.css" rel="stylesheet" type="text/css" />
<link href="../Css/dragons.css" rel="stylesheet" type="text/css" />
<body>
<div id="header">
<?php include('../Includes/logo2.inc.php'); ?></div>
<div id="content"> <div id="title">
<h1>Damselflies</a> & Dragonflies</h1>
<div id="sidebar">
<?php include('../Includes/menu2.inc.php'); ?>
<div id="text">
<h2>ODONATA</h2>
</h2>
<p>Ten species have been recorded on the islands, of which seven are common and widely distributed. The Golden-ringed Dragonfly and the Emerald Damselfly are both very scarce, whilst the record of the Azure-winged Dragonfly on Lewis is unconfirmed.
<?php do { ?>
<div class="speciesbox"><a href="Dragons_species.php?id=<?php echo $row_dragons_species['id']; ?>"><img src="../images/dragons/thumbs/<?php echo $row_dragons_species['Thumbs']; ?>" /></a>
<div class="latin"><a href="Dragons_species.php?id=<?php echo $row_dragons_species['id']; ?>"><?php echo $row_dragons_species['Latin']; ?></a>
<div class="english"><a href="Dragons_species.php?id=<?php echo $row_dragons_species['id']; ?>"><?php echo $row_dragons_species['English']; ?></a> </div>
</div></div>
<?php } while ($row_dragons_species = mysql_fetch_assoc($dragons_species)); ?> </div>
<div id="footer">
<?php include('../includes/footer.inc.php'); ?>
</div>
</body>
</html>
<?php
mysql_free_result($dragons_species);
?>
Does this shed any light?
Many thanks
CJ. -
I made a button in. This button is part of a repeated region
in a master-page and should "onClick" go to the detail-page.
I don't know if it is possible to make a detail-page link to
a flash-button in Dreamweaver? Or is there a possibility to give
the detail-link already in Flash?
This is the detail-link in Dreamweaver:Ulitasch wrote:
> I don't know what is " FlashVars and level0 scope"?
FlashVars is one way to pass variables to a Flash movie from
HTML very
similar to query strings in the URL. if you pass a var named
foto, it
can be accessed with: _level0.foto
take a look at Flash help for FlashVars and levels
> What do I have to put in: var_to_flash=<?php echo
...; ?>',
> Do I replace <?php echo ...; ?> with the link to
the detail page?
> "../portfolio/index.php?foto=<?php echo
$row_rsPORTFOLIO2['foto_order']; ?>"
just the var name and its dynamic value:
foto=<?php echo $row_rsPORTFOLIO2['foto_order']; ?>
as the path and page name seems to be static it doesn't make
sense to
include them in the var; put them in the Flash movie:
getURL("../portfolio/index.php?"+_level0.foto);
> And what do I put in the places after:
AC_FL_RunContent('...','...','
> Sorry, this is very new for me..
Dreamweaver 8.0.2 generates that code when you insert a Flash
movie and
Code Rewriting > Active content option in Preferences is
selected:
AC_FL_RunContent('codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',...
and don't worry. everybody learn new things each day! -
Detail page only for certain values
I have a page that searches a few tables.
its a overall search, but there are records we dont want to
allow anyone to
edit based on a value.
So my question is... i have a results page which is already
setup to display
all records found.. with a link(go to detail page) how can i
code it so if
any of the results have a certain value that link is not
available?
Example
Name Phone Email
Contact Details
John 555-555-5555 [email protected] Yes View
Dave 222-333-4545 [email protected] No
Jess 854-896-7852 [email protected] Yes View
Using ASP, SQL2005 and DW8Can anyone help with this one?
I just want to disable the link to the detail page if the
value for Contact
is NO then disable Details link
Using ASP, SQL2005 and DW8
"Daniel" <[email protected]> wrote in message
news:f2d35r$806$[email protected]..
>I have a page that searches a few tables.
>
> its a overall search, but there are records we dont want
to allow anyone
> to edit based on a value.
>
> So my question is... i have a results page which is
already setup to
> display all records found.. with a link(go to detail
page) how can i code
> it so if any of the results have a certain value that
link is not
> available?
>
> Example
>
> Name Phone Email Contact Details
> John 555-555-5555 [email protected] Yes View
> Dave 222-333-4545 [email protected] No
> Jess 854-896-7852 [email protected] Yes
> View
>
>
>
> --
> Using ASP, SQL2005 and DW8
> -
Hi There,
I am creating a dynamic link from a news item in my index.php
page. I have highlighted the field (in index.php) I want to use as
the dynamic link to the detail page and used the 'go to detail page
for PHP server behaviour'. This links to my detail page called
'newscontent.php'. On newcontent.php, I have created a filtered
recordset which filters by newsID (which is the primary key in the
Mysql database). Using the simple recordset dialog, I did a test
and entered in a test value for URL parameter: newsID. This works
successfully and returns the appropriate records from the database.
Therefore as things seem to be working so far, I have dragged the
newsTitle and newsContent onto my detail page so that when the user
clicks on the link in the index.php page, it will show the title
and content in the detail page.
However things are not working. In the newscontent.php, when
I do live data view, nothing appears on the page (which is weird
because the recordset works fine!!). Even when I view my index.php
page in my browser and try and link to the detail page, it goes to
the detail page no problem but no data is on the page!!! It is just
empty.
I must be doing something really daft, so if someone can spot
a mistake in my strategy here, that would be much appreciated.
dmlockeThis seems sort of pointless to ask, but just in case??? You
say:
"I have highlighted the field (in index.php)" Do you mean
"textfield?" Anyways, I would think that you'd want to use a
dynamically populated menu which then pins the newsID using a URL
parameter or session variable. Anyways, what I'm getting at is: You
have somehow included the newsID chosen on index.php in the
information that's sent to the detail page request and then used
that to filter the SQL query that you already said work when you
PERSONALLY designate a value, right?
Good luck! Hopefully my query, will help you with your
query! -
Hi there,
CS3 with PHP and mySQL db.
I cannot get the go to detail page to work properly. I have
downloaded the
"Go to detail page" extention from
http://www.dengjie.com which
seems to
work.
BUT, what do I do on the detail page? In ASP there is a SB
that says "Go to
Specific Record" but this is not there with PHP.
I will really appreciate any help. At the moment the only
thing it does
when clicking to my "More details" link, is to go to the
first record.
Thank you very much!
DeonDeon wrote:
> I cannot get the go to detail page to work properly. I
have downloaded the
> "Go to detail page" extention from
http://www.dengjie.com which
seems to
> work.
I don't know anything about that extension, nor do I read
Chinese, so
the following information is based on how to go to a detail
page
correctly without using any third-party extension.
> BUT, what do I do on the detail page? In ASP there is a
SB that says "Go to
> Specific Record" but this is not there with PHP.
The way that you handle this with PHP is to append a query
string to the
URL in the "more details" link. Let's say that the primary
key of your
database table is product_id, the link to the detail page
needs to look
like similar to this:
<a href="product_details.php?product_id=9">More
details</a>
In product_details.php, you create a recordset that uses the
URL
variable, product_id, as a filter.
So, how do you add the correct product_id into the "more
details" link?
1. Select the words that create the link.
2. Click the folder icon to the right of the Link field in
the Property
inspector.
3. Select the details page in the dialog box.
4. Before closing the dialog box, click the Parameters
button.
5. In the Parameters dialog box, type the name of the primary
key
(product_id in this case) into the Name field.
6. Click the lightning bolt icon to the right of the Value
field.
7. This opens the Dynamic Data dialog box, where you should
select the
primary key (product_id) from the recordset.
8. Click OK three times to close all the open dialog boxes.
This creates the following code in your link:
<a href="product_details.php?product_id=<?php echo
$row_recordsetName['product_id']; ?>">More
details</a>.
The large number of steps makes it sound complicated, but
it's actually
very simple once you have done it a couple of times.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
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
MarionYes, 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 -
Is it possible to disable the 'edit layout' link on the record detail page
Is it possible to disable the 'edit layout' link on the record detail page? Not the homepages, I know there is a switch for that, but I thought there was one for the detail pages?
I want to disable this as I dont want users saving their own layouts, they must stick to the related sections defined in the default layout. The problem is that if they are to have access to certain related lists when an opportunity is of a certain type but NOT other types. If they have saved the layout (using the 'Edit Layout' link), and change the record type, they will see related sections that have been set to 'Not available' in the default layout (ie step 4) for that 'type'.Robbo, at this time it not possible to disable the Edit Layout on the record detail page.
-
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,
BretThank 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) -
How to add custom link or button to task details page to open a different t
Dear All
In HumanTasks Workflow, On task details page, I want to add a custom link or button. Clicking on this link or button, should load a different task details page.
The exact business usecase is like this:
1. We have some human tasks with very detailed payload like about 100 attributes. When the task is submitted for Approval, we send notification emails. These emails shows the Task Details with all these 100 attributes along with standard Approve, Reject buttons etc. NOW in addition to this, we want to add extra custom button/link like Custom View. When we click on this buton or link, it should replace the task details page with the Custom task details page contents. The reason is most of the managers/approvers access their emails on smart phones like iphones. So in these phones, seeing full task details (100 attributes) is very tedious. So we want to provide a simplified view of same task with very minimum attributes like about 10 with Approve, Reject buttons. Now this compact view details will have a button called Detailed View on click on which it loads details page.
So we want to have 2 pages for a task:
taskDetails1.jspx -> Has all 100 attributes with a custom button/link called "Compact View". Click on Compact View switch to below page.
taskCompact1.jspx -> Has only 10 attributes with a custom button/link called "Detailed View". Click on Detailed View switch to above page.
1. I tried implementing this using the VacationRequest sample where the payload is like creator, startdate, enddate, reason. I already have taskDetails1.jspx page, which shows this information in the email body.
2. I want to add another button to taskDetails1.jspx so that when I click on it, I want to load a different page like taskCompact.jspx which has only say creator, reason.
I already added a link and gave the url with parameters like taskId, taskContext etc which I got from bindings, but nothing is displayed when I click on custom button. The taskId, context values are comming correctly in the url.
So bottom line, what is the URL that I can provide in the task details page, to load a different task details page contents. I want to pass other taskdetails jsp details.
Please let me know, if there is any other approach to implement this usecase.
Thanks in advance
Ravi JeggaHi,
I am not sure if you can add your own custom buttons to the application tool bar because your table control is in a sub screen area in a standard screen so the menu area would be controlled by the standard screen and not the subscreen , but along side the table control you can give buttons for scrolling and handle the same in the subscreen if you check the FM EXIT_SAPLMEREQ_002 it has a variable IM_UCOMM which would have the ucomm set in the subscreen so here you can handle your user command to scroll on the table control.
Regards,
Himanshu
Maybe you are looking for
-
I have 2 sets of playlists in the sidebar of itunes. I have recently upgraded to 10.6.1.7 but this condition remains the same The top list refers to greyed out listings and does not function The list below works fine How do I get rid of the "false" l
-
Firewire 800 conflict with Firewire 400 port
hi everyone, i've been having an issue with the firewire ports where they can't be used simultaneously. when my camcorder is attached via FW400 and an external harddrive is attached via FW800, i can not simultaneously capture footage from the camcord
-
Moving email over to my macbook pro...
ok... i'm not transfering via FW to my new MBP... i have everything backed up that i need... EXCEPT FOR MY EMAIL... How can I move all my old email and folders over to my new MBP? MBP 2.16 http://www.menuserve.com/
-
How to get Now() to display as mm/dd/yyyy hh:mm:ss?
I'm in the UK, and I have a form field that contains the value <%=Now()%> to get todays date. This gives me the following date format dd/mm/yyyy hh:mm:ss This is then used to INSERT into an MSSQL datetime field. However, when it inserts it reverts to
-
Service Material in Service Order
Hi All, In a service order (revenue/non-revenue) is it possible to include service material (from material master) in the operations tab? My requirement is that the operations which are maintained in service order have to be invoiced to the customer