Dynamic Hyperlink

Hello,
I have a web page that uses a php MySQL recordset to display
database info. I would like to add an expression to the recordset
that will make the text value from the FileName field display as a
hyperlink in a repeating region table and link to a file in a
folder on the site. It would be similar to displaying an image from
the images folder in an image placeholder. I can make the hyperlink
appear if I place the filename inside of html tags with an href in
the database, for example, <a
href="Patches/MyPatch.zip">MyPatch.zip</a>
but I would like to be able to reference it on the page so
that users don't have to enter these in the field for every record.
The purpose of the page is to enable users to download zipped
folders from a folder named Patches located on the site. I would
appreciate any help in coding this procedure. Thank you.

aopro wrote:
> I have a web page that uses a php MySQL recordset to
display database info. I
> would like to add an expression to the recordset that
will make the text value
> from the FileName field display as a hyperlink in a
repeating region table and
> link to a file in a folder on the site.
If all files are stored in the same folder, just store the
filename in
the database, and use a dynamic text object to build the
link. Using
your example, it would look like this in Code view:
<a href="Patches/<?php echo
$row_recordsetName['FileName']; ?>">
<?php echo $row_recordsetName['FileName'];
?></a>
If the files are to be kept in different folders, you should
store the
path in the database, and then use a PHP custom function to
extract just
the filename.
Put this code block anywhere in your page:
<?php
// extract filename after last forward slash
function getName($path) {
$name = '';
// find position of last forward slash
$pos = strrpos($path, '/');
// if no forward slash, use the full value
if ($pos === false) {
$name = $path;
// otherwise extract everything after the last slash
else {
$name = substr($path, $pos);
return $name;
?>
So, taking your example again, you store
"Patches/MyPatch.zip" (without
the quotes) in the database, and wrap the text part of the
link in the
getName() function to extract just the filename. In Code
view, it will
look like this:
<a href="<?php echo $row_recordsetName['FileName'];
?>">
<?php echo getName($row_recordsetName['FileName']);
?></a>
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • How to create a dynamic hyperlink which point to a BLOB column

    Hello,
    I am fighting with the issue for about 2 days.
    My purpose is to use Oracle Report Builder to build a report of our employee directory which contains employee's information and also employee's picture. The requirement is that our report is going to generate a html file to our web server. By creating a dynamic hyperlink to the Employee's name in the report output file (the html file generated to our web server), it should then display the corresponding employee's picture which is a BLOB column stored in our oracle database.
    I only can create the hyperlink for the employee's name if the link is static, like 'http://www.google.com
    But from the Oracle Reports 10g Release2 (10.1.2), about the exmaple 1: Dynamic hyperlink, I refered the link
    http://www.oracle.com/webapps/online-help/reports/10.1.2/state/content/navId.3/navSetId._/vtTopicFile.htmlhelp_rwbuild_hs%7Crwcontxt%7Cprops%7Cpi_lay_hyperlink%7Ehtm/
    The link gave he following example shows a value for the Hyperlink property that specifies a link to a destination identified dynamically:
    'DEPT_DETAILS_' || LTRIM(TO_CHAR(:DEPTNO))
    where :DEPTNO is a column value retrieved from the database at runtime.
    I tried as the same way to want it dynamcially shows the column :EMP_PHTOT, which is one BLOB column, but it was failed.
    Anyone knows how to implement this? Any inputs is appreciated!
    Thanks,
    Jing

    This forum is for the SQLDeveloper tool. You might get better responses on the reports forum Reports

  • Dynamic hyperlink does not seem to work

    Hi,
    It looks like this same issue came up before in <
    Dynamic hyperlink in Word 2003 but it does not appear that anyone ever responded.
    My customer has created a dynamic hyperlink using {VM_URL} but when the template saves if you mouse over the hyperlink, you see a reference to the current location example:
    file:///E:\temp\%7bVM_URL%7d
    The xml data template looks like the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <ContractDetails>
    <kid>238335</kid><usr>[email protected]</usr>
    <LIST_HDR>
    <HDR>
    <USER_PWD>4</USER_PWD>
    <USER_SSO>[email protected]</USER_SSO>
    <VM_URL>http://ora-apps-phnx-1.vmware.com:8000/oa_servlets/oracle.apps.fnd.sso.AppsLogin?requestUrl=APPSHOMEPAGE&amp;cancelUrl=http%3A%2F%2Fora-apps-phnx-1.vmware.com%3A8000%2Foa_servlets%2Foracle.apps.fnd.sso.AppsLogin</VM_URL>
    The hyperlink in the pdf then becomes the original path to the document:
    E:\tmp
    I have found a couple of issues in WebIV, one was a position loop problem and another was an absolute xpath issue, but this does not seem to fit either. I played a little with the link and url setting, but no luck.
    Tried in 5.6.3 and Word 2k2
    Any help would be appreciated.
    Thank You,
    Dale

    I am facing the same problem,
    Please can anyone give pointers to this?
    Regards,
    Amit Deshpande

  • Generate dynamic hyperlinks in PDF

    Hi,
    I am using CF8. I want to generate dynamic hyperlinks for each Form field in a PDF template. Could you please suggest a solution to achieve this?
    Many Thanks.

    thread re-created! :(
    please see: Dynamic PDF Bookmarks/Hyperlink Generation in RTF template.
    Edited by: Mukunthan L on Jan 20, 2010 1:35 AM

  • Create a dynamic hyperlink in a picture.

    Hello forum,
    Can someone help me create a dynamic hyperlink in a picture? Essentially what I have is a drop down box with a list of games. On the same sheet, I have a picture with the Wikipedia icon. What I would like to do is select the game from from the drop
    down list and be able to click on the Wikipedia picture on the sheet and have my browser open to the Wikipedia page of the game. 
    Hopefully I've explained this pretty clearly. Thanks in advance for any help. 

    Hi,
    According to your description, my understanding is that you have a drop down box control and one Wikipedia icon picture in Excel
    sheet. And you add the hyperlinks which related to the game behind the picture. If you choose the game name from the drop down box, the Wikipedia icon picture will not change but the hyperlink will change to game introduction and we can click the Wikipedia
    picture to open the Wikipedia page in browser.
    If it is, your required might use VBA coding/programing. Please post your question to MSDN forum to get more help.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • How do I add a dynamic hyperlink to an image in a CRM mail Merge?

    We have a mail merge template that is being used by a number of our sales reps.  The sales reps each have a unique URL they use to send out to potential customers.  Their unique URL is saved on their User record in MSCRM.  We want to
    send out marketing pieces to prospects but we need the ability to dynamically add the user's hyperlink to an image on the mail merge (ex: an image saying "Click here") and cannot find a way to do this.  Is this possible?

    Hi,
        This is not possible using OOTB CRM Marketing mail merge features for CRM 2013. However you can use 3rd party tools like Click Dimension for this Alternatively with MDM you are now able to use more advanced design features including what
    you are trying to achieve.
    http://www.microsoft.com/en-us/dynamics/marketing-customer-center/create-or-view-templates-for-email-marketing-messages.aspx
    http://www.microsoft.com/en-us/dynamics/marketing-customer-center/design-message-content-using-the-graphical-editor.aspx
    Hope this helps.
    Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

  • Dynamic Hyperlinks in Acrobat Form

    Hi
    I am creating a suite of forms in Acrobat, in which I will need a number of hyperlinks.  I can see how to set up a standard hyperlink using the normal form edit functionality, but what I am looking for is a little away from the norm and will need some scripting, which is something I know very little about.
    Can anybody help me in how to script a button in Acrobat to hyperlink to a static address with a dynamic ending?
    Basically, what I am trying to acieve is a button that will link to Google Maps and show the property that is detailed in the form (so there will be the static element of www.google.co.uk/maps/, but I need the post code that has been entered in the address details to be pasted onto the end of that address so the button will take the user straight from the from to the correct location on Google Maps).
    Can anybody help me with this?

    You can use something like this (let's say the Postcode field is called just that):
    var postcode = this.getField("Postcode").valueAsString;
    app.launchURL("http://www.google.co.uk/maps/"+postcode);

  • Generate Dynamic Hyperlinks/Bookmarks in PDF Output.

    Hi,
    I'm trying to develop an RTF template which will generate the output with Bookmarks in PDF format. As per the Enterprise User Guide, <?copy-to-bookmark:?> or <?convert-to-bookmark:?> should be able to generate a static or dynamic bookmark, respectively. But, all my attempts in doing so go in vain.
    Again, I have a summary page in front, and detail pages suffixed; hence, I am trying to create a link on the summary page field, to the respective detail page. But, I am not sure of the steps.
    Example:
    Page1:
    Deptno. Dname Number of Employees
    10 Production 15
    20 Research 8
    etc...
    Page2 Onwards
    Deptno. 10
    Dname. Production
    EMPNO ENAME SAL
    7782
    Kindly advise if anyone has any idea about this.
    Thanks,
    L. Mukunthan.
    Edited by: Mukunthan L on Jan 20, 2010 1:33 AM

    thread re-created! :(
    please see: Dynamic PDF Bookmarks/Hyperlink Generation in RTF template.
    Edited by: Mukunthan L on Jan 20, 2010 1:35 AM

  • Dynamic Hyperlinks In Pivot Table

    Hi All,
    I'm trying to make a column in a pivot table have a hyperlink based on data, but it doesn't seem to work. Funny thing is I can do exactly the same thing with just a normal table and it works fine.
    Just putting {PAGE_URL} for the hyperlink address in word, where PAGE_URL is a column in my query.
    Any ideas?
    Thanks
    Matt

    Here is an example for dynamic PIVOT:
    http://www.sqlusa.com/bestpractices2005/dynamicpivot/
    You can also apply dynamic columns in SSRS:
    http://www.sqlservercentral.com/Forums/Topic1497220-2799-1.aspx#bm1497636
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b5dbd178-1532-478f-90d3-b6354a561240/ssrs-dynamic-columns?forum=sqlreportingservices
    Kalman Toth Database & OLAP Architect
    IPAD SELECT Query Video Tutorial 3.5 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Multiple dynamic Hyperlinks in Single Cell

    My Requirement is similar to
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c3f1cbeb-20b8-4457-9189-3e451c2a5af9/multiple-hyperlinks-in-single-cell-in-ssrs?forum=sqlreportingservices
    single Data column will be displaying csv values and need to build hyperlink for each item in new window.
    Eg- 
    Bike,car,bus
    Bike,car,Bus,Tram
    When user selected data,
    In an single cell of my ssrs, i need to display an column which can hyperlink to respective page
    The values are coming from an table column as comma separated values.
    ShanmugaRaj

    Hi,
      I think you can use place holders to put these three values seperatly and set an action property on the placeholder. Is the values in the hyperlink are static or dynamic ?
    Best Regards Sorna

  • Creating Dynamic Hyperlinks in Servlet

    Hello All,
    I need to create a set of hyperlinks from the Servlet. These hyperlinks are dynamic based on the output of a program. I am not understanding, where I should place the referred HTML pages, while creating the hyperlinks. I tried many options by placing it somewhere else, or under the ROOT, or under the WebContent folder, etc. Many tutorials point to only static redirections. Should I make any changes in the web.xml file ? I am using Eclipse for developing and executing it in Tomcat server.
    Any pointers/help will be highly useful.
    -Saranya

    can you give an example of such a "dynamically created" hyperlink? Also give a more specific explanation of what you are currently doing, with complete path examples of where you are placing files. You need to give more details and preferrably some code that is misbehaving before people can tell you what is wrong.

  • Dynamic Hyperlink in Publisher  Report.

    Can anyone suggest a way to build a Hyperlink Dynamicaly in a Report based on web site returned with the data?

    Hello again,
    I just noticed there is a bug 11061157 - HYPERLINK WITH DATA PARAMETERS IS NOT WORKING CORRECTLY BI PUBLISHER LAYOUT
    I am on 11.1.1.5.0
    Do I need to upgrade to another version for the fix?
    I am trying to create a drill down to another BI 11g report and I cannot pass parameters. I read that there is a bug 11061157 and I need help to implement a work around for this.

  • Dynamic Hyperlinks in DataGrid/AdvancedDataGrid

    Forgive me, but when the web was build around hyperlinked text, it should be easier to create hyperlinks in a Rich INTERNET Application.
    Ok - enough griping. I do have a legit question:
    For historical reasons, I have to construct hyperlinks from a number of parameters passed in the URL (aka GET params). Since I write reporting systems, those hyperlinks usually have to appear in a table of some sort: a DataGrid or AdvancedDataGrid.
    My typical code looks something like this:
    <mx:Application blah=blah>
         <mx:Script>
              <![CDATA[
              ]]>
         </mx:Script>
         <mx:HTTPService id="getStuff" method="get" url="http://www.example.com/getData.php" result="processServerData(event)"/>
         <mx:AdvancedDataGrid blah=blah>
              <mx:columns>
                   <mx:AdvancedDataGridColumn blah=blah itemRenderer="ADGcustomItemRenderer"/>
              </mx:columns>
         </mx:AdvancedDataGrid>
    </mx:Application>

    OK, I didn't mean to post that yet. Why can't I edit my post?
    Anyways...
    <mx:Application blah=blah>
         <mx:Script>
              <![CDATA[
                   import a.bunch.of.stuff
                   protected function onInitialize():void {
                        getStuff.send();
              ]]>
         </mx:Script>
         <mx:HTTPService id="getStuff" method="get" url="http://www.example.com/getData.php" result="processServerData(event)"/>
         <mx:AdvancedDataGrid blah=blah>
              <mx:columns>
                   <mx:AdvancedDataGridColumn blah=blah dataField="dataFieldName" itemRenderer="ADGcustomItemRenderer"/>
              </mx:columns>
         </mx:AdvancedDataGrid>
    </mx:Application>
    ADGcustomItemRenderer.mxml
    <mx:Canvas blah=blah>
         <mx:Script>
              <![CDATA[
                   import mx.controls.dataGridClasses.DataGridColumn;
                [Bindable] protected var myURL :String;
                override public function set data(value:Object):void {
                        myURL = '<a href="http://www.example.com/dosomething.php?dept_num=00000&vendor='+value['dataFieldName']+'" target="_blank">'+value['VendorName']+'</a>';
              ]]>
         </mx:Script>
         <mx:Text htmlText="{myURLl}" height="100%" width="100%" />
    </mx:Canvas>
    Notice the dept_num? I need to pass that data to the itemRender, since it can change from page to page (though not row by row) in addition to the column-specific data passed via the "value" object. How can I access that data from the custom itemRenderer?
    Thanks

  • Dynamic hyperlink from database table

    hi,
    I have requirement to create left hand menu on a page. Menu label and hyperlink is stored in database. What is the best way to achieve this. Basically when user logs based on his user name query will fetch the labels and hyperlink source. How to achieve this in ADF? I could not find anything out of the box. I have view object which stores that information but i dont know how to convert that information into hyperlinks.

    Assuming the UrlInfo is the name of the View Object that has the attributes label & link, you can use the af:iterator to show the labels & links as follows:
    1) Drag & Drop the UrlInfo into the page as a table. Delete the table in the .JSPX page and keeping the pageDef as it is.
    2) Instead of the af:table, use af:iterator to show the same.
    .JSPX page sample:
    <af:iterator value="#{bindings.UrlInfo.collectionModel}" var="row"
    rows="#{bindings.UrlInfo.rangeSize}" id="t1">
    <af:goLink id="g1" text="#{row.label}"
    destination="#{row.link}"/>
    <af:spacer height="1px" id="sp1"/>
    </af:iterator>
    PageDef sample:
    <executables>
    <variableIterator id="variables"/>
    <iterator Binds="Employees" RangeSize="25"
    DataControl="AppModuleDataControl" id="UrlInfoIterator"/>
    </executables>
    <bindings>
    <tree IterBinding="UrlInfoIterator" id="UrlInfo">
    <nodeDefinition DefName="model.UrlInfoVO">
    <AttrNames>
    <Item Value="label"/>
    <Item Value="link"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    Thanks,
    Navaneeth

  • Dynamic Hyperlink underline

    Hi all,
    I am writing an application, where the user can input text in a JText Area.
    I would like to add a feature where when as a hyperlink is being typed in, it would automatically be highlighted/underlined/made clickable.
    MS Word and hotmail editors have something similar, i.e. after the third w of the www is typed in, the string is being automatically
    underlined/highlighted/made clickable.
    Any help would be appreciated,
    Yiannis

    You might find this is easier to do with a JEditorPane than a JTextArea.

Maybe you are looking for

  • "No parameter for pDestination or pCalledFrom found in scope." Competence

    Hello , When i am trying to do the action on an employee in Competence Superuper -> Comptence Profile -> (Advanced search ) (Action) Am getting the following error "No parameter for pDestination or pCalledFrom found in scope." Could you plz any one h

  • How can I set VM parameters except Xms and Xmx?

    I can set the Xms and Xmx as the following: <j2se version="1.4+" initial-heap-size="80m" max-heap-size="80m"/> but how can I set other VM parameter such as Xmn,XX:SurvivorRatio,and some which to special JVM(for example:JRockit)?

  • Phantom Frame Appears Between Two Clips Updated Question

    I can't edit my other question anymore, so here's a follow-up. When I move from edit point to edit point, there does appear to be one between the two clips. I hit Select using the dropdown menu, but the options to cut or delete are grayed out afterwa

  • Problem with complex business logic...

    hi all, i have two tables 1.running_table 2.history_table in my tables, for recent 30 day's data will be stored in "running_table". if 30 days completed from the entered date, all the data will be moved to "history_table".this will be done by some tr

  • Output to PDF module not working - Bridge CS4

    In Bridge the Output module (sidebar) does not display, as well I cannot output a selection of images to a PDF file. I tried to update the program and received the following error message: "Adobe Output Module 2.1: Failed to Install" Has anyone here