Insert a new value while the user clicks create insert button

Hi,
I am using jdev 11.1.5
I had created a HD and ln Eo's with corresponding Vo's
I had dragged and dropped as the master-detail relationship
I had dragged and dropped the create insert button
while i click the insert button
The last value must be added by 1 and it should be inserted in the new row
eg:
JlNo      Type
1           CCCC
4           yyyyyIf the user clicks the create insert button it should insert 5(4+1) as the value in new row
can anyone help me..,

Thank you jhon for your reply..,
I will suerly follow ur words if i m havin more than 1 user but in my project i m having only one user so that i think this would be the best one.,
could u pls tell me the solution for this..,
I had used this code in my EOImpl method
    protected void doDML(int operation, TransactionEvent e) {
        if(operation == DML_INSERT){
            RowSet seqForThisEmp = (RowSet) getgljrnlctVO1();
            gljrnlctVORowImpl nextSeqNoRow =(gljrnlctVORowImpl) seqForThisEmp.next();
            Number next_seq = nextSeqNoRow.getSeqNo();
            this.setGjhJrnlNo(next_seq); // In this line we have the value 45120
        super.doDML(operation, e);
    }But after create insert and commit operation in the UI i m having the values as -5565656565650000000000000
pls tell me if there any other solution for this
Edited by: wilhelm wundt on Oct 11, 2011 2:43 AM

Similar Messages

  • How to pass the value that the user clicks on

    I have a bunch of files that i am displaying. If the user clicks on a file I am taking to another page. I want to capture
    the value that the user clicks on as that's the file name.
    I am displaying the list of files in a loop and have a href to the next page.
    the setAttributes and getAttributes do not work as they capture only the last value in the loop.
    Any suggestions what I should use?

    The standard approach is to send a request parameter with the click.
    You are showing the filenames as hyperlinks?
    Then you just have to make the link
    <a href="fileDetails.jsp?fileId=<%= currentFile.getFileId() %>">currentFile.getFileName()</a>You can then use request.getParameter("fileId") to find which link was clicked.
    Cheers,
    evnafets

  • How can I embed a PDF in my Captivate 5.5 project that will open in a new window when the user click

    I put a glossary button in my project. When the user clicks on the button, I want the file to open in a new browser window. This works in preview mode, but not when I publish it. What am I doing wrong?

    I've tried the download three times. It reports that installation was successful, but when I use Firefox I still get only an option to download the .pdf; I still can't read it within the browser. This fix WAS for Firefox 5.0, right?

  • How to terminate or exit a for loop when the user clicks on stop button

    Actually my problem is to stop a loop when i click on stop button.
    example:i have two buttons 'start' and 'stop'
    in start buttom i wrote a for loop as
    dim i as integer
    For i=1 To 100000
    print i
    Next
    when i click on start buuton it prints 'i' value up tp 100000.
    my question is when i click on 'Stop' button the for loop has to terminate or Exit from the  loop and should stops the execution.
    Is it possible to termianate or Exit the 'for loop'
    PS.Shakeer Hussain
    Hyderabad

    I am unable to stop the loop and application not at all allowing to Press the Stop button.
    It seems like Hung, any advise ?
    Private Sub btnStart_Click(sender As Object, e As EventArgs) Handles btnStart.Click
            btnStop.Enabled = True
            btnSelectFile.Enabled = False
            btnStart.Enabled = False
            btnStop.Focus()
            Dim strFileName As String = txtFileName.Text.ToString
            Dim strLineText As String
            If System.IO.File.Exists(strFileName) = True Then
                Dim objReader As New System.IO.StreamReader(strFileName)
                While objReader.Peek() <> -1 And stopclick = False
                    strLineText = objReader.ReadLine()
                    MsgBox(strLineText, MsgBoxStyle.Information)
                    Application.DoEvents()
                    Thread.Sleep(My.Settings("strDelay") * 1000)
                    'System.Diagnostics.Process.Start(My.Settings("strFireFoxLocation"), strLineText)
                End While
            End If
        End Sub
        Private Sub btnStop_Click(sender As Object, e As EventArgs) Handles btnStop.Click
            stopclick = True
            btnSelectFile.Enabled = True
            btnStart.Enabled = True
            btnStop.Enabled = False
        End Sub
    Raman Katwal
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to open a new IE page when user clicks on a button or link

    Hi Experts,
    I have created WD program which fetches data from R/3.
    I have to create a link or button on the WD program. When the user will click on the link, another IE page should open. Some processing will be carried out by WD. The result of WD processing should be displayed in this new IE page.
    Regards,
    Gary

    Hi Gary,
    You need to create a seperate window and embed a new view in it. and yeah for accessing that window you need to create one apllication also which is connected to this window.
    Then in the event handler of the button's click action write the follwing code:-
    String deployableObjectName =
                   wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
    try {
                   // Get deployable object part of target application.
                   // Precondition: assume, that other application belongs to the same
                   // Web Dynpro Project (Deployable Object)
                   WDDeployableObjectPart deployableObjectPart =
                        WDDeployableObject.getDeployableObjectPart(
                             deployableObjectName,
                             <window name>,
                             WDDeployableObjectPartType.APPLICATION);
                   urlToTargetApp =
                        WDURLGenerator.getWorkloadBalancedApplicationURL(
                             deployableObjectPart,
                             UrlParam);
              } catch (WDURLException e) {
              } catch (WDDeploymentException e) {
                              IWDWindow win1 =  wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlToTargetApp,"Ouput");
    win1.show();
    This will open a new window and then in the wddoinit of the new window's view you can execute the bapi and display the content accordingly.
    Regards,
    sarbjeet Singh

  • Need an ARRAY of the values for the user to see the array values

    how would I display the values to the user in an array?????
    for all three loans in my java code
    import java.text.*;           //20 May 2008, Revision ...many
    import java.io.IOException;
    class memortgage     //program class name
      public static void main(String[] args) throws IOException
        double amount,moPay,totalInt,principal = 200000; //monthly payment, total interest and principal
        double rate [ ] = {.0535, .055, .0575};          //the three interest rates
        int [ ] term = {7,15,30};                        //7, 15 and 30 year term loans
        int time,ratePlace = 0,i,pmt=1,firstIterate = 0,secondIterate = 0,totalMo=0;
        char answer,test;
        boolean validChoice;
        System.in.skip(System.in.available());           //clear the stream for the next entered character
        do
          validChoice = true;
          System.out.println("What Choice would you Like\n");
          System.out.println("1-Interest rate of 5.35% for 7 years?");       //just as it reads for each to select from
          System.out.println("2-Interest rate of 5.55% for 15 years?");
          System.out.println("3-Interest rate of 5.75% for 30 years?");
          System.out.println("4-Quit");
          answer = (char)System.in.read();
          if (answer == '1')  //7 yr loan at 5.35%
            ratePlace = 0;
            firstIterate = 4;
            secondIterate = 21;
            totalMo= 84;
          else if (answer == '2') //15 yr loan at 5.55%
            ratePlace = 1;
            firstIterate = 9;      //it helps If I have the correct numbers to calcualte as in 9*20 to equal 180...that why I was off -24333.76
            secondIterate = 20;    //now it is only of -0.40 cents....DAMN ME
            totalMo = 180;
          else if (answer == '3') //30 yr loan at 5.75%
            ratePlace = 2;
            firstIterate = 15;
            secondIterate = 24;
            totalMo = 360;
          else if (answer == '4') //exit or quit
            System.exit(0);
          else
            System.in.skip(System.in.available());               //validates choice
            System.out.println("Invalid choice, try again.\n\n");
            validChoice = false;
        }while(!validChoice);  //when a valid choice is found calculate the following, ! means not, similar to if(x != 4)
        for(int x = 0; x < 25; x++)System.out.println();
        amount = (principal + (principal * rate[ratePlace] * term[ratePlace] ));
        moPay = (amount / totalMo);
        totalInt = (principal * rate[ratePlace] * term[ratePlace]);
        DecimalFormat df = new DecimalFormat("0.00");
        System.out.println("The Interest on $" + (df.format(principal) + " at " + rate[ratePlace]*100 +
        "% for a term of "+term[ratePlace]+" years is \n" +"$"+ (df.format(totalInt) +" Dollars\n")));
        System.out.println("\nThe total amount of loan plus interest is $"+(df.format(amount)+" Dollars.\n"));
        System.out.println("\nThe Payments spread over "+term[ratePlace]* 12+" months would be $"+
        (df.format (moPay) + " Dollars a month\n\n"));
        System.in.skip(System.in.available());
        System.out.println("\nWould you like to see a planned payment schedule? y for Yes, or x to Exit");
        answer = (char)System.in.read();
        if (answer == 'y')
          System.out.println((term[ratePlace]*12) + " monthly payments:");
          String monthlyPayment = df.format(moPay);
          for (int a = 1; a <= firstIterate; a++)
            System.out.println(" Payment Schedule \n\n ");
            System.out.println("Month Payment Balance\n");
            for (int b = 1; b <= secondIterate; b++)
              amount -= Double.parseDouble(monthlyPayment);
              System.out.println(""+ pmt++ +"\t"+ monthlyPayment + "\t"+df.format(amount));
            System.in.skip(System.in.available());
            System.out.println(("This Page Is Complete Press [ENTER] to Continue"));
            System.in.read();
    }

    skull_innocent wrote:
    whooooooo...dang....just tell me nicely .
    Sorry.
    I thought that this question I submitted in the wrong area previously
    There are better ways to correct me in my errors for posting
    I am sorry.Okay, no harm done.
    I hope that you understand that a major beef of contributors here is to spend time answering a question, only to later discover that somebody else has posted a similar answer in another thread. Hence the annoyance at crossposters.
    In the future, if you think you've posted in the wrong forum, or if for whatever reason you decide to post in multiple forums, pick one thread as the "main" one and provide a link to it in the others.

  • How to mask the actual value from the user

    Hi,
    I am using Jdev 11..1.1.6.
    I created a table with query panel using a VO based on SQL.
    In one of my search criteria i need to show the values to the user as 1,2,3 in a Drop down.
    if user select 1 and clicks search i need to send different values for that particular column. i.e i dont want to show the actual value passed to user.
    Please some one guide me how to achieve this.
    Thanks
    Siva.

    Hi Arun,
    thanks a lot for the reply.
    Am actually new to ADF.
    Can u please explain for masking.
    i have created the LOV with mask value but i cant able to understand where this actual list is correleated with the mask value.
    A little more explanation could be very useful.
    Regards
    Siva

  • Can I pause my project when the user clicks?

    Hello all,
    I am working on a project using Cp4.
    My project plays automatically without user interaction.
    I need project to be paused when the user clicks on a clickbox at run time & it should play when the user again clicks the same clickbox.
    I can pause the project by adding a clickbox and applying the property "pause the project until user clicks.
    But it must be a user wish interaction whether to pause or play.
    Is that possible ? How could I make my work done ?
    Regards,
    Kartik.P

    Hello,
    I tried it out and it works all right. If you do not want a button, you can also replace this by a click box (that is invisible), perhaps covering up the whole slide and instruct the user just to click on the slide to pause or to 'un'-pause.
    As for the construction of the Advanced action (do have a couple of tutorials, but they are for CP5):
    Open the dialog box from Project Actions
    Be sure to be on the tab Advanced Actions and choose Create a new action from the dropdown list
    Name the action
    Double click on the first statement, it has to become red
    Use the spacebar to open a list, and choose Assignment
    From the first dropdownlist choose Variable rdcmndPause
    From the second list (after the =) choose Value
    Type in 1 for the value
    From the third list choose the minus sign
    From the fourth, choose again Variable and from the list choose rdcmndPause
    Save the action
    It is a bit clumsy, but the result should look like this:
    Lilybiri

  • Can I insert a new text at the cursor's position In Formatted-Text-Edit?

    Hi Everyone,
        I am doing a task to enhance Formatted-Text-Edit,
        The task's goal is: simultaneously edit/display text and image.
        I decide to use Formatted-Text-Edit and Formatted-Text-View to realize the task.
        In Formatted-Text-Edit, user can edit the text and input URL for image,
        In Formatted-Text-View, the text and image can be displayed simultaneously.
        I add a button "Insert Image" besides the Formatted-Text-Edit,
       This is the key point:
       When user click the button, I want to insert a new text(URL of the image) at the cursor's position in Formatted-Text-Edit,
       But how can I get the cursor's position, and insert a new text at the cursor's position in FTE.
       Can anyone give me some suggestion or solution?
       Many thanks in advance.
    Best Regards,
    Derek

    I don't believe that you can get the cursor position yet with the FormattedTextEdit UI element. The best you could do currently is to place the insert at the end of the current text.
    Note duplicate thread/question to;
    Set cursor on the table column inherited with text edit UI element
    Please don't double post your questions in the forum.

  • When user clicks on "Like Button," the counter increases but nothing shows up showing the user recommends my site to their friends. What did I do wrong?

    When user clicks on "Like Button," the counter increases but nothing shows up showing the user recommends my site to their friends. What did I do wrong?
    I used the iframe code from Facebook's "Like Button" site; and inserted the code in the html widget popup box, then positioned it where I wanted it on my page and published. It looks fine (though I had to add "http" before my url to get it to show up).
    So, when a user clicks on button, a pop-up opens asking for Facebook password. When I (the user) enter a password, nothing happens after that. I thought the idea was that a user would be able to show their friends that they like my website. After I entered my password in pop-up after clicking on "Like" I went to my facebook page (a company page) to see if it showed that I (the user that clicked on "Like" on iweb) recommended the website. But nothing showed up. I thought maybe it was because Facebook associated my password as the admin for the Facebook page so didn't count it. But a friend tried it and same thing happened. I went back and on one page I put in another facebook code for a combo Like/Send button. It shows up but acted the same as the regular Like button.
    Questions:
    1. Is this the way the Like Button is suppose to work? Only benefit of Like button being that it just counts the clicks on the Like button and does NOT let users share their recommendation with their friends?
    2. If it's suppose to let users share their "Likes" with their friends, what did I do wrong? There were three types of code but in reading discussions, they all say to use iframe. (I used the first choice which I think was html for Javascript SDK and put that in my HTML Snippit box and the Like/Share button showed up on my iweb page next to the facebook icon and the words "likes this" but when I click it, I don't see instructions that it's sending my recommendation to my friends.)
    I must have done something wrong, but can't figure out what. Does anyone know? If the only benefit of the Like Button is the counter, it doesn't seem worthwhile.
    Thanks to anyone who can figure this out!  My website is couponsforfun.com

    You want something like this?
    http://home.wyodor.net/demoos/facebook/
    The send button sends the link to their friends in the address field with a message.
    They recieve a message in the inbox.
    There's no post on a page.
    If they want that, then they should share the link themselves.
    Perhaps it's best to study what facebook has to offer and how it works instead of guessing what it is supposed to do and be disappointed.

  • BAPI to insert a new row in the MCHA table

    Hi all,
    I am in search of a BAPI to insert a new row in the MCHA table... with the fields of the materail, plant and batch values.
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    explore BAPI_BATCH_CREATE

  • BAPI to insert a new row in the AUSP table

    Hi all,
    I am in search of a BAPI to insert a new row in the AUSP table... with the fields of the object and
    characteristic values.
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    hi,
    from best of my knowledge  here is list of bapi through you can insert ausp table.
    check it.
    CLSE_SELECT_AUSP
    CLVF_INSERT_AUSP
    BAPI_CLASS_CREATE
    C14K_AUSP_CHANGE_VALUE
    CLSE_SELECT_AUSP
    CLVF_UPDATE_AUSP
    C14K_AUSP_ADD_UPD
    BAPI_CLASS_CREATE
    regards,
    vipul

  • Bookmark: default filters lost when adding a new value on the filter

    Dear all,
    Sometime I need to go back to a bookmark and add extra GL accounts /or GL hierarchy node but I found that is often loses the original selection when I click the transfer button after select the new GL account/or GL hierarchy node. Is there any way to add a new value to the existing filter?
    Best Regards

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi<br>
    1. Open the bookmark<br>
    2. Click on any field from the context menu and create another bookmark<br>
    3. Put additional filters and press the transfer button<br>
    4. The data will be displayed for (old + new) selections<br>
    5. Click on any field from the context menu and create another bookmark. Make a note of it<br>
    <br> Step 2 should not really be required but I'm assuming that your internet session was expired or similar problem. Please try this and let us know what happens.<br>
    <br>
    Hope it helps.<br><br>
    Cheers Abhijit<br>
    </FONT><FONT FACE = "Verdana", Font Color = "Red">
    removed
    </FONT>

  • How to insert a new row in the middle of an set of rows

    Hi
    How to insert a new  row in the middle of an set of rows ? and How to Reset the line id after the new row added ?
    Regards,
    Sudhir B.

    Hai,
    just try this,
    Instead of using omatrix.Addrow(1,-1) use like
    omatrix.AddRow( RowCount , Position)
    RowCount
    The number of rows to add (default is 1)
    Position
    The position of the new rows (0-based; default is -1, meaning append row to the end)
    After adding rows in matrix For, sno.
    for i=1 to omatrix.visualrowcount
    otext=omatrix.getcellspecific("columnid",i)  '--where columnid is the unique id of the sno column
    otext.value=i
    next i
    Hope this helps you.
    Thanks & Regards,
    Parvatha Solai.N

  • Open a new window when a user clicks a button

    Hello!!
    I have the following problem, I have a table with a button, and when the user clicks the button, I want to open a new window, I don't know how to set the button so that it opens another window...
    Does anybody have an idea of how to do this??
    thank you in advance

    Hi,
    Following thread may help you
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=53654
    MJ

Maybe you are looking for

  • Pc guy to imac

    like on a PC can one clean up files on a imac? or no need?

  • Open iMovie PlugIns

    I just downloaded a couple of SlickSampler plugins. One is a dmg.bin file, the other is a img.bin file. I've read somewhere that Safari will open these after the download is complete, but I have already downloaded them with Camino. How do I open thes

  • BEx Broadcaster Error

    An active RFC server could not be found  Error occurred during processing of framework class CL_RSRD_PRODUCER_EXCEL, type PROD   Processing setting MERR_TEST completed with errors   Job step for user XXXXXXX, language EN ended with errors   Any idea

  • Mplayer problem after pacman -Syu

    Hi everybody after i did an upgrade, mplayer started to have problems, the video shows fine, but the sound is choppy almost unrecognizable, i have tried reconfiguring my sound driver with alsaconf and i delete my .xine file but it still the same i al

  • Is there any way i can use something  that uses uses power pc

    is there realy any possible way to use something that has power pc on lion