Clicking "create insert" button issue

When we click on the "Create Insert" button, it adds a new row for us to enter but also gives the "you must enter a value" message for the mandatory fields even though we have not clicked "commit" button yet?
How do we avoid this please?
Using jdev 11.1.1.3

My layout looks like this.
Top it displays the dept attributes in "read only" table format - listing
Bottom displays the details of the row at the top. Here we can insert/edit data.
If I set "immidiate=true" in the "Create Insert" button, it copies the current row attribute and populates in the form fields. It needs to be empty though.
Also my EO/VO is based on an updatable view
Edited by: 880887 on Aug 25, 2011 6:34 PM

Similar Messages

  • 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

  • How to Commit before Insert Row when Press Create Insert Button ?

    Hi all;
    I'm Using JDev 11.1.1.2.0
    How to Commit before Insert Row when Press Create Insert Button in ADF11g?
    <af:commandButton actionListener="#{bindings.CreateInsert.execute}"
    text="CreateInsert"
    disabled="#{!bindings.CreateInsert.enabled}"
    id="cb8" />
    best regards;

    You need to do a custom method eather in managed bean or in Application module to do that.
    in managed bean it would be something like:
    public void CommitAndInsert(ActionEvent actionEvent) {
    OperationBinding opCommit = ADFUtils.findOperation("Commit");
    opCommit.execute();
    OperationBinding opCreateInsert = ADFUtils.findOperation("CreateInsert");
    opCreateInsert.execute();
    In page bindings Commit and CreateInsert must exist
    then the button actionListener will be
    <af:commandButton actionListener="#{backing.CommitAndInsert}"

  • Create Insert - Cursor must point

    Hi!!
    I am using jdeveloper 11.1.1.5
    I had created an af:table with GlJrnlLnVO I had also dragged and dropped CreateInsert which performs it own operation.
    While the user clicks create insert in my page it usually inserts at the first line!!
    I need to point the cursor where it inserts
    In my scenario consider the table 150 records i had scrolled down to last record [In this we can 10 records at a time]. When i click create insert button it inserts at the first line. I need to scroll up to first line where new row is created.
    Instead it must automatically naviagtes to the row where new record in created while pressing create insert

    From the property inspector change the DisplayRow property of your table to selected

  • Record inserting twice on insert button trigger

    hi developers,
    I am designing a simple form whilch contains the datablock in tabluar form and showing the data from the table to which the data block is connected...
    i have an button INSERT ....when clicking the insert button the record should be inserted....i wrote the trigger as WHEN - BUTTON-INSERTED
    insert into anand(empid,empname) values(:anand.empid,:anand.empname);
    commit_form;
    both data block and table name is anand oly.
    when i trigger the insert button the record is inserted twice.....
    how to resolve this issue....

    Hi,
    You can set the Current Record Status to QUERY_STATUS before calling COMMIT_FORM built-in. So the code will be
    insert into anand(empid,empname) values(:anand.empid,:anand.empname);
    SET_RECORD_PROPERTY(:SYSTEM.CURSOR_RECORD, 'ANAND', STATUS, QUERY_STATUS);
    commit_form;Hope this helps.
    Regards,
    Manu.

  • Usage of insert button in Std ALV toobar (OOPs)

    Hi Experts,
    I have developed an ALV(oops) with cl_gui_alv_grid. I have the std toolbar and do NOT want to disable it.
    what i need is when i click on insert button in std toolbar, i need to make a field editable.
    The func code for insert is &LOCAL&INSERT_ROW ( see in e_object->mt_toolbar).
    I am unable to trap the func code. i tried to make use of this func code iand use it in the handle_toolbar method (e_ucomm). Its not going into debugging mode even when i set break point.
    i want to write code as:
    when '&LOCAL&INSERT_ROW'.
         further validation.
    Can someone help me how to get the sy-ucomm and do my validation?
    Thanks
    Dan

    Hi
    You can achieve this by defining Style Table for Cells.
    For eg:
    Begin of <str>
      include structure mara.
        celltab TYPE lvc_t_styl,
    end of <str>
    data: lt_tab type table of <str>,
             wa like line of lt_tab,
            lt_celltab TYPE lvc_t_styl,
            ls_celltab TYPE lvc_s_styl.
    LOOP AT lt_tab INTO wa.
    IF matnr IS NOT INITIAL.
           ls_celltab-fieldname = 'MATNR'.
           ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
           INSERT ls_celltab INTO TABLE lt_celltab.
    endif.
    INSERT LINES OF lt_celltab INTO TABLE ls_profile_tabval-celltab.
    endloop.
    Thanks
    Nisha

  • How to send a predefined email after clicking on an Insert button in a Form?

    Hi,
    I created my form ( three fields) where I enter a three values.
    I want an email be sent every time new values are entered and the insert button clicked.
    Do you know a way on how to do it please?
    Thanks
    Khaled.

    Hi,
    I do not know of a way within Portal to automatically send an email, but the database has a utility (utl_smtp) that will allow you to do so very easily. You can use Portal to insert your data and then put a trigger on your table that fires after the data is inserted that calls a procedure that will send the mail.
    Here is an example of a procedure that I have used to send mail (you can get all of the info on utl_smtp in the Oracle docs). I have a Portal form that allows the user to input three values and once they click 'insert' and the data goes into the table, I have a trigger that fires 'after insert' and runs this procedure:
    PROCEDURE send_register_mail (sender in varchar2,
    email varchar2,
    date_of_class date)
    IS
    mailhost VARCHAR2(30) := 'my.mailserver.com';
    mail_conn utl_smtp.connection;
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, email);
    utl_smtp.rcpt(mail_conn, '[email protected]');
    utl_smtp.open_data(mail_conn);
    utl_smtp.write_data(mail_conn, 'Subject: Platform Training registration request'||utl_tcp.crlf||'Content-Type:text/html;'||utl_tcp.crlf||utl_tcp.crlf);
    utl_smtp.write_data(mail_conn, sender||' would like to attend the POC training scheduled for '|| date_of_class);
    utl_smtp.close_data(mail_conn);
    utl_smtp.quit(mail_conn);
    EXCEPTION
    WHEN OTHERS THEN
    -- Handle the error
    htp.p('There was an error processing your registration. Please contact the site administrator');
    END;
    Hope this helps.
    -melissa

  • Can i create a button that allows users to insert a line into a table if neede more space

    if so how in step by step please and thank you

    Hi,
    In Acrobat Form, you create a hidden Text Field which will only get visible on a Button click for inserting additional text.
    Regards,
    Anoop

  • When a third party program creates a new Google calendar event using a http link I cannot click the save button in Firefox 9.01 or 10b2.

    I use a TV listings program called DigiGuide. This has a script that opens a new Google Calendar event page in my browser for a specified TV program with all fields already completed. I then just have to click the SAVE button on the Google Calendar site to save the event - but since updating to 9.01 from 8.xx this button and others (Discard, Search) has no effect, although the cursor changes when over the button as if it recognised a link. Opening the same page in Chrome works fine. I have also noticed that Calendar's other buttons (e.g. next/previous period) can stop working on the main Calendar page, which I have as a pinned tab - in this event navigating away from Calendar and back again regains that functionality. The issue persists in Firefox 10b2.

    Further investigation reveals this only happens when the event is created from within WP native calendar app and disappears when I make an edit to the event in any other calendar client including Google web. So a more appropriate description of the problem would be:
    "Native calendar app keeps subtracting 1h off a Google calendar event on EVERY edit"
    Create an event at 2013/07/17 15:00 in WP native calendar app. Result: Event shows as 2013/07/17 15:00 in the calendar app for a few seconds, then updates itself to 2013/07/17 14:00.
    Edit the event title and save in WP native calendar app. Event time moves by -1h again to 2013/07/17 13:00.
    Edit the event title in Google web calendar.
    Subsequent edits in WP native calendar do not mess up the time any longer. If I fix the time to what I originally intended (2013/07/17 15:00) in WP native calendar app, it stays there and shows correctly in all previously mentioned calendar viewers.
    I just learned that Lumia 925 was released with GDR2 update pre-installed. This update is only now being made generally available. If the issue is secific to the CalDAV implementation in GDR2 rather than specific to my phone only, this would make a lot of angry people. I hope I'm wrong on this though as it's an extremely frustrating problem.

  • Display Autonumber from Access Database when click insert button

    I have an application that displays all the customers in my Access database. The primary key is an Autonumber that Access generates.
    How can I display the autonumber that Access generates when I click my insert new record button?

    The generated autonumber can be retrieved with a SELECT @@IDENTITY which is the same syntax as in SQLServer. When this statement is executed it is effectively asking for the last 'identity' value seen on the current connection which will be the ID of the row you just created with your INSERT statement.

  • Creating a button for inserting into a table

    What I can't do, because I've never needed to, is to create in a page (where I have a Interactive report) a button that when is clicked performs a simple sql (for example an insert into a table using some page item values).
    How can I do it?
    Thanks

    Here are some of the steps:
    1) Create the button.
    2) Then right click on the button name and select Create Dynamic Action
    3) Give the DA a name, click next
    4) On the "When" Step, Event should already be "Click" and the button name should be filled in
    5) For Condition, you would have a condition for when you want the button display.  Say, if your page items have a certain range of values then display this button.  No condition means the button is always displayed.
    6) For the "True Action" Step, for Action select "Execute PL/SQL Code"
        [There are other ways to do this, but this is straight-forward for me.]
    7) The in the PL/SQL Code block enter say:
    Begin
      INSERT INTO EMP (EMPNO, ENAME, HIREDATE)        
              VALUES (:P6_EMPNO, 'MARK1970', :P6_HIREDATE);
      COMMIT;
    END;   --- You would likely make them all page item variables
    8) Here the part I'm not 100% sure of.
        For "Page Items to Submit", name the page items used in YOUR QUERY -- in my example these are  P6_EMPNO,P6_HIREDATE   (Note no use of & or : or . here)
        Hmm.  Start by putting nothing in the "Page Items to Return".   If that fails, then try the same page items  P6_EMPNO,P6_HIREDATE there as well.
    [ I'm too lazy to go run this down at the moment.]
    9) I think that's it.
    Howard

  • I am trying to create a button in flash that will display 4 separate images at the same time when clicked.  I can't get the images to stay on when I take the mouse of the button.  I need the actions script code to make this happen.

    I am trying to create a button in flash that will allow the user to click on the button and 4 separate images show up at the same time.  I can get the images to appear when I click the button but they will not stay on the screen.  I need to know what code I use to make the images stay once the button is clicked, then I need to know exactly where I place that code.  It does not appear to be possible to add the action code to the buttons layer since each time I add a new layer I just get another "up" "over" "down" and "hit" line.
    Thank you in advance
    AP

    It is not clear how you are trying to realize this from your description.  If you are trying to create this within a button symbol it will not work.  Explain your approach and if there is code involved, show what you have so far.

  • I have created an interaction to show 7 groups and 7 clickable objects. Once all are click the Next Button is show. How can you make that work if you want to embeded the SWF just created but show a button in a master Captivate?

    In flash you can have a shell that has the navigation and some button in the shell are not activated until all clickable objects are clicked.  I am not a flash programmer but it was related to using the path of shell and the sub-project.
    Can anybody help me on that.
    I would like to create Captivate interaction that you can just embedded in a Shell captivate project.
    Do I need to set variables at both levels (Global variable. 

    Hello Lieve, That is the screen shot of my custom interactivity, when all labels are clicked the Continue button will be shown because there is a conditional validating if all Labels have now a value of 1. What I am trying to achieve is to create an interaction where where the continue button (an the back button would reside in another Captivate project. This way there is no reprograming required or use of share-actions.  Everytime we use a similar advanced action or a shared action we have to make sure the object name in the advanced actions or conditional actions are not the same.  I trying to make it a bit dump proof for somebody that does not know any thing about advanced  action and just reuse the label interaction in may projects.  (The only thing they would change would be the image and the content of the label.
    Do you thing I going in the right direction.  (As I said before I have custom javacript in Captivate 5.5) to unlock un button that was part of the LCMS ForceTen). I belive the word .this was part of the object path in the JavaScript.  Can we hide and show a Captivate button.
    I have embedded other Captivate animation in a Master Captivate but the objets were not talking to each other. (You can see a sample http://www.youtube.com/watch?v=Erm4_qdybiA&feature=youtube_gdata). In that sample the continue is always there and can be click anytime.  The 3 steps animation has been done as another project and embedded in my main captivate.  I would like to implement a solution where a my 7 labels have to be clicked in the subproject before showing and enabling the Continue button.
    I hope my explanation is clear enough.

  • I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 on the page Am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I have Pages 09 and I have  created a business card using the template but can't figure out how to duplicate it to the other 9 spaces on the page. I am and sure I am going to look daft coz its only the click of a button but I can't work it out Thanks

    I do the following: Hold down the command key and highlight all the items to be reproduced. Then hold down option and drag the items from the first to each subsequent card.

  • "Create Action" button not show in the control issue screen

    Hi All,
    When I access update issue screen and want to assign person I cannot found "Create Action" button to do this, Why? and how do I show this button?
    Thank you.

    Check the Menu & functions used for this responsiblity, at the same time check for the personalization on this page

Maybe you are looking for

  • How to Find the XML Tag in indesign

    HI!!<br /><br />We are working with XML work flow in indesign. In indesign how could we find the XML Tag in indesign.<br /><br />Example::<br />In the Below list we could have to find the xml tag <chapter> in story editor or in the main text frame in

  • How to write POJO for XML file.. i do not want to use JAXB or any other tec

    How to generate POJOs for the specific xml files. Each XML file will have elements name with Type. Which in turn related to some other xml file For example student.xml <student name"mystudent"> <studentname type="firstname"/> <studentname type="first

  • How to define a persistant queue in glassfish v2.x

    Hi Everyone, I just wanted to ask how to define a persistent queue in glassfish v2.x. Basically I want that, if there are un-consumed messages in the queue and the goes goes down, the messages will still be there once the queue comes up. I haven't se

  • AA - Rounding method in ordinary depreciation

    Hello everyone! I would like to know if the rounding method for asset value can be changed by configuration. For example, looking on the Asset Transaction part, we have on the acquisition that it received the amount of $ 516,81 by the Transaction Typ

  • How do I return to the top of a while loop?

    I have a while loop running through a file. If some criteria in the line produces and error I'd like to return to the top of the loop and process the next line. I'd rather not nest everything in if's because it tends to make code 'downstream' very in