DateField & amp; Validation

I'm sure it can be done, but maybe a bit beyond my skill level...

I am trying to use a cfinput datefield and want to limit the dates that the user can select. It cannot be before today, and it cannot be greater than X date (say 30 days from today ' hui.)

Is there a validation = "" actionscript or something I can do with what it occurs? " Or what would be the best solution for this so that I can still use cfinput type = "datefield"?

Thanks in advance for any suggestions/advice! :)

AS works with dates in a format of millisecond, which means that this date of the day in such that appears as a number... the number of milliseconds between January 1, 1970 and now. Also, do not forget THAT to mean the month numbers starting with 0, not 1, so January is month 0.

So, let's say you must check if a date is between now and Xdate. (which was my scenario). Here's how you do it... or at least, this is how I did, LOL

You must be able to see your two dates, today and Xdate, separately from their values of month, day and year, so I put a few hidden these values fields.

For my start date (today):






For my end (xdate):






Now the ACE for check date:


var todayDate = new Date (myform.myyear, myform.mymonth, myform.todaydate, 0, 0, 0, 0);
firstDate var = new Date (myform.myyear, myform.mymonth, myform.firstDate_Value, 0, 0, 0, 0);
lastDate var = new Date (myform. LastYear, myform. LastMonth, myform. LastDay, 0, 0, 0, 0);
var debDate = new Date (select_date.selectedDate);
var displayLastDate = lastDate.toString ();
If (firstDate > = debDate) {alert ("you cannot select a date prior to today.")}
If (firstDate > = debDate) {select_date.selectedDate = todayDate}
if(debDate > lastDate) {alert ("you cannot select a superior date ' + displayLastDate") ;}}
If (debDate > lastDate) {select_date.selectedDate = todayDate}

The code is not cleaned, some the DateAdd and DateFormat might have been merged a CFINPUT instead of a CFSET, then CFINPUT, but it seems to work ok, however. :)

I hope it helps someone other too!

Tags: ColdFusion

Similar Questions

  • DateField clear if the user choosing the wrong pattern (or validation fails)

    Hello

    I have a date field for which I have a particular pattern("DD/MM/YYYY").

    I want to get out in addition to the entered value if the user enters the value in the wrong format.

    I know that this is possible using Designer 9.0

    If (this.errorText! = null)

    then

    this.rawValue = 0;   -in the event exit

    But I am using Designer 8.2 for the current project and please tell us how this can be made possible here.

    Thank you

    KC

    I don't think it's a good idea to limit the input to the ground that one format only.

    This is going to be frustrating for users, as the validation may fail too often.

    It is better to make the entry as flexible as possible by combining several models:

    As the use of template editing:

    date {jj. MM YYYY} | date {YYYY} | date {DDMMYYYY} | date {DD MM YYYY} | date {YYYY-MM-DD} | date {DD, MM, YYYY} | date {MM/DD/YYYY}. date {jj. MM YY} | date {parag} | da you {DDMMYY} | date {JJ MM AA} | date {JJ-MM-AA} | date {DD, MM, AA} | date {JJ/MM/AA}

    and like the model display:

    date {MM/DD/YYYY}

    Users then can enter dates in many ways but always get the correctly displayed as DD/MM/YYYY.

  • CFFORM & amp; JavaScript validation problem

    I have a form which publishes on a new window (pop-up) with no bar menu and a specified size.

    In the form HTML, onSubmit, a form sent to a new window, no statusbars toolbars, etc.

    I decided to convert the HTML form for form CFML to be used form validation on the client side. With the FORM of CFML, I get an extra window that is just empty. At first, I thought it was because I was trying to pass in a "this.target", but if I hard code, the new window opens, but there all menu bars.

    Thanks... James

    Here is my code (condensed course)...



    After two days to hit my head, I found it myself.

    I needed to change that:
    onsubmit = "return createTarget (this.target).

    to do this:
    onsubmit = "return createTarget (_CF_this.target).

    James
    Sacramento, CA

  • validation & amp; masking using cfinput

    I have a form for users claiming three telephone numbers; Office, mobile and fax. While everyone has an office number, everyone does have a cell phone and fax number. I want the numbers to be in the format (#) #-#. I use cfinput and implementation of masking, which works well when there is a phone number. But, when it is not a number, say a user doesn't have a number of cells, this field is filled with zeros (such as (000) 000-0000). How to get masking work, but not fill a field with zeros? I tried to validate, but it won't force by using parenthesis.

    "My cfinput looks like: name ="cellnumber"cfinput type ="text"value =" #query.cell # mask = "(999) 999-9999" required = "no" / >

    In fact, I found my own answer. In the attrribute of value, I'm oringally had tags around the value of the variable. When I removed those, form stopped filling with zeros.

  • The food does not contain an image valid podcast.

    Hello

    I asked this question before and the control point was that the image is in https. We addressed it now and the image is http, but I always get the error the food does not contain an image valid podcast. Podcast images must be at least 1400 x 1400 pixels.

    Flow validates correctly as well, although when tested in iTunes, the episode does not show.

    Here is my feed - http://feeds.feedburner.com/accenture/stagemanual

    Thanks in advance.

    I checked in the Podcasts connect and the error is not with the image, but it complains that it cannot download episodes of your EDI. This is because the URL of your media file is

    http://link.videoplatform.limelight.com/Media/?Mediaid=01bc098836b64009915f2aa89 00aa4ab & amp; width = 480 & amp; height = 321 & amp; playerForm = player

    It is a Flash drive. You can't use a player incorporated - you must provide a direct link to the media file. and it's not Flash. For video, it must be .m4v, .mov or .mp4. The file should play in a browser when you enter the URL, not force a download or appear in a player.

  • Noob XML - XML files validation attempt

    Versions of the databases: 10.2.0.4 on 11.2.0.3.

    I am currently on a site that has very little experience with XMLDB (0%). I myself have about 0.1% experience

    This would save a lot (!) time if XML files could be validated in the database, so I'll try from there to achieve, however, so far I can't work.

    I keep on running in:

    ORA-19007: pattern string does not match expected string.

    Question: The given XML document was consistent with a different schema than expected.

    Action: Insert/update only this particular scheme-compliant XML documents.

    I followed the steps in this article: www.xmldb.nl & amp; raquo; HOWTO: Validate the XML data

    (the examples in the article using ROOT_TABLE worked fine, by the way and have been my POC)

    and read the Oracle documentation on this topic.

    Currently, after several adjustments, XMLSpy said that the xsd and xml are valid.

    But Oracle is apparently still not convinced.

    Maybe it's something obvious, but I don't know where to look now, so any pointer is more than welcome.

    My next testcase (after the CPO ROOT_TABLE) was:

    Save a schema (using dbms_xmlschema.registerschema) in the following form:

    <? XML version = "1.0" encoding = "UTF-8"? >

    <!--

    XSD schema

    ->

    " < xs: schema xmlns: XS =" http://www.w3.org/2001/XMLSchema "         

    elementFormDefault = "qualified" >

    < xs: element name = "Kwijtscheldingen" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: ELEMENT ref = "Header" / >

    < xs: ELEMENT ref = "Kwijtschelding" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Header" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Assuré" type = "xs: String" / >

    < xs: element name = "Aanleverdatum" type = "Référence" / >

    < xs: element name = "Rapportagedatum" type = "Référence" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Kwijtschelding" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: ELEMENT ref = 'Algemeen' / >

    < xs: ELEMENT ref = "Inkomen" / >

    < xs: ELEMENT ref = "VermogenBD" / >

    < xs: ELEMENT ref = "Voertuigbezit" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = 'Algemeen' >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "BelemmeringEindoordeel" type = "Jore" / >

    < xs: element name = "Geslachtsnaam" type = "xs: String" / >

    < xs: element name = "Geboortedatum" type = "Référence" / >

    < xs: element name = "Student" type = "Jore" / >

    < xs: element name = "BSNPartner" type = "BSN" minOccurs = "0" / >

    < xs: element name = "GeslachtsnaamPartner" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "GeboortedatumPartner" type = "Reference" minOccurs = "0" / >

    < xs: element name = "StudentPartner" type = "Jore" minOccurs = "0" / >

    < xs: ELEMENT ref = "Leefvorm" / >

    < xs: ELEMENT ref = "BetrouwbaarheidLeefvorm" minOccurs = "0" / >

    < xs: element name = "AantalMeerderjarigeBewoners" type = "xs: unsignedByte" minOccurs = "0" / >

    < xs: element name = "AantalMinderjarigeBewoners" type = "xs: unsignedByte" minOccurs = "0" / >

    < xs: element name = "BSNTevensAangeleverdGemeente" type = "xs: String" minOccurs = "0" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Inkomen" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Belemmering" type = "Jore" / >

    < xs: element name = "TotaalNettoInkomen" type = "History" / >

    < xs: ELEMENT ref = "Inkomstenverhouding" minOccurs = "0" maxOccurs = "unbounded" / >

    < xs: element name = "BedragHuurtoeslag" type = "History" minOccurs = "0" / >

    < xs: element name = "BedragZorgtoeslag" type = "History" minOccurs = "0" / >

    < xs: ELEMENT ref = "Heffingskorting" minOccurs = "0" maxOccurs = "unbounded" / >

    < xs: ELEMENT ref = "StudentInkomen" minOccurs = "0" / >

    < xs: ELEMENT ref = "StudentPartnerInkomen" minOccurs = "0" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "VermogenBD" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Belemmering" type = "Jore" / >

    < xs: element name = "SaldoTotaal" type = "History" / >

    < xs: element name = "RenteTotaal" type = "History" / >

    < xs: ELEMENT ref = "Free" maxOccurs = "unbounded" minOccurs = "0" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Voertuigbezit" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Belemmering" type = "Jore" / >

    < xs: ELEMENT ref = "Con" minOccurs = "0" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    <! - Algemeen Ref Prioritaten - >

    < xs: element name = "Leefvorm" >

    < xs:simpleType >

    < xs:restriction base = "XS: String" >

    < xs:enumeration value = "1" >

    < xs: annotation >

    < intention > Gehuwd/Samenwonend < / intention >

    < / xs: annotation >

    < / xs:enumeration >

    < xs:enumeration value = "2" >

    < xs: annotation >

    < intention > Alleenstaand < / intention >

    < / xs: annotation >

    < / xs:enumeration >

    < xs:enumeration value = "3" >

    < xs: annotation >

    older < intention > Alleenstaande < / intention >

    < / xs: annotation >

    < / xs:enumeration >

    < / xs:restriction >

    < / xs:simpleType >

    < / xs: element >

    < xs: element name = "BetrouwbaarheidLeefvorm" >

    < xs:simpleType >

    < xs:restriction base = "XS: String" >

    < value pattern = "Laag |" Midden | Hoog "/ >"

    < / xs:restriction >

    < / xs:simpleType >

    < / xs: element >

    <! - Inkomen - Ref Prioritaten->

    < xs: element name = "Inkomstenverhouding" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "werkgeverUitkeringsinstantie" type = "xs: String" / >

    < xs: element name = "BedragInkomsten" type = "History" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Heffingskorting" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "description" type = "xs: String" / >

    < xs: element name = "Kortingsbedrag" type = "History" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "StudentInkomen" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BedragBasisbeurs" type = "History" / >

    < xs: element name = "BedragAanvullendeBeurs" type = "History" / >

    < xs: element name = "BedragLening" type = "History" / >

    < xs: element name = "BedragLeningCollegegeld" type = "History" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "StudentPartnerInkomen" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BedragBasisbeurs" type = "History" / >

    < xs: element name = "BedragAanvullendeBeurs" type = "History" / >

    < xs: element name = "BedragLening" type = "History" / >

    < xs: element name = "BedragLeningCollegegeld" type = "History" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    <! - Fortune - elements->

    < xs: element name = "Free" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "NaamRekeninghouder" type = "xs: String" / >

    < xs: element name = "Rekeningnummer" type = "xs: String" / >

    < xs: element name = "Saldo" type = "History" / >

    < xs: element name = "Rent" type = "History" / >

    < xs: element name = "Banknaam" type = "xs: String" / >

    < xs: element name = "NaamBankproduct" type = "xs: String" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Con" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "Kenteken" type = "xs: String" / >

    < xs: element name = "Bouwjaar" type = "Jaar" minOccurs = "0" / >

    < xs: element name = "Soort" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Me" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Type" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Kokonaispainolla" type = "xs: int" minOccurs = "0" / >

    < xs: element name = "BrandstofSoort1" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "BrandstofSoort2" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Also" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "BijzondereCondities" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Status" type = "xs: String" minOccurs = "0" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    <! - Generieke Typen - >

    < xs:simpleType name = "BSN" >

    < xs:restriction base = "XS: String" >

    < value pattern = "\d {9}" / > "

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "Datum" >

    < xs: annotation >

    < intention > Datum als jjjjmmdd < / intention >

    < / xs: annotation >

    < xs:restriction base = "XS: String" >

    < xs:length value = "8" / >

    XS: pattern < value="[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]"/ >

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "Bed" >

    < xs:restriction base = "XS: Decimal ' >

    < xs:fractionDigits value = "2" / >

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "Crislover" >

    < xs:restriction base = "XS: String" >

    "< value pattern = ' J | N "/ >"

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "Year" >

    < xs:restriction base = "XS: positiveInteger" >

    < xs:totalDigits value = "4" / >

    < / xs:restriction >

    < / xs:simpleType >

    < / xs: Schema >

    I used when creating the table 'Kwijtscheldingen' element.

    The last test XML file, which has no problem with validation XMLSpy, is facing ORA-19007.

    Here is the content of the XML test file:

    <? XML version = "1.0" encoding = "utf-8"? >

    " < Kwijtscheldingen xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "xsi: noNamespaceSchemaLocation ="KWS2_Schema_Concept1.1.xsd"> ".

    < header >

    Organisatienaam < assuré > < / assuré >

    < Aanleverdatum > 20140701 < / Aanleverdatum >

    < Rapportagedatum > 20140715 < / Rapportagedatum >

    < / header >

    < Kwijtschelding >

    < Algemeen >

    < BSN > 111111111 < / BSN >

    < BelemmeringEindoordeel > J < / BelemmeringEindoordeel >

    < Geslachtsnaam > Geslachtsnaambsn111111111 < / Geslachtsnaam >

    < Geboortedatum > 19700707 < / Geboortedatum >

    < student > N < / student >

    < BSNPartner > 222222222 < / BSNPartner >

    < GeslachtsnaamPartner > GeslachtsnaamPartnerbsn222222222 < / GeslachtsnaamPartner >

    < GeboortedatumPartner > 19710709 < / GeboortedatumPartner >

    < StudentPartner > N < / StudentPartner >

    < Leefvorm > 1 < / Leefvorm >

    Hoog < BetrouwbaarheidLeefvorm > < / BetrouwbaarheidLeefvorm >

    < AantalMeerderjarigeBewoners > 2 < / AantalMeerderjarigeBewoners >

    < AantalMinderjarigeBewoners > 0 < / AantalMinderjarigeBewoners >

    < BSNTevensAangeleverdGemeente > AanleverGemeente1 < / BSNTevensAangeleverdGemeente >

    < BSNTevensAangeleverdGemeente > AanleverGemeente2 < / BSNTevensAangeleverdGemeente >

    < / Algemeen >

    < Inkomen >

    < Belemmering > J < / Belemmering >

    < TotaalNettoInkomen > 1000000 < / TotaalNettoInkomen >

    < Inkomstenverhouding >

    < BSN > 111111111 < / BSN >

    < werkgeverUitkeringsinstantie > werkgeverUitkeringsinstantie1 < / werkgeverUitkeringsinstantie >

    < BedragInkomsten > 800000 < / BedragInkomsten >

    < / Inkomstenverhouding >

    < Inkomstenverhouding >

    < BSN > 111111111 < / BSN >

    < werkgeverUitkeringsinstantie > werkgeverUitkeringsinstantie2 < / werkgeverUitkeringsinstantie >

    < BedragInkomsten > 200000 < / BedragInkomsten >

    < / Inkomstenverhouding >

    < BedragHuurtoeslag > 1100 < / BedragHuurtoeslag >

    < BedragZorgtoeslag > 2200 < / BedragZorgtoeslag >

    < Heffingskorting >

    < BSN > 111111111 < / BSN >

    < Description > Heffingskortingomschrijving1 < / Description >

    < Kortingsbedrag > 1000 < / Kortingsbedrag >

    < / Heffingskorting >

    < Heffingskorting >

    < BSN > 111111111 < / BSN >

    < Description > Heffingskortingomschrijving2 < / Description >

    < Kortingsbedrag > 7000 < / Kortingsbedrag >

    < / Heffingskorting >

    < StudentInkomen >

    < BedragBasisbeurs > 15000 < / BedragBasisbeurs >

    < BedragAanvullendeBeurs > 5000 < / BedragAanvullendeBeurs >

    < BedragLening > 4000000 < / BedragLening >

    < BedragLeningCollegegeld > 1000000 < / BedragLeningCollegegeld >

    < / StudentInkomen >

    < StudentPartnerInkomen >

    < BedragBasisbeurs > 80000 < / BedragBasisbeurs >

    < BedragAanvullendeBeurs > 20000 < / BedragAanvullendeBeurs >

    < BedragLening > 5000000 < / BedragLening >

    < BedragLeningCollegegeld > 1000000 < / BedragLeningCollegegeld >

    < / StudentPartnerInkomen >

    < / Inkomen >

    < VermogenBD >

    < Belemmering > J < / Belemmering >

    < SaldoTotaal > 3000000 < / SaldoTotaal >

    < RenteTotaal > 50000 < / RenteTotaal >

    < Location >

    < BSN > 111111111 < / BSN >

    < NaamRekeninghouder > Geslachtsnaambsn111111111 < / NaamRekeninghouder >

    < Rekeningnummer > 837476976 < / Rekeningnummer >

    < Saldo > 2000000 < / Saldo >

    < Pension > 30000 < / pension >

    < Banknaam > ABN AMRO < / Banknaam >

    < NaamBankproduct > Spaarrekening < / NaamBankproduct >

    < / Location >

    < Location >

    < BSN > 111111111 < / BSN >

    < NaamRekeninghouder > Geslachtsnaambsn111111111 < / NaamRekeninghouder >

    < Rekeningnummer > 845666037 < / Rekeningnummer >

    < Saldo > 1000000 < / Saldo >

    < Pension > 20000 < / pension >

    < Banknaam > ABN AMRO < / Banknaam >

    Deposito < NaamBankproduct > < / NaamBankproduct >

    < / Location >

    < / VermogenBD >

    < Voertuigbezit >

    < Belemmering > J < / Belemmering >

    < con >

    < BSN > 111111111 < / BSN >

    22GR 44 < Kenteken > < / Kenteken >

    < > 1988 Bouwjaar < / Bouwjaar >

    Personenauto < Soort > < / Soort >

    Renault < Merk > < / Merk >

    Clio < type > < / Type >

    < Weight > 1020 < / weight >

    Benzine < BrandstofSoort1 > < / BrandstofSoort1 >

    Inrichtingauto1 < also > < / also >

    < BijzondereCondities > Bijzonderhedenauto1 < / BijzondereCondities >

    < Status > Statusauto1 < / status >

    < / con >

    < con >

    < BSN > 111111111 < / BSN >

    33PL66 < Kenteken > < / Kenteken >

    < > 1991 Bouwjaar < / Bouwjaar >

    Personenauto < Soort > < / Soort >

    Opel < Merk > < / Merk >

    Omega < type > < / Type >

    < Weight > 1550 < / weight >

    Benzine < BrandstofSoort1 > < / BrandstofSoort1 >

    LPG < BrandstofSoort2 > < / BrandstofSoort2 >

    Inrichtingauto2 < also > < / also >

    < BijzondereCondities > Bijzonderhedenauto2 < / BijzondereCondities >

    < Status > Statusauto2 < / status >

    < / con >

    < / Voertuigbezit >

    < / Kwijtschelding >

    < / Kwijtscheldingen >

    If more input is needed, then I'll be happy to provide.

    Thanks in advance!

    Hello

    Maybe that is part of your condition, but you don't actually create a table to validate an XML document on a diagram.

    If this is the case, could you post the DBMS_XMLSCHEMA.registerSchema as well as the used CREATE TABLE and INSERT statements?

    For example, it works fine for me:

    Start

    () dbms_xmlschema.registerSchema

    schemaURL-online "KWS2_Schema_Concept1.1.xsd."

    schemaDoc-online xmltype (bfilename('TEST_DIR','KWS2_Schema_Concept1.1.xsd'), nls_charset_id ('AL32UTF8'))

    local-online true

    genTypes-online fake

    genTables-online fake

    enableHierarchy-online dbms_xmlschema. ENABLE_HIERARCHY_NONE

    );

    end;

    /

    declare

    doc xmltype: = xmltype (bfilename('TEST_DIR','test.xml'), nls_charset_id ('AL32UTF8'));

    Start

    doc.schemaValidate ();

    end;

    /

  • Laptop in battery mode - ' could not find a valid process to connect to.

    Hi all

    I bought a new laptop transformer book Asus TX300 " ASUS transformer book TX300 - books & amp; Ultrabooks - ASUS "and install a trial of the 9.02 workstation to run 1 or 2 VM XP with older programs.

    Everything worked fine until I unplugged the power cord, I could not start virtual machines more, always get the "cannot find a valid process to connect to" and no newspaper generated!

    Could that be caused by some drivers (chipset or CPU) hardware since when in battery mode the configs are the same!

    I reinstalled workstation 2 - 3 times and no luck.

    The power is plugged in it works ok!

    Any help would be appreciated!

    Thank you

    After several hours looking for a solution, I found the problem... is the power management 'power4gear hybrid' that changed some settings!

    At full power, it works, as connect to AC power.

    Thnaks

  • Output validation: 1 error

    Hello

    I managed my HTML against W3C Code HTML and XHTML validator service. I got this error of niggerling one. The explanation against the error is blinding.

    What is character ' < ' is the first character of a delimiter but occurred as an average data, which means against the souce code

    < do action = "<?" PHP echo $editFormAction;? > id = "form1" name = "form1" method...

    He suggested several cases than that means to remedy.

    You tried to include the ' < ' om page of characters: escapes you as ' & lt '.

    You used an unescaped ampersand "&" it's may be valid in some contexts, but it is recommended to use '& amp', which is always safe

    Another possibility is that you forgot to close the quotes to the previous flag.

    I say if the souce PHP document has no syntax errors, and to me, it seems legitimate code which is the motor of the machine validator tries to say. Please notify. Thank you. I'm myth down there.

    The HTML is the same display for PHP. so if PHP is valid why code should he throw up invalid error on coding?

    Keep this discussion in the almost double thread you posted.  I answered there.

  • The current XML is not valid on the use of the narrative mode external graphics

    Hello

    I always get the following message when embedding amcharts or google maps using narrative view. Once registered, it is not possible in addition to change the narrative view. However, the report works very well, the graphic is displayed, but not editable.

    see you soon,
    Mark



    Error display of the results

    The current XML is not valid with the following errors: Bad xml instance! <? XML version = "1.0"? "" > < xmlns:saw="com.siebel.analytics.web/report/v1.1 saw: report" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" container = "http://www.w3.org/2001/XMLSchema" xmlns:sawx="com.siebel.analytics.web/expression/v1.1" xmlVersion = "200810080" > < saw: criteria xsi: type = "saw: simpleCriteria ' subjectArea ="& quot; QC4Agility & quot; "withinHierarchy ="true"> < saw: columns > < saw: column xsi: type = columnID ' saw: regularColumn" = "c5f655b89c322bce7" > < saw: columnFormula > < sawx:expr xsi: type = "sawx:sqlExpression" > & quot; Sun - RUN & quot;. & quot; RUN the status & quot; < / sawx:expr > < / saw: columnFormula > < / saw: column > < saw: column xsi: type = columnID ' saw: regularColumn "="c9de76acdb49ee65f"> < saw: columnFormula > < sawx:expr xsi: type ="sawx:sqlExpression"> & quot; Fact - req_test_run & quot;. & quot; # REQs & quot; < / sawx:expr > < / saw: columnFormula > < / saw: column > < saw: column xsi: type = columnID ' saw: regularColumn "="c9fe9f1713d290812"> < saw: columnFormula > < sawx:expr xsi: type ="sawx:sqlExpression"> & quot; Fact - req_test_run & quot;. & quot; # TESTs & quot; < / sawx:expr > < / saw: columnFormula > < / saw: column > < / saw: columns > < saw: filter > < sawx:expr xsi: type = "" sawx: logic "op = 'and' > < sawx:expr xsi: type ="sawx:comparison"op ="equal"> < sawx:expr xsi: type ="sawx:sqlExpression"> & quot;" Sun - REQ & quot;. & quot; The target version of REQ & quot; < / sawx:expr > < sawx:expr xsi: type = "xsd: String" > 1.0 < / sawx:expr > < / sawx:expr > < sawx:expr xsi: type = "sawx:comparison" op = "lessOrEqual" > < sawx:expr xsi: type = "sawx:sqlExpression" > & quot; Sun - REQ & quot;. & quot; REQ nCycle & quot; < / sawx:expr > < sawx:expr xsi: type = "sawx:variable" op = "server" > CurrentCycle < / sawx:expr > < / sawx:expr > < sawx:expr xsi: type = "sawx:comparison" op = "not null" > < sawx:expr xsi: type = "sawx:sqlExpression" > & quot; Sun - RUN & quot;. & quot; RUN status & quot; < / sawx:expr > < / sawx:expr > < / sawx:expr > < / saw: filter > < / saw: criteria > < currentView saw: views = '0' > < saw: view xsi: type = "saw: compoundView" name = "compoundView! 1 "> < saw: cvTable > < saw: cvRow > < viewName saw: cvCell ="titleView! 1 "> < saw: displayFormat > < seen: formatSpec / > < / saw: displayFormat > < / saw: cvCell > < / saw: cvRow > < saw: cvRow > < viewName saw: cvCell ="tableView! 1 ' > < saw: displayFormat > < saw: formatSpec / > < / saw: displayFormat > < / saw: cvCell > < / saw: cvRow > < saw: cvRow > < viewName saw: cvCell = "dvtchart!"» 1 "/ > < / saw: cvRow > < seen: cvRow > < viewName saw: cvCell ="narrativeView! " 1 "/ > < / saw: cvRow > < / saw: cvTable > < / saw: view > < saw: view xsi: type =" saw: titleView "name ="titleView! 1 "/ > < saw: view xsi: type =" saw: tableView "name ="tableView! 1 "> < saw: edges > < saw axis: edge = 'page' showColumnHeader = 'true' / > < saw axis: edge ="section"/ > < seen: edge axis ="row"showColumnHeader ="true"> < saw: edgeLayers > < saw: edgeLayer type ="column' columnID = "c5f655b89c322bce7" / > < type of saw: edgeLayer = "column' columnID ="c9de76acdb49ee65f"/ > < type of saw: edgeLayer ="column' columnID = "c9fe9f1713d290812" / > < / saw : edgeLayers > < / saw: edge > < saw axis: edge = "column" / > < / saw: edges > < / saw: view > < saw: view xsi: type = "view: dvtchart" name = "dvtchart".! 1 "> < saw: display type = subtype 'pie' = 'default' renderFormat ="flash"mode ="on line"xAxisLiveScrolling ="false"yAxisLiveScrolling ="false"clientEventEnabled ="false"animateOnDisplay ="true"> < saw: style barStyle = 'default' lineStyle = 'default' scatterStyle = 'default' fillStyle = 'default' bubblePercentSize = '100' effect ="2d"/ > < / saw: display > < saw: canvasFormat height ="330"width ="640"showGradient ="true"> < saw: dataLabels display ="always"label ="nameValue"position ="under"transparentBackground = 'true' valueAs = abbreviation of 'default' ="default"> < vu : textFormat fontSize = "14" / > < saw: dataFormat xsi: type commas = "saw: number" = 'false' negativeType = 'less' minDigits = '0' maxDigits = '0' / > < / saw: dataLabels > < saw: default gridlines = "true" > < saw: horizontal > < saw: visible major = "false" / > < saw: visible minor = 'false' / > < / saw: horizontal > < saw: vertical > < saw: visible major = "false" / > < seen : visible minor = "false" / > < / saw: Portrait > < / saw: grid > < miter saw mode: title = 'auto' > < saw: legend / > < / saw: title > < / saw: canvasFormat > < saw: selections > < saw: Categories > < saw: category > < columnID saw: columnRef = "c5f655b89c322bce7" / > < / saw: category > < / saw: Categories > < saw: measures showMeasureLabelsOnCategory = 'false' > < seen : column measureType = 'pie' > < columnID saw: columnRef = "c9de76acdb49ee65f" / > < / saw: column > < / saw: measures > < saw: seriesGenerators > < saw: seriesGenerator / > < saw: measureLabels / > < / saw: seriesGenerators > < / saw: selections > < position saw: legendFormat = "none" transparentFill = "true" > < saw: textFormat / > < / saw: legendFormat > < saw: seriesFormats > < name of saw : seriesFormatGroup = 'pie' > < seen: seriesFormatRule > < saw: seriesCondition columnID = position 'c5f655b89c322bce7' = '0' > < saw: condition > < sawx:expr xsi: type = "sawx:comparison" op = "equal" > < columnID saw: columnRef = "c5f655b89c322bce7" / > < sawx:expr xsi: type = "xsd: String" > Failed < / sawx:expr > < / sawx:expr > < / saw: condition > < / saw: seriesCondition > < saw : visualFormats > < seen: visualFormat color = "#FF0000" / > < / saw: visualFormats > < / saw: seriesFormatRule > < saw: seriesFormatRule > < columnID saw: seriesCondition = position "c5f655b89c322bce7" = "1" > < saw: condition > < sawx:expr xsi: type = "sawx:comparison" op = "equal" > < columnID saw: columnRef = "c5f655b89c322bce7" / > < sawx:expr xsi: type = "xsd: String" > Passed < / sawx:expr > < / sawx : expr > < / saw: condition > < / saw: seriesCondition > < saw: visualFormats > < saw: visualFormat color = "#B0C060" / > < / saw: visualFormats > < / saw: seriesFormatRule > < / saw: seriesFormatGroup > < / saw: seriesFormats > < / saw: view > < saw: view xsi: type = "saw: narrativeView" name = "narrativeView ! 1 "> < saw: prefix > < saw: legend fmt ="html"> < saw: text / > < / saw: legend > < / saw: prefix > < / saw: view > < / saw: views > < parsererror xmlns ="http://www.w3.org/1999/xhtml"style =" display: block; " white-space: pre; border: 2px solid #c77; padding: 0 1em 1em 0; margin: 1em; background-color: #fdd; color: black "> < h3 > This page contains the following errors: < / h3 > < div style =" do-family: monospace; font-size: 12px "[> error on line 6 in column 430: sequence & #39;]]" & gt; & #39; not allowed in content < / div > < h3 > here is a rendering of the page up to the first error. < / h3 > < / parsererror > < / saw: report > Line: 2, Col: 5482, unknown element "parsererror" Line: 2, Col: 5482, 'style' attribute is not declared for element "parsererror" Line: 3, Col: 98, item "parsererror" is not valid for the content model: ' ((critères, vues, invites, listOptions), segmentOptions)'
    Error details
    Error codes: EIRWWH9E
    Geographical area: saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads


    narrative view used for the test:

    Prefix
    < script type = "text/javascript" src = "http://extra.amcharts.com/public/swfobject.js" > < / script >
    < div id = "amcharts_1308229514469" > you need to update your Flash Player < / div >
    < script type = "text/javascript" >
    var so = new SWFObject ("http://extra.amcharts.com/public/ampie.swf", "Oh", "500", "400", "8", "#FFFFFF");
    so.addVariable ("path", "Oh /");
    so.addVariable ("chart_settings", encodeURIComponent ("< parameters > < precision > 0 < /precision > < background > < alpha > 100 < /alpha > < border_alpha > 20 < / border_alpha > < / background > < legend > < align > Center < /aligner > < / legend > < pie > < y > 50% / < y > < start_angle > 0 < / start_angle > < outline_color > FF0000 < / outline_color > < / pie >")) < data_labels > < see the > <! [CDATA [< b > {title}, {percentages} % < /b > ({value})]] > < / show > < max_width > 150 < / max_width > < / data_labels > < label > < lid label = '0' > < text > DIR < / text > < x > 10 / < x > < > 000000 appears < / appears > < text_size > 28 < / text_size > < align > Center < / align > < / label > < lid label =' 1' > < text > S & amp; ((' E < / text > < y > 220 / < y > < appears > FFFFFF < / appears > < text_size > 28 < / text_size > < align > Center < / align > < / label > < / labels > < / settings > '));
    so.addVariable ("chart_data", encodeURIComponent ("< pie >

    * Story *.
    < slice title = 'United States' > 19544 < / slice >

    * Postfix *.
    (("< pie / > '));
    so. Write ("amcharts_1308229514469");
    < /script >

    I think it's a problem with your CDATA section. Remove this small and test again to prove that he is the cause.

    Paul

  • Change the selectable Dates in DateField

    Im trying to create a form of event where the datefield will only accept a date of a specific amount of dates to be fired.

    For example, something like this: If the date (today) is greater than the Monday of the 4th week of the month, (so for this month of February, it would be > 20th) then this month (would be nice if it also eliminated previous days that have already passed in the month) and next month is a available for select dates. Else (if less than the 4th week of the month, < 20 February) only this month (february) is a of dates that are available to be picked on.

    I was wondering how you can do this with a < cfinput type = "datefield > tag." I was able to come up with something, but don't know how to get out of here.

    Of CFSET

    < cfset subsist = Now() >

    < cfset NextMonth = DateAdd (', 1, subsist) / >

    < cfset nextMonthNum = daysInMonth(#NextMonth#) / >

    < cfset weekNum = (#weekOfMonth (now ()) #) / >

    < cfset daysNum = daysInMonth (now ()) / >

    < cfset dateToday = Now() >

    DateField

    < cfinput

    Type = "datefield".

    label = "date".

    mask = "d/mm/yy".

    name = 'activitydate '.

    value = "#dateAdd (would be ', now ()) + 1 ' # '"

    required = "yes".

    message = "Please select a valid Date for the event" / >

    That is, it checks for the amount of days and traverses them by giving the date range available at the beginning of the month.

    < cfscript >

    function weekOfMonth (thisDate) {}

    var thisDay = day (thisDate);

    var thisWeek = 0;

    If (thisDay LTE 7)

    thisWeek = 1;

    ElseIf (thisDay GT 7 AND thisDay LTE 14)

    thisWeek = 2;

    ElseIf (thisDay GT 14 AND thisDay LTE 21)

    thisWeek = 3;

    on the other

    thisWeek = 4;

    ThisWeek return;

    }

    < / cfscript >

    < cfif #DatePart('w', TheDate) # GTE 4 AND #weekNum # GTE 2 >

    True < br / >

    < cfloop index = 'x' from = "1" to = "#daysNum #" >

    < cfoutput >

    #DateFormat (now (), "mm") #/ #x #/ #DateFormat (now (), 'yy') # < br / >

    < / cfoutput >

    < / cfloop >

    < cfloop index = 'y' from = "1" to = "#nextMonthNum #" >

    < cfoutput >

    #DateFormat (NextMonth, "mm") #/ #y #/ #DateFormat (NextMonth, "yy") # < br / >

    < / cfoutput >

    < / cfloop >

    < cfelse >

    False < br / >

    < cfloop index = 'z' from = "1" to = "#daysNum #" >

    < cfoutput > (now (), "mm") #DateFormat #/ #z #/ #DateFormat (now (), 'yy') # < br / > < / cfoutput >

    < / cfloop >

    < / cfif >

    Any help is greatly appreciated!

    BobbyWales21 wrote:

    Im trying to create a form of event where the datefield will only accept a date of a specific amount of dates to be fired.

    For example, something like this: If the date (today) is greater than the Monday of the 4th week of the month, (so for this month of February, it would be > 20th) then this month (would be nice if it also eliminated previous days that have already passed in the month) and next month is a available for select dates. Else (if less than the 4th week of the month,<20 for="" february)="" only="" this="" month(february)="" is="" has="" available="" dates="" to="" be="" picked="">

    I found this a difficult to express in the code requirement. I chose to do the simple way with cfselect. With cfselect, it is possible for the user to choose a date from a list including 2 consecutive months.

  • How do you ensure DateField is always DD/MM/YYYY?

    Hi all

    I used DateField, I want, it's result Date: DD/MM/YYYY.

    Example:

    I go on 10/20/2010-> show: 20/10/2010-> ok

    I go on 10/02/2010-> show: 10/02/2010-> I want is 10/02/2010 10/02/2010.

    I get 20/01/2010-> show: 20/01/2010-> I want is 20/01/2010 20/01/2010.

    I can split this string date DD/MM/YYYY but DateValidator supports?

    My code is:

    private

    service formatDate(date:Date):String { }

    return dfconv.format (date);

    }

    private

    function show():void{

    dateField.formatString = "DD/MM/YYYY" ;

    Alert.Show (dateField.Text);                         -> must have is: "DD/MM/YYYY"

    }

    ...

    ...

    < mx:DateFormatter

    id=" dfconv "formatString =" " JJ/MM/AAAA " />

    < mx:DateValidator

    source ="

    {dateField} "

    property ="

    text "

    inputFormat ="

    JJ/MM/AAAA "

    wrongLengthError ="

    The date format is not correct "

    allowedFormatChars ="

    / "

    trigger ="

    {checkDate} "

    triggerEvent ="

    click on "

    (valid) = "{Alert.Show

    "The date is valid" )}"

    () Invalid = "{Alert.Show

    "The date is invalid" )}"/>

    < mx:DateField

    id=" dateField "labelFunction =" " format "

    width ="

    104 "parseFunction =' null "

    horizontalCenter ="

    10 "red =' 10 " editable =" true " " / > "

    < mx:Button

    " label = ' Check the Date " id=" checkDate "click ="show ()" />

    Thank you

    Hello

    See the link below

    http://blog.flipwork.nl/?entry=entry090117-203618

    In which the method of displayDate() has your features.

    Kind regards

    Anitha

  • Delte the value after validation fails

    I've got some date and time in my form fields.

    Because users tend to ignore the error of the validation message they got and data that has been overgiven were too bad, I want to delte the fieldinput if validation has failed.

    Does anyone have a script in his hand?

    Already thanks for looking here

    Lisa

    PS. : A user can easily fill a datefield with the calendar... is there not something similar to a timefield to show him what format it should enter in time?

    Just a small correction to the affection of the leap year.

    It should be something like ((AAAA %4 == 0 && AAAA % 100! = 0) |) YYYY % 400 == 0).

    If you can, put the current version of your form so that we can look at it please.

  • To its relevant xml schema xml file validation error

    Hi all

    I have 3 files to schema files to xml where I generated an XML using PLSQL. I get this error when I try to validate the xml schema file:
    ' ' * WMWROOT ' UNDECLARED *. Can someone help me with this, I included the main schema file and also the generated XML.

    XML schema file:

    Itemdownload.xsd:

    <? XML version = "1.0" encoding = "utf-8"? >
    < xs: Schema id = "Elementtelecharger" targetNamespace = "http://www.manh.com/ILSNET/Interface" elementFormDefault = "qualified".
    xmlns = "http://www.manh.com/ILSNET/Interface" xmlns: XS = "http://www.w3.org/2001/XMLSchema" version = "2007" >
    < xs: include schemaLocation = "Item.xsd" / > "

    < xs: element name = "WMWROOT" nillable = "true" type = "WMWROOT" / >
    < name XS: complexType = "WMWROOT" >
    < xs: SEQUENCE >
    < xs: ELEMENT minOccurs = "0" maxOccurs = "1" name = "WMWDATA" type = "WMWDATA" / >
    < / xs: SEQUENCE >
    < / xs: complexType >

    < xs: element name = "WMWDATA" nillable = "true" type = "WMWDATA" / >
    < name XS: complexType = "WMWDATA" >
    < xs: SEQUENCE >
    < xs: ELEMENT minOccurs = "0" maxOccurs = "1" name = "Items" type = "ItemList" / >
    < / xs: SEQUENCE >
    < / xs: complexType >

    < xs: element name = "Items" nillable = "false" type = "ItemList" / >
    < name XS: complexType "ItemList" = >
    < xs: SEQUENCE >
    < xs: ELEMENT minOccurs = "1" maxOccurs = "unbounded" name = "Item" nillable = "true" type = "Item" / >
    < / xs: SEQUENCE >
    < / xs: complexType >
    < / xs: Schema >

    The generated xml file is:

    <? XML version = "1.0"? >
    < WMWROOT >
    < WMWDATA >
    elements <>
    < item > < Action > save < / Action > < UserDef8 > 10074 < / UserDef8 > < Y Active > < / assets > < AvailableOnWeb > N < / AvailableOnWeb > < company > OR: ResMed Corp < / company > < cost > 285.93 < / cost > < Desc > HP DESKJET PRINTER (EMBLA) < / Desc > < HarmCode > < UserDef8 > 10074 < / UserDef8 > < / HarmCode > < point > R145-794 < / Item > < InventoryTracking > Y < / InventoryTracking > < LongDesc > HP DESKJET PRINTER (EMBLA) < / LongDesc > < LotControlled > Y < / LotControlled > < SerialNumTrackOutbound > 7 < / SerialNumTrackOutbound > < StorageTemplate > < model > each < / model > < / StorageTemplate > < xrefs > < Xref > < XRefItem > < / XRefItem > < / XRef > < / XRefs > < / Item >
    < item > < Action > Save < / Action > < UserDef8 > 80862 < / UserDef8 > < Y Active > < / assets > < AvailableOnWeb > N < / AvailableOnWeb > < company > UO: ResMed Corp < / company > < cost > 54.27 < / cost > < Desc > Mirage Micro mask MED & amp; LG-Internet Pkg < / Desc > < HarmCode > < UserDef8 > 80862 < / UserDef8 > < / HarmCode > < point > 16359 < / Item > < InventoryTracking > Y < / InventoryTracking > < LongDesc > Mirage Micro mask MED & amp; LG-Internet Pkg < / LongDesc > < LotControlled > Y < / LotControlled > < SerialNumTrackOutbound > N < / SerialNumTrackOutbound > < StorageTemplate > < model > each < / model > < / StorageTemplate > < xrefs > < Xref > < XRefItem > 619498163597 < / XRefItem > < / XRef > < / XRefs > < / Item >
    < / object >
    < / WMWDATA >
    < / WMWROOT >

    I can provide you with 2 other if necessary dependent schemas. Please answer me!

    I don't know how this issue applies to the XML DB, but I'll answer anyway.

    Your schema resides in the
    targetNamespace = "http://www.manh.com/ILSNET/Interface."
    namespace, so by default, all definitions can be found in this namespace
    The generated XML is in no namespace. That's why you see the error
    'WMWROOT' UNDECLARED
    Since the schema has no definitions in the same XML namespace uses. You must put your XML file in the same namespace as the schema in order for validation to work, through the
    xmlns = "http://www.manh.com/ILSNET/Interface."

  • Validation of the requirements of the age...

    Hello

    We use Siebel CRM OnDemand to reconnect with participants recruited for a research study. It is important that all participants are over 18 years old at the time of recruitment. We have a "Date of birth" field I want to use to perform validation and apply this rule (i.e. participating 18). Any help on how to perform this validation would be greatly appreciated. So far I couldn't find examples showing how to subtract days from the current date (e.g. [< DateField >] < Today - 30).

    Thank you

    JP

    Hello!

    There is the named field * 'Âge' * which contains the age of contact, based on date of birth.

    I hope this will help, do not hesitate to ask for more!

    Max

  • To update to OS Sierra, I need to enter a valid credit card, even if it's free?

    I have moved countries and not to use a credit card. To update to OS Sierra, I need to enter a valid credit card, even if it's free?
    What is happening with this? I'm more a person worthy enough to upgrade? I upset the bank accounts of the billionaires who benefit from knowing my account information?

    < re-titled by host >

    Create or use your Apple ID without a mode of payment - Apple Support

Maybe you are looking for