Exclude one field from application.cfm loop

i am using a cfloop collection tag in the application cfm file to loop through and remove special charachters from submitted forms for xss protection. I want to exclude one or two fields from this because they are date time fields so can't have all the restrictions all of the other fields can. I am picturing something like
<cfloop collection="blah" item="blahblah">
     <cfif field name is not one of the date time fields>
< general remove bad charachters code>
     <cfelseif field name is one of date time fields>
<remove special charachters code>
</cfif>
</cfloop
how do i get the field name to use in the condition above?

Ummm...
<cfloop collection="form" item="field">
<cfif field NEQ "aDateField" AND field NEQ "bDateField" AND field NEQ "cDateField">
   Processs the non-date fields
<cfelse>
  Process the date fields
</cfif>
</cfloop>
Or slightly easier to maintain.
<cfloop collection="form" item="field">
<cfif NOT ListFind(field, "aDateField,bDateField,cDateField")>
   Processs the non-date fields
<cfelse>
  Process the date fields
</cfif>
</cfloop>
Or the best yet, would be to provide the list you are checking against from sometype of data repository where it is easy to maintain, like a database or configuration or something.  But I will leave that exercise to you to figure out.

Similar Messages

  • Exclude one field from Logical Database's dynamic selection screen

    Hi Guru,
    I have a requirement to amend a program to exclude the document number field (bsik-belnr) from the dynamic selection-screen of the logical database KDF(Vendor Database) so that the program will not filter according to the document number.
    I have use the below syntax in my zprogram.
      selection-screen exclude select-options: doc-no.
    However I get syntax error "The addition EXCLUDE is only allowed in INCLUDE DBKDFSEL".
    Please advice.
    Best Regards,
    Fung

    The selection part of the logical database defines input fields for selecting data.
              The runtime environment displays these on the selection screen when you run an executable program linked to the logical database.
              Include called DB<ldbname>SEL.
            SELECTION-SCREEN BEGIN OF VERSION ver TEXT-xxx.
                                                                    SELECTION-SCREEN EXCLUDE ... .
                                                    SELECTION-SCREEN END OF VERSION ver.
    Defines a selection screen version (with a three-character name ver ). Between BEGIN OF VERSION and END OF VERSION , you can exclude selection screen objects for the version ver , i.e. remove them from the selection screen with SELECTION-SCREEN EXCLUDE.
              SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE dbtab
    If one of these tables is active in the report (i.e. it is declared under TABLES or lies somewhere on the path from the root of the database hierarchy to a table declared with TABLES ), a pushbutton called 'Dynamic selections' appears on the selection screen.

  • How to Use COLUMN NOPRINT - need to exclude one column from Select *

    Dear Friends,
    I need to exclude one column from a SELECT * query. Everytime the column data type is BLOB, I dont' want it to be part of my SELECT. After googling I found some info about NOPRINT but it doesn't seem to be working in my case. May be I am using it incorreclty.
    COLUMN FILE_DESC NOPRINT
    SELECT * FROM FILES;
    Where FILE_DESC is of BLOB datatype.Can I use it in my SELECT or it has to be used in Dynamic SQL? Is there any other option to achieve this?
    Thanks in advance.

    Hi,
    COLUMN FILE_DESC NOPRINT
    affects all queries in the same SQL*Plus session (unless you cancel it with a COLUMN FILE_DESC PRINT command.)  It doesn't matter if those queries are static or dynamic.  As mentioned before, COLUMN is a SQL*Plus command.  If you using a different front end, then it may have a different way to hide specific output columns.
    Did you have a poroblem when you tried it?  Post a complete test script that the people who want to help you can use to re-create the problem and test their ideas.
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Is there any way to include excluding one field

    hi all,
    is there any way to include a structure or type in another structure or type by excluding one field?
    regards
    hyma

    I think you are trying to include 2 structures but it is giving error that some fields are common
    you can overcome that like this , these are the 2 additions
    INCLUDE STRUCTURE ZTAB AS name1.
    INCLUDE STRUCTURE ZTAB AS name1 RENAMING WITH SUFFIX name2
    for more info check the help for INCLUDE STRUCTURE

  • Comparison of two structures excluding one field

    Hi,
    I need to make comparisons of two complete data structures, excluding from the comparison one field that should not be compared or considered to obtain a result of equality of both structures.
    Somebody know a sentence or practical way to make this comparison (with one field less)?
    Example:
    DATA: im_data_new TYPE mereq_item,
                im_data_old TYPE mereq_item.
    Both structures has 146 fields, and I need to exclude from the comparison the 64th field.
    Thanks in advance and greetings,
    Mayra.

    clear that field value in old and new before comparing the structures.
    Thomas

  • Exclude GUID field from tables in tdms transfer.

    Hi,
    We have been asked chek whether it is possible to exclude GUID fileds from tables in TDMS ERP data transfer.
    We ran data replication from ECC to CRM in out pre-prod system, replication populated the CRM GUIDs in ECC. We are going to use pre-prod as sender system for TDMS transfer. GUID field is part of the corresponding object table so the receiver system tables also populated with GUID. What we don't know is how replication behaves when the GUIDs are already populated.
    As I know there is a way to set the GUID filed to NULL value in tdms transfer using scrambling rule. The only concern I am having is how this could affect the ISU data in other tables.
    Please share your opinions on this.
    Thanks
    Praveen.

    The "GUID fields" are used to normalize the data and is the key fields for all CRM applications. If you don't transfer those the system will be "empty" because data relations cannot be found.
    Markus

  • How to skip one field from the file by using sqlldr

    Hi ,
    i'm using DB 10g R2 on Redhat ,
    my control file hereunder ,
    LOAD DATA
    INTO TABLE reber.AAA_BILL
    APPEND
    REENABLE DISABLED_CONSTRAINTS
    EXCEPTIONS reber.AAA_BILL
    FIELDS TERMINATED BY '|'
    (Streamnumber ,
    MDN ,
    USERNAME ,
    DOMAIN ,
    USERIP ,
    CORRELATION_ID ,
    ACCOUNTREASON ,
    STARTTIME ,
    PRIORTIME ,
    CURTIME ,
    SESSIONTIME  ,
    SESSIONVOLUME ,
    RATEPOLICYIDX ,
    FEE ,
    GROUPID ,
    SERVICEID)and this is one records of the file ,
    222|1|0664363446|12D0DC90||10.15.6.45|007b8aa5|3|20111029204824|20111029204824|20111029211504|1600|0|147|0|4000|10154|really i want to skip the first field in the file which is (222|) and starting from the second field ,
    any help please

    Thank you for you reply ,
    really i know the Filler to skip colomn from the table , is the Filler working also to skip field from the File . i'll read the link to check this

  • Exclude "note" field from syncing to plaxo?

    Is it possible to exclude the "note" field from syncing to plaxo or google contacts? I want the names and contact information, but not the notes. I keep personal information there. Thanks!

    You can uncheck songs in the Library and there is an option for your iPod to ignore them. Connect your iPod, go to Preferences>iPod>Music, tick the radio button "only update checked songs"

  • ORACLE Select and group by excluding one field

    Dear community,
    I have a very simple query (on Oracle 11g) to select 3 fields:
    select field1, field2, field3, count(*) from table
    where...
    group by field1, field2, field3
    having count(*) > 10;
    Now, what I need, is exclude "field3" from the "group by" since I only need field 1 and 2 to be grouped, but I also need field3 in the output. As far I know, all the fields in the select must be reported also in "group by", so how can I handle that?
    Thanks
    Lucas

    Welcome to the forum!
    Whenever you post please provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION). And when you post code use code tags, \ on the line before and after the code to preserve formatting. See the FAQ for other syntax and highlighting options.
    {quote}
    As far I know, all the fields in the select must be reported also in "group by", so how can I handle that?
    {quote}
    Correct - for an aggregate query all columns in the select must be either aggragate functions or in the GROUP BY.
    {quote}
    Now, what I need, is exclude "field3" from the "group by" since I only need field 1 and 2 to be grouped, but I also need field3 in the output
    {quote}
    Well what is it you are counting? And how should the values of field3 relate to those groups?
    Post some sample source data and the sample result data you want to produce.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Reg: Excluding one day from the daily schedule process chain

    Hi All,
    I have a process chain scheduled daily except Sunday i.e. from Monday to Saturday. Now i want to exclude Saturday from the daily scheduling.
    Any idea how we can do that. Early response will be highly appreciated.
    Best regards

    Hi,
    Restrict chain Scheduling on Sundays/Holidays
    Create a factory calender using TCode SCAL or ask your basis team to create one.
    In this calender mark all days except the day you dont want the chain to run as workday.
    Now while scheduling the process chain make use of this calender and restrict it to run only on the workdays.
    There is a setting in the start process of the PC by which your chain wont run in sundays/holidays based on calendar or run only on workdays as defined in the factory calendar.
    Go to PC > start process > change selection  > Date/time. Here enter the date from which the chain should be scheduled and then click the Restrictions button at the bottom. There u can check the option "Dont execute job on sundays or holidays.
    Hope this helps.
    Thanks,
    JituK

  • Can I automatically populate one field from another?

    I have two fields on a form (airport_name and airport_code). When the user picks a specific name from a combobox(i.e. Philadelphia International Airport) i want the airport_code field to automatically populate the 3 letter code (PHL). Can anyone help?

    Joseph,
    This question is best suited to the Oracle9iAS Portal Applications Forum.
    Thanks

  • Exclude one customer from VAT

    Hi ,
    Ours is french company.
    For all French customers we are charging vat of 19.6% where as we have one customer who is in the border of France for this customer VAT is not applicable.
    Still as per conditions its calculating VAT for this customer also.
    Pls tell us how to exclude VAT for this customer.?
    regards
    Rajendar G

    Hi,
    This is how the tax works in SAP.
    You have 2 methods of classifications for tax.
    1- Customer Tax classification - By maintaining 1 or 0 in the customer master/ Billing documents tab under Tax classification section you can say whether customer is taxable or not.
         1 - if the customer is taxable
         0 - if customer is tax exempt
    2- Material Tax classification - By maintaining 1 or 0 in the material master/ sales tab, under Tax classification section you can say whether material is taxable or not.
        1 - if the customer is taxable
        0 - if customer is tax exempt
    Now come to VK11 condition record for that tax (Eg: VAT)
    your VK11 record goes for this combination. (Format)
    Customer Tax classification - Material Tax classification - Tax percentage
    1 - 1 - 19.6%
    1 - 0 - 0%
    0 - 1 - 0%
    0 - 0 - 0%
    As per the above example, Customer and Material  both should be taxable, in order to apply the VAT.
    Now coming back to your question, what you can do it for that particular customer, maintain "0" under tax classification.
    Then in VK11, maintain "0 - 1 - 0%" as well.
    So that sales order won't pick 19.6%.
    Thanks and best regards,
    Anupa

  • IE exclude one site from a domain

    Our organization is currently running a whole domain in compatibility view but there is 1 site within this domain we would like to exclude from compatibility view.
    We are running IE 10 and would like to be able to set this via GPO if possible but will take whatever solution works!
    All assistance would be GREATLY appreciated!

    Hi,
    As far as I know, There is no any Group Policy to exclude any site. However, you could include to compatibility view.
    If you enable the "Include updated Web site lists from Microsoft" policy, when a user visits a site on the compatibility list provided by Microsoft, the page will automatically display in Compatibility View.
    I suggest you create a new post in the Script forum to check if this can be done by a script:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Karen Hu
    TechNet Community Support

  • How do you return back one record from a For Loop issue

    I have the following piece of code and i want to be able to just return one item...
    that is           return e.next(); but this line doesnt work for below what is wrong
    if (attrs == null) {
         System.out.println("No attributes");
    } else {
         /* Print each attribute */
         for (NamingEnumeration ae = attrs.getAll();
         ae.hasMore();) {
              Attribute attr = (Attribute)ae.next();
              System.out.println("attribute: " + attr);
              /* print each value */
              for (NamingEnumeration e = attr.getAll();
              e.hasMore();){
                   System.out.println("value:- " + e.next()));
              return e.next();
         }

    At the end of the loop, the NamingEnumeration has no more elements. You need to call getAll() again.
    By the way, please use code tags (above the posting box). You've been here long enough to know that (judging by your registration date).

  • Exclude input fields from report breaks

    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:234
    The radiogroup is based on the deptno.
    I specified break on "First and second columns".
    This results in the radiogroup also being suppressed on the repeated rows!
    Is there a way to suppress only the readonly report fields and show the radiogroup on every row?
    Thanks

    Actually, suppressing the radiogroup is fine, but the real problem is that when I check the Sum column for say the SAL column as in
    http://htmldb.oracle.com/pls/otn/f?p=24317:234
    It shows a redundant subtotal for the radiogroup column!
    Any way to control this behaviour?
    Thanks

Maybe you are looking for

  • How to modify s_alr_87012078

    I have a requirement to modify S_ALR_87012078. I thought of copying the report but it seems to have been generated through Report painter or so. But I do not know where to start. Pl help. Thanks, Ven

  • Display Image from URL

    Hi Experts, I am new to BSP. I have a requirement like I need to display an image which is stored in a url. The URL will be changed depending on the document no. Please suggest how can I display the image on BSP dynamically based on the document no?

  • User attributes checked by Delta Discovery in SCCM 2012

    Hi All, Since I simply cannot find an answer to my question using google, will ask it here and hope you can help me. Which EXACT User attributes does Delta Discovery check for in SCCM 2012? Is it possible to manipulate this, and add one more attribut

  • Reinitialization of static data by multiple applets

    Hi, I have a problem with initialization of shared static data by multiple applets. I have three applets running inside of different HTML frames in a multi-frame HTML framework. Applets are loaded as JAR files. In addition, every applet has one or tw

  • How to select a row in Grid? no a cell

    Clict the grid, I want to select a whole row, not a cell and that the Cell of Grid  is readonly how to do? thanks