Presence of row of unwanted table hidden when adding lines

It took me a while to understand what was going on when I couldn't add lines. The proven script seemed impossible to add new instances of the row in the table. Then I realized what was going on and added a line of script to solve this problem, however, I do not know exactly why it was necessary - is this a bug or is this how its supposed to happen? Is this the best solution?


My DOM

subForm.table.row

The form opens with these initial properties defined in object Panel

Subform presence = "visible."

table. Presence = "visible."

Row.Presence 'hidden '.

Instances of subform set to 0 (zero) through a script on initialization

Instances of subform to 1 changes through the interaction of the user

Table.row.presence = "visible" through the user intreraction

So far so good...

Instances of changes table.row to user interaction --c' is the problem: new instances are 'hidden' even if the presence of current or existing is 'visible '. It seems to spawn new lines using the original properties? those underway?

OK, I see what happened and fixed it by adding the line formCalc script to the button:

.its presence tableRow [*] = 'visible '.

What is to be expected, or is this a bug? And it is the best workaround?

Any idea and advice appreciated.

Stephen

Yes, it's as expected... When you ask to create a new line, the information is taken from the DOM that contains the State of origin of the subform.

Paul

Tags: Adobe LiveCycle

Similar Questions

  • Tabular form when adding line error

    I click on the 'Add' button to add a row to the table OCA_OTHER_AGENCIES, I get the following error:

    Internal error in the routine mru: ORA-20001: error in MRU: line = 1, ORA-01400: cannot insert NULL into ('CONFIRM'. "" "" OCA_OTHER_AGENCIES '. "" OA_ID"), insert"CONFIRM ". "" OCA_OTHER_AGENCIES values ' ('OA_FIRM_ID', 'OA_ID', 'The AGENCY', 'PROGRAM', 'STATUS', 'AGENCY_DATE', 'DBE_ON_SITE_VISIT', 'DBE_ON_SITE_VISIT_DATE', "DBE_ON_SITE_VISIT_STATE") (: b1,: b2,: b3: b4,: b5,: b6,: b7,: b8,: b9)

    OA_ID is the primary key and is defined in the table as presentation:
    display as: HIDDEN
    default type: PL/SQL Expression or a function
    default: oca_pkg.get_next_key ('OA')

    the get_next_key function returns the following sequence as follows:
    Function get_next_key (p_key in varchar2) return number is
    number of v_seq_no;
    Start
    If (p_key)
    When ("OA") and then select OCA_OA_SEQ.nextval in the double v_seq_no;
    When ('FARM') and then select OCA_FIRMS_SEQ.nextval in the double v_seq_no;
    Another null.
    end case;
    return (v_seq_no);
    end;

    In debug mode: append query appears as:
    0.08: Add line query: select 'FIND$ 01' "CHECK$ 01", 'OA_FIRM_ID' 'OA_FIRM_ID' 'OA_ID' 'OA_ID' 'OA_FIRM_ID_DISPLAY' 'OA_FIRM_ID_DISPLAY', 'OA_ID_DISPLAY', 'OA_ID_DISPLAY', 'AGENCY' "', 'PROGRAMME', 'PROGRAMME', 'STATUS', 'STATUS', 'AGENCY_DATE' 'AGENCY_DATE' 'DBE_ON_SITE_VISIT' 'DBE_ON_SITE_VISIT' 'DBE_ON_SITE_VISIT_DATE' 'DBE_ON_SITE_VISIT_DATE' 'DBE_ON_SITE_VISIT_STATE' 'DBE_ON_SITE_VISIT_STATE' of (select NULL" RECORD$ 01 "'). , 'OA_FIRM_ID' 'OA_FIRM_ID' 'OA_ID' 'OA_ID' 'OA_FIRM_ID_DISPLAY' 'OA_FIRM_ID_DISPLAY', 'OA_ID_DISPLAY', 'OA_ID_DISPLAY', 'AGENCY' "', 'PROGRAMME', 'PROGRAMME', 'STATUS', 'STATUS', 'AGENCY_DATE' 'AGENCY_DATE' 'DBE_ON_SITE_VISIT' 'DBE_ON_SITE_VISIT' 'DBE_ON_SITE_VISIT_DATE' 'DBE_ON_SITE_VISIT_DATE' 'DBE_ON_SITE_VISIT_STATE' 'DBE_ON_SITE_VISIT_STATE' from (select 'OA_FIRM_ID' , 'OA_ID', 'OA_FIRM_ID' OA_FIRM_ID_DISPLAY, OA_ID_DISPLAY 'OA_ID', 'AGENCY', 'PROGRAM', 'STATUS', 'AGENCY_DATE', 'DBE_ON_SITE_VISIT', 'DBE_ON_SITE_VISIT_DATE', ' DBE_ON_SITE_VISIT_STATE ' to "CONFIRM'." " ((OCA_OTHER_AGENCIES' where oa_firm_id =: F103_FIRM_ID UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL FROM DUAL WHERE: request = 'ADD_ROWS' or: application is NULL to CONNECT BY LEVEL < = 1)) Union all select NULL 'CHECK' $ 01, NULL, 'OA_FIRM_ID', oca_pkg.get_next_key ('OA') 'OA_ID', NULL, 'OA_FIRM_ID_DISPLAY '. NULL, NULL, 'OA_ID_DISPLAY', NULL, 'AGENCY', 'PROGRAM', NULL, 'STATUS', NULL, 'AGENCY_DATE', NULL, 'DBE_ON_SITE_VISIT', 'DBE_ON_SITE_VISIT_DATE', 'DBE_ON_SITE_VISIT_STATE' of the double NULL NULL


    Can someone please.

    Why you doing this in the form and not by a trigger?

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Cannot delete the current row in the table in advance (the line above are deleted)

    Hi all

    I have an advanced table that contains say 5 records. Every row has sown delete icon. I suppose that if I click on the button Delete the current will be to remove. Now I have a problem if I remove the line 5, line 4 will remove. If I remove the line 3, line 2 is deleted. The line above the line to delete is removed by clicking on the button Delete.

    I had this procedure must manage the deletion (nothing wrong with that)

    public Boolean DeleteAuthorizedBudget() throws SQLException
    {
    Boolean rowFound = false;
    System.out.println ("DeleteAuthorizedBudget > >");
    try {}
    JcpaProjMtnReqBudgetVOImpl vo = getJcpaProjMtnReqBudgetVO1();
    vo.getCurrentRow () .remove ();
    Returns true;
    } catch (Exception e) {}
    e.printStackTrace ();
    } {Finally
    System.out.println ("DeleteAuthorizedBudget > >");
    }
    return (rowFound? Boolean.TRUE: Boolean.FALSE);

    }

    Concerning

    Laurent

    Cool. Then close the thread by checking the useful and accurate answers.

  • check duplicates when adding lines to single selection

    Hi all
    I my have the table. User can add rows by clicking the Add button. Suppose the user selects the code as LOV CODE1, then click Add and the code as CODE1 .at that time single user must be informed that he chose this code.this table has unique salt; ection. ANC, someone tell me how the functionalty above can be achieved.

    Thank you
    Amrit

    Hello

    When he clicks on LOV, he calls the processFromRequest, here you can browse the VO and can check, whether the values of two columns are then even throw the exception.

    thanx
    Pratap

  • Why left outer join with a table gives me more lines?

    Hi gurus,

    I can see "view_a" and a table 'table_a '.

    view_a a county of 100 lines. Now, when I left outer join that discovers with a 'table_a', I expect all 100 lines.

    However, I'm more than 100 lines. Is it still possible?

    Also even to analyze these situations, how can I move forward?

    Because it is very high volumn of sight and takes longer to run.

    Select count (*) view_a, view_b

    where view_a.col1 = view_b.col1 (+)

    and view_a.col2 = view_b.col2 (+);

    Thank you

    I can see "view_a" and a table 'table_a '.

    view_a a county of 100 lines. Now, when I left outer join that discovers with a 'table_a', I expect all 100 lines.

    However, I'm more than 100 lines. Is it still possible?

    Also even to analyze these situations, how can I move forward?

    Because it is very high volumn of sight and takes longer to run.

    Select count (*) view_a, view_b

    where view_a.col1 = view_b.col1 (+)

    and view_a.col2 = view_b.col2 (+);

    Which is not necessarily related to the use of an outer join.

    Just join of two tables in general will give you more rows of one table has.

    Scott DEPT table contains ONE row for deptno = 10

    The EMP table has THREE rows of deptno = 10

    The number of rows you plan if you join two tables using an equi-join?

    Three - what is MORE lines the DEPT table has for deptno = 10

    Select * from Department where deptno = 10

    DEPTNO, DNAME, LOC
    10, ACCOUNTING, NEW YORK

    Select * from emp where deptno = 10

    MGR, EMPLOYMENT ENAME, EMPNO, HIREDATE, SAL, COMM, DEPTNO
    7782, CLARK, MANAGER, 7839, 6/9/1981,2450, 10
    7839, KING, PRESIDENT, 17 NOVEMBER 00, 10
    7934, MILLER, CLERK, 7782, 23 JANUARY 00: 10

    Select dept.*, emp.*
    Department, emp
    where dept.deptno = 10
    and dept.deptno = emp.deptno

    DEPTNO, DNAME, LOC, EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO_1
    10, ACCOUNTING, NEW YORK, 7782, CLARK, MANAGER, 7839, 6/9/1981,2450, 10
    10, ACCOUNTING, NEW YORK, 7839, KING, PRESIDENT, 17 NOVEMBER 00, 10
    10, ACCOUNTING, NEW YORK, 7934, MILLER, CLERK, 7782, 23 JANUARY 00: 10

    So if these are the lines ONLY in the table EMP and DEPT the query would give you THREE lines despite the DEPT table only ONE line.

    No do you expect? You get ALL the child rows that belong to the parent company. Otherwise, how could it possibly work?

    The OUTER join includes lines where the parent row exists but there is NO child line as others have shown.

    Outer joins

    Outer join extends the result of a simple join. Outer join returns all rows that satisfy the join condition and also returns some or all rows in a table for which no line of the other meet the join condition.

    Get more lines to exist in one of the paintings is a basic necessity. It usually has NOTHING to with the question of whether you have an outside to join or not.

    See the section on the JOINTS in the Oracle documentation

    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/queries006.htm

  • I have a table of the adf, I added a column that contains a button that I created, when I click it must remove this row in the table, but it is not, please help

    I have a table of the adf, I added a column that contains a button that I created, when I click it must remove this row in the table, but it is not, please help

    I don't understand. You use vo and eo for you to use business components.

    Again, this kind of code call in trouble.

    You must post the changes to make them visible to the eo find vo. You must then run the query for the changes in the business layer strips then you must update the iterator he table is based on.

    In your code I see that happen, hooch maybe because it is more often than not formatted and undocumented.

    My advice is to do a small test case that you can manage with easy sql. Once you get it to run transfer you the results to the actual application.

    Timo

  • Exception of null on the list pointer implementing values when there are n rows in the table

    Hi Experts,

    I use JDev 11.1.1.7.

    I have a VO that I defined a LOV with no search box. In my page, I've added it as af:inputListOfValues, but when there is no rows in the table that I will meet with NPES

    < AdfcExceptionHandler > < handleException > ADFc: when Manager application exception exception handling threw a new exception.

    java.lang.NullPointerException

    at oracle.jbo.uicli.binding.JUCtrlListBinding.findOrCreateLOVDialogIteratorBinding(JUCtrlListBinding.java:5188)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding.getSearchBinding(FacesCtrlLOVBinding.java:204)

    to oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ ListOfValuesModelImpl.getSearchRegion (FacesCtrlLOVBinding.java:2001)

    to oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ ListOfValuesModelImpl.getQueryModel (FacesCtrlLOVBinding.java:1612)

    to oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase$ InternalLaunchPopupListener.processLaunch (SimpleInputListOfValuesRendererBase.java:1560)

    at oracle.adf.view.rich.event.LaunchPopupEvent.processListener(LaunchPopupEvent.java:108)

    Excerpt from JSFF:

    < af:inputListOfValues id = "xxx" popupTitle = "" search and select: XXX ""

    simple value = "#{pageFlowScope.SearchBean.xxx}" = 'true' "

    model = ' #{bindings. " XXXLOV.listOfValuesModel} "columns ="30"

    searchDesc = "Select XXX" >

    < / af:inputListOfValues >

    PageDef:

    < listOfValues StaticList = 'false' use = "LOV_XXX".

    IterBinding = "XXXIterator".

    ID = "XXXLOV" / >

    Is - this bug?

    Surprisingly, it works very well if there are lines in the table that the VO is querying.

    -Soham

    Soham,

    I think you just create this LOV page by simply moving the VO, right?

    You can select the box to tick 'Include no. Selection' in your VO, and see if that helps?

    See you soon

    AJ

  • What happens when you insert/modify/delete a row in a table - concepts

    I am trying to understand the below concepts regarding the internal concepts (for example, undo and redo)

    (1) what is happening in the database when you insert a row in a table?

    (2) what is happening in the database when you update a row in a table?

    (3) what is happening in the database when you remove one line in the table?

    I have read the oracle documentation and mistook the redo and undo behavior. It would be great if someone explains the concept in a simple way.  I'm a novice programmer to understand database concepts. Any help would be much appreciated.

    INSERTIONS and deletions are handled the same way.  The cancellation of an INSERT is a DELETE.   The cancellation of a REMOVAL is an INSERT.

    Therefore, the generation 'Cancel' for INSERTION is less than that of a DELETION (because the cancellation of a DELETION is to reinsert the line - the value of each column in the row must be captured in the undo).

    If restore you an INSERT, then Oracle executes effectively a DELETE tablename WHERE rowid =... rowid_that_was_inserted.  A cancellation for an INSERTION is 'rapid '.

    If restore you a DELETION, then Oracle executes effectively an INSERT tablename values (col1, col2, coln).  The cancellation of a DELETION takes more time because Oracle would have to re-enter the values.

    Remember that Oracle also captures the redo to undo it (and do it again for the price drop if you do a restore).

    Hemant K Chitae

  • Error when inserting rows into a table

    Hello

    We have recently migrated to 9i and 10g. We have a scheduled task on our database who first removes all rows from a table and then inserts them back by selecting the lines of 5 tables. This table has a composite primary key based on 6 columns in it. In 9i, when I try to insert rows in the table after you remove all of the lines, I am able to insert the data successfully. However, in 10g, when I try to do the same operation, it fails with error ORA:

    ORA-00001: unique constraint violated

    The same query that works perfectly in 9i fails in 10g

    If anyone has some ideas on how to solve the same, kindly let me know.

    Thanks in advance.

    CrazyAnie wrote:
    Okay, so now the only option that remains is that I have load the data into a local table and then perform the loading.

    May not be the only option, but the safest and cleanest I would say.

    CrazyAnie wrote:
    Also, it would be very kind of you that you might suggest all other possible risk areas where this CHARSET conversion could be a concern.

    I imagine that the main areas of concern will be you are interfacing directly with other databases through database links and using string functions. Otherwise, as long as the manipulation of data is in the same database 10g should not be a problem.

    CrazyAnie wrote:
    I made the migration of my source 9i DB, which is on Solaris to my 10g database which is on Linux and a separate server (which resides in a completely different location) uses exp and IMP. So if I try to export my schema after you change the CHARACTER set and then import it into the target DB, should that help me to get rid of this error? What is an option that can be done?

    I don't think it would be that simple change your database character set, check out this link for discussions about the same:

    [http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:5783936214008]

  • Get error when adding or deleting instance of a table row

    I'm absolutely brand new to LiveCycle ES2 (we were using Adobe Pro 7 until a week ago). I've been playing with some of our forms in an attempt to see what LiveCycle can do to update these in a format better.

    I have a table with a header line, a line of body and a footer line. The line of body must be reproducible. I used the custom object "subform Instance: insert delete move controls" to add the most and the sign less. I put the Action to repeat or delete the instance of this single line.

    The entire table is encapsulated in a subform that sank. The line that repeats is set to "repeat the line for each data item ' with Min County set to 1 and no Max count. The entire document is also wrapped in a subform, the value passed.

    When I go to preview and click the Add button of the Instance, I get this error:

    «WARNING: JavaScript Window - element insertion.»

    You have reached the maximum number of items allowed. »

    If I try to remove it an Instance button, I get a similar error on the minimum number of items allowed.

    BUT (and here the confusion belongs) the buttons work! The line is added or deleted, it gives me just the error first. What could happen? I tried affecting count Max 20 to see if giving it a number max can help, but I still get the error.

    I have it all done by using Design view, because I don't know anything about JavaScript, but I can post the generated code, if it helps.

    Hmm ok, the script of Action Builder is very overloaded, do not know what is causing the error.

    My suggestion:

    1. remove all the actions that you created with the constructor of the action

    2. for the button Add use this JavaScript in the click event

    Table._TableRow.addInstance (1);

    3. to remove button this JavaScript (will remove always the last instance of the line)

    If (Table._TableRow.count > 1) {}

    Table._TableRow.removeInstance (Table._TableRow.count - 1);

    }

  • Delete the row in the Table by using the report link column

    Hello

    I a report advocating the rows in a table - I would like to for users to be able to delete rows in the table by clicking on the link in the column "ID". I thought about trying to call a process by using a javascript URL (as mentioned in this thread - Re: how to call PL/SQL process when you press link column ) but I don't know how to write the process so that he knows what 'ID' to remove from the table.

    Any ideas would be greatly appreciated.

    Forrest

    Forrest:

    Follow these steps

    Create an item hidden on the page P_ID named who said
    In the column link definition set the goal URL as the URL as
    JavaScript:doDelete(#ID#);
    Add this JS ito header HTML of the page

     
    

    Create a process page ' on submit ' with the code to delete the record from the table. Subordinate this process by using a "pl/sql expression" type of condtion. Will be the expression of pl/sql

    :request='DELETE';
    

    Treat code

    delete from  where pk_column=:p_id; //adjust as needed 

    Add a branch that branches off to the page

    CITY

  • buttons in the rows of the table

    Hello

    I want a button (or image) to the rows in the table to call an ApplicationModule method which requires a parameter. This setting is online in a hidden column and is also in the iterator binded.

    I use the method for ActionListener to the button below:

    {} public void unAssignCategory (actionEvent javax.faces.event.ActionEvent)
    RicheTableau TC = (RichTable) actionEvent.getComponent () .getParent () .getParent ();

    Object o = ct.getSelectedRowData ();
    JUCtrlHierNodeBinding rowData = o (JUCtrlHierNodeBinding);
    Line = rowData.getRow ();
    String idValue = row.getAttribute("CategoryId").toString ();

    }


    The problem is always the last row clicked on your stay in selected line. By clicking on a button in the row doesn't do not is the selected line.

    Anyone has any ideas on this subject? Is there another way to get the value of a line when he clicks on a button?

    Thank you.

    PS: I'm using Jdeveloper 11 g with ADF Faces.

    Hi Deniz,

    The best way to achieve this would be by using clientAttribute instead of the column / field hidden. Add a clientAttribute for your button (I think it's the level button available in one of the column line). Set the value of the clientAttribute on the line linking field you want the event to the button action. for example, your clientAttribute is defined as
    Name: CategoryId
    Value: #{row.categoryId}

    Now, in your actionlistener method.

    UIComponent thisComp = actionEvent.getComponent();
    oracle.jbo.domain.Number catId =
                (oracle.jbo.domain.Number)thisComp.getAttributes().get("CategoryId");
    

    Kind regards
    ~ Ahmed

  • Hide or show rows in the table with AppleScript?

    I have a large table number, and I sometimes want to display the entire table and sometimes select a group of lines to hide or show, to make the display of data more convenient.

    By selecting many rows to hide is tedious (there are many, and they are not contiguous).  So I would use AppleScript to do this.  But in the numbers AppleScript dictionary, I don't see any way to apply an attribute "hidden" in rows, columns or beaches.  Y at - it a trick I'm missing?  Or it simply not exist in the current implementation?

    Thank you

    AFAIK, you can't hide a line or set a height of 0 using AppleScript, although I suggested that any time via numbers of > provide comments numbers in the menu.

    What you could do is filter the table to hide the lines, probably by adding a column filter designating the lines that you want to see (or, conversely, hide).  This filter can be turned on and off via AppleScript using the filtered table property, although it would probably be easier to do via the integrated interface.

    SG

  • How to set Max number of rows in a table?

    Hello
    I'm working on a SCADA interface. In this application, there are different tables with vertical scroll bar.
    I prefer to make it visible only initialized lines (I've initialized 40 empty rows in a table with an array of strings). Since the window contains all 40 lines, but only 20 rows, I put the number of lines in the "table properties window" at 20; So I added a vertical scroll bar.

    Now, when a user, do scroll the scroll bar, it can check not only the initializated 40 lines, but any number of lines.
    There is a way to view only a limited number of lines?

    Thanks in advance!


  • number of rows in the table

    Hi master,

    I have a requirement. During the passage of a table, I need to get the number of rows in this table. Sometimes, when I spend 2 or more table names, I need to get the same count of result of lines. I got the below function. but it shows all the rows in the table. I want pariticular tabels only. How I can I get it.

    Select table_name, num_rows from all_tables where table_name in ('EMP', 'Department');  I tried.  I need to a procedure or function. who will pass the name of the table as a parameter and 1 or more than the name of a table if I pass, I need to display information from table name and number of lines.

    CREATE OR REPLACE

    TYPE t1_obj AS OBJECT)

    table-name VARCHAR2 (30),

    CNT NUMBER

    )

    /

    CREATE OR REPLACE

    TYPE t1_obj_tbl AS THE t1_obj TABLE

    /

    CREATE OR REPLACE

    FUNCTION (f1)

    p_schema_name VARCHAR2

    )

    RETURN t1_obj_tbl

    PIPELINED

    IS

    v_retval t1_obj: = t1_obj (null, null);

    BEGIN

    FOR v_rec IN (SELECT table_name FROM dba_tables where owner = upper (p_schema_name) and nvl (iot_type, 'X')! = "IOT_OVERFLOW") LOOP

    v_retval.table_name: = v_rec.table_name;

    RUN IMMEDIATELY "SELECT COUNT (*) FROM" | p_schema_name | '.' || v_rec.table_name

    IN v_retval.cnt;

    PIPE ROW (v_retval);

    END LOOP;

    RETURN;

    END;

    Select * from table (f1 ('scott'));

    The above function returns information from the table in SCOTT scheama. I need only perticular table info.

    Please notify.

    AR.

    Hi Sven,

    Front end people ask me the requirement. They wanted a proc or function as I want.

    Please help me.

    Concerning

    AR

  • Maybe you are looking for

    • indicate the end of the loop to the Subvi state information user

      I hope that I can adequately describe this as an example would take time. I have a test that implements a chip by using a scheme of control in series. This takes place in a Subvi. When the control bits that all entered the chip, a flag is asserted. I

    • How creat a summary report with txt.

      Hi all I want to create a summary of the report with .txt, and I disabled the feature of report generation in teststand. I created a complex sequence, includes some sub-sequences, example: the UUT is tested on three different temperatures and four di

    • Bing search bar does not work windows xp

      I have xp with sv.pack 3 and when I open internet and type an address in the bing search bar and hit enterf nothing happens, I have to click the icon of bing and retype the path, and then it will access the site

    • High utilization of the processor after installing the HP printer

      My computer is running Windows XP. When installing recently my computer HP printer failed complete installation on the supplied CD. Then I noticed a dramatic slowdown in the speed of the computer. I uninstalled the HP from the disk and was able to in

    • Sony 16 Gb Flash DRIVE has not been formatted

      Hello I have 16 Gb pen Drive Sony and he said I should format it. But it keep saying unable to complete Windows format. I tried both via disk management. but no luck. It shows only 8 MB of memory in this respect :( check disk shows @healthy @... I tr