Problem URL parameter passing

Below #name # displays the correct information of the pool table.

For example, if the Pearl is connected with users.userID = 5, then #name # poster mek, tiff that is correct.

But in the a href, display_graphic2.cfm? userID = 5 for the mek and tiff.  And I need to match the user ID that is in the table users so clicking on mek would connect to: display_graphic2.cfm? userID = 4 and tiff link: display_graphic2.cfm? userID = 3

How can I do this?

collect data from the table

gatherID name

3 pearls
5 mek
5 tiff
Sammy 6

data from the users table

userID name

3 tiff
5 beads
6 vi
4 meka
...

Code:
<!--- find users based on match with loggin in user --->
<cfquery name="matches" datasource="gifts">      SELECT gather.name, gather.gatherID, users.userID      FROM gather INNER JOIN users      ON gather.gatherID=users.userID      WHERE gather.gatherID=<cfqueryparam cfsqltype="cf_sql_integer" value="#session.userID#"> </cfquery> <!--- display logged in users matches and pass matched user userID in URL ---> See: <cfoutput query="matches">
          <a href="display_graphic2.cfm?userID=#userID#">#name#</a>,      </cfoutput>

Not sure what the question is.  In these data with this SQL statement.

user name and gatherID will always be the same, because it is an INTERNAL JOIN on

gatherID = username, so these ID 3 and 4 will never exist in the application,

only 5.  Looks like you need to join the name, not ID:

You'd get userID '3' for 'tiff' and userID '4' for 'mek' (assuming that)

that "meka" is a typo in the users table).

Tags: ColdFusion

Similar Questions

  • CommandAction - problem of parameter passing

    Hi all

    I am relatively new to vFoglight (running version 6.6 at the moment) and will have trouble to configure a CommandAction with parameters.  We have a rule of vBundle-1, vBundle Datastore free storage that we try to write some parameters in a file on the FMS via a simple script Batch Windows.  Now the rule of law is defined to trigger as critical when a data store has less than 10 GB free and Fatal when there is less than 5 GB free.

    Problem is that I only managed to get the CommandAction working when I simply call a script without parameters.  If I try to pass parameters to the script such as @DSName and @DSSpaceFree, I see vFoglight is to correctly translate the variables with real values, but tried to run COMMAND_LINE just as if these variables were the name of the script itself.

    Original for COMMAND_LINE Setup was as follows:

    E:\Scripts\DataStoreGBFree.bat @DSName @DSSpaceFree

    This seemed to cause vFoglight insert quotes everywhere surrounded areas where space could be found.  This resulted in the following error in the log:

    VERBOSE [Thread-25] com.quest.nitro.service.action.impl.command.StreamGobbler - control Action on: "'E:\Scripts\DataStoreGBFree.bat ' 'VMStore_001' ' 8.10' is not recognized as an internal or external command" "

    TALKATIVE [Thread-25] com.quest.nitro.service.action.impl.command.StreamGobbler - Out control Action: operable program or batch file.

    INFO [Thread-26] com.quest.common.launcher.runner.ProcessNativeImpl - process is complete: [Action command, message: process is complete, exit code: 1]

    WARN [Action-4-thread-3] com.quest.nitro.service.action.impl.command.CommandAction - called command returned the value: 1

    I then tried to put double quotes around the COMMAND_LINE together characters, but which led to a similar error suggesting essentially the same thing:

    WARN [Action-4-wire-48] com.quest.nitro.service.action.ActionService - cannot call action: CommandAction ({foglight_rule_id = ade50163-8f25-4897-b438-f72120ab992b, foglight_severity_level_name = critical, foglight_rule_name is vBundle free storage Datastore} com.quest.nitro.service.action.api.ActionInvocationException: java.io.IOException: process control Action could not be started: named executable does not exist or cannot be executed).

    Finally, I tried setting ENVIRONMENT_VARIABLES as follows to try to pass parameters as environment variables the batch script can easily capture:

    DATASTORE=@DSName! GBFREE=@DSSpaceFree

    But that doesn't seem to work either.  So I don't know what I'm doing wrong and I'm not finding anything in the documentation Foglight or vFoglight, which suggests that I have to do something special for my original COMMAND_LINE work.

    For any help or suggestion would be greatly appreciated.

    Thank you!

    -Aaron

    I opened a support ticket, and it was determined that it is a bug.  ID assigned: FGL-14306.

  • Value of the URL parameter with: do not display correctly on the page

    Hello

    I'm working on a page with an interactive report. One report column is a hyperlink to another page (Page deletion). This link goes to an id and a title page delete such as its poster a confirmation message to the end user before to actually delete it. If the title contains a ': ' the text after the ":" is not displayed on the page (visible in the URL on top)

    Is it because that the ': ' separates parameters in a URL to the APEX and, therefore, the text after the ': ' is considered to be the following URL parameter?
    How can we solve this problem?

    Kind regards
    Priya Jetley

    A solution should be not only not to work with the parameters in the URL.

    Simply a process to pass values from one page to another as is:

    BEGIN
    IF: REQUEST = 'TEST' THEN
    P2_ID: = P1_ID;
    P2_TITLE: = P1_TITLE;
    END IF;
    END;

    In this case, your problem is solved, and it is safer because the user does not see what id is passed and can not manually put the id in the URL...

  • Invalid URL parameter

    Hi all

    I'm developing an application using HttpConnection which should integrete with BES.

    Normally our application works through GPRS in airtel & Vodafone Mobile Connect Service to Vodafone.

    But now I want to integrete with BES. So, I followed the steps in the link below

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

    For example our URL is like this: http://hostort/app; deviceside = false

    Here, I get the error ' invalid URL parameter' in the device.

    Thank you

    Nithya.

    I agree with the previous posters - it is unlikely that he is BES device.  Given that you have properly connected with deviceside = true, a later connection with deviceside = false on a BES device, would have a split-pipe problem.

  • Get the URL parameter in the Java code

    Hi all

    I have a strange problem. I have a JSF page with two controls:
    -InputText
    -Button

    <? XML version = "1.0" encoding = "UTF - 8"? >
    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    < f: view xmlns:f = "http://java.sun.com/jsf/core" xmlns:af = "http://xmlns.oracle.com/adf/faces/rich" >
    < af:document title = "view12.jsf" id = "d1" > "
    < af:messages id = "m1" / >
    < af:form id = "f1" >

    < af:inputText label = "Label 1" id = "it98" value = "#{param.test}" editable = "always" / > "
    < af:commandButton actionListener = "#{bindings.przekierowanie.execute}" = "przekierowanie" text "
    Disabled = "#{!}" Bindings.przekierowanie.Enabled}"id ="cb1"/ >
    < / af:form >
    < / af:document >
    < / f: view >


    And I want to boot the InputText with URL parameter (param name is test - value = "#{param.test}" "). In the JSF page, all right. But after clicking on the button I want to read the value of InputText in Java Code, so I have URL:

    http://127.0.0.1:7101/application6-ViewController-context-root/faces/view12.JSF?test=ASD

    and my Java code that runs when clicking the button:

    public String przekierowanie() {}
    Map < String, String > map = FacesContext.getCurrentInstance () .getExternalContext () .getRequestParameterMap ();
    String tttValue = map.get('zoom') ("test");
    System.Err.println ("test:" + tttValue);
    Returns a null value.
    }

    but it does not work... Whenever I get nothing when I click on the button. Could you tell me why and how to get the value of InputTex in my java function?

    Store the parameter to a parameter of sight and access this setting from Java using EL code.
    Here is the main part (without java code):
    https://blogs.Oracle.com/Shay/entry/passing_parameters_to_an_adf_p

  • How to enter the germination of the URL parameter?

    How to enter the germination of the URL parameter?

    I found a thread:

    http://forums.Adobe.com/message/4898146#4898146

    But the link is down :/

    http://forums.Adobe.com/message/4715517#4715517

    I would like to pass a variable from a page to another

    Any help would be much appreciated

    SEB

    Hi, Seb-

    I have moved the discussion from archive to the Board Animate.  Then you should be able to click the link now.

    Hope that helps!

    -Elaine

  • Dealing with a URL parameter to be used for a default value

    I have a page of results of detail (the CONTACTS Table Recordset), identified by the CONTACTID

    In the same page, I also have another dynamic relational table, showing all the associated notes that contact record (recordset CONTACTNOTES identified using CONTACTS. CONTACTID = CONTACTNOTES. NOTESCONTACTID)

    It works fine and I can update CONTACTS without any problem.

    My problem is to insert a new record CONTACTNOTES (of a simple URL link) also associated with the same record.

    The primary field (NOTEID) is an AutoNumber but I need to carry out CONTACTS. CONTACTID variable to use as the default value for the CONTACTNOTES url. NOTESCONTACTID.

    I think something like that...

    in the dynamic table on the initial results page, using (/ insertnote.php?) CONTACTID = <? PHP echo $row_recordlookup ["NOTESCONTACTID"];? >) as the link, setting the URL parameter.

    The page insertnote has a recordset insert form, related to the CONTACTNOTES table.

    Now, I don't know how to add this URL parameter as the default field value. Is it as simple as putting the $HTTP_GET_VARS ["CONTACTID"] in the field of the Init val in the property inspector?

    Sorry - worked on...

    On the new page of note insertion, I first created a Recordset, duplicate on the initial results page.

    When you create the form, it was easy then to insert {CONTACTS. CONTACTID} as a default value.

  • by the way the date in url parameter criteria

    Hello

    I want to filter a recordset before a certain date.
    Create the Recordset, if I use a value of execution of 27 November 06 # all records for this date are returned.
    However, when I try to spend the same information through the URL parameter it does not work.

    Is there a problem with this info by the way like this?

    Thank you, Mark.

    Not to be absoloutely fine. The problem is most likely to do with your SQL
    statement.

    A test are not all records. At the top of your page, try
    output from the SQL statement finished on the page to see what it looks like
    as. The problem is, you may need to add the symbols # manually. Expected
    look like

    "SELECT * FROM TableName WHERE DateField = #" & URLParameter & "#".

    HTH,

    Piers

  • NoLogon user with the url parameters passed

    I'm doing this work:

    http:// fms:8080/console/foglight_ext?viewId=system:testview.3&vm=abcde1234

    System:TestView.3 is a standard grid with timeRange and vm parameters (string)

    the goal is to allow a user to NoLogon pass a parameter in a view.

    Not a lot of joy so far.   Display shows very well, but the parameter passed does not make it through.

    Thoughts?

    This has been fixed in the Forge 5.6.4.5, default id is FGL-15064 - a hotfix is available for some versions of the FMS.

  • Help! : TypeError: Error #2007: url parameter must be non-null. in CS 5.5

    Hello

    Im doing some google ads on Flash CC but noted that google does not a flash drive which is above FP 10.1 so I saved to my Flash 5.5 and the encountered error tis swf files

    TypeError: Error #2007: url parameter must be non-null.

    Global / flash.net::navigateToURL()

    to MethodInfo - 1)

    I work in AS 3 CS 5.5 Mac and export to swf files in FP 9. I'm new on this point and im wondering if anyone can help me?

    Here is my code:

    Screen Shot 2014-02-07 at 10.59.23.png

    Thanks in advance!

    You shouldn't nest a function inside an event listener, let it stand on its own.  In addition, you should try to leave the variable stand alone to assign so that there is a better chance, she is ready when it is called. (these imports are not necessary if coded in the timeline)

    var url: String = root.loaderInfo, parameters.clickTAG as String

    clicktag.addEventListener (MouseEvent.CLICK, processCT);

    function processCT(event:MouseEvent):void {}

    navigateToURL (new URLRequest (url), "_blank");

    }

  • TypeError: Error #2007: url parameter must be non-null - HELP!

    Hey everybody. I (as well as everyone who posts a question here) am quite new to AS3. If I'm going crazy trying to figure out what is the cause of this error. I have a "jukebox" player that loads songs accordingly when the button is clicked. BUT it's my mistake:

    TypeError: Error #2007: url parameter must be non-null.

    to flash.media::Sound/_load()

    to flash.media::Sound/load()

    at lesson09_V2_S5_fla::MainTimeline/frame1()

    And here is my code:

    Import fl.events.SliderEvent;

    create instances of the three sound related classes that will be used for this project

    var snd:Sound;

    var channel: SoundChannel;

    var trans:SoundTransform;

    create variables to store the values for the power of the song and its volume and pan settings.

    var currSong:String;

    var currVol:Number is. 5;

    var currPan:Number = 0;

    Table of all songs in the current playlist.

    var songList:Array = new Array ("nothing on You.mp3","Grenade.mp3","Ride.mp3","Pretty Girl Rock.mp3","Tick Tock.mp3", "Dynamite.mp3");

    don't need to see the volume and pan controls until a song

    panSlide.visible = false;

    volSlide.visible = false;

    Headphones for the buttons of the song on stage

    song1.addEventListener (MouseEvent.CLICK, chooseSong);

    Song2.addEventListener (MouseEvent.CLICK, chooseSong);

    song3.addEventListener (MouseEvent.CLICK, chooseSong);

    song4.addEventListener (MouseEvent.CLICK, chooseSong);

    song5.addEventListener (MouseEvent.CLICK, chooseSong);

    song6.addEventListener (MouseEvent.CLICK, chooseSong);

    headphones for the volume sliders and pan

    panSlide.addEventListener (SliderEvent.CHANGE, panChange);

    volSlide.addEventListener (SliderEvent.CHANGE, volumeChange);

    sets the text of all the buttons of the song field to display the names of the songs in the songList array

    for (var i = 0; i < songList.length; i ++) {}

    var str:String = [i] songList have thong;

    Str = str.replace(".mp3","");

    var clip = this ["song" + (i + 1)] .title;

    clip. Text = str;

    }

    statement to define a song based on the song button was clicked switch.

    function chooseSong(e:MouseEvent):void {}

    Switch (e.currentTarget.name) {}

    case "song1:

    currSong = '... /MP3s/ ' + songList [0] as String;

    break;

    case "song2":

    currSong = '... /MP3s/ ' + songList [1] as String;

    break;

    case "song3":

    currSong = '... /MP3s/ ' + songList [2] as String;

    break;

    case "song4":

    currSong = '... /MP3s/ ' + songList [3] as String;

    break;

    case "song5":

    currSong = '... /MP3s/ ' + songList [4] as String;

    break;

    case "song6":

    currSong = '... /MP3s/ ' + songList [5] as String;

    break;

    }

    }

    If (snd! = null) {}

    Channel.Stop ();

    }

    SND = new Sound();

    SND. Load (new URLRequest (currSong));

    snd.addEventListener (IOErrorEvent.IO_ERROR, onError);

    function onError(e:IOErrorEvent):void {}

    Do nothing

    }

    Channel = new SoundChannel;

    TRANS = new SoundTransform (currVol, currPan);

    Channel = snd.play ();

    channel.soundTransform = trans;

    panSlide.visible = true;

    volSlide.visible = true;

    currVolume and pan values are used here for display in the text beside the sliders fields

    volLabel.text = "Current Volume" + int(currVol * 100);

    panLabel.text = "Current Pan" + int(currPan * 100);

    listen to the arrival of ID3 tags

    snd.addEventListener (Event.ID3, id3Handler);

    triggered when the id3 tags are available

    sets the info text field to display the information of the current song from id3 tags.

    function id3Handler(event:Event):void {}

    var id3:ID3Info = snd.id3;

    If (id3.songName! = null) {}

    songTitle.text = id3.songName + "\n";

    info. Text = "" Artist: \n"+id3.artist+"\n \n ";"

    info.appendText ("Album: \n" + id3.album);

    info.appendText ("\n\n" + "available at: \n" + "passionrecords \n.com");

    }

    }

    var format: TextFormat = new TextFormat();

    format.font = "Arial Black";

    format. Color = 0xFFFF00;

    format. Size = 14;

    format.url = " " http://www.passionrecords.com/ ";

    info.defaultTextFormat = format;

    uses the value of volume slider to control the volume

    function volumeChange(e:SliderEvent):void {}

    currVol = e.target.value;

    volLabel.text = "current Volume:"+ int(currVol*100); "

    TRANS.volume = currVol;

    channel.soundTransform = trans;

    }

    uses pan value of the slider to control pan

    function panChange(e:SliderEvent):void {}

    currPan = e.target.value;

    panLabel.text = "Current Pan" + int(currPan*100);

    TRANS. Pan = e.target.value;

    channel.soundTransform = trans;

    }

    Any help would be greatly appreciated! Thank you!

    This looks to another case of code not be placed where it should be.

    If this code is not in a function, then it executes immediately when the program starts.  At this point, snd is not defined, no said.  You do not create the instance until the line... snd = new Sound();   that, I believe, you have now moved inside a function.

    You might have to go through all the code to see what parts you always floating around this need of houses inside functions.

  • Filter 2 URL parameter UNION joined table columns

    _Hi chaps,

    I have a code, which I can't seem to work, think I'm missing something somewhere.

    I want to access the two tables and filter them by column "FK_projid", which is located in a URL parameter "id".

    $colname_rsJobs = "-1";
    If (isset($_GET['id'])) {}
    $colname_rsJobs = $_GET ['id'];
    }
    @mysql_select_db ($database_conndb2, $conndb2);
    $query_rsJobs = sprintf (")
    (
    SELECT
    tbl_jobs. FK_projid,
    tbl_jobs. JobID,
    tbl_jobs. JobName,
    tbl_jobs. FK_langid,
    tbl_languaget.langtname,
    tbl_jobs.jobshipped
    Of
    tbl_projects
    INNER JOIN tbl_jobs
    ON tbl_projects.projid = tbl_jobs. FK_projid
    INNER JOIN tbl_languaget
    ON tbl_languaget.langtid = tbl_jobs. FK_langid
    )
    UNION
    (
    SELECT
    tbl_jobxml. FK_projid,
    tbl_jobxml. JobID,
    tbl_jobxml. JobName,
    tbl_jobxml. FK_langid,
    tbl_languaget.langtname,
    tbl_jobxml.jobshipped
    Of
    tbl_projects
    INNER JOIN tbl_jobxml
    ON tbl_projects.projid = tbl_jobxml. FK_projid
    INNER JOIN tbl_languaget
    ON tbl_languaget.langtid = tbl_jobxml. FK_langid
    )
    ("WHERE FK_projid = %s", GetSQLValueString ($colname_rsJobs, "int"));

    $rsJobs = mysql_query ($query_rsJobs, $conndb2) or die (mysql_error ());
    $row_rsJobs = mysql_fetch_assoc ($rsJobs);
    $totalRows_rsJobs = mysql_num_rows ($rsJobs);

    I get the error:
    You have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near 'WHERE FK_projid = 3525' on line 32


    3525 is correct, but I do not know what prevents the code to work... ideas?

    I did have the chance to look at, but you have your select statements wrapped in parens. Try to remove those. Also, you have applied only where clause the the second statement of the Union. Is that what you want?

  • Several items with the PHP URL parameter

    Hi, I am a novice PHP, using dreamweaver only do any programming. I have a page showing 10 products, and within each product, I have a checkbox dynamic named "checkbox" which is linked to the product id. When the user selects multiple checkboxes, I want to display the results on the results page by using a URL parameter. I can get the page to send the url like this:

    CheckBox.php? CheckBox = 100000 & Case = 100100 & box = 100200 & box = 100300 & box = 1010 23Submit = Submit

    I can't figure out how to get more than one display item. I searched and read countless forum entries, but nothing I can work with.

    Here is the form on the home page;
    < do action = "checkbox.php" method = "get" name = "checkbox" > "
    < input type = "checkbox" name = "checkbox" value = "<?" PHP echo $row_rs_products ["Item"];? ">" / >

    On the checkbox.php page, the recordset is:

    SQL: SELECT *.
    PRODUCTS
    WHERE Item = 'products '.
    ORDER BY point CSA

    Variables:
    name of column-$1 _GET ['checkbox']

    Any help is appreciated.
    Thank you
    Roger

    huntlok1 wrote:
    > I get the page to send the url like this:
    >
    > checkbox.php? checkbox = 100000 & = 100100 checkbox checkbox = 100200 & checkbox = 100300 & che
    > ckbox = 101023Submit = Submit
    >
    > I can't figure out how to get more than one display item.

    It's like saying: I'll have a beer. No, I'm getting red wine. No, I'll
    have a cherry brandy. Uh, no, make it a flaming lamborghini.

    Each variable must have a different name. Otherwise, the last one being always
    WINS.

    Since you're using PHP, change the name of your boxes something
    like products []. The empty pair of brackets turn products into
    a table. In your page, you must then activate the table in
    something that your recordset can use.

    > On the checkbox.php page, the recordset is:
    >
    > SQL: SELECT *.
    > From products
    > WHERE Item = 'products '.
    > ORDER BY point CSA

    $products = implode (',', $_GET ['products']);

    SELECT *.
    PRODUCTS
    WHERE point IN ($products)
    ORDER BY point CSA

    --
    Adobe Community Expert David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • URL parameter problem

    Hello

    I'm new to the development of blackberry applications. I try to access a Web service, I can access using the http connection. When passing a parameter in the URL includes only one word then it works fine and answers correctly, but when I pass the same variable with a different value that contains several words separated by space, then it generates an error. I tried to pass the same URL in the browser, but the browser gives me good performance.

    I believe strongly that there is a problem when the parameter is sent. Please help me

    Thanks in advance

    If you only want to add parameters using percent encoding:

    http://en.Wikipedia.org/wiki/percent-encoding

  • Problem with oracle page OFA form parameter passing

    Dear all,

    I have a requirement as below

    I have a custom page of OAF I need call from a menu in the form of oracle, so I sm able to invoke the page in the menu but I need to move a form parameter to a page ofa form personlization, I am able to get the same thing, but my parameter contains date with time stamp, so when iam passing only day It works very well but with dtamp time it gives error like URL invalid because of some special character. So I found some links only when there is a space between the date and the time dtamp it gives question so please help me how I can handle this I need to get the date with timestamp in my page.

    Thank you

    Thanks for the reply,

    I solved the problem by using different functions through PL/SQL

Maybe you are looking for