Formatting of the fields of Dates in Web applications

I create a web application that lists the event schedules. An output section contains the date of the event. Is there a way I can reformat a date field that is in the web application to appear differently. Example, rather than showing as 1 may 2013, how to display the date as "may 1'? Is there a way to do this without inserting JavaScript custom page? I am looking for an internal function in Vancouver to do this reformatting. Thank you.

Hi Neil,

Date formatting is not customizable, you will need some JS to tweak that. Here is an article as reference: http://forums.adobe.com/docs/DOC-1869

Tags: Business Catalyst

Similar Questions

  • REST API - the field value date Contact exported in digital format.

    Hi people,

    I used below REST API to retrieve the Contacts with the views and custom filter.

    The JSON response, I shot the date value in the number format. As 'C_Lead_Score_Date': '1434456862',


    https://secure.Eloqua.com/API/rest/1.0/data/contact/view/ {identifier} / contacts/filter / {id}


    How can I convert the appropriate number in date value? or y at - it an adjustment to the level of the code to retrieve the value in the correct date format.


    The data type of the field is dates.

    The date is returned to as a Unix timestamp.

    You can use an online converter to convert it to a normal value, for example: online - time conversion Conversion Unix

    1434456862 = Tuesday, June 16, 2015 12:14:22 GMT

  • Error message - the value entered does not match the Format of the field

    I get an error message in Adobe Pro x: "the value entered does not match the format of the field [JF13].

    I have JF13 scheduled as follows:

    Calculate tab:

    If (Number (this.getField("ck4").value) > 0) this.getField("JF13").value = Number (this.getField("FL019").value); else this.getField("JF13").value = "";

    It is programmed in this way, so if the user checks the checkbox in front of the field, only then will JF13 fills a value, which pulls of FL019. I also value parameters 'number' because the data to display in the form of a dollar amount $xxx.xx.

    FL019 is a hidden field on the form which takes an amount of a central computer and its settings can also be programmed to 'Number':

    I get four popup windows with the above mentioned error message, and the only way to make the stop message is to remove the «number» field format. However, when this is done, if a number any ending in a zero is entered, it cuts the zero. This is not acceptable either.

    Is there some kind of script that I could add or otherwise to prevent the error message and the cutting out of the zero on JF13?

    I'm not very proficient with javascript, any help would be appreciated!

    Just include the two quotes, not the comment brackets.

  • See the value of zero instead of "the value entered does not match the format of the field [].

    I use the simplified notation filed to perform subtraction on a budget form.

    They all have an excellent work and have no problem display a value of zero when it's a simple subtraction (value1-value2).

    However, on my last field I want to take the total income and subtract what I spent (approximately 40 fields) and get a balance zero.

    When I try to do it I get this warning "the value entered does not match the format of the field [].

    The calculation works fine and displays the correct value for all the foregoing ".» 01 "and displays negative numbers. 01 "and underneath as well (if I go on the budget), she just may not show a zero, which is my goal for this equal to zero each month.

    I tried to watch if the forms and have not found an answer that works even for my situation.


    Happy to post the form here, just do not know how to do it.

    Thanks in advance,

    The custom calculation script may be something like the following:

    Get the value of field of income, as a number

    var v1 = + getField("Income").value;

    Set up an array of domain names

    var aFieldsToSubtract =]

    "ThithesB,"

    "TailleB,"

    "EFundB,"

    "MortgageB,"

    "HomeItemsB,"

    "HomeRepairsB,"

    "ElecticB,"

    "GasB.

    "WaterB."

    "SewerB,"

    "TrashB,"

    "PhoneB."

    "InternetB."

    "AutoInsB,"

    "UmbrellaB,"

    "IdentityB,"

    "CosmeticsB,"

    "ToiletriesB,"

    "PocketEBB,"

    "PocketCBB,"

    "GiftsB,"

    "HouseSuppliesB,"

    "PersonalOtherB,"

    "PersonalOther2B,"

    "GroceriesB,"

    "RestaurantsB,"

    "ClothingB,"

    "CarGasB,"

    "CarRepairsB,"

    "CarOtherB,"

    "MedicalBillsB,"

    "MedicalOtherB,"

    "EntertainmentB,"

    "VacationB,"

    "DebtCarB,"

    "DebtStudentLoan1B,"

    "DebtStudentLoan2B,"

    "DebtStudentLoan3B,"

    "DebtCreditB,"

    "DebtOther1B,"

    'DebtOther2B '.

    ];

    Subtract the values in field

    for (var i = 0; i)< afieldstosubtract.length,="" i="" +="1)">

    v1-= + getField(aFieldsToSubtract[i]).value;

    }

    Set this field value by rounding the result to the nearest

    Event.Value = util.printf ("%.2f", v1);

    Do not think of this as a band-aid, think the correct way to perform the calculation, because it is. Note that "Thithes" may be a spelling error.

  • "The value entered does not Format of the field.

    If something similar has been posted, I apologize! I tried to look for it and has not been able to find the answer.

    I have a form to determine the potential savings, if a customer makes our products to a competing product. Our sales staff filling in many areas that allow us to determine the annual cost that the customer currently committed, as well as the potential annual costs associated with our product. At the bottom of the page, using a simple calculation JS, it determines annual dollar savings by changing brands.

    I would also like to include the annual savings as a percentage of current costs, but for some reason, I cannot get the script to work. The error message that appears indicates: "the value entered does not match the format of the field [annual percentage savings]."

    Now, the two fields referenced in my script are formatted in dollars, so I don't know if this makes a difference or not. My script is below.

    var f = this.getField("Potential_Annual_Savings_in_Dollars").value;
    var y = this.getField("Cost_Per_Year_Current").value;
    F.value = Event.Value / y.value;

    If (y.value < f.value) event.value = ";

    Given the percentage is not strictly necessary, but it adds to the form, so that any help would be appreciated.

    Thank you!

    Post edited by: MelissaZoller (format)

    I would use:

    var f = this.getField("Potential_Annual_Savings_in_Dollars").value;

    var y = this.getField("Cost_Per_Year_Current").value;

    If (y<= 0)="" event.value=''>

    else {}

    Event.Value = f / y;
    If (y< f)="" event.value=''>
    }

    In this way there is no division by zero or a negative number.

  • Date format for the field date

    Hello

    I'm stuck with formatting issues after that try to various forums, but none of them worked so far...

    Now, the question is I have two fields on the form date both are of date data type and I checked the type of attribute VO also data...

    Among the parameters fields like messagestyledtext are messageinputtext...

    It's weird when I checked the dates with system.out.println, it displays in the format as follows:

    Value LevelIIAppeal before 2015-08-20

    LevelIIAppeal value before August 20, 2015

    I tried below is the code in LICs both methods but none of them: alert

    java.sql.Date date1;

    SimpleDateFormat sformat = new SimpleDateFormat("dd-MMM-yyyy");        

    If (UVO.getCurrentRow () .getAttribute ("LevelIiAppealDeadline")! = null) {}

    String LevelIIAppeal = (String) UVO.getCurrentRow ().getAttribute("LevelIiAppealDeadline").toString ();

    String str_newDate = sformat.format (LevelIIAppeal);

    System.out.println ("value entered LevelIIAppeal" + str_newDate);

    2nd method

    Try

    {

    Date1 = new java.sql.Date (sformat.parse (LevelIIAppeal) .getTime ());

    }

    catch (System.Exception e)

    {

    Date1 = null;

    }

    System.out.println ("value entered LevelIIAppeal" + str_newDate);

    Help, please.

    Thank you.

    MK

    MK,

    As I've said several times, the format of an object of type 'Date' have no significance. You can just skip the date object to the PL/SQL (format are not important, if passing as Date).

    You can refer to the blog below if you want to see how to move Date of page to PL/SQL. : Oracle tips of Johny: OAF: sample code to call the PL/SQL of OA Framework procedure

    Also to check format specifc #2 and #3 format (not not mandatory in this case, I guess): Oracle advice of Johny: OFA/ADF/Java: playing with Dates in Oracle Application Framework

    Close the message if you got this job.

    See you soon

    AJ

  • date format for the field

    I have a text element of type date

    but the problem is, whenever I have to enter the date in the format DD-ME-AAAA
    I want the field to accept a format as simple as 2.3.2012 or 03/02/2012
    should what setting I do?

    or do I need to write my own pl/sql code in next item key to get this accepted format?

    PS-> 10 g version of the form

    Amoeba wrote:
    I have a text element of type date

    but the problem is, whenever I have to enter the date in the format DD-ME-AAAA
    I want the field to accept a format as simple as 2.3.2012 or 03/02/2012
    should what setting I do?

    Set the size of the Mask of the class property as you like. For example

    DD/MM/RRRR
    Or
    DD.MM.RRRR
    

    I hope this works

    Hamid

    If anyone has the answer is correct or useful mark.

  • Value entered does not match the format of the field

    Hello

    I need help with an error message that I receive. I received this message before and has received excellent advice on how to solve this problem, but I can't apply this same solution to this situation, as it is different.

    I have a form with 5 fields. The math for those fields should go as follows:

    Zone 1 (JF01) - area 2 (JF01a) = field 3 (JF01b) + area 4 (JF01c) = field 5 (JF01d)

    Here are the scripts that I have on the tabs to calculate two fields "total":

    (I have all the fields to the number with 2 decimal format and a sign of dollar without space)

    JF01b:

    myField = this.getField ("JF01b") var; myField.value = Number (this.getField("JF01").value) - Number (this.getField("JF01a").value);

    JF01d:

    myField = this.getField ("JF01d") var; myField.value = Number (this.getField("JF01b").value) + Number (this.getField("JF01c").value);

    Everything works great - to-zero = JF01d. If this last field happen to add up to zero it is when I get the error message and I have no idea why. If this field is a number greater than zero or even a negative number, that's fine. But there is simply not a zero.

    Any advice is GREATLY appreciated!

    Thank you!!

    EDIT

    I just noticed a few numbers that equal zero work very well, but for some reason, others don't.

    For example:

    10.00 $ - $50,00 = - 40,00 $40,00 + not = $0.00 works fine no problem, but

    180.00 $ - $190,80 = - $10.80 + $10.80 = - $10.80 last field should be zero - No - $ 10.80 and error message appears

    It seems that the error occurs only when there is numbers other than zeros after the decimal point. (Which still confuses me.)

    The likely cause is the result of the subtraction is a number very close to zero, but not quite, which is represented in scientific notation (by example, - 1.23456e - 15), confuses setting routines in the form which uses Acrobat. You can prevent it by rounding up the result of the calculation, for example:

    Subtract and rounded to two decimal places

    Event.Value = util.printf ("%.2f", + getField("JF01").value - + getField("JF01a").value);

  • With the help of the socket object to retrieve data from web application without the html files

    I tried to use the socket object to retrieve data from a web application (I just control script version vs version online). So all I want to do is access http://hyle.io/version that returns me the current version of the application (such as a simple string) in order to compare it in my script and then notifies the user accordingly. I have just a few problems using the socket object. I used this code from the Adobe Javascript Tools Guide:


    reply = "";
    conn = new Socket;
    // access Adobe’s home page
    if (conn.open ("www.adobe.com:80")) {
    // send a HTTP GET request
    conn.write ("GET /index.html HTTP/1.0\n\n");
    // and read the server’s reply
    reply = conn.read(999999);
    conn.close();
    }
    

    ... that I then adapted as:

    reply = "";
    conn = new Socket;
    if (conn.open ("hyle.io:80")) {
      conn.write ("GET /version HTTP/1.0\n\n");
      reply = conn.read(999999); 
      conn.close();
    }
    

    And here is what I get:

    HTTP/1.1 400 Bad Request
    Content-Length: 225
    Content-Type: text/html
    Server: Pagodabox-Routing-Mesh
    
    

    Bad Request

    Your browser sent a request that this server could not understand.

    Résultat : true

    I don't know a lot about HTTP requests, but I wondered if it was related to the fact that I am not pointing to a specific HTML file and the type of request was wrong or if I should rather check if there is something wrong with my host?

    The site/app is PHP and is hosted on PagodaBox if it helps.

    Thanks in advance!

    Hi Sebastien Lavoie,

    It should work

    var HTTPFile = function (url, port) {}

    If (arguments.length == 1) {}

    URL = arguments [0];

    port = 80;

    };

    This.url = url;

    This.port = port;

    this.httpPrefix = this.url.match(/http:\/\//);

    This.Domain = this.httpPrefix is nothing? This.URL.Split("/") [0] + ":" + this.port: this .url .split ("/") [2] +":" + this.port;

    This.Call = ' GET ' + (this.httpPrefix == null? ' "). " http://" (+ this.url: this.url) + "HTTP/1.0\r\nHost: ' + (this.httpPrefix is nothing? "This.URL.Split("/ ") [0]: this .url .split (" / ") [2]) +" \r\nConnection: close\r\n\r\n ";

    This.Reply = new String();

    This.Conn = new Socket();

    This.Conn.Encoding = "binary";

    HTTPFile.prototype.getFile = {function (f)}

    var typeMatch = this.url.match(/(\.) (\w{3,4}\b)/g);

    If (this.conn.open (this.domain, "binary")) {}

    This.Conn.Write (this.) Call);

    This.Reply = this.conn.read (9999999999);

    This.Conn.Close ();

    } else {}

    This.Reply = "";

    }

    (Return this.reply.substr(this.reply.indexOf("\r\n\r\n")+4);

    };

    }

    Hyle var = new HTTPFile ("http://hyle.io/version");

    Alert (hyle. GetFile());

    And by the way, I like the idea of 'http://hyle.io'. Can you give me your email address, I want to learn more about this Web site.

    Please send me an email to [email protected]

  • Data merge do not pick up all the fields of data

    Hello

    I had a problem, posted here: http://forums.adobe.com/thread/1217090

    Essentially, I used the "CSV2Tables" script to pre-populate arrays of simple column 2 with information from a CSV data source.

    The tables consist of a title and a block on this specific topic. Many of the blocks of information that I am importing also contain the tag (< < DataTag > >) data

    The plan is to use CSV2Tables to populate the tables, then change the data source and run an ID data merge to replace all < < flags > > normal in the tables with the information from a second source of CSV data.

    The problem is, CSV2Tables is important data and tables very well pre-load, but data tags that are found in each body text are picked up in plain text (as Peter Spier has pointed out, they are being requested by a plain text stream rather than drag since the merger Panel and direct mail) so when I try to run direct mail ID , none of the fields are in my document.

    My question is - is there a method, or a script available out there that can essentially do a find/replace in a document and replace the text that appears as the < < PlainText > > with a data that is recognized by ID, label that will allow me to run a data merge?

    Told me to check out some of the available commercial plugins out there, but registration and establishment of demo would force me to contact our it supplier for each, and it would be a comprehensive process.

    Any help is very appreciated.

    Hello

    As far as I know it actually takes a script to replace "plain text" with dataMergeTextPlaceholders.

    a small example;

    Array.prototype.find = function (string) {
        for (var s = 0; s < this.length; s++)
            if (this[s] == string) return s;
            return -1;
        }
    
    var mFile, mDoc, mFields, mFieldsNames, mStory, mPlainTxt, mNameToCompare, mField_ID;
    
    // edit this with proper .csv path
    mFile = File(Folder.myDocuments + "/" + "Merge.csv");
    mDoc = app.activeDocument;
    mDoc.dataMergeProperties.selectDataSource(mFile);
    mFields = mDoc.dataMergeProperties.dataMergeFields;
    mFieldsNames = mFields.everyItem().fieldName;
    
    // script assumes a text box with "plain texts" to replace is selected
    mStory = app.selection[0].parentStory;
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = "<<.+?>>";
    mPlainTxt = mStory.findGrep(true);
    for (var k = 0; k < mPlainTxt.length; k++) {
        mNameToCompare = mPlainTxt[k].contents.slice(2,-2);
        mField_ID = mFieldsNames.find(mNameToCompare);
        if (mField_ID > -1) {
              mField = mFields[mField_ID];
            mDoc.dataMergeTextPlaceholders.add (
                mStory,
                mPlainTxt[k].insertionPoints[0],
                mField
                )
        mPlainTxt[k].remove();
         }
        }
    

    At this point, you can run a "normal data merge.

    This should work for related managers (the one selected) or a table inside the selected image

    I hope it could be useful for more complex tasks

    Rgds

    Jarek

    Post edited by: Jump_Over ==> added media because if last statement

  • Determine the Sources of data used by Applications

    We are still currently using MX6.1. Our team of Oracle is upgrading to a large amount of databases (at the beginning of DEV, then QA, then Prod) which connect our various applications see I'm pulling my hair out I am trying to figure out/map which applications use a particular data source. I know that when I go into a sandbox given via the web administration I see sources of data that an application is allowed to use. It would be terribly helpful if I could just go in the variety, defined data sources and see what sandbox (es) currently allow connectivity and would thus know which applications would be affected. Someone can shed some light on my dismal existence? Thanks in advance.

    Your method is easy.

    All the your DSN are saved in the file "cfroot\lib\neo-datasource.xml". You can open with an XML editor and view the settings.

  • Deploy an icon on the BlackBerry smartphone to a web application or URL

    Hello

    I want to deploy an icon on the BlackBerry for a web application is home.  When the user click on this icon, I automatically want to launch my web app (URL).

    I found this article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800655/How_To _...

    And I read about 'push channel browser', which seems to do exactly what I want to do:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/7979/1181821/832210/Developi...

    I did a test with my Blackberry that is connected to a BES, and it works very well using the code example.

    My question is this, 'channel browser push' can be used for Blackberry that is not configured in our BES.

    For example, I want to be able to deploy an icon on the Blackberry from customers and suppliers we have, but these Blackberries are not related at all our BES or network.

    Is it possible to do this?  If so, should I do something special to make it work?

    If not, does that mean my only solution is to create a Java application that automatically launch the browser Blackberry (second option from the first link)?

    Thanks for your help!

    Channel browser push you make reference to requires the user is on a BlackBerry Enterprise Server.

    The alternatives to this is a Java application (as you have discovered), BlackBerry Widget or Signal of Web.  Web signals is the equivalent to a BlackBerry Internet Server Browser channel thrust.

    BlackBerry Widget SDK (applications requires a BlackBerry 5.0 device software)

    http://NA.BlackBerry.com/eng/developers/devbetasoftware/widgetsdk.jsp

    Web signals

    http://NA.BlackBerry.com/eng/developers/browserdev/websignals.jsp

  • monitor the remote JVM to a web application

    I have a web application hosted by tomcat. Any application is hosted on the server. Can I follow JVM's behavior through my system?

    Follow the following steps
    If you have access to the server only

    Step 1: define the suite JAVA_OPTS in file catalina.bat tomcat/bin
    JAVA_OPTS = - Dcom.sun.management.jmxremote = true - Dcom.sun.management.jmxremote.port = 7091 - Dcom.sun.management.jmxremote.ssl = false - Dcom.sun.management.jmxremote.authenticate = false

    Step 2: Redeploy application

    Step 3: open JRMC marks a new connection. Give the Ip address of the server where tomcat is deployed and jmx port 7091.

    you will be connected to the remote JVM hosting the application

  • How to display this character for the field 2 date (------------)

    Hi friends

    It is possible to display the format of characters in the text field after running the form

    Please I need your help

    Thank you

    Hello
    If you mean for the date field to show slashes by default. I don't think that the forms will support that kind of thing.
    BTW I know what is the purpose of show like that?
    If you are using the normal format is DD/MM/RRRR it will automatically add the slashes. When the user enters a date like this 01012010.

    -Clément

  • Left click will get the cursor in the field of data entry

    When I left click in a data entry field will not come the cursor upwards and I can't enter data. The left click works normally at any other time. I use a Dell Latitude D830 laptop. Everything works normally until today

    Hello

    • Where does this happen?
    • What were the changes made before the show?

    You can collect screenshots of color 256 and transfer it to the http://skydrive.live.com/ using your Live ID and I'll check it:

    Screenshot

    ========

    1. press the button print screen (print screen) on your keyboard.

    2. click on the "Start" menu, type "mspaint" in the search bar and press ENTER.

    3. in the Paint program, click on the "Edit" menu, click on 'Paste', click on the 'File' menu and click 'save '.

    4. the dialog box "Save as" appears. Type a file name in the "filename:" box, for example: "screenshot".

    5. make sure that "JPEG (*.)" JPG; *. JPEG; *. JPE; *. JFIF)"is selected in the box 'Save as type', click Desktop in the left pane, and then click"Save ".

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

Maybe you are looking for