Adding two time figures together

Please forgive me I am not familiar with FormCalc or Javascript.
I am creating a form for work and I need to add two time figures minutes and seconds (IE 02:30 + 02:30) I have looked all over the web and I can not find anything that is working,
I can add the two figures together but I get (ie 4:60)
please any help you can give will be be wonderful

Hi Chris,
No need to shout.
Formula in column C (calculates the Duration (time elapsed) between two Date and Time values:
=B-A
Formula in column D (Calculates the same Duration as above, but subtracts 30 minutes if the total Duration is greater than 5 hours):
=IF(DUR2HOURS(B-A)>5,B-A-DURATION(,,,30,,),B-A)
Note that any cell displaying a Date or a Time (of day) or both contains a Date and Time value.
If only the Date has been entered, the time part is set to 00:00:00 (midnight, at the beginning of that day).
If only the Time has been entered, the date part is set to the date the entry was made.
In the table above, the values in Row 18, the bottom row of the table are as follows:
A18: March 1, 2012 11:00:00 AM
B18: March 1, 2012 5:00:00 PM
C18: 6h
D18: 5h 30m
The first two are Date and Time values, the second two are Duration values.
Regards,
Barry

Similar Messages

  • Adding two time periods together, summing it up and misusing 30 minutes from it HELP!

    SUPer tricky questions and brownie points for who can solve it!
    Column B6 has 11:00 am, Column C6 has 1:00 pm, column D6 has the total hours calculated (i.e. work from 11:00 am to 1:00 pm = 2 hours) and i want column e6 to minus half an hour (.30 hours) and display -.30 OR minus .30 minutes from Colulmn D6... however, only if the total hours/time in column D6 is greater than 5 hours. PLEASE FOR THE LOVE OF GOD TELL ME THE FORMULA FOR THIS!!

    Hi Chris,
    No need to shout.
    Formula in column C (calculates the Duration (time elapsed) between two Date and Time values:
    =B-A
    Formula in column D (Calculates the same Duration as above, but subtracts 30 minutes if the total Duration is greater than 5 hours):
    =IF(DUR2HOURS(B-A)>5,B-A-DURATION(,,,30,,),B-A)
    Note that any cell displaying a Date or a Time (of day) or both contains a Date and Time value.
    If only the Date has been entered, the time part is set to 00:00:00 (midnight, at the beginning of that day).
    If only the Time has been entered, the date part is set to the date the entry was made.
    In the table above, the values in Row 18, the bottom row of the table are as follows:
    A18: March 1, 2012 11:00:00 AM
    B18: March 1, 2012 5:00:00 PM
    C18: 6h
    D18: 5h 30m
    The first two are Date and Time values, the second two are Duration values.
    Regards,
    Barry

  • HT4259 Direct Connect  Two Time Capsules together with Ethernet.

    I have TWO Time Capsules  ( One upstairs providing Time Machine backup to IMAC #1 )  and  (One downstairs providing Time Machine Backup to IMAC#2)
    I would like to extend the wireless network portion of this to reach the whiole house with ONE wireless network. I know I can EXTEND the network, but my question is can Connect the two time capsules together via Ethernet cable ( my house is pre wired).  This will essentially ensure that the two devices have a solid connection instead of relying on WIRELESS.
    Any reasons to NOT do this?
    Time Machine will be used differently on the two devices.
    Thanks
    Ron

    Hello!
    I have the same problem, i am trying to do this
    Timecapsule nr 1, ISP uplink to WAN.
    from this one i have LAN to the other timecapsule to WAN.
    On the first timecapsule i have DHCP/NAT enable.
    On the second i have, Bridge mode.
    But when i am connected with eth to the second one i wont recive dhcp addresses or anything... like it wont passtrough.
    Any ideas?

  • Directory being added two times in JTable rows.(JTable Incorrect add. Rows)

    hi,
    I have a problem, The scenario is that when I click any folder that is in my JTable's row, the table is update by removing all the rows and showing only the contents of my selected folder. If my selected folder contains sub-folders it is some how showing that sub-folder two time and if there are files too that are shown correctly. e.g. If I have a parent folder FG1 and inside that folder I have one more folder FG12 and two .java files then when I click on FG1 my table should show FG12 and two .java files in separate rows, right now it is showing me the contents of FG1 folder but some how FG12 is shown on two rows i.e. first row shows FG12 second row shows FG12 third row shows my .java file and fourth row shows my .java fil. FG12 should be shown only one time. The code is attached. The methods to look are upDateTabel(...) and clearTableData(....), after clearing all my rows then I proceed on adding my data to the Jtable and inserting rows. May be addRow(... method of DefaultTableModel is called two times if it is a directory I don't know why. Please see the code below what I am doing wrong and how to fix it. Any help is appreciated.
    Thanks
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.table.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.text.SimpleDateFormat;
    import java.util.*;
    public class SimpleTable extends JPanel {
         /** Formats the date */
         protected SimpleDateFormat           formatter;
    /** two-dimensional array to hold the information for each column */
    protected Object                     data[][];
    /** variable to hold the date and time in a raw form for the directory*/
    protected long                          dateDirectory;
    /** holds the readable form converted date for the directories*/
    protected String                     dirDate;
    /** holds the readable form converted date for the files*/
    protected String                     fileDate;
    /** variable to hold the date and time in a raw form for the file*/
    protected long                          dateFile;
    /** holds the length of the file in bytes */
    protected long                         totalLen;
    /** convert the length to the wrapper class */
    protected Long                         longe;
    /** Vector to hold the sub directories */
    protected Vector                     subDir;
    /** holds the name of the selected directory */
    protected String                    dirNameHold;
    /** converting vector to an Array and store the values in this */
    protected File                     directoryArray[];
    /** hashtable to store the key-value pair */
    protected static Hashtable hashTable = new Hashtable();
    /** refer to the TableModel that is the default*/
    protected DefaultTableModel      model;
    /** stores the path of the selected file */
    protected static String               fullPath;
    /** stores the currently selected file */
    protected static File selectedFilename;
    /** stores the extension of the selected file */
    protected static String           extension;
    /** holds the names of the columns */
    protected final String columnNames[] = {"Name", "Size", "Type", "Modified"};
         * Default constructor
         * @param File the list of files and directories to be shown in the JTable.
    public SimpleTable(File directoryArray[])
              this.setLayout(new BorderLayout());
              this.setBorder( BorderFactory.createEmptyBorder( 0, 0, 0, 0 ) );
              (SimpleTable.hashTable).clear();
              data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
              formatter = new SimpleDateFormat("mm/dd/yyyy hh:mm aaa");
              //this shows the data in the JTable i.e. the primary directory stuff.
              for(int k = 0; k < directoryArray.length; k++)
                   if(directoryArray[k].isDirectory())
                        data[k][0] = directoryArray[k].getName();
                        data[k][2] = "File Folder";
                        dateDirectory = directoryArray[k].lastModified();
                        dirDate = formatter.format(new java.util.Date(dateDirectory));
                        data[k][3] = dirDate;
                        (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);                    
                   else if(directoryArray[k].isFile())
                        data[k][0] = directoryArray[k].getName();
                        totalLen = directoryArray[k].length();
                        longe = new Long(totalLen);
                        data[k][1] = longe + " Bytes";
                        dateFile = directoryArray[k].lastModified();
                        fileDate = formatter.format(new java.util.Date(dateFile));
                        data[k][3] = fileDate;
                        (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);
    model = new DefaultTableModel();
    model.addTableModelListener( new TableModelListener(){
              public void tableChanged( javax.swing.event.TableModelEvent e )
              final JTable table = new JTable(model);
              table.getTableHeader().setReorderingAllowed(false);
              table.setRowSelectionAllowed(false);
              table.setBorder( BorderFactory.createEmptyBorder( 0, 0, 0, 0 ) );
              table.setShowHorizontalLines(false);
              table.setShowVerticalLines(false);
              table.addMouseListener(new MouseAdapter()
    public void mouseReleased(MouseEvent e)
    //TBD:- needs to handle the doubleClick of the mouse.
    System.out.println("The clicked component is " + table.rowAtPoint(e.getPoint()) + "AND the number of clicks is " + e.getClickCount());
    if(e.getClickCount() >= 2 &&
    (table.getSelectedColumn() == 0) &&
    ((table.getColumnName(0)).equals(columnNames[0])))
         System.out.println("The clicked component is " + table.rowAtPoint(e.getPoint()) + "AND the number of clicks is " + e.getClickCount());
         upDateTable(table);
    upDateTable(table);
              /** set the columns */
              for(int c = 0; c < columnNames.length; c++)
                   model.addColumn(columnNames[c]);
              /** set the rows */
              for(int r = 0; r < data.length; r++)
                   model.addRow(data[r]);
              //this sets the tool-tip on the headers.
              DefaultTableCellRenderer D_headerRenderer = (DefaultTableCellRenderer ) table.getTableHeader().getDefaultRenderer();
              table.getColumnModel().getColumn(0).setHeaderRenderer(D_headerRenderer );
              ((DefaultTableCellRenderer)D_headerRenderer).setToolTipText("File and Folder in the Current Folder");
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this window.
    this.add(scrollPane, BorderLayout.CENTER);
    * Returns the number of columns
    * @return int number of columns
    public int getColumnTotal()
         return columnNames.length;
    * Returns the number of rows
    * @return int number of rows
    public int getRowTotal(Object directoryArray[])
         return directoryArray.length;
    * Update the table according to the selection made if a directory then searches and
    * shows the contents of the directory, if a file fills the appropriate fields.
    * @param JTable table we are working on
    * //TBD: handling of the files.
    private void upDateTable(JTable table)
    if((table.getSelectedColumn() == 0) && ((table.getColumnName(0)).equals(columnNames[0])))
         dirNameHold =(String) table.getValueAt(table.getSelectedRow(),table.getSelectedColumn());
                   File argument = findPath(dirNameHold);
                   if(argument.isFile())
                        CMRDialog.fileNameTextField.setText(argument.getName());
                        try
                             fullPath = argument.getCanonicalPath();                          
                             selectedFilename = argument.getCanonicalFile();                          
    CMRDialog.filtersComboBox.removeAllItems();
                             extension = fullPath.substring(fullPath.lastIndexOf('.'));
                             CMRDialog.filtersComboBox.addItem("( " + extension + " )" + " File");
                        catch(IOException e)
                             System.out.println("THE ERROR IS " + e);
                        return;
                   else if(argument.isDirectory())
                        String path = argument.getName();
                             //find the system dependent file separator
                             //String fileSeparator = System.getProperty("file.separator");
                        CMRDialog.driveComboBox.addItem(" " + path);
              subDir = Search.subDirs(argument);
              /**TBD:- needs a method to convert the vector to an array and return the array */
              directoryArray = new File[subDir.size()];
                   int indexCount = 0;
                   /** TBD:- This is inefficient way of converting a vector to an array */               
                   Iterator e = subDir.iterator();               
                   while( e.hasNext() )
                        directoryArray[indexCount] = (File)e.next();
                        indexCount++;
              /** now calls this method and clears the previous data */
              clearTableData(table);     
                   (SimpleTable.hashTable).clear();
                   data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
                   formatter = new SimpleDateFormat("mm/dd/yyyy hh:mm aaa");
                   data = null;
                   data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
                   for(int k = 0; k < directoryArray.length; k++)
                        if(directoryArray[k].isDirectory())
                             data[k][0] = directoryArray[k].getName();
                             data[k][2] = "File Folder";
                             dateDirectory = directoryArray[k].lastModified();
                             dirDate = formatter.format(new java.util.Date(dateDirectory));
                             data[k][3] = dirDate;
                             (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);
                             model.addRow(data[k]);
                             model.fireTableDataChanged();
                        else if(directoryArray[k].isFile())
                             data[k][0] = directoryArray[k].getName();
                             totalLen = directoryArray[k].length();
                             longe = new Long(totalLen);
                             data[k][1] = longe + " Bytes";
                             dateFile = directoryArray[k].lastModified();
                             fileDate = formatter.format(new java.util.Date(dateFile));
                             data[k][3] = fileDate;
                             (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);                    }
                             model.addRow(data[k]);
                             model.fireTableDataChanged();
              table.revalidate();
              table.validate();               
    * Searches the Hashtable and returns the path of the folder or the value.
    * @param String name of the directory or file.
    * @return File     full-path of the selected file or directory.
    public File findPath(String value)
         return (File)((SimpleTable.hashTable).get(value));
    * This clears the previous data in the JTable and removes the rows.
    * @param     JTable table we are updating.
    public void clearTableData(JTable table)
         for(int row = table.getRowCount() - 1; row >= 0; --row)
                   model.removeRow(row);
              model.fireTableStructureChanged();

    java gurus any idea how ti fix this problem.
    thanks

  • Adding two double's together??

    Hi,
    I want to add two prices which are Strings to start off with and to get the end calculation in J2ME.
    As I can't parse the string into a double, how do I go about doing all of this (String -> double -> end result which is the addition fo the two prices?
    i.e. �12.50 + �13.50 = calculatedResult ??
    Any help would be appreciated,
    Harry

    Hi again,
    I have another problem. If a value comes in for example at �1.995 and say is added to a value �0.005, how can this be dealt with when rounding up? This needs to go to �2 but using the code you provided will only get me to �10.95.
    I have to handle cases where the value may come at �1.995, �1.996, �1.997, �1.998 and �1.999. Each of these 5 values will be added to �0.005 and I really need the addition of the 2 values to be rounded properly. i.e. if �1.996 is added to �0.005 then the resultant answer is �2.00 and not �2.001. The last case �1.999 + �0.005 will come to �2.004 so the half pence will never become a full pence if you understand what I'm saying...? But �9.999 + �0.005 will become �10.004 so the pound has changed here and will need to be dealt with.
    Please help!

  • Adding two array lists together and a text file to an array list

    I'm having problems coding these two methods... Could someone explain how to do this? I can't find information on it anywhere... :(
    "MagazineList" is the class I'm coding in right now, and I already declared "list" as an array list of another class called "Magazine".
    public boolean addAll(MagazineList magazines)
           if (list == magazines) {
               return false;
            else {
                list.addAll(magazines);
           return true;
       public boolean addAll(String filename)
           Scanner in = ResourceUtil.openFileScanner(filename);
            if (in == null) {
               return false;
            String line = source.nextLine();
            while (!line.equals("")) {
              list.add(Magazine(source));
           in.close();
       }

    I assume "addAll(MagazineList magazines)" is defined in the MagazineList class?
    Then,
    list.addAll(magazines);probably needs to be something like:
    list.addAll(magazines.list);This uses the private variable ( should be private) list from the input MagazineList, and adds all of those Magazine objects to the list in the current MagazineList.
    But, yes, describe your problems more clearly, and you'll get better answers more quickly (because people will be able to understand you and give you a suggestion without asking you another question first).

  • Adding two parsed values together

    Why does the following code give me an error of "invalid token +":
    String a = "100";
    String b = "200";
    double sum = Double.parseValue(a) + Double.parseValue(b);

    I am using Eclipse 3.1 --
    I seems to be an eclipse debug error. If Iclick on
    Double.parseDouble(a) + Double.parseDouble(b); and Iclick inspect or I try viewing the value in the Display window - I get the above error. However, when I run my code, it seems to work fine.
    Thanks for everyones help -

  • Adding every other field of two separate rows together.

    Hi,
    We're using Oracle 11.1.
    I's like to add two rows from two different queries together,
    I'd like it to look something like:
    with
    a as
    ( select 'a' q,'b' r,'c' s,'d' t,'e' u from dual),
    b as
    ( select '1' q, '2' r,'3' s,'4' t,'5' u from dual)
    select a.q, b.r, a.s, b.t, a.u from a, b;The trouble is I'm already using WITH and both the 'real queries' get their data from the progressive WITH statements already up top.
    I'd like to add every other field from each query to a result row.
    I have to use only SQL.
    Is there a way I can use UNION and combine the rows using dummy fields for the fields I don't want to use?
    Some something like
    I know this isn't right but...it sort of what I want to do.
    select * from
    ( select 'a' q,' ' r,'c' s,' ' t,'e' u from dual
    union
    select '1' q, '2' r,' ' s,'4' t,' ' u from dual);Anybody?

    Can u try using join.
    select a.q, b.r, a.s, b.t, a.u from
    (select 'a' q,'b' r,'c' s,'d' t,'e' u from dual) as a,
    ( select '1' q, '2' r,'3' s,'4' t,'5' u from dual) as b;
    This will result in a Cartesian join, but if you have a common column between a & b, then you can use it in the where clause.

  • I accidentally added two .doc files, they show in iTunes file sharing, but don't show on iPad?

    I accidentally added two .doc files by dragging and dropping into itunes, under my device, then the app tab, then file sharing for Adobe Reader, they show in iTunes file sharing window, but don't show on iPad 3, and I cannot delete them on iTunes screen? Please help!

    First, I would advise you to apply Tao philosophy to this. Given the dysfunction of most software, if this was just an accidental copy and you don't want them on iPad and they are not showing up anyway, what's the problem? Forget it. It's not worth the hassles. I'm more concerned that you have psychological issues you need to be dealing with, not this. You are making much too unnecessary work and stress for yourself.
    As for deleting them, I'm assuming you highlighted them and hit delete and it didn't work. If not, it should. Works for me. But if it doesn't, my advice is also not to worry about it, as annoying as the clutter is. It will eventually resolve itself (like when your data files corrupt or your iPad crashes, LOL. (I apologize for my cynicism but I am fed up with dysfunctional software). It's not worth the hassles of trying to figure out petty issues.
    As for me, I have the opposite, and very serious problem. I've got Reader on my iPad too. But I can't move the pdfs out of it and onto my laptop with iTunes' dysfunctional file sharing. I get the error "file cannot be copied because you do not have permission to see its contents." I have hundreds of pdfs on my iPad that I converted from web surfing with other programs that also don't work and I can't get them off the iPad for backup and to have a synced library I can access from both laptop and iPad.
    I called iTunes twice and both times they blamed it on the app, saying iTunes file sharing doesn't support third party apps and that I should call Adobe and talk them into writing the code that will work with iTunes. Yeah, right. And Reader is not the only problem. This is happening with iAnnotate and Write PDF and other apps.
    I suspect that both of us have the root problem, perhaps Apple's greedy refusal to support the apps that it sells in the app store and are quasi-integrated enough to show up in the file sharing documents list, but can't be moved or deleted; and the apps that don't bother to make their apps fully work with iTunes file sharing.
    If anyone has any solutions ......

  • Extract Time from date and Time and Need XLMOD Funtion to find the Difference between Two Time.

    X6 = "1/5/15 5:16 AM" & NOW ....................difference by Only Time
    not date
    X6 date and Time will be changing, Its not Constant
                Dim myDateTime As DateTime = X6
                Dim myDate As String = myDateTime.ToString("dd/MM/yy")
                Dim myTime As String = myDateTime.ToString("hh:mm tt")
                Dim myDateTime1 As DateTime = Now
                Dim myDate1 As String = myDateTime1.ToString("dd/MM/yy")
                Dim myTime1 As String = myDateTime1.ToString("hh:mm tt")
    Need to use this function to find the Difference between Two Time. due to 12:00 AM isuue
    Function XLMod(a, b)
        ' This replicates the Excel MOD function
        XLMod = a - b * Int(a / b)
    End Function
    Output Required
     dim dd  = XLMod(myTime - myTime1)
    Problem is myTime & myTime1 is String Need to convert them into Time, Later use XLMOD Funtion.

    Induhar,
    As an addendum to this, I thought I'd add this in also: If you have two valid DateTime objects you might consider using a class which I put together a few years ago
    shown on a page of my website here.
    To use it, just instantiate with two DateTime objects (order doesn't matter, it'll figure it out) and you'll then have access to the public properties. For this example, I'm just showing the .ToString method:
    Option Strict On
    Option Explicit On
    Option Infer Off
    Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles MyBase.Load
    Dim date1 As DateTime = Now
    Dim date2 As DateTime = #1/1/1970 2:35:00 PM#
    Dim howOld As New Age(date1, date2)
    MessageBox.Show(howOld.ToString, "Age")
    Stop
    End Sub
    End Class
    I hope that helps, if not now then maybe at some point in the future. :)
    Still lost in code, just at a little higher level.
      Thanx frank, can use this in Future....

  • Two graphics card together (eGPU)

    Hi everyone,
    I'm trying to use two video cards together. I don't want to switch between / use only one of them... both should be ON at the same time. The first one is an Intel integrated GPU and the second one is a Nvidia Quadro NVS 450. The integrated should display only laptop LCD screen and the eGPU Nvidia should display 2 DisplayPort external monitors.
    xf86-video-nouveau is installed with everything related to Intel GPU and i'm running default kernel 3.12.0-1. i915 and nouveau are added to MODULES inside /etc/mkinitcpio.conf and vmalloc=512MB added to Grub command line.
    Firstly I followed instructions from here : http://superuser.com/questions/117239/h … k-on-linux
    Now here I am, both of them are detected with lspci :
    $ lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
    08:00.0 VGA compatible controller: NVIDIA Corporation G98 [Quadro NVS 450] (rev a1)
    And that should work ! But not at all :-( The computer starts but external monitors (plugged on Nvidia card) stay black/off.
    And xrandr doesn't show the second screen :
    $ xrandr
    Screen 0: minimum 320 x 200, current 1280 x 2720, maximum 32767 x 32767
    LVDS1 connected 1280x800+0+1920 (normal left inverted right x axis y axis) 261mm x 163mm
    1280x800 60.2*+ 50.0
    1024x768 60.0
    800x600 60.3 56.2
    640x480 59.9
    VGA1 disconnected (normal left inverted right x axis y axis)
    HDMI1 disconnected (normal left inverted right x axis y axis)
    DP1 disconnected (normal left inverted right x axis y axis)
    Here is my X11 config files :
    20-graphics.conf
    Section "Device"
    Identifier "IntelCard"
    Driver "intel"
    BusID "PCI:0:2:0"
    Option "AccelMethod" "sna"
    Option "DRI" "true"
    Option "SwapbuffersWait" "false"
    #Option "Shadow" "True"
    #Option "TearFree" "true"
    EndSection
    Section "Device"
    Identifier "NvidiaCard"
    Driver "nouveau"
    BusID "PCI:8:0:0"
    Option "GLXVBlank" "true"
    EndSection
    30-monitor.conf
    Section "Screen"
    Identifier "Screen0"
    Device "IntelCard"
    #Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Virtual 3840 2720
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen1"
    Device "NvidiaCard"
    #Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Virtual 3840 2720
    EndSubSection
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    Option "Enable" "true"
    EndSection
    Section "Monitor"
    Identifier "Monitor1"
    Option "Enable" "true"
    EndSection
    Section "Monitor"
    Identifier "Monitor2"
    Option "Enable" "true"
    EndSection
    What's wrong please? Is anobody can help?
    Thanks
    Edit : Nvidia card is connected trough this PCI > ExpressCard adapter.
    Last edited by hansi (2013-12-06 21:45:28)

    clfarron4 wrote:So... How is your set-up working if the card isn't inside the laptop?
    I use a PCI Express adapter connected through the ExpressCard slot : http://www.mfactors.com/pe4h-ec060a-v2- … d-adapter/
    ANOKNUSA wrote:but you may be able to use a xorg.conf file that directs the integrated graphics to the laptop display, and an external display straight from the external card
    Also tried, without success :-/ I think is dead, or almost dead because I can still try to launch one X server on each graphics card then enable dragging between them via Xinerama, but it causes very poor performance (no 3D acceleration & co...)
    Maybe I'll try with a ATI card, you never know...

  • SAP Script need to display main window two times on single page.

    Hello Guru's,
    So here is my requirement, we need to print check. We are using F110_PRENUM_CHCK and linked with driver prog RFFOUS_C. We have Letter size paper with three sections,
    1. Check
    2. Voucher Section (containing table of element 515, 525 and 530) 515: Heading, 525 : Regup-Belnr, Regup-XBLNR, Regud-Wrbtr.
                                                                                    530: Regup-SGTXT
    3. Voucher Section (As a receipt for bank itself) : contains same data as 2nd section.
    I tried several things reading all the previous post over here in SDN.
    1. Created Z form created two instances of main window it results just single display of table (voucher section) in section two and not in third.
    2. I also tried pasting two times same code in single main window which gives only last item line for the table.
    3. Created z driver program made changes in Write_form added control form for element 515 that does results in showing element 515 on both the location.
                CALL FUNCTION 'CONTROL_FORM'
                  EXPORTING
                    command   = 'NEW-WINDOW'
                  EXCEPTIONS
                    unopened  = 1
                    unstarted = 2
                    OTHERS    = 3.
                CALL FUNCTION 'WRITE_FORM'
                  EXPORTING
                    element = '515'
                  EXCEPTIONS
                    window  = 1
                    element = 2.
    3. For Element 525 and element 530 is not acting same. In the prog 525 = hlp_ep_element. And there are many write_form for this. I tried pasting each and every place same kind of code. It doesnt work. what it do it gives me three pages of output repeating every thing twice and weirdly.
    I am need this to be done as I already took so much time solving nothing is working.
    Please give me the exact location where to paste this code so I can have two times data of main window.
    Or is there any other way to do this....Any way will be good for me as long as it shows two times data in the form.
    The data is table.

    Hi Manju,
    I create a new window (no main) but does not run, please can you tell me what should I do to make it work.
    Best regards.
    Robert.

  • Data inserting two times in a table  when i click submit button

    Hi Experts,
    I had a problem, when i am inserting data in a table from a form at the first time when i click button it adds two times, afterwards it is adding one time only, the form and table are from same value node (table is collection cardinality : 1..n and selection cardinality is 0..n) i don't understand why it  is happening here?
    Regards,
    Pradeep Kumar

    Hi Pradeep,
    Please check the method for inserting data in a table. May be method is called two times.
    Post your code here to look into it.
    Best Regards,
    Arun Jaiswal

  • Et_ITEM_PRESSED event  firing two times

    Hi ,
    I have a added a button to one of the windows and use the
    et_ITEM_PRESSED in the ItemEvent to do something. My problem is whenever I click the button the event fires two times. I thought it was my code but the sample code in the CatchingEvents project does the same.
    Does anyone know any wayaround it?
    appologise if this question has been asked before (I assumed so but could not find any matches for my search)
    Regards,
    Indika

    Almost all the item event in SBO executes two times before and after SBO events handler works. If you dont catch one of the events SBO will execute two events in one time. To avoide that you should cacth the events before "OR" after the SBO Events Handler Works.
    For Example:
    <i><b>Before Action:</b></i>
    If pVal.ItemUID = "1" And pVal.EventType = et_ITEM_PRESSED Then
    If Len(oEditText.String) <> 0 Then
    If IsNumeric(oEditText.String) Then
    If Len(oEditText.String) <> 15 Then
    If pVal.Before_Action = True Then
    BubbleEvent = False
    SBOApplication.SetStatusBarMessage "Federal ID Must be 15 Character", bmt_Short
    oTmpForm.Items("41").Click  ....
    <i><b>Action Success:</b></i>If pVal.Action_Success = True Then
    Set oItem = oTmpForm.Items("8")
    Set oEditText = oItem.Specific
    sDocNum = CLng(oEditText.String)
    Set oItem = oTmpForm.Items("29")
    Set oEditText = oItem.Specific
    sJumlah = oEditText.String
    If sJumlah = "" Then
    BubbleEvent = False
    That's all. Hopefully helps.
    Cheers,
    Hamdi

  • OBIEE: Link Two Separate Queries Together

    Hi,
    I am trying to link two separate queries together in BIEE.
    I have a query that will give me the sales value in January 2012 (monthly query)
    But I would need to use the sales value of January 2012 to help derive the weekly sales value in another query (weekly query).
    How would you link up two queries together?
    I tried using union but it doesnt seem to be working.
    Thanks.
    Bill

    Hi Billy,
    Sure, My pleasure. Here are the basic steps what you could go through.
    1. Create an analysis with your Month (January) and Sales.
    2. Save this analysis as Report1.
    3. Create another analysis with Week and Sales.
    4. Create a filter on column:Sales using the option 'Based on Another Analysis'. The analysis editor will provide you an option to browse your other analysis which you want this analysis to be based on and just click on this browse button, and navigate to and select Report1.
    5. Once you have selected Report 1 through browse option, you get down in the same pop-up the relationship and use values in column.
    So sample entries in this pop-up might look like
    Column : Sales
    Operator : is based on results of another analysis
    Saved Analysis : /My Folder/Report1
    Relationship : is equal than
    Use values in Column : Sales
    6. If you run this analysis, you could get all weekly sales figures which are equal to the january sales figures.
    Hope this helps.
    Thank you,
    Dhar

Maybe you are looking for