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

Tags: Database

Similar Questions

  • Automatically expand a Hide and Show model region when the Page loads

    Hello

    I work with a Hide and Show region model, and I'm trying to accomplish the following:

    When my Page loads, if a PX_ID is not null, hide it and see the area should be extended automatically.

    I use Apex 4.1.1.

    Any ideas?

    Thank you

    Erick

    Hello Joe,

    Thank you for your response.

    This morning, I was looking for a solution in the forum and I could not find anything. Now, I decided to keep looking for more careful and I found a solution.

    For those interested, check this thead element: Re: hide/show the region

    Basically, I created a dynamic Action with the Code JavaScript: $('.t20RegionHeader') ('img') .children ravishing ();

    Thank you

    Erick

  • Dynamic action to hide and show a button

    Hello

    How to set the dynamic Action on an item Page (P4_DATA)

    When the value is 0, then show the button (P4_BTN)
    When the value is 1, then hide the button (P4_BTN)

    I have a dynamic action that work very well, but only for the display option, does not work for a button


    Thank you

    You must add a handful to the button so that you can access in the Action(make sure that you have #BUTTON_ATTRIBUTES# substitution string referenced in your button template) dynamics.
    in the attributes of the button, specify

    ID = "MY_BUTTON".

    MY_BUTTON is just an example

    "Now, when you choose assigned to the dynamic Action of the elements, you can choose" * selector DOM * "and specify MY_BUTTON"

  • 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).

  • Hide and show region - open if Item not Null

    Hello
    I use APEX 4.0 and can not find a way to get the skin and see the region develop if a Page element has a value (is not Null) in the region, without clicking the sign more. I would like it done automatically based on an item that has a value or not. null or not null. I know how to have always hide it and see the region see the/develop once the shape is present. But if the item is null the region hosts not on the loading of the page, but when an element has the value when the page opens, I want the area to be open / extend without having to click the sign more. I searched the forum and found a large number of threads to have just the Hide and Show open area / develop once the form on the page is open, but not what I need now. Thanks for reading this thread and look forward to a support for this issue.

    Hi Charles,

    I created a dynamic action on page 7, it works as expected.

    This code will only work with your current theme, because the rocker is made according to the css class of the > icon (as you can see in the live action)

    Thank you

  • Lack of "automatically hide and show the menu bar.

    Hi all, I want to hide my menu bar. I watched how disappear - it turns out that the checkbox "automatically hide / show menu bar" is missing. It is supposed to be under "use donkere menubalk en donker Dock. Why is it missing?  Thank you very much!

    Hi Mjappie

    This feature has been added in El Capitan.

    You must update to 10.11.3 to hide and show the menu bar.

  • How to hide and restore iOS apps/files 9

    How to hide and restore iOS apps/files 9

    Awaimer wrote:

    How to hide and restore iOS apps/files 9

    There is no record to hide, they will still be on your home screen.

    You can back up apps into folders, simply pressing app until it wiggles and then move it with another application and a folder will be created.

  • How can I remove the 'Save to Cloud' and 'E-mail' button in the toolbar (user Acrobat DC)?

    How can I remove the 'Save to Cloud' and 'E-mail' buttons in the tool bar? I will never use these and want to disable the toolbar.

    Hi lotarm1949,

    I'm sorry, but these two items of toolbar appears in the toolbar by default and cannot be hidden.

    Kind regards

    Ana Maria

  • Dynamic action - Hide and show interactive report

    Hello

    in the apex community tip http://www.oracle.com/global/de/community/tipps/apex40-dynamicactions/index.html (only in German), there is an example to hide and show a report interactive by dynamic actions.

    The approach described in the article should be case for normal or interactive reports.
    But in my case it works for normal relations. I am not able to update or hide the interacitve dynamic equity report.

    Has anyone had similar experience?

    Greetings
    Michael

    Hello
    You are welcome.

    * It is considered good etiquette to the responses of reward with points (as "useful" - 5 pts - or 'correct' - 10pts). :)
    Thank you
    Logaa

  • Hide and show parts

    Hello

    I use hide and show areas on my page. But now I have a problem. Whenever the page is reloaded, all regions are reduced. Is it possible to ensure that the regions that have been opened, are open again when the page reloads.

    Thanks in advance,

    Bram.

    Hi Bram

    Check this.

    [http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#STICKY]

    See you soon

    Ben

  • How to add and delete custom buttons

    Hello world

    I have two field of custom button with different colors of red and white button.

    And I want to add and remove both button in the same place each other.

    I mean when I click on the red button, red button remove the screen and the same when I click on the white button to remove white button must be appear and red button should appear. Both button must be exposed to the same place.

    Please any idea...

    Thank you.

    public void add (field)
    survey
    IllegalStateException - if the field has already been added to a Manager.

    Public Sub delete (field)
    IllegalArgumentException - if the field to delete does belong to this Manager.

    So check with the field.getManager () function to make it work properly...

  • How do I know how is Administrator and where should I put the password to?

    My computer keeps asking for a password
    I have 3 standard users on my computer & no one is assigned to be administrator
    Cannot install updates because do not know or do not have a password
    How do I know how is Administrator and where should I put the password to?

    Hello

    The manual installation of the operating system on the Microsoft Update Web site updates requires the Office of the operating system to run with administrative rights.

    Please follow the steps mentioned below.

    a. click the Start button.

    (b) in the search box of start, type user accounts and click on user account.

    c. click on Manage.

    d. check which account is designated as administrator account.

    Also check out the links below.

    Why use a standard account instead of an administrator account?

    http://Windows.Microsoft.com/en-us/Windows-Vista/why-use-a-standard-user-account-instead-of-an-administrator-account

    What is an administrator account?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-an-administrator-account

    Change the type of user account

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-a-users-account-type

    Install Windows updates

    http://Windows.Microsoft.com/en-us/Windows-Vista/install-Windows-updates

    Updates: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/updates-frequently-asked-questions

  • I hate the new Windows 7 'show desktop' button on the lower right part! Uggghhhh! boring!

    How to disable the "show desktop" button on the lower right part of the screen? I hate it!

    pus

    Right-click on an empty spot in your taskbar > properties > Taskbar tab >uncheck, use Aero Peek to preview the desktop

  • How to enable and disable, copy or rename the rules via the groovy script?

    A client, we received this question:

    How to enable and disable, copy or rename the rules via the groovy script?

    Foglight 5.7.5

    Hello

    There is this example of support KB

    support.Software.Dell.com/.../99059

    and there is also documentation of Service layer of the administration on the RuleService console.

    Best regards

    Golan

  • Can we apply a createInsert single button for the two master form, details of Table?

    Mr President.

    Can we apply a createInsert single button for the two master form, details of Table?

    I want to just click a button and fields are available in form-Master and details-table.

    As below

    vfdt.png

    Concerning

    Mr President.

    My worm jdev is 12 c

    And I can do your job for you.

    His code

    For any organization that wants to do this job

     public void createVoucherAndVDetailsRow(){
                VoucherViewImpl voucherVO=this.getVoucherView1();
                VoucherViewRowImpl row=(VoucherViewRowImpl)voucherVO.createRow();
                voucherVO.insertRow(row);
                RowIterator iterator= row.getVoucherdetView();
                String voucherNumber=row.getVoucherId();
                NameValuePairs nvps=new NameValuePairs();
                nvps.setAttribute("VoucherId", voucherNumber);
                VoucherdetViewRowImpl voucherdetRow=(VoucherdetViewRowImpl)iterator.createAndInitRow(nvps);
                iterator.insertRow(voucherdetRow);
                }
    

    Concerning

Maybe you are looking for

  • Official froyo version change India

    Hey,. I would ask motorola officials if there is no change in the released rom because earlier, it was JRDNEM_U3_3.4.3 - 33-1 but new JRDNEM_U3_3.4.3 -36-1.7 Thus, people like me who previously flashed when he was on msu 1 month return must flash aga

  • where is my digital display?

    What happened to my digital display? He disappeared. There at least on my end.

  • IMAQ - acquisition of 10-bit images?

    Hi all I am trying to acquire images from our camera acA2000 - 340 km from Basler 10 bits, but it maintains calendar.  Correctly, I create a buffer of 16-bit (Int16) for the acquired image.  However whenever imgSessionAcquire is called, an error(-107

  • I need a driver to use technology mobile broadband prepaid

    My pre paid Virgin needs www.microsoft.com/download/en/default.aspx usb mobile broadband needs to update the driver necessary to locate?

  • No sound on acer laptop windows xp

    I broke the mouse left click on my acer aspire 5110... now, I click on the little metal button to access left click. However, oddly ENOUGH, my sound no longer works... after it's sound card near the mouse?