Create a Link using Dynamic Text and Capture Variable

I am building a dynamic website using Dreamweaver CS5 with Coldfusion 9
Currently I have created a dynamic text table. The table is created by querying the Invoice table and displays the all the customers Invoices. The columns Include Invoice #, Date, Amount Paid, BalanceRemaining, Due Date. So basically lists all the invoices I have applied to the unique customer. It is pulled up using a session variable I created from the login page.
My question is this I want to make the "Invoice #" linked so when you click on it it goes to a new page and performs a new query which retrieves infro related to that specific invoice such as Services Rendered, Service Description, Date, Price, Total. I was able to create a link to the Invoice # but I am stuck trying to figure out how to capture the Unique Invoice # and apply it to the new query. Is this possible if so how?
Thanks for your help!

Now keep in mind I am speaking strictly from a web and SQL standpoint as I have no experience with coldfusion.
If you are able to create the link to the Invoice, I am perceiving this as the following:
Invoice
Links to
#123
page.php?invoice=123
#345
page.php?invoice=345
If your page is setup like that then you already have the data stored in the browser request with the GET method.  In PHP the equivalent is the $_GET array.  I am assuming ColdFusion has a similar array to work with forms.  Then on your following page you obviously need to check that the visitor came from the prior page with the proper permissions to ensure that someone doesn't get the address page.php?invoice=### and just guesses through and views all invoices if they are not supposed to.  Then your query would look something like the following:
SELECT * FROM invoice_table WHERE invoice_number = $_GET['invoice']
Remember this in written in PHP so yours should be a similar equivalent.
Hopefully this helps a little to get you going in the right direction.

Similar Messages

  • Using Dynamic Text to tell a Hyperlink where to go.

    So I am having a little trouble on my site, and this community seems like a good place to go for help, and I am sure someone out here can help me.
    I have a webpage that uses dynamic text and images, and it serves as my user profile page. I know the database and all of that stuff is set up correctly because all of the dynamic text shows up as it should.
    Here is the problem I am having. I have an area where a user will be able to view files he has uploaded, and click on the name of a file to view it.
    The way I have it set up, is the clickable text is dynamic text from the server, called uploadname1. I want to make this text into a link, that sends them to the file stored as fileupload1.
    Here is my code that I thought should do it.
    "<a href="<?php echo $row_Recordset1['fileupload1']; ?>"/><?php echo $row_Recordset1['uploadname1']; ?></a>" (minus the quotes of course)
    The text underlines and changes the color as it should, but it is not clickable. Can someone out there help me?
    Tyler

    <!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>Profile - NoteScoop</title>
    <style type="text/css">
    body {
    background-image: url(../bgg.jpg);
    background-repeat: no-repeat;
    color: #FFF;
    #bio {
    font-family: Tahoma, Geneva, sans-serif;
    height: 213px;
    width: 460px;
    left: 404px;
    top: 53px;
    position: absolute;
    #editlink {
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFF;
    position: absolute;
    height: 40px;
    width: 80px;
    left: 178px;
    top: 677px;
    a:link {
    color: #FFFBF0;
    a:visited {
    color: #FFFBF0;
    a:hover {
    color: #FFFBF0;
    a:active {
    color: #FFFBF0;
    #photo {
    position: absolute;
    height: 220px;
    width: 205px;
    left: 121px;
    top: 70px;
    #submit {
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFFbf0;
    left: 290px;
    top: 25px;
    position: absolute;
    width: 59px;
    #about {
    position: absolute;
    height: 25px;
    width: 90px;
    left: 128px;
    top: 25px;
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFFbf0;
    #abouthead {
    position: absolute;
    height: 25px;
    width: 48px;
    left: 466px;
    top: 25px;
    font-family: Tahoma, Geneva, sans-serif;
    color: #FFFbf0;
    #contact {
    font-family: Tahoma, Geneva, sans-serif;
    color: #fffbf0;
    position: absolute;
    height: 25px;
    width: 85px;
    left: 616px;
    top: 25px;
    #blog {
    font-family: Tahoma, Geneva, sans-serif;
    color: #fffbf0;
    position: absolute;
    height: 25px;
    width: 33px;
    left: 792px;
    top: 25px;
    #notes {
    font-family:Tahoma, Geneva, sans-serif;
    color: #fffbf0;
    position: absolute;
    height: 84px;
    width: 460px;
    left: 425px;
    top: 510px;
    #friends {
    font-family: Tahoma, Geneva, sans-serif;
    color: #fffbf0;
    position: absolute;
    left: 421px;
    top: 278px;
    width: 460px;
    #uploader {
    font-family: Tahoma, Geneva, sans-serif;
    position: absolute;
    height: 53px;
    width: 460px;
    left: 543px;
    top: 645px;
    #groups {
    font-family: Tahoma, Geneva, sans-serif;
    position: absolute;
    height: 354px;
    width: 292px;
    left: 80px;
    top: 366px;
    #ad1 {
    position: absolute;
    height: 220px;
    width: 205px;
    left: -40px;
    top: 38px;
    #sponsored {
    font-family: Tahoma, Geneva, sans-serif;
    color: #000;
    position: absolute;
    height: 22px;
    width: 122px;
    left: 958px;
    top: 69px;
    </style>
    </head>
    <body>
    <div class="sponsored" id="sponsored">
      <div class="ad1" id="ad1"><a href="http://www.xfactordesigns.com"><img src="xfactor_designs_badge.jpg" /></a></div>
      Sponsored Links
    </div>
    <div class="groups" id="groups">
      <p>Study Halls, a feature which we are waiting to bring out until it is fully ready, will change the way you study forever. </p>
      <p>Study Halls will allow you to create a worldwide network of people in the same class, school, or major as you.</p>
      <p>Study Halls will contain useful note listings, chatrooms, tutors and more! </p>
      <p>We look forward to being able to open these to you soon!</p>
    </div>
    <div class="uploader" id="uploader">
      <form id="form3" name="form3" enctype="multipart/form-data" method="post" action="">
        <input type="file" name="upload" id="upload" />
      </form>
    </div>
    <div class="notes" id="notes"><a href="az.doc"/>tester</a></div>
    <div class="blog" id="blog"><a href="http://www.quincycreations.com">Blog</a></div>
    <div class="contact" id="contact"><a href="contact.php">Contact</a></div>
    <div class="photo" id="photo"><img src="profilephotos/twhite.jpg" alt="UserPhoto" width="205" height="220" /></div>
    <div class="abouthead" id="abouthead"><a href="About.php">About</a></div>
    <div class="submit" id="submit"><a href="Submit.php">Submit</a></div>
    <div class="editlink" id="editlink"><a href="editprofile.php">Edit Profile</a></div>
    <div class="about" id="about"><a href="classes.php">Subjects</a></div>
    <div class="bio " id="bio">
      <form id="form1" name="form1" method="post" action="">
        <p><h3>Tyler      White</h3>
        </p>
        <p>College: Xavier University of Louisiana </p>
        <p>Major: Mathematics</p>
        <p>Not only am I the creator of NoteScoop, but I am also a college student. I study Mathematics and am doing research in Differential Equations. When I am not doing work or math, I am spending time with my wonderful girlfriend, most likely on Minecraft.</p>
        <p> </p>
        <p> </p>
      </form>
    </div>
    <div class="friends" id="friends">
      <form id="form2" name="form2" method="post" action="">
        <p> </p>
        <table width="460" height="147" border="o">
          <tr>
            <th width="146" height="141" scope="row"><img src="profilephotos/paminaprofile.jpg" width="104" height="107" /></th>
            <td width="146"><img src="profilephotos/default.jpg" width="104" height="107" /></td>
            <td width="146"><img src="profilephotos/default.jpg" width="104" height="107" /></td>
          </tr>
        </table>
        <p> </p>
        <p> </p>
        <p> </p>
      </form>
    </div>
    </body>
    </html>

  • How to make links in dynamic text?

    Hi All,
    I need to know how to make links in dynamic text. I have
    created a
    table to hold the dynamic copy, and the copy is added through
    a CMS page
    that I created. This Admin page is accessed through a
    browser, and I
    don't know how to attach a link to selected text within a
    browser. Can
    anyone point the way? It's probably so easy I'll feel dumb.
    Thanks,
    Brett

    "Brett" <[email protected]> wrote in message
    news:fpf7j6$23m$[email protected]..
    > Thanks Hunter,
    >
    > Yes, I suppose a legend on the admin page would provide
    a solution. And
    > ultimately, if the client doesn't feel confident doing
    writing the HTML
    > they would have to pay me to do it for them. OK, that
    works for me.
    The only other thing might be to use something like FCK (or
    one of the many
    others... ContentSeed, I think is one Murray mentions often)
    for the CMS,
    that would give an easier option for the end user. WebAssist
    has an
    FCK-based plug-in called iRite that can give a more
    wordprocessing-like feel
    to the field (i.e., they could just highlight the text and
    then click a
    button to add the link).

  • Using dynamic text in Flash Builder

    Hi,
    I'm trying to get some dynamic text to my web page. The text is readed from .txt file
    I use AS script which i was using in a project I made with Flash Pro and now i try to implement it in Flash Builder project
    The script look like this:
    var req:URLRequest = new URLRequest("design_1.txt");
    var loader:URLLoader = new URLLoader();
    function textLoaded(event:Event):void
    design.text = loader.data;
    loader.addEventListener(Event.COMPLETE, textLoaded);
    loader.load(req);
    So first I made a project with Flash Catalyst and in there I created an area text element. Then I imported the project to Flash Builder and put the AS script in the <Script> section and gave the <RichText> an id="design".  The text is just simple text and formatting happens in richtext element.
    So, when i try to compile the FB project it give me and parse error "undefined property error req", "undefined property error loader" etc.
    So should i alter the AS script for FB or is there something else wrong? I tried to google how to use dynamic text in FB but couldn't find any easytyutorials. I'm mostly a desginer so coding isn't my speciality. But thanks for help!

    Hi Amy,
    You can customize 'New class' generation under Preferences->Editors->Flash
    Builder->FileTemplates->Action Script->New ActionScript class.
    Currently there are no template variables available constructors. But you
    can customize it as following,
    $
    ${import_declaration}
    $ {
      public function ${class_name}() {

  • Alert using Dynamic text in BPM.

    Hi,
    I am using dynamic text function in alrtcatdef transaction for raising an alert using BPM.
    But in the alert inbox I am not getting the an alert error message which is passed to alert catagory in control step of BPM. Can anyone please let me know what may be the possible solution of it.
    I have done the below configuration:
    Configuration done in Alrtcatdef transaction:
    Created an alert catagory
    assigned the fixed recipient
    click the dynamic text button in alert catagory property.
    Configuration done in BPM:
    Used the Control step.
    given the Alert catagory name,action and the alert error message.
    Please let me know the solution soon.
    Thanks and Regards,
    Sandeep.

    HI Bhavesh,
    I have referred the michal weblog and I have done the same step except the container operation step.
    My requirement was to send the hard coded error message to the alert catagory so I didnt used the container operation step.
    In the Control step I have hard coded my error message.
    But still it is not showing in my alert inbox.
    Can you please let me know is there any other settings needs to be done.
    Thanks and Regards,
    Sandeep.

  • Using Dynamic Text In iOS Applications

    Hey everyone,
    I'm trying to create a simple iOS app.  I want to add a Dynamic Text box into the stage that will show the score, but every time I do so, the application encounters serious lag trouble.  I'm using _sans font.
    Does anyone have a method for using Dynamic Text that works well in iOS?

    I had lots of lag when I used a TLF textfield... but decent performance when I used a "classic" TextField.

  • Help Please - having difficulties creating af link from the text to an attached file i acrobat

    I have been reading the help, but it just wonn't work when I try.
    I have tried as followed (I am working with a danish version, and hope to matched the same word as in the english version of Acrobat Xpro):
    1. From the toolbox i choose content and then 'hyperlink'
    2. I mark the text from which i wish to make a link
    3. Acrobat respond with an popup picture 'create a link'
    4. From the popup I mark 'Open a side' and push 'next'
    5. Acrobat respond with a new popup picture 'create / go to a side'
    6. I go to the navigator and open the list with attached file's that I have embedded in my acrobat file.
    7. I mark the to which i wish to make a link to
    8. In the popup 'create / go to a side' that stilll is open, i push 'Mark hyperlink'
    Then I hoped that I have created a link from the acrobat text to the attached file. In stead Acrobat has made a link to the same sidenumber that respond to the text from which i wish to make a link . F.ex. the linktext is on side 10 - then the link goes to side 10.
    How do i do it right?
    Please help.

    Hello Bernd
    Thanks for a quick respond.
    This corresponds to the text I have tried myself, but apparently I do something wrong
    1.      Open a PDF that contains a PDF file attachment – done
    2.      Go to where you want to create a link. If that location is in the file attachment, click the Attachments button in the navigation pane, select the file attachment, and click open.
    Here I go to side number 10 from which I wish to make a link from (I am not open the attachment file at this moment, as the location not is inside the file attachment).
    (I earlier also tried to  mark the attachment file and click open, and It result that the attached file just opened normally without creating a link to the file).
    3.      Choose Tools > Content > link, and select the area for the link
    Here  I mark the text on side 10 from which I wish to make a link to a attached file
    4.      In the Create Link dialog box, set the link appearance, select Go To A Page View, and then click Next
    Here I have selected ‘Go to a page view’ as told and I click Next
    5.      Set the page number and view magnification you want, either in the parent PDF document or in the file attachment, and then click set link.
    Here I go to the navigation pane and mark the attached file from the file list (the files in the list hasn’t any side number in the list) and then I click Set Link.
    Then I hoped that I have created a link from the acrobat text to the attached file. In stead Acrobat has made a link to the same sidenumber that respond to the text from which i wish to make a link . F.ex. the linktext is on side 10 - then the link goes to side 10.
    What do I do wrong.?
    Med venlig hilsen
    Mogens Pedersen
    Specialkonsulent
    T 33 63 13 07
    F 33 63 10 11
    [email protected]<mailto:[email protected]>
    Fra: Bernd Alheit [email protected]
    Sendt: 2. marts 2012 13:11
    Til: Mogens Pedersen
    Emne: Help Please - having difficulties creating af link from the text to an attached file i acrobat
    Re: Help Please - having difficulties creating af link from the text to an attached file i acrobat
    created by Bernd Alheit<http://forums.adobe.com/people/Bernd+Alheit> in Creating, Editing & Exporting PDFs - View the full discussion<http://forums.adobe.com/message/4241290#4241290

  • 'use dynamic name' and 'caching properites' options for alias table...

    Hello everybody,
    can anybody please explain 'use dynamic name' and 'caching properites' options for alias tables...
    Thanks...
    eagerly waiting for a response..
    Vijay

    You want to create dynamic target table name right?
    You can refresh a variable like #GET_SESSION
    #GET_SESSION= SELECT <%=odiRef.getSession("SESS_NAME")%> FROM DUAL
    My tmp table name like TMP_#GET_SESSION
    then in your package refresh #GET_SESSION variable and you can use it.
    I hope this can be helpful
    Thanks

  • Has anyone been able to create a HtmlDataTable with dynamic col and rows?

    Has anyone been able to create a HtmlDataTable with dynamic col and rows?
    If so please explain. I am successfully able to dynamically add columns using the getChildren method of the htmldatatable object
    BUT for each new column created no data is displayed.
    I am only able to display data for columns originally created when i clicked and dragged the dataTable icon from the pallette in netbeans visual web kit.
    Any help on this is greatly appreciated. I have been searching the web and these forums for around 8 hours and no one seems to have a working example of this. Lots of similar posts asking how to do it though :(
    Thanks in advance.

    This might be useful: http://balusc.xs4all.nl/srv/dev-jep-dat.html

  • Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL..

    Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL. However, if I right click on a link and select "Open Link In New Tab", the Tab shows URL in address bar. So it's working when it's a New Tab but not a New Window.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • How to create database link between oracle9i database and oracle10g

    How to create database link between oracle9i database and oracle10g
    oracle9i database name "Prod" windows server 2003 ( 172.x.x.x)
    oracle10g database name "TEST" sun solaris 9 (165.x.x.x.x)
    Please help me on this

    For connections between 10.2 and 9.2 the 9.2 end MUST be at 9.2.0.4 or higher. Connections between 10.2 and 9.2.0.1, 9.2.0.2 or 9.2.0.3 are not supported.
    Connections between 10.2 and 9.0.1 was never been supported.
    Cheers !!!!
    Bhupinder

  • Problem while creating partner link using https URL

    Hi,
    To create the partnerlink using https URL, I had done the following:
    -Imported the self signed certificate into the OraBPELPM_\jdk\jre\lib\security\cacert
    -Added following entries in OraBPELPM_1\integration\jdev\jdev\bin\jdev.conf
    AddVMOption -Djavax.net.ssl.keyStore=E:\OraBPELPM_1\jdk\jre\lib\security\cacert
    AddVMOption -Djavax.net.ssl.keyStorePassword=esbtest123
    I am not able to create partner link using URL https://localhost/orabpel/default/ErrorHandlerBPEL/1.0/ErrorHandlerBPEL?wsdl .
    Able to create partnerlink using same URL if I replace https with http.
    Did I miss any other configuration that needs to done to create partnerlink using https in JDeveloper BPEL Designer.
    Thanks,
    -Vidya

    Hi,
    I  too have the same issue. Appriciate if you share some knowledge on this issue.
    Thanks
    Aravinda

  • How to use dynamically column_name and column_name value in plsql procedure

    hi,
    how to use dynamically column_name and column_name value in plsql procedure.
    for example, i have one table with column col1.i want write plsql code with dynamically execute the insert one schema to another schema.
    by
    siva

    DECLARE
    CURSOR C
    IS
    SELECT cc_cd
    FROM TEMP1 WHERE s_flg ='A' AND b_num IN('826114');--,'709537','715484');
    CURSOR D
    IS
    SELECT * FROM cONSTRAINTS_test ORDER BY SRL_NUM;
    STMT VARCHAR2(4000);
    p_target_schema VARCHAR2(30):='schema1';
    p_source_schema VARCHAR2(30):='schema2';
    BEGIN
    FOR REC IN C
    LOOP
    FOR REC1 IN D
    LOOP
    STMT := 'INSERT INTO '||p_target_schema||''||'.'||''||REC1.CHILD_TABLE||' SELECT * FROM '||p_source_schema||''||'.'||''||REC1.CHILD_TABLE||' where '||REC1.COLUMN_NAME||'='||REC.cntrct_cd||'';
    Dbms_Output.Put_Line('THE VALUE STMT:'||STMT);
    END LOOP;
    END LOOP;
    END;
    cc_cd='434se22442ss3433';
    cc_t_ms is parent table-----------------------pk_cc_cd is primary key
    cc_cd is column name
    CONSTRAINTS_test table
    CHILD_TABLE NOT NULL VARCHAR2(30)
    CONSTRAINT_NAME NOT NULL VARCHAR2(30)
    COLUMN_NAME NOT NULL VARCHAR2(400)
    R_CONSTRAINT_NAME VARCHAR2(30)
    CONSTRAINT_TYPE VARCHAR2(1)
    PARENT_TABLE NOT NULL VARCHAR2(30)
    SRL_NUM NUMBER(4)
    CHILD_TABLE     CONSTRAINT_NAME     COLUMN_NAME     R_CONSTRAINT_NAME     CONSTRAINT_TYPE     PARENT_TABLE     SRL_NUM
    a aaa cc_CD     pk_cc_CD     R     cc_t_MS     1
    bb     bbb      Cc_CD     PK_CC_CD     R     cc_t_MS     2
    bb_v     bb_vsr     S_NUM     PK_S_NUM      R     bb_v      3
    cC_HS_MS     cc_hs_CD     cc_CD     PK_CC_CD     R     cc_t_MS     4
    cC_HS_LNK cc_HIS_LNK_CD     H_CD     PK_HS_HCD     R     cC_hs_ms 5
    cC_D_EMP     cc_d_EMP     Cc_CD     PK_CC_CD      R     cc_t_MS     6
    i want insert schema1 to schema2 with run time of column_name and column value.the column_name and values should dynamically generated
    with refential integrity.is it possible?
    can any please quick solution.its urgent
    by
    siva

  • My Macbook pro won't open downloaded programs. it just opens the code it was written in using the text and edit app. How can I fix this?

    My Macbook pro won't open downloaded programs, it just opens the code it was written in using the text and edit app. How can I fix this? I just bought the computer last month so this is some what frustrating.

    If you are downloading .exe files, those are Windows programs, and will not run on your Mac unless you install Windows on it.  (That is possible, if you need one of those apps.)

  • Where do I begin to create my website using this G5 and Pages '08?

    Where do I begin to create my website using this G5 and Pages '08? I don't even know where to start...
    I made a temporoary website on wordpress with my pc -- now I want to see what is possible with this G5 and Pages '08 by bro gave me.

    The current version is iLife '11. iWeb is up to v4 and I think has been out since 2007.
    There is no iLife folder, the applications are loose within the Applications folder.
    You can purchase a boxed version of iLife from Apple or an Apple reseller.
    The Mac App store does not offer iWeb and you would need OSX 10.6.6 to use the App Store.
    If you began your website using WordPress, why not continue to use it, it does not matter what system you are on, Windows, Mac or Linux, WordPress is web based.
    Peter

Maybe you are looking for