Hash Marks in Field Names

Forgive me but I have forgotten how to do this.
I'm trying to pass the query field name: "Pat #" , which
can't be changed.
<cfset pat_no = '#Pat ##'>
Problem is the hash mark in the field name.
I've tried:
<cfset pat_no = '#Pat #'#''>
but it errors out.

aliceinthemirror wrote:
> I've tried:
> <cfset pat_no = '#Pat #'#''>
> but it errors out.
>
You escape ColdFusion control characters by doubling them. So
your line
should probably be <cfset pat_no = '#Pat ###'>
HTH
Ian

Similar Messages

  • Hash in database field name

    I have a field name that has a hash (#) symbol in the name. I
    have no control over the naming structure of this particular
    database. I need to output this field. How the heck do I do this? I
    know how if the output has a # in it, but what about the actual
    field name?
    Thanks,

    Your best bet is to alias the field name in SQL before you
    start dealing with your recordset in CF. You should be able to
    escape the hash using ## instead of #.
    If for some reason you can't alias the field name in your SQL
    statement, you can output query data in the following format:
    QueryName["FieldName"][RowNumber]
    I bet you can do something like this:
    qMyQuery["Hash##Field"][1]

  • Please help with dynamic form field names in cfloop

    Hi,
    I need to create a form with day, date, month, year and time for 12 months
    Instead of coding them 12 times, I create day,date,month,year and time fileds in my form 1 time and then I use cfloop from="1" to="12" index="i" to loop these form fields 12 times.
    I gave each form field name such as: <input type="text" name="ScheduleDate_# i #" value=" "> this way each of those field will be named differently such as:
    ScheduleDate_1, ScheduleDate_2,ScheduleDate_3, ScheduleTime_1,ScheduleTime_2, etc
    I'm facing problem when this form is submitted, I think the error has something to do with the pound sign (##) when it comes to updating the back end
    I use MS SQL
    It doesn like this:
    <CFLOOP From="1" To="12" index="k">
    <CFIF Len(Trim(Form.MeetYear_#k#)) NEQ 0 AND Len(Trim(Form.MeetTime_#k#)) NEQ 0>
    <cfquery name="CreateSchedule" datasource="#DSN#">
    UPDATE TableSchedule 
    SET SchedDay = <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.SchedDay_#k##">,SchedMonth =
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.SchedMonth_#k##">,SchedDate =
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.SchedDate_#k##">,SchedYear =
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.SchedYear_#k##">,SchedTime =
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.SchedTime_#k##">
    Where SchedId = <cfqueryparam cfsqltype="cf_sql_numeric" value="#k#">  
    </cfquery>
    </CFIF>
    </CFLOOP>
    Can anyone help please?

    You can't nest hash marks. Do this instead:
    SET SchedDay = <cfqueryparam cfsqltype="cf_sql_varchar" value="#form["SchedDay_" & k]#">
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

  • HOW TO KEEP FIELD NAMES IN GUI_DOWNLOAD

    Hai,
    can u answer this.

    HI ravi,
    pass all the column names in an internal table and pass the internal table in the field names parameter of the FIELDNAMES of tables parameters..
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = itab
    FIELDNAMES                      = it_fieldnames
    PLS CHECK THE SIMPLE CODE BELOW...
    data: begin OF itab occurs 0,
          matnr like mara-matnr,
          end of itab.
          data : begin of it_fieldnames occurs 0,
                 name(100),
                 end of it_fieldnames.
      it_fieldnames-name = 'MATNR'.
      APPEND IT_FIELDNAMES.
    select matnr from mara into table itab UP TO 10 ROWS.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        FILENAME                        = 'C:\Documents and Settings\sampath\Desktop\flatfile.txt'
        FILETYPE                        = 'ASC'
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = itab
       FIELDNAMES                      = IT_FIELDNAMES
    EXCEPTIONS
      FILE_WRITE_ERROR                = 1
      NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER         = 3
      INVALID_TYPE                    = 4
      NO_AUTHORITY                    = 5
      UNKNOWN_ERROR                   = 6
      HEADER_NOT_ALLOWED              = 7
      SEPARATOR_NOT_ALLOWED           = 8
      FILESIZE_NOT_ALLOWED            = 9
      HEADER_TOO_LONG                 = 10
      DP_ERROR_CREATE                 = 11
      DP_ERROR_SEND                   = 12
      DP_ERROR_WRITE                  = 13
      UNKNOWN_DP_ERROR                = 14
      ACCESS_DENIED                   = 15
      DP_OUT_OF_MEMORY                = 16
      DISK_FULL                       = 17
      DP_TIMEOUT                      = 18
      FILE_NOT_FOUND                  = 19
      DATAPROVIDER_EXCEPTION          = 20
      CONTROL_FLUSH_ERROR             = 21
      OTHERS                          = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    hope this helps u a bit,
    all the best,
    regards,
    sampath
    mark helpful answers
    Message was edited by:
            sampath pilla

  • Photos in album are only a hash-marked outline the image only shows when scrolling how can I see the image and open the photo?

    Photos in iPhoto album are only a hash-marked outline the image only shows when scrolling how can I see the image and open the photo?

    Make a temporary, backup copy (if you don't already have a backup copy) of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Screen field name

    Hi friend,
    In MB01, after giving the PO number and when the 'Adopt+Details' button is pressed, a new screen opens, in which there is a field 'Reference Doc'.
    My doubts on this field are as follows:
    1.  How to find out the screen field name for that field.
    2.  How to give a if condition for that field.
    Pls guide me.
    Regards,
    Mark K

    Hi Friends,
    Through F1, I am getting the field details as following :
       Program name   = SAPMM07M
       Screen no.     = 0210
       Screen field   = MSEG-LFBNR
       The value displayed in the field is '501809447'.
    Now I want to pass this field value to a variable.  How could I do this.
    Can you pls guide me.
    Regards,

  • Master  table for RFQ(Request For Quotation). Field name is RFQ

    hi,
    I need to know the master table for RFQ(Request For Quotation) number . The field name is ANFNR . In the T.code ME42, i found that it is using the structure RM06E. But i need to know its corresponding master table

    the table EKKO (EKPO Items table) and you can find the Quote number in EBELN field. Don't go by the structure / field name on the screen
    Forgot to metnion that you need to use the right document category and the document type.
    Regards,
    Ravi
    Note : Please mark the helpful answers
    Message was edited by: Ravikumar Allampallam

  • Table name and field name of the structure field

    Hi Gurus
    I am having a screen where i enter a value in a field and that field is a structure field, I would like to know in which table and what field is this value storing?
    Can anyone help me out in finding the field name? and what is the procedure to find?
    Thanks in advance

    Hi Satya,
    In the field data section (technical information), you can double click on the field name then the system will take you to SE11 (Data Dictionary). From here, you can check whether the field is available in tranparent table or structure.
    In general, as naren mentioned sales order header data stored in table VBAK and line item in table VBAP, VBEP, etc.
    For request delivery date, it stores in table VBAK-VDATU.
    Regards,
    Ferry Lianto
    Please close this thread if your problem solved and mark for all helpful answer.

  • How to programmatically retrieve the real field name from a view object ?

    Dear all,
    when I map a business component (a database table) to a view, the fields are automatically converted by JDeveloper, for example, a field named 'user_id' in the oracle table definition, becomes 'userid' in the view.
    The question: how can I retrieve the right table column name from within a backing bean ? Please explain also what should I bind and how; should I use an iterator ?
    Another more: since we can change the label of a field on a view, how can then I get the mapping between the column name on the view and the column name on the table in the database ?
    Thanks in advance,
    Sergio.

    Hi Timo,
    many thanks for your answer.
    The rest of my question: you know we can drop a view from the DataControls onto a ADF page, with each field of the table having a label.
    That label is initially set like the internal table field name, so for instance, if user_id is the real table field name, userid will be the (by JDeveloper) internal renamed table field name, and the label would be userid too.
    If I then change the label text to, for example, "myUserid", the question is: how can I know which real table field does "myUserid" point to ?
    In other words, when my form is submitted, I want to know which field name has been changed and prepare an update sql in a bean.
    For this purpose I bind each view field to a validator function in the bean, and collect al the pairs "label_name + submitted value" in an hash table.
    Now inorder to build up that update query, I need the mapping between the label_name ("myUserid") and the real table field name ("user_id"). The question: how to map the label to the real table field name ?
    By the way, I'm using JDeveloper 11g rel. 2.
    Regards,
    Sergio.

  • System.ArgumentException: Invalid field name. {c042a256-787d-4a6f-8a8a-cf6ab767f12d} while Activating Info path form Feature

    We are encountering an error while activating features for info-path form on site collection.Earlier It was working fine but when we deactivate info path feature on site collection and try to activate again with updated info path form its giving below error.
    Feature receiver assembly 'Microsoft.Office.InfoPath.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c', class 'Microsoft.Office.InfoPath.Server.Administration.XsnFeatureReceiver', method 'FeatureActivated' for feature '86e128c1-8d91-9809-ac8a-7b77e8a2159b'
    threw an exception: System.ArgumentException:Invalid field name. {c042a256-787d-4a6f-8a8a-cf6ab767f12d} at Site Collection url at Microsoft.SharePoint.SPFieldCollection.GetFieldById(Guid
    fieldId, Boolean bThrowException) at Microsoft.SharePoint.SPFieldCollection.get_Item(Guid id) at Microsoft.Office.InfoPath.Server.Administration.XsnFeatureReceiver.UpdateContentType(SPContentType contentType, String serverRelativeUrl, FormTemplate formTemplate)
    at Microsoft.Office.InfoPath.Server.Administration.XsnFeatureReceiver.CreateOrUpdateContentTypes(SPSite currentSite, String serverRelativeUrl, FormTemplate formTemplate) at Microsoft.Office.InfoPath.Server.Administration.XsnFeatureReceiver.FeatureActivated(SPFeatureReceiverProperties
    properties) at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)

    Hi Prathap singh.
    Greetings . pls try to deactivate from powerhell and activate it again
    http://social.technet.microsoft.com/Forums/office/en-US/e79ebe96-2b48-46e3-8cce-6caed44f0418/invalid-field-name-error-while-trying-to-deactivate-administrator-approved-infopath-form-template?forum=sharepointcustomizationprevious
    http://social.technet.microsoft.com/Forums/office/en-US/ddb8b710-138a-4e26-bf46-65ebd0ac525f/i-get-the-invalid-field-name-when-trying-to-activate-feature-to-publish-infopath-form?forum=sharepointcustomizationlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Hash Marks Displayed In Date columns

    Hi Experts
    I have two date columns in my report.
    But when i export this to excel spreadsheet i am getting
    Hash Marks Displayed Instead of Dates on few of cells ....
    I am really frustrated and tried everything by formatting date using to_char ,to_date in universe and also tried formatting
    date in Infoview side.
    But whenever i export this , I get ######## instead of dates .
    Can anyone please advise ?

    Hi Savrav,
    1. Fields in excel give ####### values when the column width is not sufficient to show the complete length of values in the cells.
    I hope you've tried expanding the column width in excel.
    2. Also, what is the source file? Is it a DB table or a BEx query on which you have built the Universe?
    Worth checking the format of the date field in the source file.
    Regards,
    Srilakshmi B

  • Problem with XML FCP import - grey hash marks

    I have an XML import from FCP and roughly half of the clips have the  grey hash marks presumably because the clip is pointing to in and out points that are unavailable in the source file.  I've seen these hash marks when a clip was  shortened in an external editor, like Audition. Sometimes you will see  only half the clip with the hash marks in that case. I suspect the project file is either misinterpreting the  framerate of some of the footage (most likely, I think) or the translation from  XML is inaccurate. All the source files play fine in the source monitor  so I don't suspect a codec  problem,  but if you look for the in and out points of the selected clip  they are often long after the video has ended. Normally if the source clip is offline it appears red.
    The other odd thing, not sure if related, is that the audio gain in the clip efffects , which drives the yellow line, is set to -infinity in each which I manually reset to 0.
    If anyone has any experience with this problem please share. I can manually slip all these clips to reveal the proper portion of the clip but that will be a tedious process obviously. I would love a global solution.
    Thanks in advance.
    Chris

    brigzor wrote:
    I don't really need to open it in premiere, any program in windows would be fine, all I need from this .xml file is to be able to check the names of the clips in the sequence and in which order they are sequenced, I don't need to edit it just be able to look at the sequence and the filenames and general source clip structure, so if it really isn't possible in premiere i would appreciate other software suggestions.
    If this is the case, return to the project in FCP and export and EDL instead of an XML file. You can designate that the EDL include the Clip names or File names for each clip and will let you see them and where they reside in the sequence. Once you have exported the EDL, which is a text file, open it in Text Edit and print it out.
    MtD

  • Wouldnt it be so neat if when sending emails to multiple contacts that you could place a check mark beside the names you want to include in the email?

    wouldnt it be so neat if when sending emails to multiple contacts that you could place a check mark beside the names you want to include in the email instead of having to go back and search through contact list to add each recipiant?

    Hey docasman, 
    Welcome to the support forums!
    The error you are seeing is normal, all it means is that the list will be truncated meaning you will not be able to see the full list of people in the CC field but you can add more and it will send the message to all of them.
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • How do I get rid of hash marks on my screen accompanying my pointer arrow?

    How do I get rid of hash marks on my screen that accompany the pointer arrow?

    Linda, welcome to the forum.
    When requesting help you should always include the make/model of the computer and/or monitor. This information is necessary for us to review the specifications of them.
    What is the name of the game?  It may simply be a coincidence that the red pixels occured after loading the game.  You may have some bad pixels.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Turn off the 'build tag' hash marks?

    We are upgrading to RH7 and have one project with Build Tags.
    The tags are 'visible' in the file name in the left panel as
    colored hash marks through the file name. This makes reading the
    file name difficult. Its visible in both 'view by file name' and
    'view by topic name'.
    Is there a way to turn off this hash mark feature?

    Select the pod.
    Click on the View menu option and select Show - Conditional
    Areas.
    This toggles the conditional hash on or off.
    Kind Regards
    Craig

Maybe you are looking for

  • How can I convert MPEGs without losing quality?

    Hi Guys Ok, to start, I have a MAC OS X 10.4.11/ Final Cut Pro 5/ new 1TB external hard-drive/ from UK So, I am new to FCP and not very tech savvy. Please be gentle with me.... Basically, I have some video files I would like to edit on FCP. They are

  • Is my Creative Suite 1.1.1 compatible with windows 8.1?

    I am a retired pastor who has used InDesign to create my sermon outlines for years. I now need to update my computer and will have to use Windows 8.1. Will my old CS 1.1.1 (from 1984) work with Windows 8.1. I cannot possible afford to go to a new ver

  • Advance payment issue

    Hi I have an issue regarding customer's advance payment, the issue is urgent so Ill be grateful for early response: if customer has not made payment then system should not allow to create delivery for that customer Thanks in advance bhargav

  • Excel for Mac Question

    Couldn't find a thread for excel so picked numbers... Have a question and I know how to do it in Excel for Windows for not for Mac: 1) How do I choose a non-standard fill color for filling in a cell? I know how to fill a cell with a standard palette

  • How can I separate audio and clips?

    How can I separate audio and clips?