Escape comma in mxmlc

Our company software control software uses comma in the directory names. Apparently, MXMLC doesn't like it since it treats ',' as path separator. Is there a way to tell mxmlc to "escape" the commas?
Thanks,
Khoa

You shouldn't need to escape commas.
Use PreparedStatement, not Statement. PreparedStatement takes care of all your escaping needs. The JDBC tutorial shows how to use PreparedStatement: http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html

Similar Messages

  • Escape comma in sql

    Hi all,
    I am inserting address filed in my sql. My address field has comma seperated data. How to escape commas in sql?
    Thanks in advance.
    aman

    You shouldn't need to escape commas.
    Use PreparedStatement, not Statement. PreparedStatement takes care of all your escaping needs. The JDBC tutorial shows how to use PreparedStatement: http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html

  • Escape comma

    I wonder how to escape comma in below statement
    exec RecreateTempTable('SELECT EMPNO, EMPID, EMPNAME FROM EMP');

    user11432758 wrote:
    because the sp only accept 1 parameter
    CREATE OR REPLACE PROCEDURE RecreateTempTable (
    p_Description IN VARCHAR2) IS& only a single string is being passed into procedure.
    so what is the problem & actual error?

  • Escape comma in static LOV

    due to the data format in an old DB, i need to creat a static LOV
    Boston, MA
    Worcester, MA
    Portland, ME
    STATIC2:Boston, MA;Boston, MA,Worcester, MA;Worcester, MA,Portland, ME;Portland, ME
    Obviously now they are getting split on the commas I don't want them to break on. Is there an escape character that will work? Slashes didn't.

    See the STATIC2 select list at http://apex.oracle.com/pls/otn/f?p=24317:91
    The LOV definition is
    STATIC2(|,;):Display,includes comma;Return|Another,display;Return2You can specify the 2 delimiters in parens after the STATIC2 keyword to control how APEX parses the string of values.
    Hope this helps.

  • What is the escape charcter for comma in csv flashvars?

    Hi,
    I do have a comma in my flashvar (csv format) value. The comma is getting interpreted as a separator and the value is getting split in the visualization. Is there a way to escape comma in flashvar csv formats?
    Thanks,
    bi_suresh

    The regex engine needs to see \. but if you're putting it into a String literal in a .java file, you need to make it \\., as Rene said. This is because the compiler also uses \ as an escape character, so it will take the first \ as escaping the second one, and remove it, and the string that gets passed onto the regex will be \.

  • Commas not correctly processed when values are passed through the URL!!!!!!

    I think this is a bug. Any information about this will be greatly appreciated. Here's the scenario:
    There's a single page with 2 regions. The first region contains a simple SQL report. The second region is and HTML region that contains text and date form elements. The SQL report has a column link "Edit" that when pressed it populates form elements in the HTML region. The population of the form elements is done by passing the column values of the select row as variables along the URL. The problem is that commas within column value text are processed as delimiters in the URL. From my understanding and documentation, variables and their values are supposed to look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:1234,,5678
    where MY_ITEM1 will be set to 1234, MY_ITEM2 will be set to null and MY_ITEM3 will be set to 5678 (The URL was copied directly from the Apex 3.0 documentation without modification).
    However if the first value is text (lets say "some,thing") that contains a comma, then MY_ITEM1 will be set to the text preceding the comma in the first value (some), the MY_ITEM2 will be set to the text that comes after the comma in the first value (thing) NOT null and MY_ITEM3 will be set to null NOT 5678. Clearly, one would think that the comma in the first value should be escaped given that commas are used as delimiters of values in this URL scheme.
    The URL looks like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing%2C%2C5678
    However the URL should look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing,,5678
    where MY_ITEM1 is set to "some,thing", MY_ITEM2 is null and MY_ITEM3 is set to 5678
    What does all this mean? This means that the escaped commas (%2C) are used as delimiters for the values. Additionally, any information that is passed that contains a comma will have it's comma escaped as well AND still considered as delimiters for values in the URL. Not to mention it's inconsistent with the official documentation.

    Never mind... problem solved.
    In the Apex docs says that you can embed commas if used within backslashes like: \123,45\.
    So in order to pass text that has a comma through the URL, one must force Apex to code the URL like this (assuming that the text is coming from a report):
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:\#A_COLUMN#\,,5678
    Sorry... no bug. :)

  • Commas in the weblogic.properties file

    I hate to ask this question because I'm sure the answer is a)obvious, and
    b)well-known, but I'm playing in the slow group today.
    How does one include a comma in a property value in the weblogic.properties
    file. Specfically, I'm trying to set weblogic.system.startupArgs as follows
    weblogic.system.startupArgs.xxxx=sql=select sysdate from dual where
    mod(to_number(to_char(sysdate, 'MI')), 2) = 0
    The value assigned to the "sql" arg is truncated at the first comma and a
    second argument "'MI'))" is created. Very irritating. Any ideas on how to
    prevent this from happening?
    Ignore the details of the sql statement, its just for testing.
    Brian Murray
    Management Information Systems
    Vanderbilt University

    Thanks for the reply, but that didn't seem to work. Escaping the commas
    with back-slash delivered the same result.
    It seems that since the value for the weblogic.system.startupArgs.xxxx
    property can itself be a set of multiple properties, the normal parsing
    rules don't apply when the "inner" set of properties is parsed. For
    example, if weblogic.properties has
    weblogic.system.startupArgs.xxxx=aaaa=X\,Y
    then it appears that "startupArgs.xxx" is being assgined "aaaa=X,Y".
    However, when the startup class gets the arguments, whatever routine is
    parsing the value of "startupArgs.xxx" is seeing the comma and deciding that
    there are two properties, not one. So the startup method of my startup
    class gets 2 arguments: "aaaa=X" and "Y=".
    I tried all the old Korn shell tricks I could remember like aaaa=X\\\,Y.
    But all I got was "aaaa=X\" and "Y=".
    Any other thoughts or am I trying something I wasn't supposed to do?
    ----- Original Message -----
    From: "Dimitri Rakitine" <[email protected]>
    escape commas with \'s
    Brian Murray <[email protected]> wrote:
    How does one include a comma in a property value in the
    weblogic.properties
    file. Specfically, I'm trying to set weblogic.system.startupArgs asfollows
    >
    weblogic.system.startupArgs.xxxx=sql=select sysdate from dual where
    mod(to_number(to_char(sysdate, 'MI')), 2) = 0

  • Wrapping A SqlBulkCopy Class To Export A Proper Comma Delimited Table

    Hello!
    If anyone can point me in the right direction it would be greatly appreciated!
    In my search, it seems SQL Server cannot export tables to a proper comma delimited format. I have not found a out of the box solution for SQL Server to properly escape commas and double quotes within fields on a record.
    Which brings me here. I'm searching for a way to leverage the SqlBulkCopy class (or a alternative) to quickly export a record's values in a array or list so I can feed it into my custom DelimitedStringBuilder class.
    So far it seems the out of the box SqlBulkCopy class only supports import into other tables and not a text file.
    One thought (I have no idea how I would implement it) would be to attach a DataReader class to the SqlBulkCopy class and then pass the values from the DataReader to my DelimitedStringBuilder class.
    Has anyone been able to write something like this? Or is there a simpler solution?

    Have you tried just using SQL and ExecuteNonQuery? Below is an example:
    Dim TextConnection As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source=" & "C:\Documents and Settings\...\My Documents\My Database\Text" & ";" & _
    "Extended Properties=""Text;HDR=NO;""")
    TextConnection.Open()
    'New table
    Dim TextCommand As New System.Data.OleDb.OleDbCommand("SELECT * INTO [Orders#csv] FROM [Orders] IN '' [ODBC;Driver={SQL Server Native Client 11.0};Server=.\SQLExpress;Database=Northwind;Trusted_Connection=yes];", TextConnection)
    TextCommand.ExecuteNonQuery()
    TextConnection.Close()
    Paul ~~~~ Microsoft MVP (Visual Basic)

  • Reference texts in messages.en.properties file

    Hi,
    I've got a peculiar issue. I'm trying to access a variable/property/reference
    in my VM file like below:
    <p class="warning">${FailureWarning}</p>
    And FailureWarning is defined in messages.en.properties file as
    # Custom Warning Messages
    FailureWarning=Session status fail, additional data entry not permitted
    However, when rendered on the UI, the message is contained with square
    brackets. This does not happen with any other text (if I were to change the
    value for FailureWarning).
    [Session status fail, additional data entry not permitted]
    Does the text hold a special meaning in OPA/Velocity rendering?
    Regards,
    Ajay

    Each message is treated like any other key and value in Velocity.  A value will consist of either a string *or* a comma-separated list of strings (see Velocity - Developer's Guide).  What you have defined is a list consisting of 2 strings -  "Session status fail" and " additional data entry not provided", so Velocity will render these values within square brackets to indicate this is a list of strings.  You need to escape the comma with a preceding '\' to have Velocity treat this as a single string:
    # Custom Warning Messages
    FailureWarning=Session status fail\, additional data entry not permitted
    You will see the escaped comma in the values for case-saved-label, NullTemplateError and NoActiveSessionError.
    Hope this helps,
    Brad

  • IR Report "Link" Attibute Custom URL Escape : (colon) Character

    <h2>I am running Apex 4.0.2 and have an interactive report page 242 with a result set.</h2>
    Scenario
    In the "Report Attributes" "Link" settings I want to link the report to a 'Custom URL' target to take the user from this IR Report Page 242 to page 243 to a 'Single Record Data Entry Form'
    I am setting the value of the custom url target as:
    f?p=&APP_ID.:243:&SESSION.::&DEBUG.:243:P243_NAME,P243_DESCRIPTION,P243_LOCATION:#SOURCE_NAME#,#DESCRIPTION#,#LOCATION#:The P243_LOCATION column, however, has a ':' colon and a '.' values in the database column itself with a value of *'jdbc:Host123.abcd'*
    When the user clicks on the link the FULL location column is truncated before the ':' - OBVIOUSLY due to ':' being the paremeter separator column in apex
    So, the #LOCATION# value on Page 242 IR Report containing a value of *'jdbc:Host123.abcd'* is trunced on the called page 243 as 'jdbc' only and truncated prior to the ':' value contained in the field.
    Question:
    HOW Can I build the above URL so that the ':' can be visible on the Page 243 form field? with the full value passed into the called page with a value of: *'jdbc:Host123.abcd'* ?
    I tried the SYS.htf_esc(#LOCATION#) around the calling URL above, but doesn't work as expected.
    Any advice is greatly appreciated.
    VSK

    Hi,
    You can not escape colons but you can pass commas in the url. Enclose the item value in \item_value\ to escape the "," in the item value . For colons, I would suggest creating a hidden field in the source report with SQL REPLACE function and replace all the colons with any other character like ||. Then you can use the same replace function on the target page to match with the new item value.
    Hope it helps. Thanks.
    Regards,
    Manish

  • How to escape special characters in a region title

    I have created a drill down report where the second report is filtered by a value chosen in the first report. I am using &Pn_field. syntax to pass the name of the select value to the region title of the second report. Some of the returned values have a ':' in them and therefore the text does not print after the ':'. How do I escape the ':' in the region title?
    regards
    Paul P

    Paul,
    I think your question is "How do I use f?p URL syntax to pass data values to a page where the data includes a colon?" (Please correct me if that's not the issue.) The answer is, you can't. Same with commas. HTML DB reserves those two characters for the f?p request syntax. You'll have to save the string into the item before the page branch. There is no restriction on what characters can be used in a region title, it's just HTML-formatted text, except that you must escape anything that looks like HTML unless you want the browser to treat it as HTML. There are restrictions, however, on what characters you can pass in URLs in general and you must take care to escape them properly, e.g., ?, &, whitespace.
    And do speak up if I've missed the point.
    Scott

  • How to dictate the word comma in Mountain Lion

    I have scoured the Internet trying to find out how to get Mountain Lion's Dictation to actually dictate a word that it normally produces as punctuation.  For example, how would I have it say the following?
    "Insert a comma instead of a period."
    In other words, I'm looking for some type of "escape" feature, like the backslash often is in coding.

    Open the Terminal application in your Utilities folder and paste the following at the command prompt:
    chflags nohidden ~/Library
    Press RETURN.

  • Commas in List Data

    I have a form that uploads a CSV file and puts it into a DB.
    I am trying to make it as "idiot-proof" as I can with as little
    responsibility on the enduser as possible to provide "proper
    format" data. Is there a way to go about escaping certain commas in
    the text (and distinguishng them from the true delimiter)? I
    understand that putting the value in quotes works, but that again
    relies on the enduser doing so. Is there a way to do this upon
    upload or does the end user have no choice but to clean the file up
    first.
    TIA

    > I have a form that uploads a CSV file and puts it into a
    DB. I am trying to
    > make it as "idiot-proof" as I can with as little
    responsibility on the enduser
    > as possible to provide "proper format" data. Is there a
    way to go about
    > escaping certain commas in the text (and distinguishng
    them from the true
    > delimiter)?
    In short: no. How can CF determine whether a comma is a
    delimiter or
    whetehr it's content? How would you expect that to work?
    > I understand that putting the value in quotes works, but
    that again
    > relies on the enduser doing so. Is there a way to do
    this upon upload or does
    > the end user have no choice but to clean the file up
    first.
    "Garbage in: garbage out". Don't try to process something
    that is not
    appropriate for the task. Upload the file, parse it,
    validating it as
    proper CSV data (there's no official spec, but this RFC is
    useful,
    http://rfc.net/rfc4180.html,
    and you can point your client to it). If the
    file validates: process it. If it doesn't, reject it.
    Adam

  • Commas in csv file

    I have csv file which look like this
    Name1,12,Address,"10,121.00",zip1
    Name2,13,Address,"11,150.00",zip2
    But the problem here is when xi reads it using file adapter the
    amount field is taken as two parts even if i have mentioned in quotes
    "10,121.00" - xi reads as "10 and 121.00"
    How can i handle commas of an amount field in a csv file
    Thanks
    Sebin

    Hi Sebin !
    Have you tried:
    (http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm)
    &#9679;      NameA.enclosureSign
    Specify a string that acts as a text delimiter.
    Text enclosed by such delimiters is transferred to the target structure unchanged, although the default setting is to remove all text delimiters. Separators within such texts are ignored.
    This parameter is optional. The default setting is an empty value (no text delimiter).
    &#9679;      NameA.enclosureSignEnd
    If the text delimiters for the beginning and end of the text are different, specify the text delimiter for the end of the text here.
    If you do not make an entry here, the entry from NameA.enclosureSign is used.
    &#9679;      NameA.enclosureSignEscape
    Specify a string that replaces the text delimiter if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSign .
    &#9679;      NameA.enclosureSignEndEscape
    Specify a string that replaces the text delimiter for the end of the text if it occurs within a text that it delimits.
    When the text is transferred the string is replaced by the value specified in NameA.enclosureSignEnd.
    &#9679;      NameA.enclosureConversion
    To remove the delimiter upon transfer, or to replace it with escape characters, enter YES. This is the default value.
    To transfer the characters unchanged enter NO.
    Note
    If you specify xml.enclosureSign=“ and xml.enclosureSignEsc=““, text enclosed in quotation marks is transferred unchanged and the quotation marks are removed.
    If the escape character for a quotation mark (““) occurs in the text itself, it is replaced by the quotation mark during the transfer.
    Regards,
    Matias.

  • Disable "Change Password" option in Comms Express

    I need to disable/remove the Change Password option in Communications Express. I'm using patch level 122793-30. How do I do this? Are there any instructions out there for this? I see them for Convergence....which I have installed also but I have users who still use Comms Express.
    Thanks in advance!

    Found it myself.
    Edit /var/opt/sun/comms/ce/uwc/common/UserPreferencesSettings.jsp and change:
    <div class="Tab3"><a href="<%= getContextURI(request) %>/base/UserPreferencesPassword" class="TabLblNormal" title="<ja
    to:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSessio
    n="true" name="uwc-common-options-tooltip-ChangePassword" defaultValue="Change Password"/>"><jato:getModelFieldValue escape="false"
    modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-options-Cha
    ngePassword" defaultValue="Change Password"/></a></div>to:
    <div class="Tab3"><!--<a href="<%= getContextURI(request) %>/base/UserPreferencesPassword" class="TabLblNormal" title="<ja
    to:getModelFieldValue escape="false" modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSessio
    n="true" name="uwc-common-options-tooltip-ChangePassword" defaultValue="Change Password"/>"><jato:getModelFieldValue escape="false"
    modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-common-options-Cha
    ngePassword" defaultValue="Change Password"/></a>--> </div>

Maybe you are looking for

  • Problem with encoding and charset for downloading a file

    Hi guys, I have a problem and I beg for your help, I am 1000% frustrated at this point. I have a servlet which have to do something and give a file log to the final user. Coding the logic for that took me about 5 minutes, the problem is that the give

  • I keep getting error 2324 when upgrading to version 10

    I keep error 2324 when upgrading to version 10. Running win 7

  • Expense lines

    I have a custom table which stores(expense report lines data) for each invoice number.Currently the number of lines in this table are duplicated.Lets say the standard table has 4 lines for each invoice number, the custom table has 8 rows or more than

  • Theme uses theme-styled transitions instead of cross-dissolve

    iMovie 8.0.5 According to the Help +By default, setting or changing the theme sets iMovie to insert transitions automatically. iMovie inserts standard cross-dissolve transitions with occasional theme-styled transitions between the clips in your proje

  • Error importing DA from SCOM through connector

    Hi, After the System Center 2012 R2 upgrade we are seeing event log (operations manager log) errors when the SCOM CI Connector runs. It states that not everything is synced and it complains about the MP Microsoft.Windows.Peripheral.Networkadapter cla