Date field and amount of table format

Hi all
I'm working on jdev 11.1.2.1.0
When the page loads I'm populating a table based on a query of the VO.
In this table, I have a few fields (columns) of the date and the amount.
I want to format these columns, how can I do?

Appreciate your help.

Thank you and best regards,
Madhav K.

For the Date field, you can try this:

<>
dateStyle = 'average' pattern = "dd-MMM-yyyy" / >

And for many, it should work.

I just tried, both work for me.

Tags: Java

Similar Questions

  • Date fields and time to autopopulate when opening the PDF

    I have an interactive PDF form with many fields. Two of them are the date and time. Users want that date fields and the time to complete the form to the current date and time (let's call it 'generic form') is open to fill. When they are made by filling out the form, they need to be activated for the reader so they can save it under a different name (Information of Dave). If they reopen "Information of Dave" for some reason, the date and time must not change. If they open the generic form for another client, then the new date and time should appear. I saw a discussion for Javascript to auto to a date, but not an hour. My Javascript skills are limited, so be specific enough about where to put the code.

    Work on a Mac on Snow Leopard using Acrobat Pro 10.1.7.

    Thanks in advance,

    Amy

    dateField var = this.getField ("CurrentDate");

    var timeField = this.getField ("CurrentTime");

    dateField.value = util.printd ("mm/dd/yyyy", new Date());

    timeField.value = util.printd ("HH: mm", new Date());

  • JDBC-fetch data - set and very big (table 35)

    Hello

    I'm trying to get a very large data set and the desired behaviour is that it continues to function without exception of lack of memory (that is, it's good that it takes days but don't blow up on out-of-memory exception) *.
    The task runs on a 64-bit with 16 processors computer.

    For testing purposes, I used a table 35 GB in size (of course this would not be our typical fetch but just to emphasize JDBC)

    +??? Java exception occurred: +.
    + means: Java heap space.
    + java.util.Arrays.copyOf (Unknown Source) +.
    + java.util.Vector.ensureCapacityHelper (Unknown Source) +.
    + java.util.Vector.addElement (Unknown Source) +.
    +          at+
    + com.mathworks.toolbox.database.fetchTheData.dataFetch(fetchTheData.java:737) +.
    + Error in == > cursor.fetch at 114 +.
    + dataFetched = +.
    + dataFetch (fet, resultSetMetaData, p.NullStringRead, tmpNullNumberRead);

    In the light of this problem, I added jdbc-fetch-size = 999999999 on my JDBC connection string.
    ' com.microsoft.sqlserver.jdbc.SQLServerDriver ',' jdbc:sqlserver://SomeDatabaseServer:1433; databaseName = SomeDatabase; integratedSecurity = true; JDBC-fetch-size = 999999999; »

    Slightly different error reported.

    +??? Java exception occurred: +.
    + means: GC overhead limit exceeded+.

    + java.lang.Integer.toString (Unknown Source) +.

    + java.sql.Timestamp.toString (Unknown Source) +.

    +          at+
    + com.mathworks.toolbox.database.fetchTheData.dataFetch(fetchTheData.java:721) +.
    +          +

    + Error in == > cursor.fetch at 114 +.
    + dataFetched = +.
    + dataFetch (fet, resultSetMetaData, p.NullStringRead, tmpNullNumberRead); +

    Any suggestion?

    REF:
    JDBC http://msdn.microsoft.com/en-us/library/ms378526.aspx
    32 bit vs 64 bit: http://support.microsoft.com/kb/294418

    Published by: devvvy may 6, 2011 01:10

    There is one thing to go too far. You won't push ever that a lot of data in memory at a time, which seems to happen due to the vector between the two. The amount of objects that must be created would be already staggering.

    Best is to use a result set and browse results instead, treat the rows one at a time, or maybe a batch. Who will use only as much memory as necessary to keep a line / a lot of lines in memory unless the driver not just preloading of magic.

  • How to find a substring of a data field and use it in a Group By expression?

    Hi all

    Please provide me with the syntax where I perform the substring of ITEMNAME database with the starting position 7 field and length of 3.

    I must use this value of substring in a group by clause within a group to another clause.

    Thanks in advance.

    If suppose that your date is 07/05/2015

    use

    -get 2015

    also get this done in the database if the report is large but in small case use this.

    Let us know if you have questions more.

    Thank you

    ~ KKT ~.

  • Script to fill in the date field and disable the form

    Hi all

    With little experience of Adobe I was tasked to create a set of PDF forms to use in my company. I drew using Pro forms, but I need a digital signature field that will fill a separate date field at the signing and also disable some of the fields in the form. For the moment I can get it to do one or the other, but I can't do both.

    Is there a script that I can use for these functions?

    Thank you

    KC

    As you have probably seen, there is an option on the signing tab to run a script when a digital signature is applied.

    Do what you have described what follows can be used (of course, you have to adapt the name of the field):

    this.getField("SignatureTime").value = util.printd ("mm/dd/yyyy", new Date()); Enter the date with the current date

    this.getField("Text1").readonly = true; The value of some fields read-only

    this.getField("Text2").readonly = true;

    this.getField("Text3").readonly = true;

    this.getField("Text4").readonly = true;

    etc.

  • Concatenate 2 data fields and the values on the same line

    Hello

    I'm pretty new to BI Publisher. I want to concatenate 2 data (product and ProductType) fields. These concatenated values so I want to put them on a single line.
    for example.
    the values should look like

    ProductType1.Product1, ProductType2.Product2, ProductType3.Product3...

    Thank you.

    Check the forum thread
    Re: Display of horizontal lines
    for a similar request.

    If you still face questions send your sample xml and rtf

  • How to determine tables of tracking, data, processes and relationships of Table requirements

    I need to determine the 4 things from an existing of APEX application

    1. process flow

    2. necessary data

    3. the tables used

    4 all the relationships that exist between the tables

    Can someone help me plese. I worked on it for too long!

    # 3, you can use the utilities, the dependency ratio of object database to determine which tables and views are used by your application...

    # 4, you can get in SQL Developer and produce a data model that should show you the relationships between the tables (if they are enabled)

    The first two will involve actually evaluate the application itself...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • custom data fields and the contacts search term...

    Thus,.

    We have created a unique ID field that corresponds to a field in our database we make our unique on correspondence. I want to be able to find contacts in the field of research on the contacts tab, but it does not work. Even when I change the default view to one that includes this custom field ID it does not work. I'm doing something wrong? Or is this not a feature in this area of research? (And oh how I hope I am doing something wrong and it's doable!)

    Hi Jessica,.

    Unfortunately, searching for contacts through the touch screen is limited in the number of fields, it can browse. The available fields are Email address, first name, last name, and company. Unfortunately cannot be added to this list additional fields. If you need to find contacts by values in other areas, Segmentation would be the only solution.

  • How can I create a PDF form that contains data fields and calculated fields?

    Hello, I need to create PDF forms that has

    -Fields that are read from a MS SQL Server database, once the user enters a field other fields must be read from an underlying database

    -Calculated fields

    what PDF forms product supports this? Once this file created is also filling end-user which form has any kind of special licenses, otherwise he will be able to fill this with Adobe Reader?

    You need to expand the PDF form using Adobe LiveCycle Designer if you want to be able to connect to a database.

    And Yes, it should be possible to use the file in Adobe Reader after that.

    For more questions on LCD forms are trying this forum: LiveCycle Designer

  • Need to concatenate the put date in the form field and the numeric field

    Hello

    I have a date field and a 4-digit numeric field in my form. I want to concatenate these fields in a new field in the following format: "YYYYMMDD [4-digit numeric field]."

    For example

    Date: June 4, 2015

    Number: 1234

    Concatenated field: 201506041234

    When I try to concatenate the value of date, I get the string value is entered instead of the actual date (e.g. "4 June").

    Thank you.

    OK, the script might like:

    Get the values of field as strings

    var sDate = getField("date1").valueAsString;

    Var Nums = getField("number1").valueAsString;

    Convert string to date in a date object

    Kai var = util.scand ("mm/dd/yyyy", sDate);

    Concatenate number and the date strings

    var sDateNum = util.printd ("YYYYMMDD", letter) + nes;

  • Date field to update using a function table

    Hello

    Have not been able to find something like that to give me an example where I'm wrong here.

    (1) I have a table with a date field (table.created_date).

    (2) I want to recover the date field of the table when it corresponds to a field of load_week. I created a function for this.
    CREATE OR REPLACE FUNCTION ODUMGR. "" F_ODS_ET_HIST ".
    (v_load_week varchar2)
    DATE OF RETURN
    AS
    date of T_DATE;
    BEGIN
    Select trunc (max (load_date))
    in T_DATE
    of odu_course_enroll_all
    where load_week = v_load_week
    Load_week group;
    RETURN T_DATE;
    EXCEPTION
    WHILE OTHERS
    THEN RETURN ' ';
    END F_ODS_ET_HIST;
    /

    (3) I have a field in another table, in that I want to put the date that I just received. The reception table has a field of type date.

    If I try to do:

    receiving_table update
    Set receiving_table.date_field = ODUMGR. F_ODS_ET_HIST ("R08");

    When this R08 is the load_week, I get the following error:

    ORA-01847: day of the month must be between 1 and the last day of the month
    ORA-06512: AT ODUMGR. Line 15 of the F_ODS_ET_HIST
    ORA-01013: user has requested the cancellation of the current operation

    I don't know why I'd get that, given that I put a date field Oracle in an another date field in an Oracle table.

    Any ideas?

    Thank you

    VIC

    This works if you actually run the code in youe doc here :-)

    /export/home/oracle> cat t.sh
    str='Hello World'
    sqlplus -s / < ./t.sh
    Hello World
    Goodbye!
    
    PL/SQL procedure successfully completed.
    

    It takes a slash (/) on a line by itself after and before the release.

    John

  • How to find a custom date field?

    I'm trying to recover contacts based on the value in a custom date field, and I can't get the search function to work. It works fine for me with other custom fields, for example this query:

    / data / contacts? Search = C_Job_Role1 = * HR & depth minimum = & count = 5

    Returns all contacts whose ends the Job role in HR properly. However, if I try the same thing with a date field, for example this query:

    contacts / data /? Search = C_Contract_Expiration_Date1 = * 1 * & depth minimum = & count = 5

    I get a response with the http 500 code - it's an internal server error, so presumably that choke the server when asked to perform a search on a date field.

    Is there a way to do this?

    Hi Eli,

    I ran a few tests and it seems that endpoint to search as standard format (MM/DD/YYYY) date type, not deal with time at the time of unix. The following query (example) will work: C_Contract_Expiration_Date1 = 01/04/2012

    I'm sorry for the initial response. There are some points of endpoints that use the time unix for types date, and we will be more cautious about calling the difference in each context.

    Thank you

    Fred

  • Date field you can put also n/d in

    Hi chaps,

    I have a bit of a dilemma. I have a bunch of text boxes that are used as date fields, IE. defined as the format "dd-mm-yyyy". However, they must ALSO allow "N/a" to type / or pre-filled in them but nothing else.

    I guess that the date format must be defined as javascript rather than in properties, but everyone is able to point me in the direction of the code that I need to use?

    Thank you.

    Of course, simply remove the function of date_keystroke1 you have and add both at the level of the JavaScript document:

    function date_keystroke1() {}

    If (event.willCommit & event.value.toUpperCase () = "N/a") {}

    Do nothing

    } else {}

    AFDate_KeystrokeEx2("dd-mm-yyyy");

    }

    }

    function AFDate_KeystrokeEx2 (cFormat) {}

    If (event.willCommit &!) AFParseDateEx (AFMergeChange (event), cFormat)) {}

    If (event.willCommit &! event.silenceErrors) {}

    App.Alert ("the field can contain only to be a date in the format dd-mm-yyyy, GOLD-'------N/A '.", 1);

    } else {}

    App.Beep (0);

    }

    Event.RC = false;

    }

    }

    The last function is simply a customized version of the integrated a (AFDate_KeystrokeEx), but renamed, so it is not in conflict.

  • Update for a null date field

    Hello world

    I have a web page called quality which has several records on it with several people connected to it at the same time, update. I'm trying to update a date field and it works, but then if I try to erase it and update, it is not update it a Null value. When I put in the code to try to update as a null in the update request, he puts a date of 01/01/00 in the field for some reason any and also updates the other fields empty to this day. I have something to explain the drop Downs nulls in my other fields. The code I used for those who was like that in the update query:

    Set Approval_Initials = < cfqueryparam cfsqltype = "CF_SQL_VARCHAR" value = "#Evaluate('form.) (PDF_Creation_Doc_Control_Approval_Initials #id #') # ' null = "len (trim (Evaluate('form.) #NOT". ' (PDF_Creation_Doc_Control_Approval_Initials #id #'))) # "/ >

    I need to use something like this again for the field Date, except with the tag CF_SQL_DATE? Here's what I have for the field Date right now:

    < Cfif DisplayQualityDate.recordcount >

    < cfif isDefined "(form. ("Quality_Date #id # ') and evaluate"(form. ("Quality_Date #id # ') NEQ" ">" ".

    < cfquery Datasource = '#application. DataSource #">"

    Approval of the update

    Set Approval_Date = ' #Evaluate ("form. (Quality_Date #id #») #

    WHERE APV_ItemID = #id # AND Document_Type = 'quality '.

    < / cfquery >

    < / cfif >

    < / cfif >

    Is this enough information? What does the CF_SQL_DATE do exactly? Any help would be greatly appreciated.


    Andy

    Andy,

    A couple of things to think about:

    1. Are the date columns in your database that is configured to accept null values?
    2. The database recognizes dates into the format that your users do not penetrate into the (i.e.: "d/m/yy")?

    You should be able to use similar logic to null cfqueryparam = on your form field data.  CF_SQL_DATE will tell your database the value passed is a date, and not another type of data.

    -Carl V.

  • Calculation of the date fields

    Hello

    I have three fields. 2 are formatted with the date field, and the third for the calculation of the difference between 2 date fields.

    For example, Field1 said August 2012, and field 2 said Sep 2012. Is it possible that I can do field 3 dipslay the 1 (month) response?

    Any help would be greatly appreciated.

    Thank you

    Yes, you use the date object JavaScript extract fields of the whole of the year and the month, create a common denominator for the month and year, and do the math.

    The event of calculation for the number of months:

    Delete the result value

    Event.Value = "";

    get field values

    var sStart = this.getField("Date1").value;

    Send var = this.getField("Date2").value;

    process if we have data

    If (sStart! = "" & send!) = "") {}

    convert date objects date strings

    var start = util.scand ("mmm yyyy", sStart);

    oEnd var = util.scand ("mmm yyyy", sending);

    get the full date and month year beginning

    var nStartFullYear = oStart.getFullYear ();

    var nStartMonth = oStart.getMonth ();

    convert data from start of month

    var nStartMonths = (nStartFullYear * 12) + nStartMonth;

    Get the complete year end date and month

    var nEndFullYear = oEnd.getFullYear ();

    var nEndMonth = oEnd.getMonth ();

    convert data from end of month

    var nEndMonths = (nEndFullYear * 12) + nEndMonth;

    do the math

    Event.Value = nEndMonths - nStartMonths;

    } / / end have given

    You will need to adjust the names for the start and end dates.

Maybe you are looking for

  • Qosmio G30-126 + graphic card GeForce 7600

    Hello as I've written before this graphics card was without original driver NVidia for Vista. I was always in trouble with graph and when it came the first update in October 2007, I was happy, but there remained only the Toshiba driver (nothing origi

  • Need to find and replace any missing files from XP MS Fax

    Hello.  My computer is a HP Pavilion a1430n, double quick March, media library.  Quite awhile back, I got some virus problems, and when I got rid of the virus I have deleted some files XP fax as well.  I can still send a fax, but cannot get the fax m

  • HP 15 r036tu: unable to boot from USB

    I'm unable to boot from a USB key, I started correctly the USB, it works on other laptops but not on mine. I also changed my boot order in the bios, but still, I'm not able to boot from USB. I read somewhere that it's because of security windows 8.1

  • You have been logged on with a temporary profile

    It's that the event viewer displays for this error: Properties of the event: event 6 Automatic certificate for user domain\username registration failed (0 x 80090024) the profile of the user is a temporary profile. It creates c:\users\temp file once

  • Error in the new interface consultation documents

    HelloI created a new type of document and I use script idoc for certain metadata areautofilled and can perform the download of the documents of the new interface, but when I see the documentsI have an error: System error has occurred. Contact your si