View button 'Add a line' if there are no more than two lines in a table

Hello

Is there a possibility of JavaScript to dynamically check number of rows in a table and display the button 'Add Row' in the case where if displayed in number of lines in sub table form is more small/more than some setting?

Example: I have 2 lines in a picture. The button should be indicated if there are no more than 3 lines.

User click on the button - a blank line will be added here. Now, the button is hidden until the number of rows will be less than 3.

Data sheet:

APEX 4.1.1

31%

Listener 1.1.3

Thank you

J

Hello

I solved it by using the little piece of JS:

if ($('#report_contact_form tr.highlight-row').length > 1)
$x_Hide('ADD_ROW_T', true);

Concerning

J

Tags: Database

Similar Questions

  • My hotmail account has been blocked. I tried to send a request to reopen the account. It is said that you will get a feedback within 24 hours. There are now more than 48 and I can't hear anything

    Original title: hotmail

    My hotmail account has been blocked. I tried to send a request to reopen the account. Itsays you will get feedback within 24 hours, there are now more than 48 and I hearnothing...
    What should I do?

    Hello

    This problem is specific to Hotmail, I you should post the question in the forums of Windows Live e-mail.
    http://windowslivehelp.com/forums.aspx?ProductID=15

  • I converted a PDF to Excel and now I have a lot of extra columns, how do I get rid of the additional columns, there are probably more than 50?

    I converted a PDF to Excel and now I have a lot of extra columns, how do I get rid of the additional columns, there are probably more than 50?

    Hi Carl,

    Please see this thread link: I converted a pdf file to excel and now I have columns, many of them, I don't know how to get rid of?

    Kind regards

    Rahul

  • There are not more than 600 dpi of resolution

    The specs say I can scan with resolution
    Optical: up to 1200 dpi; Material: up to 1200 dpi; Improved: up to 2400 dpi
    But is not possible on the 600 dpi.
    Why?

    4645 HP deskjet ink advantage

    Windows 7

    Hi ajaxpm,

    Sorry for the late response, did some additional research on your question, and I would, if you could try and sweep of the brush.

    When you open paintbrush, go to the upper left arrow down and select from scanner or camera. In this way, we can see if the higher resolution is available here.

    Hope it works and have a nice day!

  • Add line button adds three lines (not one)

    In the report of Dropbox form - UNIFORM - (04) .pdf there are two tables. The two tables have a single button "add a line". In the table at the top of the page, click it once actually adds three lines (not one, as it should be). In the second table, it works as it should (by adding only one line). However, for the life of me, I can't understand why.

    The upper table using this code:

    Form1. #subform [0]. SUB_of_Table1.Table1.HeaderRow.Subform3.AddButton::click - (JavaScript, client)

    Table1._Row1.addInstance (true);

    The bottom table using this code:

    Form1. #subform [0]. SUB_of_Table2.table2.HeaderRow.Subform2.AddButton::click - (JavaScript, client)

    Table2._Row1.addInstance (true);

    Except for a form of corruption of document, I can't begin to guess why the top adds three lines, but inside only one. It drives me crazy.

    No, it doesn't always work does not, try to use Gmail drive share or send me a private message and I'll give you my email.

  • Apex 4.2: The button "Add a line" does not not in table form

    Hello

    We have an application migrated from 3.2 to 4.2 Apex

    Afterwards, the 'Add Row' button does not work. When I try to click that, new line is not get added.

    I even tried to delete the tabular form and creates a new array of 4.2 Apex environment itself, but of no use, new line is not get added.

    "Also, is to launch a page fault"Message: 'length' is null or not an object"

    Browsed little of the previous announcement in OTN for this problem and found that by changing the theme, this problem can be solved.

    'Length' is null or not an object for tabular forms V4 error

    Apex 4: the 'Add Row' button doesn't work is not in tabular form

    The user is comfortable with the current theme and does not change the theme.

    Current theme used is "blue-gray - 13.

    Is it by a patch or workaround, we will be able to do the work of button "Add a line" normal.

    Kindly guide me in this issue. Thanks in advance.

    Kind regards

    Shiva

    OK, my dyslexia kicked in.  Modify the report model and correct the field before the lines replacing the #STATIC_REGION_ID # #REGION_STATIC_ID #.

    ***

  • Apex 4: The button "Add a line" does not not in tabular form

    Hello

    The APEX 4, I created one in form of a table and the button "Add a line" does not work. 'Add Row' button is automatically created in the region and I have not modified anything.

    On Mozilla Firefox, clicking the button does nothing and on IE, it shows the javascript below error:

    Message: 'length' is null or not an object
    Line: 1
    Tank: 61979
    Code: 0
    URI: http://localhost:8080/i/javascript/apex_4_0.js

    The code for the button 'Add Row' is:

    "< class td 't10L' = >< img src="/i/themes/theme_10/button_left.gif "alt =" "width ="4"height ="24"/ >< table >"
    < class td "t10C" = >Add a line< table >
    "< class td ="t10R">< img src="/i/themes/theme_10/button_right.gif "width ="4"height ="24"alt =" "/ >< table >"

    Could I have done something wrong, or is at - it a bug?

    The other buttons and features works fine on the same on the

    Thank you
    Hozy

    Hello

    First, create a different theme.
    Press to create the button and select from the repository. Then follow the wizard.
    Then change the theme to one that you just created

    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/themes.htm#sthref1765

    BR, Jari

  • When you try to save all files on the C drive in Windows 7, get the message "There are no more files"

    I get this when I try to save all the files on my C drive. I am the only user on this laptop. It's windows 7 Home Premium 64-bit.

    So far, I've checked for viruses using 5 different scanners, check permissions, the usual stuff, but I still get it. The funny thing is if I right click on my desktop and click New txt Document that market I can type this in and click on save, but if I click Save under and rename I save as: there are no more files. BTW I free 350gbs, also tried chkdsk/r

    If you use a Comodo cleaner, which can also cause problems on Win7 64-bit. Uninstall, it helped me - problem solved! But in your case, try to understand if you have installed new software just before the fancy 'there no more files"- message began to appear. BTW, also I had BIG problems since "save under" did not work in one of my programs office to paint...

  • Save the error file - "There are no more files" and much more...

    I tried to solve this problem for a while. I ran malware scans and analyses antivirus, restored my HARD drive to an earlier point all to nothing does not. I used this thread as a reference and nothing helps: http://answers.microsoft.com/en-us/windows/forum/windows_7-files/there-are-no-more-files-save-error/6f926ece-be28-429f-b09f-4e66a37148c9

    Another question, I noticed is that when I open msconfig it comes up with an error dialog box indicating: «a problem has been experienced during the processing of the manifest file of the custom tools (C:/Windows/system32/MSCFGTLC.» XML). Please check the file to find errors and that all should tools appear. »

    I use AVG for my anti-virus and Comodo for my firewall. If there is any other information I can give you, please let me know.

    Well I did some more research and found the question - ASUS data security manager. I uninstalled it and my problems went away. I don't know why that was the problem it is installed on my computer since day one and I got it for almost four years now. I hope this helps people to question.

    Source: outcome of ASUS security data manager

  • When I click on the download button opens a page with three small boxes, and I think that this means a wait, but they lasted more than two hours, unfortunately and I tried many things and each time gets the same, I work now want photoshop required a

    When I click on on the download button opens a page with three small boxes, and I think that it means a wait, but they lasted more than two hours, unfortunately and I tried much and each time gets the same thingit's working now, I want photoshop necessary and reminders even when I tried to buy the same thing happened to me Please I want to a quick solution

    Make sure that you have enabled cookies and clear your cache.  If he continues to not try to use a different browser.

  • Add a line in a table with a button

    Good day to all;

    I think I have now lost...; >)

    Life cycle of Designer 8.05

    In any case, if the user of the form requires additional lines to enter the infoamtion, I want them to be able to add a line using a button. I tried to use the following

    "

    Table "N". Row2.instanceManager.addInstance (1); = "N" is the name of the table.

    I did it on a couple other forms but I must be missing something that I get the following error in Consol java

    "GeneralError: failed the operation."

    XFAObject.addInstance:1:XFA:form1 [0]: #subform [0]: #subform [1]: Button1 [0]: click

    The item [max] has violated its number of occurrences. »

    The form is registered as a form Arcobat 8 dynamic XML

    I have

    1 page is sent

    Subform is cast

    Someone would be kind enough to point me in the right direction.

    Thank you all

    Chomp

    Eventually, you forgot to put the line to be reapetable.

  • 2 table lines - one button "add a line".

    I am a novice, not a lot of training with javascript.

    I need 2 lines of the table added to a table without having several buttons "add row". I wish I could add these two lines with a single button.

    now the right button is set to the most common line:

    Table1._Week.addInstance (0);

    the above line is Table1._Codes

    How this script in order to have the two lines appear when the add a line button is selected?

    Hello

    Here is the form to the you: https://acrobat.com/#d=HWL3d8qeEmz6Tyn8agXz5Q

    You can check the fonts, as I don't have them on my system.

    In any case, here's what I did:

    1. Together the two lines in one section (because you want to keep them together) and the value of this section to be repeated items (for example disabled repeat for weeks and Codes).
    2. Table1 to break down on several pages of content on the value.

    Hope that helps,

    Niall

  • Add the line in the table of the ADF

    I am trying to add a new line to the table of the ADF. Here are my steps:
    1 create new entities to tables (new-> EJB-> entities from Tables)
    2. create the Session Bean (new->-> Session Bean EJB) with all required methods for earlier of the entity created
    3 create the control of data off of it (right click-> session bean create a Data control)-, it creates 'testFindAll '.
    4. After these steps, I drag / drop my "testFindAll" of data controls to form and create the table
    5. now I do drag & drop operation Create since my 'testFindAll-> operations", create a button and move the action to create CreateInsert

    And now, eating disorders: ((...)) When I click on the button to add the new line I get null pointer exception. Here is the part of the trace:

    java.lang.NullPointerException
    at oracle.adf.model.adapter.bean.UpdatableBeanDataControl.createRowData(UpdatableBeanDataControl.java:137)
    at oracle.adf.model.bean.DCBeanDataControl.createRowData(DCBeanDataControl.java:642)
    at oracle.adf.model.bean.DCDataVO.doCreateData(DCDataVO.java:870)
    at oracle.adf.model.bean.DCDataRow.create(DCDataRow.java:306)
    at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:432)
    at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:4679)
    at oracle.adf.model.bean.DCDataVO.createInstance(DCDataVO.java:567)
    at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1818)
    at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2211)
    at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2257)
    at oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:2233)
    at oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:9404)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1223)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2120)
    at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:464)
    at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:307)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:693)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:217)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    ...


    I know I can do it if you create ViewObject rather than Tables and SessionBean entities. But I need this approach.

    Thank you very much!

    Hi Goran,

    What is your version of JDev? You try with EJB 3.0 or 2.1? I just tried (with 3.0) and it works fine (tested in JDev 11.1.1.2.0).

    Here's my pagedef

    
    

    Infact, I don't have to change the action of creation at CreateInsert. By default, it is CreateInsert only.

    Arun-

  • Add sequence to add a line in a table?

    Version: 4.1.1

    Hello

    I have a tabular form on a table that has a serial number filed as primary key. This isn't a sequence as such, but I'm just a series max + 1 to get the next value. Forms, I had a trigger when a new record is added so that the next serial number is automatically filled when we hit add new record.

    In the Apex, is this possible when we hit the button Add row in a tabular presentation, we can get the series maximum + 1 and automatically populate this field?

    Any suggestions please?

    Thank you
    Ryan

    There are a lot of options, you can create a hiden form item and set the value to them (so you must change the default type for the value of the element) or function in DB.

    Kind regards
    drama9346

  • Apex 4 Add several lines in a table

    Hello

    I use Apex 4.0 and I'm trying to view multiple empty lines in tabular form, when a page loads.

    Instead of having the click of the button 'Add Row' user, I want to display a few blank on the page if the table contains data or not.

    Examples or ideas on how to do that?

    Marsha

    Put this in the "run when the Page loads"
    ::AddRow();
    ::AddRow();
    ...
    (the number of lines that you want to add).

Maybe you are looking for