Left Right Mid Functions, make new row and Merge

Hello -
I don't know if this is possible or not, but I have data that is structured like the following:
Model
Amount
5541 AAA/BBB/CCC
5.96
4000 DDD/EEE
8.98
204
7.32
701 AAA
8.93
I need to compare it with a table I have in my database that has Model and Account columns.  The data in my database is structured like:
Model
Amount
5541CEAAA
4.98
5541BEBBB
4.99
5541ABCCC
3.98
4000CEDDD
2.25
4000DEEEE
7.01
204
7.01
701 AAA
7.03
I would like to use Merge to compare the two tables to update the Amount column.  I need to get the Model column in a state where I can do that.  I somehow think maybe the Right, Left, Mid functions can help separate out the data, but I would think
also that it needs to be separated and put in another row.
Any help will be greatly appreciated!
Juniormint

Hi Satheesh -
Thanks for your response.  The expected results are that the new Amounts from the first table are updated in the second table as follows:
Model
Amount
5541CEAAA
5.96
5541BEBBB
5.96
5541ABCCC
5.96
4000CEDDD
8.98
4000DEEEE
8.98
204
7.32
701 AAA
8.93
Sorry I was unclear!
Juniormint

Similar Messages

  • How to  make JTextArea rows and colums auto-increase?

    My test program is attached as below.
    The JTextArea can not enlarge itself when the text in a line is too long that some characters are hidden.When rows grows too many will also see the problem.
    How can I make the rows and columns auto-increase to meet the width or height of my text?
    -----My Test Demo----
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.color.*;
    import javax.swing.*;
    public class Test{
    public static void main(String[] args){
    JFrame f = new JFrame("My Editor");
    Container ct = f.getContentPane();
    JPanel jp = new JPanel();
    JTextArea ta = new JTextArea("My software.",10,30);
    JTextArea ta2 = new JTextArea("Hello,World!",10,30);
    jp.setPreferredSize(new Dimension(400,400));
    jp.setBackground(Color.green);
    jp.setLayout(null);
    jp.add(ta);
    ta.setBounds(100,100,150,200);
    ta.setOpaque(false);
    ta.setBorder(null);
    jp.add(ta2);
    ta2.setBounds(100,120,150,200);
    ta2.setOpaque(false);
    ta2.setBorder(null);
    // jp.addMouseListener(new MyMouseListener());
    ct.setLayout(new BorderLayout());
    ct.add(jp,BorderLayout.CENTER);
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent evt) {
    System.exit(0);
    f.setVisible(true);
    f.pack();

    This link to the Java Swing tutorial will show you how to add the JTextArea to a JScrollPane:
    http://java.sun.com/docs/books/tutorial/uiswing/components/simpletext.html#textarea
    It appears to me that you are new to Swing so you should read the entire tutorial "Creating a GUI using JFC/Swing" before asking any more question. The tutorial can be read online or downloaded from:
    http://java.sun.com/docs/books/tutorial/
    The download link for all tutorials on this page is near the bottom.

  • How to add new row and update existing rows at a time form the upload file

    hi
    How to add new row and update existing rows at a time form the upload file
    example:ztable(existing table)
    bcent                      smh            nsmh         valid date
    0001112465      7.4                       26.06.2007
    0001112466      7.5                       26.06.2007
    000111801                      7.6                       26.06.2007
    1982                      7.8                       26.06.2007
    Flat file structure
    bcent                       nsmh         valid date
    0001112465     7.8     26.06.2007  ( update into above table in nsmh)
    0001112466     7.9     26.06.2007  ( update into above table in nsmh) 
    000111801                     7.6      26.06.2007 ( update into above table in nsmh
    1985                      11              26.06.2007   new row it should insert in table
    thanks,
    Sivagopal R

    Hi,
    First upload the file into an internal table. If you are using a file that is on application server. Use open dataset and close dataset.
    Then :
    Loop at it.
    *insert or modify as per your requirement.
    Endloop.
    Regards,
    Srilatha.

  • How to make New Document and Upload Document to have same Content Type in Document Library in Sharepoint 2010

    Hi,
    How to make 'New Document' and 'Upload Document' to have same content type(Custom) in Document Library in Sharepoint2010.
    Note : I have created custom Content Type since I have custom columns along with upload column..
    Regards, Shreyas R S

    go to library settings 
    Change new button order and default content type
    set your custom content type to be #1
    when you upload new document it will automatically have your custom content type
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • Make Select rows and columns as read only in Table Control

    Hi All,
    I would like to know how to make certain cells in a Table Control as display only.
    Table control should look like-(Those in bold are read only or in display mode)
    <b>Name1            Idno1 </b>         Address1
    <b>Name2            Idno2</b>          Address2
    <b>Name3            Idno3  </b>        Address3
    <b>Name4            Idno4</b>          Address4
    (Blank row to enter name idno and address)
    (Blank row to enter name idno and address)
    (Blank row to enter name idno and address)
    My table control should display all the above fields the way it is above of which first two colums and 4 rows should be read only,and the rest of the empty rows in the TC should be in change mode.i.e it must have provision to add new rows but not change the first two columns of existing rows.
    In short I am looking at solution to hide particular no of rows and columns and <b>not the entire column.</b>

    In the PBO of the table control loop. just write these statements
    NAME and IDNO considering the fields on the screen.
    and WA_TAB is the table work area being passed to the table control to display the rows.
    if not WA_TAB-NAME is initial and not WA_TAB-IDNO is initial.
    loop at screen.
    if screen-name = 'NAME' or
       screen-name = 'IDNO'.
    screen-input = <b>0</b>.
    modify screen.
    endif.
    endloop.
    endif.
    which means that the fields are disabled only if NAME and IDNO are not initial.
    Regards
    - Gopi

  • Add new row and update on grid

    Hi all !
    Can you help me ?
    I want to add new row on grid ,but I canu2019t add .I donu2019t know ,have I written code correct?
    This is code that I used belown.
    I connect to database  as code :SetApplication()
    Public Sub SetApplication()
            Dim SboGuiApi As SAPbouiCOM.SboGuiApi
            Dim sConnectionString As String
            SboGuiApi = New SAPbouiCOM.SboGuiApi
            sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
            SboGuiApi.Connect(sConnectionString)
            SBO_Application = SboGuiApi.GetApplication()
        End Sub
    Sub ItemEvent_Add(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, _
                                ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            If "frmGrid" = pVal.FormType And pVal.BeforeAction = True And pVal.ItemUID = "AddNew" Then
                If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
                    SetApplication()
                    oGrid.DataTable.Rows.Add()
                End If
            End If
    End Sub
    <a href="http://imageshack.us">[IMG]http://img402.imageshack.us/img402/2763/updateandaddnewnf2.png[/IMG]</a>
    <a href="http://g.imageshack.us/img402/updateandaddnewnf2.png/1/">[IMG]http://img402.imageshack.us/img402/updateandaddnewnf2.png/1/w699.png[/IMG]</a>

    Hi all !
    To day, I want to ask you about 2 problem .
    1:I want to update data as I changes data of column Name.I used code for this function update:
    If (pVal.ItemUID = "1") Then
                    Dim frm As SAPbouiCOM.Form = SBO_Application.Forms.Item(FormUID)
                    If frm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE Then
                        Dim n1 As String
                        Dim col As SAPbouiCOM.GridColumns
                        Dim i As Integer
                        col = oGrid.Columns.Item(1)
                        n1 = col.String()
                        Dim b1 As String
                        b1 = oGrid.Columns.Item(2)
                        Dim n2 As String
                        n2 = oGrid.Columns.Item(3)
      frm.DataSources.DataTables.Item(0).ExecuteQuery("UPDATE OHEM SET U_NameChild = '" & n1 & "',U_Birthdate = '" & b1 & "' ,U_*** = '" & n2 & "'")
                        frm.Update()
                    End If
                End If
    However,This code donu2019t work ,because it not get value of column Name :col = oGrid.Columns.Item(1)
                                                                     n1 = col.String()
    Can you help me test this function and can rewritten it?
    2:I want to add new child to database pass grid.
    If FormUID = "frmGrid" And pVal.BeforeAction = False And (pVal.ItemUID = "AddNew") Or pVal.ItemUID = "1" And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK) Then
                'Try
                If (pVal.ItemUID = "AddNew") Then
                    Try
                        OForm = SBO_Application.Forms.ActiveForm
                        oGrid = OForm.Items.Item("MyGrid").Specific
                        oGrid.DataTable.Rows.Add()
                        oGrid.AutoResizeColumns()
                        'OForm.Freeze(True)
                    Catch ex As Exception
    MessageBox.Show("Can't add new row on Grid", "Error", MessageBoxButtons.YesNo, MessageBoxIcon.Error)
                    End Try
                End If
    But, it only add new row on grid ,so it donu2019t add on database.
    Could you help me ?
    <a href="http://imageshack.us">[IMG]http://img404.imageshack.us/img404/1980/addandupdatepr8.png[/IMG]</a>
    <a href="http://g.imageshack.us/img404/addandupdatepr8.png/1/">[IMG]http://img404.imageshack.us/img404/addandupdatepr8.png/1/w700.png[/IMG]</a>

  • Dynamically adding new rows and columns

    i want to have a button on my jsp page which shud add new rows dynamically. and same one for columns.
    how do i calculate the values across the rows on the forms
    I'm new to JSP. Please point me in the right direction...any tutorials or code will be helpful.
    thanks

    Well its a good question actually and the most needed one.
    Say 4 example u need a screen which should accepts the employee details in one screen
    and the user should be able to enter all the employee details in one screen and he should
    have a flexibility to change the previous details too.
    So 4 that u need to know 2 things:
    1) Using of JspBeans
    2) Using Vector
    I will give u a brief idea:
    So the bean is just a container been which has the methods say
    setEmployeeName(.....)
    getEmployeeName()
    So the basic logic is, the naming of html form elements and displaying multiple rows of elements.
    Say 4 eg, empname -> <input type=text name=empname<%= count%> value=<%= ....%>>
    So u should run the loop the size of ur vector times and every time u add a vector u should save all
    the data using same logic in ur vector and thatz it once u commit get all the values from the vector.
    Try this u will definitely get it,
    all da best,
    kiran
    kiran

  • Task to add new row and values to Table?

    Hi, I am new to SSIS, I have a table that I would like to capture daily currency conversion rates. In my Control Flow
    pane, I've been able to use a web service task to get a string value of the conversion rate pass it to an XML task, and connect it to at Data Flow Task. So now I'm not sure what to do from here. I would like to input the daily values into my table:
    [CurrencyID] [int] IDENTITY(1,1) NOT NULL,
    [CurrXDate] [datetime] NOT NULL,
    [Country] [nvarchar](50) NOT NULL,
    [CurrXRate] [float] NOT NULL,
    insert into tbl_CurrXrates
    (CurrXDate, Country, CurrXRate)
    values
    (getdate(), 'USD', @[User::ConversionRate])
    What data tasks and order would I use to add a new row to my table which I think would be a simple insert statement. Hope my
    question makes sense.

    You can put into a package variable and use as part of the insert statement via a SSIS expression to drive a Execute SQL Command to insert it or
    Have the value off the webservice dumped to a XML file and then consume it with XML Source which will allow the values to be inserted into the table (e.g. OLEDB Destination)
    Arthur
    MyBlog
    Twitter

  • Editable ALV with New Row and Save

    Hi Experts,
      I created an ALV report which is editable, add a New Row with SAVE options.
    Problem is: when i try to save the changes using SAVE button in the application tool bar for the coloumn in the specific row, the event is not triggered and the changes were not available. However if i press Enter and then the SAVE the changes were available and i am able to update it.
    I do not want to press ENTER after doing the changes, All i want is to press SAVE to save my changes.(one click)
    How can I do that? Thanks.

    Thanks satish,
    From the thread,
    We have to either press return key (enter) or switch between cells. But the problem here is with the user, they do not want to do it either way. All they want is to press the save button in the application tool bar after the data is changed in the cell.
    Any inputs will be greatly appreicated.
    Thank you.

  • Create new row and set ID

    Hi,
    I have to insert a new row in a database. How can I set the id?
    its value returns me it this query: SELECT xxril.evento_id_seq.nextval from dual
    The code is:
    row[id]= getEventiView1().createRow();
    row[id].setAttribute("ID", ????? );
    try{
    row[id].setAttribute("Scarto", "1");
    row[id].setAttribute("Reintegro", "2");
    row[id].setAttribute("QtaProdotta", "3");
    }catch(oracle.jbo.JboException e)
    System.out.println(" Errore nella Registrazione dell'evento");
    getEventiView1().insertRow(row[id]);
    getTransaction().commit();
    Thanks

    user445503:
    If you need to set a default value dynamically, such as from a sequence, you can override the create() method of your entity, and use oracle.jbo.server.SequenceImpl to access your sequence.
    (in your entity class)
    protected void create() {
    super.create();
    SequenceImpl seq = new SequenceImpl("YOUR_SEQ", getDBTransaction());
    setId(seq.getSequenceNumber());
    Or, you could add a database trigger.
    Hope it helps,
    -Anthony

  • PSE11-Can't Make New Files and Opening Old Files

    I've had PSE11 for a couple of months now and it was working fine about two days ago when i last used it. But today when I opened it up it started to refuse to do anything file related. It won't let me create a new file and it won't let me open any files.
    With the new files I cant even get the dialouge box to pop up to select a size of the file and name. It just runs processes for a couple of seconds and than nothing.
    And with the open files I can't get it to open anything. It won't open pictures, photoshop files, etc. It just sits there like I never gave it a command.
    I all ready checked to make sure the program was up to date. Which it is so I'm not sure what is causing this problem.

    Hey so it magically started working again for a while on its own. I did nothing to it, it just decided to start working randomly. And now its back to not working again. I didn't mess with anything. I didn't even install anything not even a Windows update. It just started working again. And then it stopped just as quickly as it started.
    Though now I can at least get the open command to pop up. But I can't get the actual photos to open or it to do anything beyond that.

  • HT201263 my iPhone is disabled. since im traveling i have no access to my computer to restore the phone. What can I do to at least use the phone again with it's basic functions (make calls, send and receive sms)?

    My iphone is disabled and I'm traveling. What can I do to reset it to at least use its basic functions (make calls &amp; send / receive sms)?

    There is nothing you can do without doing a restore via the recovery mode.  Since you have iOS 7, if you activated Find My Phone in Settings > iCloud, you can login to your iCloud account, https://www.icloud.com from a computer, and then do a remote wipe of the iPhone...that will return it to factory condition and all contents will be erased.

  • I have a problem to get password work right I keep change new password and it said disable

    Hello this is william I having problem with iphone4 the password keep said disable so I change new password and it still said same thing. Like I try to update or upgrade apps. Can u reset it or restart it?

    Contact itunes support

  • Migrate Backups.backupdb Folder to new disk AND MERGING 3 Systems HELP

    Hey everybody. I need some help migrating and merging some old Time Machine backups. The partition on the new drive where I have to move the data is where I've been doing my current TM backups, so it has it's own Backups.backupdb folder.
    I WANT PanGalacticGargleBlasterDisk to look this:
    DESIRED OUTCOME:
    ________________PanGalacticGargleBlasterDisk___GUID PT_________
    Time Machine Partition
    Non Time Machine Data
    Backups.backupdb
    machineA
    machineB
    machineC
    CURRENT SITUATION:
    ________________PanGalacticGargleBlasterDisk___GUID PT_________
    Time Machine Partition
    Non Time Machine Data
    Backups.backupdb
    machineA
    ________________TowelDisk___APM PT____________________________
    Time Machine Partition
    Non Time Machine Data
    Backups.backupdb
    machineB
    machineC
    Constraints:
    • I have no other drives big enough to clone this TM data to.
    Other Notes:
    • All Partitions are formatted Mac OS X Extended (Journaled)
    • I DO have Carbon Copy Cloner
    • I am not terribly afraid to use the Terminal if necessary
    I've had trouble moving the Backups.backupdb folder before, so I'm hoping someone out there understands all these file permissions better than I do. Thanks!

    Thanks. Pondini's FAQ #18 (http://web.me.com/pondini/Time_Machine/18.html) says:
    • You cannot merge two or more sets of backups, even for the same Mac.
    I guess I would have to reformulate my immediate goal as:
    A) Reformat the disk with the older TM data [Backups.backupdb(machineB, machineC)], while
    B) Retaining the "powers and abilities" of those Time Machine backups so I can restore and boot from those systems in the near future.
    That's more important than actually merging the TM backup folders.
    NEW POSSIBLE SOLUTION?
    Can get the data in the Backups.backupdb folders to reside on the same partition for just a little while? For example:
    1. Create a disk image from the partition with [Backups.backupdb(machineB, machineC)].
    2. Move the disk image to the on the same partition as the other Backups.backupdb(machineA) folder partition in non-functional state, NOT as a folder.
    3. Reformat the now empty drive.
    4. Restore the partition that had the [Backups.backupdb(machineB, machineC)] folder in it to some other partition in the future?
    What would I need to check to make sure this works (permissions?, formatting?, PT type?, etc.)
    Thanks for your help!

  • HT4528 how do i get stuff from my icloud after i left the store with my new phone and left yhe old one there

    how do i get my stuff from icoud to my new 5c after i left the store and gave them my old phone

    If you deleted everything from your old phone & logged out of iCloud all you need to do is Activate your new phone & Log In to iCloud..

Maybe you are looking for

  • How to split a graph in two or more pages

    Hi, I would like to know if it's possibile make a graph to be visualized on more than one page (horizontally) In my case I have a query that extracts a lot of results (so I have a lot of points on the X axis), and I'd like to make it easier to read i

  • Cannot install OS (system hangs) on K7N2GM-L

    I've just put together a (mostly) new system.  The system posts OK, but when I try to install either Slackware or Win2k, the system hangs.  Slackware consistently hangs after recognizing the cd drive, with a message about a kernel bug, while Win2k ha

  • Won't Update Apps

    The App Store says that it won't update my apps because they were bought on a different user or because it was refunded or canceled. I am trying to update Pages, iPhoto, Garage Band, iMovie, Keynote, and Numbers so they came with my computer, which i

  • Accidentally deleted History folder in Safari on IPad 4.

    I must have accidentally deleted the History folder from the Bookmarks/Favorites bar in Safari (iPad 4) and I currently have no way of viewing my web browsing history on the actual iPad. Private browsing most definitely is not the problem, as is the

  • Japenese charc not prinitng while downloading ALV  to excel

    hI - I am dowaloading an ALV report to Excel file . But that ALV contains japenese charactres so after downloading to excel . it got converted to cryptic/garbage characters . Please advice