Enable the button only if the line is saved

I have the following requirement in my user interface:

JDev Version - 11.1.1.7.3

A table of applications is visible to the user who has a line 'Add' to add lines. A button additional toolbaar "Publish" is added at the top of the table. This button is active only for lines that are saved in the database. Otherwise, it should be disabled.

Please note that to save the data with a 'Save' button at the top of the page.

Pointers to achieve this will be useful.

You can probably add transitional attribute to your VO, override the Get accessor of the class ViewObjectRowImpl and getEntity (0) .getEntityState () method is used to return the status of the line.

Then add the attribute binding to your pageDef and bind "disabled" property on your button to some EL that test the value of the transient attribute.

Then, set partial trigger button to point to your table.

Dario

Tags: Java

Similar Questions

  • Why you do not enable the line of activation of sms to reduced spending for activation window os

    Why don't you enable the activation of sms line because voice activation line having error did not finish to enter the activation code line was cut

    Activation of the phone is almost always on a toll-free line.

  • Show/Hide button on the line on a tabular presentation depend on the values of line.

    I want to show/hide (or toggle so easy) a button link to page of line on a dependant in a table on the other line values.

    For example if I had a table, built form using the form wizard based on the EMP table with a query: -.

    Select
    EMPNO,
    EMPNO EMPNO_DISPLAY,
    ENAME,
    EMPLOYMENT,
    BISHOP.
    HIREDATE,
    SAL,
    COMM,
    DEPTNO,
    'button' but1
    from EMP

    The column of buttons is used as a link to a page. But I only want to be displayed/activated if the WORK is a "SELLER". Does anyone know how to do this? Or give me any suggestions?

    Another option would be to have a button under the lines enabled/disabled depending on when you click on a line and this line having a JOB "SELLING."

    Thanks, Pete

    Then - under condition - select the exact anchor (+ image) of your select statement (and display it as as a standard report column).
    (Unfortunately) does not allow any conditional display for a link (or a link element) in a tabular form (in the current version, should be a nice improvement however).

  • I just bought the 14 items and I don't see the download button. only for the operating system of the ILO. Help, please.

    I just bought the 14 items and I don't see the download button. only for the operating system of the ILO. Help, please.

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If he continues to not try to use a different browser.

    Download and Installation Help-

    https://helpx.Adobe.com/download-install.html

    PES 10, 11, 12, 13, 14 - https://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-downloads.html

    PE 10, 11, 12, 13, 14 - https://helpx.adobe.com/premiere-elements/kb/premiere-elements-downloads.html

    You can also download the demo version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    Photoshop/Premiere Elements 14: http://prodesigntools.com/photoshop-elements-14-direct-download-links-premiere.html

  • How to hide and show based button if the line is selected in a table

    Hello

    IM pretty new to apex. I use version 4.1. I have a tabular form and I want to do is only have the button Show delete if I select a row in the column [line selector]. Is this possible using a dynamic action? I tried this way without success. Please help or let me know if you need more information.

    Thank you

    Do you mean if the box is checked in the line?

    Assign a static ID for the button Delete, for example MY_DEL_BTN. Search for 'Static ID' in the attributes of the button section.

    If so, do an advanced Click-based dynamic Action and a jQuery selector. Generally, this element is the name "f01" but, sure. Assuming that it is "f01" then your jquery selector would be:

    input[name="f01"]
    

    define the scope of the event live.

    Your dynamic action will trigger JavaScript. (BE SURE TO DESELECT FIRE ON PAGE LOAD). To make sure that you have the jQuery selector right, initially just to put a pop-up message in the JavaScript.

    alert('You Clicked the Row Selector!');
    

    Run the page. Click on the line selector. If you get the noise until you have specified the jQuery selector correctly. Yay!

    Then, assuming the above is correct. You can now determine if all have been selected.

    Now, set it to SELECT FIRE on PAGE LOAD (you want deleting DialogResult.Cancel when you open the page).

    Change your JavaScript like this:

    var checkedCnt = $("input:checked").length;
    
    if( checkedCnt > 0 )
    {
       $('#MY_DEL_BTN').show();
    }
    else
    {
       $('#MY_DEL_BTN').hide();
    };
    

    -Joe

  • Add & Remove button line (also added hidden before the line add)

    I am creating a form with some fixed fields and also have some users change fields to add something, not in fixed fields. I created a button Add and Remove, and the excellent work but I prefer the line is hidden until the Add button is selected. In addition, I can not auto calculate the lines added.

    I'm new and I would appreciate anyone supported

    I have included a link below to show you my form

    Thanks again

    https://docs.Google.com/fileview?ID=0B10U6MT6e83fYmJmOWRkMjktMzEyZC00Yjg3LThlZWEtNmQ2YTk0Y zQ4Y2Y5 & hl = en

    Here is the updated file.

    https://Acrobat.com/#d=1FoAqhMxrzGVnW6jpfkOmg

    In the initialize event of the line Add I'm defining the presence of Row11 property to hidden. When the user clicks the AddRow I checks if the presence is hidden then makes it Visible. Similarly while eliminating the lines, I check if only a Row11 exists, so I hide the line. (You can change if your condition is different) Make sure the Click event code for the buttons.

    To get the value of the amount instead of using the Row11.Amount, you must use "Sum (Row11 [*]. "Amount)"

    I would like to know if that helps...

    Thank you

    Srini

  • I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!

    I need to create a table of contents in iPages but I want only one word for the title, not the line of holes. Or, how can I change the contents of the table? Thank you!

    Yes, you can have a one word title, by assigning a paragraph style title to this one word. No, you cannot change the text in a Table of contents, but you can change paragraph style font attributes (line) and add for example, a head of points between the types of OCD paragraph and page numbers. No part of the table of contents will not provide hyperlinks in exported PDF documents.

    When you look up in the menu bar, you can see the word iPages, or simply Pages. There is no product of iPages.

  • The Back button only allows me to return a page at a time instead of select a previous page from a drop-down list. It is a real problem: someone has any ideas?

    In the previous version of Firefox, I could go back to a previous page by clicking on a part of the previous button which brought up a list of recently visited sites and clicking on one of them, might go back to this page. This installation does not seem to be available in the latest Firefox, and the back button only goes back one page at a time. It's really embarrassing, like,

      it now takes longer to get to an earlier page
      there is no visibility of previous pages visited
      any actions carried out on webpages are undone when going back through them - this does not happen when jumping back several pages in one go.
    

    It is a real problem, I used the old system constantly and cannot continue to use Firefox 4.0 unless there is a way around it.

    Use it to open the history list:

    • Right-click on the back or next button
    • Press and hold the left button of the mouse on the active back or forward button until the list opens

    You can watch this extension:

  • The section start programs frequently used on my disappeared from the menu. The line previously at the top of this section is not there. This happens only on my account. other accounts are OK. How to restore this function?

    The line previously at the top of this section is not there. This happens only on my account.  other accounts are OK. How to restore this function?  IAM operating under an administrator account.  Sailor

    Hello GENEVIEVEWIESENER,

    Thank you for visiting the Microsoft answers community.

    The most likely cause is Corruption of the user profiles.

    Here is an article on damaged the copy of your data in a user profile to a new profile.

    Hope this helps Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Hide the button Delete when no line is marked as a table.

    Hi all

    I have demands, but I couldn't find the right solution:

    1. to hide remove button when no line is marked as a table.

    2. to hide the Apply Changes button when no line is existed as a table.

    For no. 1, I tried the solution of How to hide and show the button if the line is selected in the form of tables , but it did not work.

    Could someone please give some advice?

    I use Oracle APEX 4.2.5.

    Thank you and best regards,

    Troy.

    Hi Troy,

    fair value the scope of the event of dynamic dynamic Action and it works!

    I had to fix your delete action to test the results.

    Kind regards

    Steven

  • I use creative cloud of Adobe Premiere Pro and it does not allow me to drag. In the line of time, only the audio files of the video MXF files. Plays in the video source, but does not allow me to change on the time line with the. MXF files.

    I use creative cloud of Adobe Premiere Pro and it does not allow me to drag. In the line of time, only the audio files of the video MXF files. Video plays in the source window, but does not to drag me and thenedit on the time line with the. MXF files. audio will slide to the time line, but not the video. Interestingly, not later than end of December 2015 it allowed me to change with .mxf files, but no, it won't. Any help out there?

    Neil, get it fixed, I do not have the video channels set correctly on the left

    side of the line of the time. Learn the new adobe; Thank you

    Monday, February 15, 2016 13:20, R Neil Haugen [email protected]>

  • Check the constraint on the table but to apply only to certain lines?

    Hello

    Using oracle 11.2.0.3

    We have table and you want to put a strain of additional validation on a column on the table, but for this constarint check apply only to some lines in the table

    for example, if the line has produced some type of a particular column must always be completed.

    What is the best way to do this?

    Thank you

    Hello

    More simply

    CHECK (some_column IS NOT NULL

    OR product_type! = « X »

    )

    or, depending on the expected results when product_type is NULL

    CHECK (some_column IS NOT NULL

    OR NVL (product_type, 'OK'). = « X »

    )

  • I'm drawing a curved line with the pen tool, but he fills in a solid form.  I want only the line - what I have to change?

    I'm drawing a curved line with the pen tool, but he fills in a solid form.  I want only the line - what I have to change?

    pmreagans,

    Set the fill to zero at the bottom of the Toolbox.

  • Remove the line with alert button

    Hello

    I have a table which can add and delete rows dynamically. An alert must be added to the button delete what I've done.  The works warning, but when you select OK on the alert line is not deleted.

    It would be the right way to accomplish this?

    I'm not a programmer and now wondering if my edit code is wrong or there is an alternative solution.

    Thank you

    Capture.PNG

    This is the code I have for the button Delete.

    Form1. FSE_1.Pre_EX. Buttons. Remove::click - (JavaScript, both)

    CMSG var = "continues with the action underway will remove all entries in cell in this row.

    CMSG += ' \n\nDo you want to continue?

    var nRtn = app.alert (GSMC, 1, 1, 'Question Alert Box');

    if(nRtn == 4)

    {If (Table1._Item.count > 1)

    Table1._item.removeInstance (Table1._Item.count - 1);

    Console.println ("the answer is Yes");

    }

    Another yew (nRtn is 3)

    {/ / No answer}

    Console.println ("the answer is no");

    }

    on the other

    {//Unknown response

    Console.println ("the response was something other than yes/no:"+ nRtn ");

    }

    ------------------------------------------------------------------------------------------ ----------------------------------

    This is the code I have for the button Delete before adding the alert that worked.

    Form1. FSE_1.Day_1.buttons.Remove::click - (JavaScript, both)

    If (Table1._Item.count > 1)

    Table1._item.removeInstance (Table1._Item.count - 1);

    The way I understand how it works at the moment, is that you remove the last line of the table... If you want to delete the line where is the button Delete, you should be removing the instance itself with its index...

    rather than use the following line

    Table1._item.removeInstance (Table1._Item.count - 1);

    You should have something like this

    'this' being button and tell me that you have a subform to remove and add the button

    Table1._item.removeInstance (this.parent.parent.index); the first parent is the subform and the second parent is the line

    I hope this helps!

  • To remove the line on click of a button

    Hi friends,

    I use JDeveloper 11.1.1.5.0.

    I have a table full of 10 lines. I have a delete button. Click on the button I want to delete the selected line.

    The method works well, but compared to the level of the page it will not be deleted immediately.

    If I refresh the page, then it shows that the line is deleted.

    Please help me.

    Thank you

    $@M$

    Add the following two lines in your code before the return of rt;

    this.getEmployeeDetailsVO1().clearCache() ;
    this.getEmployeeDetailsVO1().executeQuery() ;
    

    as for your code below

    ExternalContext ectx =
    FacesContext.getCurrentInstance().getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    HttpSession SessionId = (HttpSession)ectx.getSession(true);
    String Id = (String)SessionId.getAttribute("Id");
    

    You can simply use

    String Id = (String)ADFContext.getCurrent().getSessionScope().get("Id");
    

    And the value in use of session

    ADFContext.getCurrent().getSessionScope().put("Id","YOUR_VALUE");
    

    Let me know if it works for you :)

Maybe you are looking for

  • Battery stopped magic keyboard appear

    I got the magic keyboard because the first one came out a month ago or not and it was working fine until today when my iMac has informed me that the battery was low. So I plugged the connector of the lightning and noted that preferences-keyboard of t

  • Synchronize the analog continuous entry and continuous analog output using the unique PCI6024E data acquisition card

    Hello I want to generate the continuous signal and at the same time I want to read that signal that I generate using a single card DAQ. I want to generate signal and the received signal is synchronized and in phase. I looked at several samples on the

  • Faced with the simple series comms

    Hi all - summer tweak something that should be simple for hours now, so I'll ask for help... I have a RS485 device connected to COM5 via a USB adapter, work at 9600 baud, 0,8,1, no - fundamentals of series. I can talk to the device using the terminal

  • X 201 to screen replacement at 1440 x 900

    Hello I have a X 201 3680 VGU with resolution of 1200 x 800 standard. I want to upgrade to 1440 x 900. Can someone find me the exact reference to get? Cause I have searched for the inet, but couldn't find the right screen.

  • BlackBerry Smartphones Blackberry World Edition duplication of incoming messages

    I am the network admin for my business and I have a user who complains that she is receiving copies of his mail.  According to her, the device worked very well upward to what this past Sunday.  She had been out of the country for two weeks and return