How to Total(Sum) of HH:MM (Varchar2) Format in the Table Region Style of OAF

Hi All.
I have Requirement to Calculate the Total Duration in OAF Table Style Region.
Check In
Check Out
Total Hours (HH:MM)
08:50:59
15:29:56
6:38
07::02:18
17:05:10
10:02
08:20:56
16:28:33
8:07
Total
24:47
If i Could not Able to Sum of 6:38+10:02+8:07=24:47 Due to VArchar2 as Display.
If i use Total (True) in Attribute it is through as sum 0.
Please Help me to Calculate the Duration Sum in OAF Page.
Regards
Rama

Your question is not clear..
Provide CREATE tABLE and INSERT statements and expected output. Your DB version also.
What is the data type of the column RUNTIME?
And what does your calculation " avg((01:29:40+ 07:10:58)/14)" mean - what is the result of this?
Please read FAQ: {message:id=9360002}

Similar Messages

  • How do I set a custom time & date format in the top bar?

    Hello guys,
    Very embarassing question, because I've had Apple's for all of my life (starting with the original Apple Macintosh) but I still haven't figured out one thing
    How do I set a custom time & date format in the top bar?
    When I go to System Preferences > Language & Text > Formats I can set different formats. I have no idea where you will see these, but I know that it's not the top bar where the time and date is being displayed. Because no matter what I enter, the format in the top bar will stay the same. I can only choose things like 24-Hour clock or not, blinking dots and so on in the Time & Date settings from the System Preferences.
    Can anyone here point me in the right direction? I see you can even choose to display the week of the year - I'd love to do that!
    All help appreciated!
    Greetings

    Language & Text system preferences, Formats tab, customize dates.
    There are also many third party menu item utilities that can.  Search Macupdate.com for some.
    One search yielded iClock Pro.  Although I never used it I would think it allows customization.  The link I gave you is to the Macupdate download page for that app.  On that same page is a Similar Software section which has other apps that can do the same thing. 
    One listed is iStat Menus.  The primary use for iStat Menus is not for displaying date/time but it does do that.  And I know it can do what you want because I use iStat Menus to track temperature sensors n my machine and, like you, I want to customize the menu time/date.  So I use it instead of the apple clock.  It does have the customization features I think you are looking for.

  • How can I take check box in particular cell of the table in smartforms??

    Hi experts,
       pls tell me how can I take check box in particular cell of the table in smartforms??
    It is not interactive form.
    I hv taken small windows as check boxes.but i think it is not a proper solution....give me another solution...

    Hi,
    first create text for a particular cell.
    In that we have a  text editor  in that text editor we have symbols in include menu.
    whatever the symboll u want to put to ur cell . just assign it.
    please check it. if it helpful reward points.
    regards,
    satish.

  • How to call & pass values to custom page from seeded page table region

    Hi All,
    can anyone tell me how to call & pass values to custom page from seeded page table region(Attribute is not available in seeded page VO)
    it is urgent. plssss
    Regards,
    purna

    Hi,
    Yes, we do this by extending controller, but you can also try this without extending controller.
    1. Create Submit Button on TableRN using personalization.
    2. Set "Destination URI" property to like below
    OA.jsp?page=/<yourname>/oracle/apps/ak/employee/webui/EmpDetailsPG&employeeNumber={@EmployeeId}&employeeName={@EmployeeName}&retainAM=Y&addBreadCrumb=Y
    Give your custom page path instead of EmpDetailsPG.
    EmployeeId and EmployeeName are VO attributes(Table Region)
    If you dont have desired attribute in VO, then write logic in your custom page controller to get required value using parameters passed from URL path.
    In this case, only personalization will do our job. Hope it helps.
    Thanks,
    Venkat Y.

  • HOW WE CAN DO TRIAL AND ERROR METHOD TO FIND THE TABLES AND FIELDS?

    HOW WE CAN DO TRIAL AND ERROR METHOD TO FIND THE TABLES AND FIELDS FOR ENHANCING THE AUTOMATIC SERIAL NUMBER PROFILE///

    Hi
    You can find user-exit for that. In user exit function you can use all import parameter. Set debugging in include program and you can see all import parameter.
    Regards,
    M Sajid

  • How to get the Date format inside the table

    I have a startdate column in the db in the format May 5, 2001 12:39:00 PM, when I query it from a view in this way : SELECT startdate, ... FROM ..., it returns the format in the db,
    However I have to do this SELECT
    decode(startdate, null, 'NOT START'), startdate), ... the result is 5-MAY-01,
    then I tried this to_char(startTime, 'Month DD, YYYY HH:MI: A.M.') the results become May 05, 2001 12:39:00 PM. (more space between month and day, and 05 instaed of 5)
    Does anybody know how to fix this, so I get exactly what is in the db?
    Thanks in advance

    No matter what you do if you are storing a date in a column it will get stored in the Oracle's internal 7 byte date format.
    The way you get it on retreiving it is as set by your date format. You can either change the default date format for the instance, the individual session or the individual SQL statement(in this case using to_char(date, 'format')).
    If you want to store the date in a format you want to store you'll have to store it as char or varchar2.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by George ([email protected]):
    I have a startdate column in the db in the format May 5, 2001 12:39:00 PM, when I query it from a view in this way : SELECT startdate, ... FROM ..., it returns the format in the db,
    However I have to do this SELECT
    decode(startdate, null, 'NOT START'), startdate), ... the result is 5-MAY-01,
    then I tried this to_char(startTime, 'Month DD, YYYY HH:MI: A.M.') the results become May 05, 2001 12:39:00 PM. (more space between month and day, and 05 instaed of 5)
    Does anybody know how to fix this, so I get exactly what is in the db?
    Thanks in advance<HR></BLOCKQUOTE>
    When you do to_char() with 'month' oracle blank pads the month to nine characters, the same goes with day too. So to get rid of it you'll have to trim() the month. And if you want to get a single digit for date less than 10 instead of 0x you'll have to do a bit of extra jugglery using translate() or replace().
    Hope this helps
    Naveen

  • How to add a delete button on each row of the table.

    i create a table with a list , and i add a new column.
    and then i drag a delete botton from the list operation to the column.
    when i create several rows. and click any delete botton of the new created rows. all the new created rows will be deleted.
    rows that already exist when the page render are not influenced.and when i click these rows' delete botton,
    just the current row will be delete.
    that's because when i click the new created rows' delete botton,all the new created botton in this column will automatically be clicked.
    i think adf consider all the delete botton are the same one.
    is it the table bug? please tell me how to resolve this problem. thanks.
    Edited by: 917391 on 2012-3-21 下午6:53
    Edited by: 917391 on 2012-3-21 下午10:07
    Edited by: 917391 on 2012-3-21 下午10:16

    i don't use the adf BC, so it is not a VO. it's just a service method that return a list.
    and i create the datacontrol and drag it to the page.
    Edited by: 917391 on 2012-3-21 下午10:26

  • How can I restrict more then one user to access the table?

    Hi !
    I have a problem and two solutions and I am a bit confused as to
    which one is the best one and/or can there be any better way of
    handling the problem ?
    Problem : I have to update a key field of a table when I update
    it in the form 5.0 screen. I am basically doing a maintenance of
    a table and if a certain field is updated then the change has to
    be reflected in two more tables. But the issue is that the field
    is a part of the key in those two tables. So all I can think of
    is that I need to insert new set or rows for that new value of
    the field and delete the old set of records for old values of
    the field.
    There are two ways of doing it;
    1.One option can be to explicitely define two cursors separately
    and fetch the values in them one by one and then insert the new
    records and then delete the old records in both the tables. This
    I feel will be a cumbersome process both in terms of processing
    time and the coding.
    2.Second option I was thinking can be to create two flat tables
    (without keys) and insert the values in them and update the
    changed field there and then insert the rows in the respective
    tables. Delete the old records in the main tables and delets the
    records in these flat tables. This is a bit more faster and
    easier to predict and code. This seems to be a better option for
    me.
    Any comments on these ?
    In both the cases I was thinking of making some provision so
    that more then one person can't update the table simultaneously.
    Since if there are more then one persons doing the processing
    then some inconsistency might creep into the whole process.
    This is easier to do in the second process as if I check the
    data in the flat tables and if there is some data then I can
    presume that some one is doing the processing and I can ask the
    other person to hold for a while. But in this case how can I
    stop more then two people to simultaneously check for the empty
    table and start inserting the record ?
    I was just thinking of having a sepatare table having only one
    field and this will be a key field and as the process begins the
    process will insert a fix value say 'Y' in the key field and at
    the end of the process the record will be deleted and this way
    we can restrict the user to access the process more then one at
    a time..? Since you can't have same value of the key in a table
    more then once.
    Any better way of handling it will be deeply appreciated.
    How about locking the table at the begining and releasing the
    lock at the end ? Will there be any issue in that? since I am
    inserting and deleting the rows in the same transaction.
    Comments welcome,
    Shobhit
    null

    How about performing the update IN the database using a stored
    procedure?
    By using non-database fields on your form to get the
    information, you can then call the procedure in the database to
    perform the updates. If an error occurs in the procedure you
    rollback, if necessary, and send a message or status back to the
    form. If it succeeds you might wish to commit and then re-
    execute the form's query -- using either the original key values
    or the new key values...
    null

  • How to get only partial text of a paragraph into the table of content?

    Hi guys,
    currently I'm working on a manuscript based on the publication manual of the American Psychological Association.
    Unfortunately, there is some sort of heading that's placed right in front of further text. Here an example:
    +This is my heading.+ Now ordinary text formatted differently should follow.
    Does anyone here know, how to get the text of the heading (but not the following text) into the table of content? For as far as I know I can't format the heading as a different paragraph than the following text.
    By the way, I use pages'08.
    Thanks for your help

    Hi Dennis,
    thanks for your suggestion, unfortunately I already tried that and it didn't work. I have created several unique styles. Problem is, I need two diferent styles in *one paragraph* - one style for the "heading", which is consistent to the APA manual not an own paragraph (sorry, not my idea...), and another style for the following text. As my example above shows, the heading is followed by usual text and I may not press return after the heading and switch to a new paragraph..
    It has to look exactly like this:
    +heading in italics.+ Now heading is followed by usual text without changing the paragraph or starting a new line. Blurb blurb blurb whatsoever blurb blurb. The text goes on an on and an on you see.
    I can't format the heading differently than the text (because if I try, the whole paragraph is formatted this way) and so I can't add just the heading to the TOC. Do you see what my problem is? Got any other suggestion?

  • How to display a date also in the alternate calendar format beside the main region calendar format?

    In case I defined alternate calendar and I want to display he date from the main calendar and also from the alternate calendar how can I do it?
    keren tsur

    Hi
    first convert the date to YYYYMMDD
    CONVERSION_EXIT_PDATE_INPUT
    then pass the date to this FM
    Try using this FM
    CONVERSION_EXIT_SDATE_OUTPUT
    Import parameters               Value
    INPUT                           20070220
    Export parameters               Value
    OUTPUT                          20.FEB.2007
    regards
    Shiva

  • How do I send multiple attachments in word format when the document is created in pages

    How do I send multiple attachments in word format on one em. The documents are in pages/numbers and if I use 'share' they each go into a separate  e mail

    Your welcome.
    New problem. Just purchased Docs Go Pro for iPad  word processor and there are buttons missing. Then when I go back to the App Store I clicked on app support and up comes server/webpage gone (basically). I Binged and there is not a direct site for support. How or who can be a help?

  • How to total sum of all low bid

    CALCBTOT     CALL     LETTING     VENDOR
    70,526     001     97101502     M018         
    63,960     001     97101502     S201         
    72,289     001     97101502     S498         
    21,100     001     97102401     A620         
    19,129     001     97102401     B0020        
    36,000     001     97102401     H330         
    26,424     001     97102401     J0008        
    3,328,419     002     97102401     C470         
    3,426,462     002     97102401     C480         
    3,495,741     002     97102401     E110         
    0     003     97102401     M577         
    465,280     003     97102401     R0026        
    1,359,124     004     97102401     E130         
    1,365,660     004     97102401     P272         
    I would like sum the low bid from the above table.  for example call 001  has 7 vendors submitted their bid. I just want to get the low bid out of the 7 vendors and add with the low bid with call number 002, 003 and 004. can you shed some light how I can do this.
    thank youEdited by: 893601 on Nov 15, 2011 12:56 PM

    I did a running total kind of thing but I got the result is the same as Solomon.
    /* Formatted on 11/15/2011 4:16:42 PM (QP5 v5.149.1003.31008) */
    WITH sample_data AS (SELECT 70526 CALCBTOT,
                                001 CALL,
                                97101502 LETTING,
                                'M018' VENDOR
                           FROM DUAL
                         UNION ALL
                         SELECT 63960,
                                001,
                                97101502,
                                'S201'
                           FROM DUAL
                         UNION ALL
                         SELECT 72289,
                                001,
                                97101502,
                                'S498'
                           FROM DUAL
                         UNION ALL
                         SELECT 21100,
                                001,
                                97102401,
                                'A620'
                           FROM DUAL
                         UNION ALL
                         SELECT 19129,
                                001,
                                97102401,
                                'B0020'
                           FROM DUAL
                         UNION ALL
                         SELECT 36000,
                                001,
                                97102401,
                                'H330'
                           FROM DUAL
                         UNION ALL
                         SELECT 26424,
                                001,
                                97102401,
                                'J0008'
                           FROM DUAL
                         UNION ALL
                         SELECT 3328419,
                                002,
                                97102401,
                                'C470'
                           FROM DUAL
                         UNION ALL
                         SELECT 3426462,
                                002,
                                97102401,
                                'C480'
                           FROM DUAL
                         UNION ALL
                         SELECT 3495741,
                                002,
                                97102401,
                                'E110'
                           FROM DUAL
                         UNION ALL
                         SELECT 0,
                                003,
                                97102401,
                                'M577'
                           FROM DUAL
                         UNION ALL
                         SELECT 465280,
                                003,
                                97102401,
                                'R0026'
                           FROM DUAL
                         UNION ALL
                         SELECT 1359124,
                                004,
                                97102401,
                                'E130'
                           FROM DUAL
                         UNION ALL
                         SELECT 1365660,
                                004,
                                97102401,
                                'P272'
                           FROM DUAL)
      SELECT TO_CHAR (low_bid, '$999,999,999') low_bid,
             TO_CHAR (call, '009') call,
             TO_CHAR (SUM (low_bid) OVER (ORDER BY call), '$999,999,999')
                running_total
        FROM (  SELECT MIN (CALCBTOT) low_bid, call
                  FROM sample_data
              GROUP BY call)
    ORDER BY call
    LOW_BID     CALL     RUNNING_TOTAL
          $19,129      001           $19,129
       $3,328,419      002        $3,347,548
               $0      003        $3,347,548
       $1,359,124      004        $4,706,672

  • How to add date in MM/DD/YYY  format at the end of a string

    Hi
    I want Description to look like
    ' PARTICIPATION ON TEMPORARY TV SHOW EXPIRING ' and include the "latest show expiration date" as "MM/DD/YYYY"
    Pls help ......
    try {
                            Date date= new Date();
                             System.out.println("THE TODAYS DATE is :"+date);
                               DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
    //                         DateFormat df = new SimpleDateFormat("MM/DD/YYYY");   -----> Its not allowing this format ????????
                             begin_Date = hashDateE.get(id);
                             System.out.println("THE LATEST TV SHOW DATE is :"+begin_Date);
                             Date d1 = df.parse(begin_Date);
                             String relation;
                             if(d1.equals(date))
                                  relation = "both the dates are same";
                             else if(d1.before(date))
                                  relation = "BEFORE";
                             else
                                  relation = "AFTER";
                             //System.out.println(d1 + "is" + relation + ' ' + date);
                             if("10".equals(latestShow)){
                              if("BEFORE".equals(relation)){
                                   System.out.println("The latest show date is expired");
                              Code =3;
                              Description = "PARTICIPATION ON TEMPORARY TV SHOW EXPIRED ";
                              else if("AFTER".equals(relation)) {
                                   System.out.println("The latest show date is non expired");
                                  Code = 2;
                                   Description = "PARTICIPATION ON TEMPORARY TV SHOW EXPIRING" + d1; -------------> I TRIED THIS WAY ( d1 should be in this format MM/DD/YYY
                              }else {
                                   System.out.println("The latest show date is non expired");
                                 Code = 20;
                                  Description = "PARTICIPATION ON TEMPORARY TV SHOW EXPIRING" + d1;
                        

    If you have a string like 2008-12-15 and you want to interpret it as a date and format it as 12/15/2008, then you need two DateFormat objects.
    One to parse the String in the first format into a Date, -------> i could do this
    try {
              String begin_date = "2008-12-15";
              System.out.println("The begin date is :"+begin_date);
              DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
              Date d1 =  df.parse(begin_date);
              System.out.println("the Date value is d1 :"+d1);
    catch() {
    }Output is :The begin date is :2008-12-15
    the Date value is d1 :Mon Dec 15 00:00:00 EST 2008
    Pls help me with the second part :- ?????/
    and one to format that Date into a String in the second format. MM/dd/yyyy --- how to do this ..after i tried several times with different statements , i am asking this piece of code to achieve this

  • How to Create Pop up window and assign values to the table in it

    Hi All,
      I have a code which checks for duplicate value in the database and displays that duplicate record. I want to put the duplicate record value in a table of a popup window. Can you please tell me how do i acheive this?
    I tried the below code for creating a popup but most of the methods used here are deprecated. Please help
    IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
    "MyWindowName");
    // create the Window
    IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
    window.setWindowPosition(WDWindowPos.CENTER);
    window.setTitle("WindowTitle");
    // Save WindowInstance in Context
    wdContext.currentContextElement.setWindowInstance(window);
    // and show the window
    window.open();
    Regards
    Suresh

    Hi Suresh,
    "createModalWindow" is not a depricated method.
    Check this code.
    IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
              "SalesAreaWindow");
    //             create the Window
              IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
              window.setWindowPosition(WDWindowPos.CENTER);
              window.setTitle("Sales Window");
              window.setWindowSize(100,100);
    //             Save WindowInstance in Context
              wdContext.currentContextElement().setWindowInstance(window);
    //             and show the window
              window.show();
    "WindowInstance" is the context attribute of type "com.sap.tc.webdynpro.services.session.api.IWDWindow"
    Re: opening a new window on lead select in a table!!!
    Regards,
    Mithu

  • How to store long text in Rich Text Format in custom table

    Hi
    I have a requirement to store long text in the RTF in custom table.. Is this possible..
    I am aware of a way to store them as Standard texts (SO10).. But not sure on if we can store them in tables..
    Plz advise
    Thanks
    Geetha

    Not that familiar with RTF, but you could try and create a field of type (x)string in your table and store the data there.

Maybe you are looking for

  • New Buffalo extreme external hard drive do I need to format before use

    Hello Just purchased a Buffalo extreme external hard drive which can be used for mac or windows.  What I would like to know, do I need to format it journaled before using this hard drive for backing up only?  Should I partition this hard? Thank you r

  • .js update of spry accordion panel tab data for countdown functionality

    Hi, First off I must say I really love the work done on CS3 and the Spry Framework - loads of examples and nicely implemented! Questions in a nutshell: Can I change spry generated data on the fly so I can run a .js counter function to dynamically upd

  • HT4642 how do I save with file extensions in 09.

    Numbers 08 had a check box to save a file with the extension (it didn't always work when saving to pdf) but 09 doesn't save the file with the extension (.numbers) by default and doesn't have an option to save .pdf when saving as a pdf. Is there a way

  • ATI Catalyst Install Manager and catalyst Control Center Help

    I just run the Windows 7 Upgrade advisor report and it said that I should uninstall the ATI Catalyst Install Manager and Catalyst Control Center then reinstall after upgrade.. Could someone direct me where I might t find these programs for Windows 7

  • How to pass variables to process?

    I am doing some exercises on BPM API using Jdev 11.1.1.5.0. I can get a task by invoking InstanceManagementService.createProcessInstanceTask(IBPMContext context, java.lang.String processId), but how can I pass in some variables from DB?