Hide the button Delete line table

I have a table with 1 visible line and line 2 which appears when you click the button "add a new line. If the user clicks on the button 'Remove last row', the last row is deleted. I want the button 'Remove a last line' will be visible only when there is more than one visible line.

This script does not work:

  
if (Page1.Subform2.Table1._Row2.count =< 1){
 this.presence = "visible";
}
else {
 this.presence = "invisible";  
}

Hello

Is this a fragment of code to the click event of the button 'remove last row'?, I think you just have to exchange the "=<" to=""><=", this="" should="" have="" given="" you="" a="" syntax="" error,="" or="" is="" this="" just="" from="" getting="" the="" code="" into="" the="">

In any case, try this in the button click event.

Page1.Subform2.Table1._Row2.removeInstance (Page1.Subform2.Table1._Row2.count - 1);

If (Page1.Subform2.Table1._Row2.count<=>

{

This.Presence = "invisible";

}

and this in the Add button click event.

Page1.Subform2.Table1._Row2.addInstance (true);

If (Page1.Subform2.Table1._Row2.count > 0)

{

DeleteLastRow.presence = "visible";

}

Bruce

Tags: Adobe LiveCycle

Similar Questions

  • Hide the button Delete

    Hello

    In the search based on a condition page hide the SR41M remove to hide a button Delete?

    Knockaert

    Hello

    According to the said AJ you can also do by PPR, but for your req have PPR need you can do it by simple eassy and swuthcerRN only.iss.

    Steps to follow:

    -first make fasle made for existing delete btn
    -create a region of switcher
    -under the switcherRn create 2 images DeleteEnbale and DeleteDisable
    -the value CSSStyle:deletenabled.gif and deletedisabled.gif
    -in writing method of decoding search query

    Decode(coloumName,'y','DeleteEnbale','DeleteDisable') SwitcherRN

    -to test the success of the vo.
    -then map it on property viewattribute of the switcherRN in the SwitcherRN attribute.
    -Compline and run it.

    Let me know in case of any error

    Concerning
    Meher Irk

    Published by: Meher Irk on October 27, 2010 05:28

  • 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

  • How to hide the buttons ' delete this site "/" detach this site "of my page newtab shortcuts?

    Hi, I was wondering if it is possible to remove the buttons on my top pinned sites that are new tab on my page. I use page tab as my home page and that you customized to have selected 12 best sites of my choice pinned it. However sometimes I accidentally press detach it or Remove button in the corners of these windows when I try to click on the page. Is it possible to remove these buttons or do a warning before they are automatically deleted with a single click?
    Thank you!

    Hello

    1. Install Stylish and restart Firefox when prompted.

    2. Click on the Firefox button or the Tools menu and select Add-ons.
    3. In the Add-ons Manager, click the Styles of the user on the left category.
    4. Click on the writing of a new Style of button at the top. Paste the following text in the text box, name the style, and then click the "Save" button.
    @-moz-document url("about:newtab") {
    
    .newtab-control-pin,
    .newtab-control-block {
      display: none !important;
    }
    
    }
  • deletion line causes the error after clicking on the button Delete: oracle Apex 5.0

    helloo...

    Use: Under shape whenever I checked and click on Remove button works fine.

    According to the need on my project, I took a default editable TEXT FIELD. Now, I did this TEXT FIELD on the SCREEN only.

    so now if click the button Delete after checking the check box I get below error.

    Session state protection violation:

    This can be caused by manually editing the protected element p11_total.

    Thank you

    Pranav shah

    Hi Dominique,.

    Pranav.Shah wrote:

    helloo...

    Use: Under shape whenever I checked and click on Remove button works fine.

    According to the need on my project, I took a default editable TEXT FIELD. Now, I did this TEXT FIELD on the SCREEN only.

    so now if click the button Delete after checking the check box I get below error.

    Session state protection violation:

    This can be caused by manually editing the protected element p11_total.

    Thank you

    Pranav shah

    Change your display-only item and do save the State of session No.

    or create the sample on apex.oracle.com and share credentials with us.

    Kind regards

    Jitendra

  • Override the default behavior of the button Delete of list manager

    Hello

    Everyone please help. I'm trying to override the default behavior of the button Delete of list manager. The first thing, I want to restrict users to select only one option from the list to delete; meaning don't allow multiple options for users to remember. Before removing the selected option in the list; I want to perform a Javascript/AJAX validation on the database to check if the user has permissions to remove the option from the list. If the user has privileges simple delete option selected in the list. If the user does not have privileges and then draw the attention of the user with a message "not authorized...!  and this should occur when the user selects the option in the list to the list manager, and then click Remove from the list manager.

    Remove list manager of the shutter release button of the function 'deleteListElement ($x ('P3_LM_USES'))' on the onclick event. P3_LM_USES is my element of list manager in a form.

    I use the version of Oracle APEX 4.0.2 and Oracle 11 g R2 database.

    I was able to substitute the Add button functionality using the JS function below list manager and perform validation on database by using the method of ajax on request.

    {code}

    < script type = "text/javascript" >

    <!--

    This replaces the default manager of Apex lists which removes embedded spaces from the last item when it is added to the text box

    appendToList function (value, toList)

    {

    First of all, get rid of all spaces

    trimmedValue = value;

    var ajaxRequest = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = VALIDATE_ADD_USE', 0);

    ajaxRequest.addParam('x01',trimmedValue);

    var ajaxResult = ajaxRequest.get ();

    Alert (ajaxResult);

    If (ajaxResult == 1)

    {

    Alert ('after alert ajaxResult');

    Then, divide the string separated by commas in a table

    valueArray = trimmedValue.split(",");

    for (i = 0; i < valueArray.length; i ++)

    {

    If (valueArray [i]! = ' ')

    {

    found = false;

    for (j = 0; j < toList.length; j ++)

    {

    If (toList.options [j] .value is [i] valueArray)

    found = true;

    }

    If (found == false)

    toList.options [toList.length] = new Option ([i] valueArray, [i] valueArray);

    }

    }

    }

    on the other

    {

    Alert ("you cannot add it" "+ theValue +'".) Please contact the administrator of the application. ") ;

    }

    }

    ->

    < /script >

    {code}

    I have this above function JS in a section of text of element the element of P3_LM_USES list manager post. Please help me with your suggestions for the button Delete.

    Thank you

    Orton

    Hello

    I was able to solve the problem by replacing the default functionality of the list manager delete button using a JS/AJAX process. FYI, here's the JS function.

    {code}

    function deleteListElement (toList)

    {

    Alert ("Hello in function");

    var x = $x ('P3_LM_USES');

    for (var i = 0; i)< x.options.length;="">

    {

    If (x.options [i] .selected is true)

    {

    Alert (x.options [i] .value);

    var ajaxRequest = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=VALIDATE_REMOVE_USE',0);

    ajaxRequest.addParam('x02',x.options[i].value);

    var ajaxResult = ajaxRequest.get ();

    If (ajaxResult == 1)

    {

    var y = x.remove (i);

    alert (y + 'removed');

    }

    on the other

    {

    Alert ("you can't remove this" ' + x.options [i] .value +' "item in the list.) Please contact the database administrator.') ;

    }

    }

    }

    }

    {code}

    Thank you

    Orton

  • Hide the button until all Conditions are met?

    Please help!  I am creating a forklift safety training module. There are 12 buttons on the first slide (see screenshot 1); However, only 11 are visible at the beginning of the slide.  The 12th button is a "continue" button that appears only after all the content slides (slides 2-12) were considered by the learner.  I used a conditional action to hide the button (something I learned from @Lilybiri) until all the conditions are met.


    The problem:

    The "Continue" button does not always appear once the content slides have been read.  I found I can do appear to ebb in each slide content, show the slides a few seconds more before returning to the main slide- which seems certain conditions which tells Captivate to display the button "continue".  Of course, I don't want the learners to face to the challenge of trying to understand why they cannot continue. I just want to visit the pages relating to each key to all conditions met.


    Screenshot 1: the initial screen (actions related to the change of color of button below)

    forklift_screenshot1.jpg


    Screenshot 2: chronology of the page main interaction

    forklift_screenshot2.png


    Screenshot 3: conditional Action to display the button CONTINUE (created as a decision 2nd out of action of 'Transport').

    My expectation was that OnEnter, slide would be recognized as read and count for the condition that all 11 pages of content would be considered before that appear the continue"" button.  I set the time to s 3.0 (see screenshot above) on all content slides.  No transition, no effect.

    forklift_screenshot3.png


    Screenshot 4: each slide content is returned to the slide main interactivity by an OnSuccess: jump to the command of the slide.  Nothing special here.  I tried to reduce all the content slides to 1.5 s nothing works.

    forklift_screenshot4.png


    Screenshot 5: an example of the page interaction BEFORE all the content slides were read and before 'CONTINUE' button appears (ignore the footer buttons; it was just me to experiment with styles of button).

    forklift_screenshot5.png


    That's a lot, I know.  I wanted to cover the entire base.  I would appreciate your thoughts and your expertise.  Thank you in advance!


    Michael

    How about what is probably very close to what you have already made... (After double checking all of your shares advanced for bugs)

    Each main menu button sets the variable 'consulted' 1, hides the active button, show visited button, then jump to the content. Alternatively, you can put the action on the close button for each slide as you did.

    Then in your main menu, you will have the conditional action on enter that verifies that each variable 'seen' is 1. If it is true, then it will show your button continue.

    I use this method with almost all of the modules that are non-linear. I use it to display a button quiz start, tab summary etc...

    To check your programming that I'm down in a text caption that has all the variables, you will have to look and make sure that they change to 1 as it should. As soon as something does not change probably you have found your problem. Also make sure that none of your actions changed to continue if you have accidentally deleted an object or something similar.

    Also BTW: If you want to increment a variable, you use the action "expression" rather than "assignment." If you keep just assign 1 to a variable, all that you will ever get is 1. example: If the variable = 7 and you assign 1 then now variable = 1.  If you use the variable expression variable = + 1 then you will be able to increment. Also be careful if a user visits an article more than once because it increments the new variable unless you have a control to see if the content has been seen before, and then past increment. Otherwise they could visit the same section 11 times and then have the button continue become visible.

  • Help with Javascript for the button Delete

    Hi, Im new JavaScript and have my code works partially, but the trouble with a nested if-then-else statement.

    I have a page element, P4_COUNT, and if its value is 0, the button Delete will allow the user to delete the record. If the number is > 0, a message should appear stating that the record cannot be deleted. That's what I have so far and it works, but the first ELSE is misplaced. This code is the URL target for my button remove.

    JavaScript:var response; response = confirm ("are you sure you want to delete this POC?'");
    If {(response)
    If (document.getElementById('P4_COUNT').value == 0) {}
    doSubmit ('DELETE');
    }
    }
    else {-this other fires when the user hits cancel on the first question above not what I want, I want another one here who said only: "removal cancelled '"}
    -This one should only be fired if p4_count is not equal to 0
    var answer2;
    answer2 = confirm ('you cannot remove this POC, that this POC is associated with a RIF.');
    If {(answer2)
    Alert ('cancelled deletion');
    }
    else {}
    Alert ('cancelled deletion');
    }
    }


    The above should follow this logic:

    Are you sure you want to delete this POC?
    Yes - if p4_count = 0 then
    delete the record
    on the other
    second line: cannot delete this record
    OK - prompt removal cancelled
    Cancel - prompt removal cancelled
    end if;
    Cancel - prompt removal cancelled


    Help, please. Thank you, Laura

    Published by: user8936524 on May 10, 2010 14:14

    Hello

    Try if it works. I didn't test it

    javascript:if($v('P4_COUNT')*1==0){
    var answer=confirm('Are you certain you want to delete this POC?');
    if(answer){doSubmit('DELETE');}
    else{alert('Deletion Cancelled');}
    }else{alert('You may not delete this POC, as this POC is associated to an FRR.');}
    

    BR, Jari

  • How to get the confirmation message when I press the button Delete?

    Hai,
    I want to display a confirmation popup before you delete the line.

    I created an Entiity object and a view to EmpTable... object and drag and drop the button Delete.
    I want to show a confirmation message that "you want to remove?
    If the user clicks OK, the data must be deleted... or not... I'm using JDeveloper 11 g

    You can use a popup for this. Put a component showpopuupbehavior on the delete button to display a popup.
    Article 13 of the web developer guide here shows how proceed.

    Timo

  • Is there a way to hide the button of hamburger?

    Is there a way to hide the button of hamburger?

    http://userstyles.org/styles/101011/hide-Firefox-menu-button

    or using a userChrome.css file

    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    
    #PanelUI-menu-button {display: none;}
  • missing text in the button Delete the bookmark.

    There is missing text in the button Delete the bookmark. The key works but the text is missing.

    Here is a screenshot of the problem:
    http://Tinypic.com/view.php?pic=dltkau & s = 8 #. U0rV96KrFEM

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • How can I remove bookmarks on my toolbar when the "bluestar" is not turned on? (Ditto for the button 'delete' in the menu library).

    Dear Sir/Madam
    I had a quick glance at your solutions page and have tried to use all of the tips suggested however, when I try to remove three items on toolbar, none of them illuminate the "BlueStar" located next to their address. (I got rid of other elements). I also tried to remove the Firefox menu library items, however, the button delete them is not on either. I'm now concerned that items are spyware. I thought to reinstall the software, but it would mean losing all my favorites.

    For your information, I've just updated Firefox to 28.0.

    I would appreciate your help with this matter.

    Kind regards
    Suzanne

    Good to hear! I think you should be able to use the trackpad however. I think I remember to make it work on Mac a friends (first one I've listed below, in this web page)-use two fingers and tap the trackpad. I think you might have to watch that you don't type it too lightly, or he doesn't know what you're trying to do.

    On this second which says to use the CTRL, to my memory, the Mac is not that (it does now, maybe)... I think I had to use a different key that was downstairs left... Google Images, I see that there are four: fn, control, option, command... If the control key does not work, my next guess would be to use the option or command key. It's easy to see which experience.

    If you press and hold the function key, and then regular - click on the bookmark you want to delete, isn't that bring up the contextual menu? It's rather than just giving the bookmark two fingers tap.

    • * * * * * * * * * * * * * * * * * * * * * * *

    Use the tap two fingers on the trackpad, not a click, just a light tap with two fingers.

    • * * * * * * * * * * * * * * * * * * * * * * *

    If you have a mouse with a button, hold down the CTRL key, and then click the mouse button.

    If you have a magic mouse, press and hold the mouse on the right side.

    • * * * * * * * * * * * * * * * * * * * * * * *

    Otherwise, go to system-> Trackpad-> Point & Click Preferences and select your preferred option for "secondary click."

  • Is there any option to make Firefox 10 DO NOT hide the button back and forth?

    It seems to be a new feature in Firefox 10 front and back navigation buttons are hidden whenever they can without navigating a site, but switch to another site or more (not sure). However, I would like to Firefox to never hide the buttons, just as it was before.
    I tried to find something that sounded in full subject: config, but I was not successful.

    This is a new feature when the "lock hole" buttons previous/next is to display.

    When 'Use small icons' is not selected in mode to customize, and it is not the whole story 'before' the button "Go forward one page" is hidden. The Back button ever should not be hidden that even when there is no history «back»

    For the button according to see all the time:

    • Open the--> Customize the Mode <- and select small icons at the bottom of the Palette.
    • Or, move a separator to the left of the address bar, to separate the "back" button and the address bar. Alternatively, you can move the home button, or one of the Palette to go back buttons and the address bar regardless of the other.
  • Customization of the user interface in 4beta2: hide the button new tab

    Question

    I have another type of problem with Firefox

    Description

    I want to know how to hide the button new tab especially when (be precise)
    tabs [[overflow = "true"]
    I tried to change this code:

    .tabs-newtab-button {
    display: none
    }

    but during overflow the new tab button appears again.
    Maybe this isn't the right place for these issues, I still need a solution

    Version of Firefox

    4.0b1

    Operating system

    Windows 7

    User Agent

    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; B 1 RV:2.0) Gecko/Firefox/4.0b1 20100630

    Plugins installed

    • -Shockwave Flash 10.1 r53
    • 4.0.50524.0
    • Adobe PDF plugin for Firefox and Netscape "9.3.3.

    Try:
    #new-tab-button, .tabs-newtab-button {
    display: none;
    }

    You can also drag the new tab button in the window customize (view > toolbars > customize)

  • Satellite A660 - sensitivity of the button Delete

    Hello

    I bought a Satellite A660 a week ago. Everything is fine, except for one thing so far: the delete button must be perfectly struck in the middle of work. What I mean is that if you press the button Delete, even very slightly off center (laterally), it does nothing. All the other buttons I have tested work perfectly - even if you touch or the other side.
    In view of the frequency of use of the button Delete in the edition, you can imagine how frustrating it is!

    How can I get it repaired or replaced?

    Thank you very much.

    Gary Bartlett

    Hey Buddy,

    It's not easy to say something about this, but from my own experience, I can say every key on the keyboard has the same sensitivity, I don t notice any difference between the buttons.

    So in your case I contact an authorized service provider and ask the guys on this problem. They can tell you if it of normal or not and if not they can replace the keyboard. It would be free if your laptop is under warranty. :)

Maybe you are looking for

  • Snap.do research always starts when I open Firefox... How can I get rid of this annoying research?

    There must be a fix for this... I tried the Reset to no evail. Can I uninstall Firefox and dl again and how can I keep all my settings? I do not have a backup folder old data from Firefox that was created when I reset Firefox... Please I luv Firefox

  • A second iTunes for the same account using the phone?

    Say a password is forgotten and you do not have the password for the other music on the phone, can you buy extra pieces with a second iTunes account using the same iTunes library and transfer all the music on the iPhone?   This less recent purchased

  • Satellite L100-179: "without W/L' mean?

    Hello bought a Satellite L100-179 in 2006 and is not really used. When we bought it we thought it had WiFi built in.On the bottom of it on a sticker, it says the following LAN MAC: 0016xxxxxxxxxx then a bar code and under this, Lan Wireless: free W/L

  • Win10 restart again and again to the logo screen

    Purchased 10 Windows to replace XP on an older desktop. When I ran the tool requirements of Win7, it said I was OK to upgrade. I guess if I can run 7, I can run 10. File .iso downloaded and made a bootable DVD disc. DVD player was 1st in the boot ord

  • Found New Hardware Wizard will not let me install things.

    Hello.I have Windows XP and every time I try to plug something for the 1st time, such as a USB, a window that reads the found new hardware wizard appears. He asks me if windows update can search for new software. It gives me so "Yes, always", "Yes ju