Referring to the url variable in cfquery that contains the sign #.

I use CF 9 and cannot figure out how to reference a url variable in my cfquery that contains a character ' # ' as part of the channel name (that is, http://somepage.cfm?variable_name=tom#h.)

When I try to run the query, it shoots only 'tom' due to the sign #.  I tried up to double the sign # (#) but that no longer works.

< cfquery NAME = "qryGraph".
DATASOURCE = "DB2".
USERNAME = #Request.UserName #.
Password = #Request.Password # >

SELECT THE DATE

TABLE
WHERE NAME = ' #variable_name #

< / cfquery >

Any help would be appreciated!

Tom

http://somepage.cfm?variable_name=tom%23h.

And it should work without any other change.

If you compile this code into your CFML, you can use the function urlEncodedFormat().

Tags: ColdFusion

Similar Questions

  • Variable that contains the current URL of apex

    Greetings,

    Is there a variable that contains the current URL of Apex? I would like to be able to access the current URL in a PL/SQL block.

    Thank you

    Larry

    See + {: identifier of the thread = 1021135} +.

  • lose the url variable after the notation in the session

    I have a coldfusion helpdesk application that is secured by a system of connection application.cfm.  Once a ticket is submitted, it sends an email with a link to view the ticket.  The link contains a variable to url for the link between it and the correct ticket.  If the user is not connected, the url variable is naked after the connection process.  Is it possible to prevent this?

    From your description, at least 2 applications are involved. A single application takes the user not authenticated to the login page. As well as the URL variables. I imagine that a second request then takes him - without variables URLS! -from the login form to the page of the form of action, where his letters of credence are validated.

    If so, then this is the expected behavior. You can replace it as follows. Enable session management and implement the following on the login page:

    This translates into ColdFusion, storing the value of each variable to the URL as a variable of the same name in the scope of the session. Thus, the values of URL.x, URL.y, etc. will be stored, respectively, as SESSION.x, SESSION.y, etc... You could then transfer of respective session values in URL field in the links in the subsequent pages.

  • Using wildcard characters in the URL variables (very simple question, I know)

    Hi all!

    Pulling my hair out over this... How to use wildcard characters in the URL variables? I have this code in compositionReady (that works):

    var myurl = " " http://www.mydomain.com/Sub1/Sub2/pagename ";

    var currenturl = window.location

    if(MyURL == currenturl) {}

    sym.getSymbol("symbolname").play ();

    }

    It is simply the symbol "NomSymbole" play when the current URL corresponds to the variable 'myurl '. However, I want the symbol to play on all subpages of http://www.mydomain.com/sub1/sub2/ , and therefore, it seems logical to put in a wildcard as:

    http://www.mydomain.com/Sub1/Sub2/ * or something similar, but I can't seem to make it work?

    Any help will be greatly appreciated!

    :-)

    Best,

    Thomas

    What of it?

    var mysubdomain = "http://www.mydomain.com/sub1/sub2/";

    var currenturl = window.location.toString ();

    If (currenturl. IndexOf (MySubDomain) = 0) {}

    sym.getSymbol("symbolname").play ();

    }

    DIA-

  • Treatment of the variables in ColdFusion that resides inside a database table

    One of my table stores an HTML form that contains the coldfusion variables. In my code I question this table and I need display the form in the front. But while dsiplaying, I'm getting the coldfusion variable name itself instead the transformed value of the variables.

    HTML form stored in the db table:

    ================================

    < do action = "" name = "ci_entry_form" id = "ci_entry_form" method = "post" > "

    < table width = "100%" height = "100%" border = "0" >

    < b >

    < td align = "right" > < style b = "color: red" > * < /b > < class label = "pop_up_letter_font" > G/L #: < / label > < table >

    < td > < input class = "pop_up_textbox" type = "text" name = "gl_number_text" id = "gl_number_text" maxlength = value = "#ARGUMENTS.chkDetails.GL_ACCT_NBR #"21"" required / > "

    < select class = "pop_up_dd" name = "gl_number_drop" id = "gl_number_drop" onChange = "enableDisableGL ()" >

    < option value = "" > - Select - < / option >

    < option value = "new" > enter a new G/L number < / option >

    < cfoutput query = "glNumbers" >

    < option value = "#glNumbers.GL_ACCT_NBR #" > #glNumbers.GL_ACCT_NBR # < / option >

    < / cfoutput >

    < / select >

    < table >

    < /tr >

    < /table >

    < / make >

    Method (cffunction) contains the code to query the html form for the db table and return the form html below.

    ========================================================================================== ==

    < name cfquery = "qry_getTemplate" datasource = "#APPLICATION.dsn #" >

    Select FORM_TXT in the HTML_FORMS where REQ_ID = 172

    < / cfquery >

    < cfsavecontent variable = "form_content" >

    #qry_getTemplate.FORM_TXT < cfoutput > # < / cfoutput >

    < / cfsavecontent >

    But when I dump the cfcontent (form_content) variable I get the HTML form without transformation of the coldfusion variables (* #ARGUMENTS.chkDetails.GL_ACCT_NBR #, #glNumbers.GL_ACCT_NBR #*).

    I'm missing something. Can someone help me solve this problem.

    Your timely help is well appreciated.

    Thanks in advance.

    Add the cfoutput tag:

  • Show all results with the URL variable database?

    Hello

    I use PHP MySQL

    I have a database that is ordered alphabetically. I am trying to create a dynamic page that will only show A, B, C,... and so on. I got this by creating links, named after the letters of the Alphabet. I have a recordset that filters the table using a URL variable that uses the Type. Unfortunately, when I click the link it only shows the first record that contains an A. not all records that contain A.

    For example:

    I have a link which is just 'A '. His link is? Type = A. In the database table there are 3 folders that contain A according to Type, but when I click on it a single record containing A is displayed. I hope that you follow it.

    If you want a direct reference to what I do pass:

    http://cwhazzoo.com/gamelinktesting.php

    That's how my database is designed:

    ID (primary key) Name Letter
    0001Example AA

    I want to be able to only show the selected letter of the recordings using only a single page. Thank you!

    > Use the repeat region?

    Yes. That's what it's for.

  • How to find the url of adf application that has been deployed to the glassfish Server? I try but? It is the image of the page.

    Mr President

    This is the page of the glassfish Server

    gfurl.png

    How to find the url of adf application that has been deployed to the glassfish Server? I try but? It is the image of the page.

    webapplink.png

    In the jdev web module are

    [11: 09:38] wrote the Web for F:\backup of AshCMS\AshCMS\ViewController\deploy\AshCMS_ViewController_webapp.war application Module

    [11: 10:33] wrote the Module Enterprise Application to F:\backup of AshCMS\AshCMS\deploy\AshCMS_Project1_AshCMS.ear

    [11: 10:33] Application deployment...

    [11: 14:24] Application deployed successfully.

    [11: 14:24] time to deployment: 8 minutes, 11 seconds

    [11: 14:24]-deployment is complete.  ----

    what url in the browser.

    Concerning

    Mr President.

    I run my application on built-in web logic server and get the url from there

    http://localhost:7101 / ViewController/faces/MainPage

    then simply change the localhost of 7101 to 8081 as below

    http://localhost: 8081, ViewController, faces, MainPage

    and it works

    Concerning

  • CustomerID refers to the external url

    Hello I have a question about external links.

    I have a table with customer ID and another external website with a database of my company portal.

    The url of the portal of database structure works this way https://...default.aspx?CustID=12345

    Now, I want to link my Apex client ID to the url.

    If I click CustID = 10001 to apex then the url to refer to https://...default.aspx/?CustID=1001

    and if I click in my report on CustID = 21000 url refer to https://...default.aspx/?CustID=21000 etc.

    How can I achieve?

    Thanks for any solution.

    BTW:

    I use in my business, the old version 3.2 Apex that is installed on a server, but I think that

    to refer to external URLS, it doesn't matter which version.

    DB2000

    You don't mention how you present the link to the user.

    If there is a link in a report, you can use the column values in the url of the link.

    the url of the link would then look like

    https://...default.aspx/?CustID=#CUSTID#

    Where CUSTID is the alias of column supporting the id of the customer.

    If there is a link in a text do allows to store the client id and reference it as of a page element

    https://...Default.aspx/?CustID=&PXX_CUSTID.

    Where PXX_CUSTID is the name of the element that contains the customer id.

    Nicolette

  • Creating a variable that contains the value of the variable system (Long) Date of change

    Can someone tell me how to write a script to create a variable named DocDate, which contains the value of the variable of system (Long) Date of change? Or write a script that creates a variable named DocDate, which contains the current date? I can't find a lot of documentation on scripting ExtendScript.

    Hi Julee, when you create a user variable in the interface, you cannot include the building blocks of time in the definition. They can only be used in system like the System Date of Modification (Long) variable variables. So the question is, why not just use the variable Date of change (Long) system in your document? What is the purpose of the variable user DocDate? Let me know what you think here, and I can try to help you.

    Here are some ExtendScript resources:

    My blog: FrameAutomation.com | FrameMaker, faster and more effective to

    Debra Herman blog: Extension of FrameMaker

    The large samples of Russ Ward: FrameMaker ExtendScript samples - West Street Consulting

    -Rick

  • view the sql code used in a cfquery that performs an update

    I want to see the sql code used in a cfquery that performs an update. I can't do it at all, advice?

    Have you looked at the docs? May I suggest the attribute of 'result '.

  • Use of the address bar to search for phrases that contain no spaces?

    When I type the sentences that contain spaces in the search bar, it evokes a search on google as specified by my topic: config under the keyword. URL

    However, when I type something who * do not * contains a space (e.g. potatoes), firefox tries to connect to http://potatoes/, return an "impossible to establish connection to the server to potatoes.

    my key word. Set URL: http://www.google.com/search?ie=UTF-8 & oe = UTF - 8 & q =
    Browser.Fixup.Alternate.Enabled is * wrong *.
    Browser.urlbar.AutoComplete.Enabled is * real * (although I don't think that this has nothing to do with it)

    Hello jywang74, please update firefox version 33.0.2 - here you will see a different behavior (keyword.url is no longer used btw, the address bar uses the same provider of search in the search bar).

    http://msujaws.WordPress.com/2014/08/01/faster-and-snappier-searches-now-in-Firefox-Aurora/

  • Cell that contains the formula paste between spreadsheets

    How do I paste the value of a cell that contains the result of a spreadsheet formula has, in a worksheet cell B and still have the operation of the formula? OS 10.11.14, numbers 3.6.1.

    Hi dad,

    It depends on what you mean by "still have the operation of the formula."

    If simply paste you it into a new table in another document, the formula will be stuck more or less intact, but it will not reference all the cells on the original table. If he refers only the cells on the table where he came from, he can refer to these same cells or cells in the same position relative to the new location on the table to which it is glued. You will have probably the best success with her work on the new table, if you copy and then paste the formula itself, rather than the containing cell.

    Repeat what I have not quite clear in the first line: the numbers documents cannot reference cells in other documents of numbers.

    Kind regards

    Barry

  • Is any String variable or something that have entry and exit data?

    Is any String variable or something that have entry and exit data?

    I give it up! Everything is too complicated for me I want you to focus on the typical programming language.

  • HP Photosmart 3110 referred to the documentation for the printer. Error 0xe18a001

    HP Photosmart 3110 referred to the documentation for the printer. Error 0xe18a001

    Hello caromuna,

    It seems that other users have found a way to completely reset the printer back to the default settings, which can help with this question.

    The reset is discussed in this forum thread and seems to be a bit difficult to fill. Let me know if it helps to solve your problem.

    Photosmart 3310 ink system failure

  • Sort the listBox that contains the text and numbers

    Is there a script to sort a listBox control that contains the text and numbers using a button?

    I would have preferred that he sort 1, 2, 10, 20, 100, not 1, 10, 100, 2, 20

    Examples are part numbers: HP1457100-9, 011-2025-479, 85216, etc.

    You may need to change this line:
    oTarget = this,

    It refers to the object to display the results.

Maybe you are looking for

  • Necessary to complete the installation of the new version on the second computer.

    I want to add a second user on another computer, I received a CD of MSN, try to install it as I have been informed. The account holder is still my husband and my name is the primary account. I typed my email and password OK then my name spelled husba

  • No WLAN light

    Hi all, I have a WRT54G Version 2 router and after turning off the power to do some electrical work around the House yesterday, the WLAN light not coming now. I searched these forums and tried all the thing proposed to reset the router by pressing re

  • Need for Speed Most Wanted does not work in Win7

    Hello Recently, I installed Need for Speed: Most Wanted in my laptop. When I start the game, nothing happens. No flash, no error message display any. I've updated all my drivers through my software manufacturer provided laptop computer. I tried diffe

  • Traffic redirect Internet from the remote site on the main site using the tunel of vpn ipsec

    Hi all I have a problem to redirect internet traffic from my remote to the main site by the IPSEC VPN tunnel. The remote site is a Cisco 2801 router with ios (c2800nm-advipservicesk9 - mz.124 - 22.T) and the remote site has ios (C870-ADVSECURITYK9-M,

  • Without permission to reset the time on a Windows p6-2378 8.1

    Hello I have a HP Pavilion p6-2378 w/Windows 8.1 Pro with MC I put in place to serve as a Home theater PC about a year ago.  I do not use my microsoft as a user account because I wanted the pc so that it starts automatically with a power failure and