Make a mistake trying to remove several lines

Hi Experts,

Working in jdev 11.1.1.3.0 with ADF BC and rich faces.

I am trying to delete several records in the table, everything works fine if I use the filter or not using not horizontal scroll bar of the table. If I try to remove the last recordings on the table and are removing the UI and DB also, but I get the error message like

ADFv:Count find the line: _ $< to-calc >$ cur key:oracle.jbo.key [2333] inside the mother: XxwfsAvcardXXXXXXXVO1Iterator with key: null

I changed my method with the link below

Re: Array of line selection JDev 11 g-Multiple-error Ctrl + A

but until I get the same error:

Method:

{} public void deleteRec (ActionEvent actionEvent)
Add the code in the event here...
RowKeySet rowKeySet = (RowKeySet) this.embossTB.getSelectedRowKeys ();
CollectionModel cm = (CollectionModel) this.embossTB.getValue ();
Line specRow = null;
RowList ArrayList = new ArrayList();
int listLength = 0;
ArrayList < number > printReqLST = new ArrayList < number > ();
Vo1 ViewObject = null;
Boolean flag = false;
for (object facesTreeRowKey: rowKeySet) {}
cm.setRowKey (facesTreeRowKey);
JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding) cm.getRowData ();
specRow = rowData.getRow ();
rowList.add (specRow);
listLength ++;
}
for (int index = 0; index < listLength; index ++) {}
specRow = (Row) rowList.get (index);
Number of printReqID = (Number) specRow.getAttribute ("PrintRequestId");
String PrintState = specRow.getAttribute("PrintState").toString ();
If (PrintState.equalsIgnoreCase ("PRINTED")) {}
System.out.println ("remove cann't');
FacesContext fctx = FacesContext.getCurrentInstance ();
FacesMessage message =
new FacesMessage ("cann't delete selected line:"+ printReqID ");
message.setSeverity (FacesMessage.SEVERITY_ERROR);
fctx.addMessage (null, message);
} else {}
System.out.println ("Delete");
flag = true;
specRow.remove ();
}
}

{if (flag)}
System.out.println ("before");
commitRows();
}
}

Can someone help me...

Hello

In your af:table try to replace lines = ' #{bindings. " XxwfsAvcardEmbossInterfaceVO1.rangeSize}"and
fetchSize = "#{bindings." XxwfsAvcardEmbossInterfaceVO1.rangeSize}' with
lines = ' #{bindings. " XxwfsAvcardEmbossInterfaceVO1.estimatedRowCount}"and
fetchSize = "#{bindings." XxwfsAvcardEmbossInterfaceVO1.estimatedRowCount}.

Regds,
Briant

Published by: Aline Sep 9, 2010 10:52

Tags: Java

Similar Questions

  • Make a mistake trying to init Bean

    Hi guys, I used Illudium last year and I was very happy with it. I feel a real proplem initializing the bean I am doing wrong?
    This is the code I used.
    < cfset assignpm = createObject ("component", "labrate.admin.cfc.assignpm") .init () >
    It's my error code comes back, I can't go beyond that. Whwn I drop the .init I am able to create the object.
    The value returned by the init function is not of type labrate.admin.cfc.assignpm.
    Here is a small code of the bean.
    < name cffunction = "init" access = "public" returntype = "labrate.admin.cfc.assignpm" output = "false" > "
    < name cfargument = "ASSGPM_ID" type = "string" required = "false" default = "" / > "
    < name cfargument = "EMAILNOTIFY" type = "string" required = "false" default = "" / > "
    < name cfargument = "EMAILCOUNT" type = "string" required = "false" default = "" / > "
    < name cfargument = "ASSIGNEDPM" type = "string" required = "false" default = "" / > "
    < name cfargument = "NATLAB" type = "string" required = "false" default = "" / > "
    < name cfargument = "NATPROG" type = "string" required = "false" default = "" / > "
    < name cfargument = "PMASSIGNEDID" type = "string" required = "false" default = "" / > "
    < name cfargument = "DATEASSIGNED" type = "string" required = "false" default = "" / > "
    < name cfargument = "WHOASSIGNED" type = "string" required = "false" default = "" / > "

    <!-run installers - >
    < cfset setASSGPM_ID (arguments. ASSGPM_ID) / >
    < cfset setEMAILNOTIFY (arguments. EMAILNOTIFY) / >
    < cfset setEMAILCOUNT (arguments. EMAILCOUNT) / >
    < cfset setASSIGNEDPM (arguments. ASSIGNEDPM) / >
    < cfset setNATLAB (arguments. NATLAB) / >
    < cfset setNATPROG (arguments. NATPROG) / >
    < cfset setPMASSIGNEDID (arguments. PMASSIGNEDID) / >
    < cfset setDATEASSIGNED (arguments. DATEASSIGNED) / >
    < cfset setWHOASSIGNED (arguments. WHOASSIGNED) / >

    < cfreturn this / >
    < / cffunction >

    Hi guys, I found my problem my bean I simply return the component. Rather than having the type of back that labrate.admin.cfc.assignpm all I need is assignpm which is the name of the component of the bean.

  • I tried to remove pictures of iCloud to make more room and they had also deleted from my Macbook Pro. How can I remove iCloud without deleting my Mac?

    I tried to remove pictures of iCloud to make more room and they had also deleted from my Macbook Pro. How can I remove iCloud without deleting my Mac?

    How iCloud library works is that all the photos are on iCloud and on the device connected to this library to iCloud. If you remove anywhere from anywhere, they are deleted.

  • While I'm trying to remove the MPEG-4 file, it says "make sure that the disk is not full or write protected and that the file is not currently in use.

    Original title: When I'm trying to delete file MPEG4, is not deletion. How can I delete file MPEG4?

    While I'm trying to remove the MPEG-4 file, it says "make sure that the disk is not full or write protected and that the file is not currently in use.

    Hello
     
    Method 1: Ownership of the file and then try to delete and see if that helps.
    Reference:
    How to capture a file or a folder in Windows XP
    http://support.Microsoft.com/kb/308421
    Method 2:
     
    Error message when you try to delete a file in Windows XP: "access denied".

    http://support.Microsoft.com/kb/298345

  • Remove all lines and insert them into Oracle can make performance worse?

    I m working in a project that I need to make a batch update regularly (every 4 months) of excel files. These files have doesn´t excellent key in their ranks.

    The development of a code that deletes all lines and inserts the entire base again is easier than one who checks in all the ranks of its primary key and if necessary update. (sometimes may be a key to 5 columns).

    My question is: if I delete all the rows in the tables of the insert it again, it will cause tablespace fragmentation and in a future loss of performance?

    Is there a way to avoid this?

    Thanks in advance

    Alexander

    This response helped me a lot.

    Thank you all

    Remove all lines and insert them into Oracle can make performance worse? -Stack overflow

  • I'm trying to sign several documents and I have my saved signature under "fill &amp; sign" the organization that generated the forms highlighted the signature lines and when I try to put my signature, it is pushed outside the signature.

    I'm trying to sign several documents and I have my saved signature under "fill & sign" the organization that generated the forms highlighted the signature lines and when I try to put my signature, it is pushed outside the signature.

    Hi katepell,

    You can simply drag the signature to the desired place by holding it with the mouse.

    Thank you

    Abhishek

  • Remove a line from several tables

    Hello

    I have a form that has what appears to be a single table.  Given that I needed 30 column (29 of them are single character fields) I had to use 2 objects from the table.  Then I had the ability to add and delete lines.  Add a line at the end is pretty easy.  Deleting a specific line is the problem.  For now, I added a third table that has a header line and a line of item body.  the body line is a button with the intention to withdraw this entire line of the table.  In other words, need remove the line in all 3 tables.

    My structure is:

    • Form1
      • (Some other subform past who is not serious for us)
      • SubformPersonnel (a subform sank)
        • SubformHeader (a positioned subform)
          • TextOverallHeader (text to label the oeverall 3 tables)
          • ButtonAddRow (adds a line at the end of all 3 tables)
        • SubformPersonnelTable (a positioned subform)
          • ContractorTableRemove (a table with a 1 column for the button Delete)
            • HeaderRow (line hidden to align the table with the other 2)
            • Element (a line with the button Delete)
              • CellRemoveButton (the cell with the button Delete and associated JavaScript)
          • ContractorTableLeft (a table with the left 15 printed columns)
            • HeaderRow
            • Contractor (a row of data to be deleted when it is clicked on CellButton above)
          • ContractorTableRight (a table with the right 15 printed columns)
            • HeaderRow
            • Contractor (a row of data to be deleted when it is clicked on CellButton above)
      • (Some other subforms that I'm not worried at the moment)

    The 3 tables are aligned to the headers of all line up, no space between them.  Body lines line up then and it looks like a large table.  From left to right, they are:

    ContractorTableRemove, ContractorTableLeft, ContractorTableRight

    Point lines and contractor are added when you click on ButtonAddRow in the header of all.  The initial number is set to 8 for each table, so I get 8 rows at the start. The minimum number is set to 1 for each.  I know that each row in each table has the same index number, because I filled in a cell in each table cell initialize durig.  This line, in the click event of the CellRemoveButton removes the row of the cell in this table:

    This.parent.parent._item.removeInstance (this.parent.index);

    I tried all kinds of ways to remove the same line (using the index #) in the other 2 tables: ContractorTableLeft and ContractorTableRight, but do not seem to get the correct correct syntax.  I tried hard coding references, using .parent as shown below and also tried to use an index 1 just to try deleting a line with no result.

    this.parent.parent.parent.ContractorTableLeft._Contractor.removeInstance (this.parent.inde, x);

    Can someone get me the correct syntax here?

    For example put a button Delete hidden on each table, click on that I saw, but I'm afraid it will get in the tables on each side of the table, in that it is the trail.  I reeally want just to refer to the line and remove it if I can avoid all these problems of further removal can cause problems.

    I copied the form to https://Acrobat.com/#d=7M8R50rEHf4AaVXppwyKLw

    Hi Karl,

    Here is your form you: https://acrobat.com/#d=oRRJP3W * OgBk6DqXXbJhgg.

    I've corrected the Add button, the button Delete and remove the button at the top. I annotated the script, so I hope you can follow.

    Hope that helps,

    Niall

  • I forgot the password of my phone, fortunately it has a fingerprint reader, and I can always get to the ive been trying to remove the password using my fingerprint, but it does not work!

    OK, I changed my password and all I remember about this, was that it was symbols caps and numbers I tried to remove it using my fingerprints, but it won't work. I have a dell studio 15

    Hello

    Try this - use the hidden administrator account to lower your user account (to the lowest level) APPLY/OK
    then go back and reset it to the Admin APPLY/OK - this clearly allows corruption. Do this several times.
    Then fix the password in your usual account. Do not forget to leave your account administrator if you
    wish.

    Make another Admin account with your password and use it to fix the others if necessary. (just for
    repair, don't use regular account, not a safety valve) always keep a spare ADMIN account.

    DO NOT LEAVE THE ENABLED LSA OR USE DAILY. If it corrupts you are toast!

    How to enable or disable the real built-in Administrator account in Vista
    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    You can run the Admin account hidden from the prompt by if necessary.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Problem trying to remove Security Essentials 2010

    I tried to remove my essential security rogue anti-spyware with the procedure recommended by Mr Murphy and I ran into a snag.  According to the instructions on bleepingcomputer.com I fines up to the Malwarebytes download link ' EXE (the new copy).  I can't access this download.  This is where I download from another pc and save it on my USB key?  that I have already downloaded and is now not good? (I had to stop) My previous downloads must be uninstalled and then start again? Also if I need to register download the Mawarebytes EXE in my flash drive exactly how I apply it as needed?  I appreciate your help!

    Hello

    Use above message for intense and thorough check for malware.

    1 make a Restore Point so that you can come back if necessary back although probably not required.

    How to create a Vista System Restore Point
    http://www.Vistax64.com/tutorials/76332-system-restore-point-create.html

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html
    2. copy BETWEEN these lines and paste it into Notepad - save as exefileFix.reg - then right
    Click on it and FUSION - REBOOT

    DO NOT COPY THE LINES
    -----------------------------------------------------------------

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\. [EXE]
    @= "exefile".
    "Content Type"="application/x-msdownload".

    [HKEY_CLASSES_ROOT\. EXE\PersistentHandler]
    @= "{098f2470-bae0-11cd-b579-08002b30bfeb}".

    [HKEY_CLASSES_ROOT\exefile]
    @= "Application".
    "EditFlags" = hex: 38, 07, 00, 00
    "FriendlyTypeName" = hex (2): 40, 00, 25, 00, 53, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6 d, 00, 52,------.
    00, 6f, 00, 6f, 00, 74, 00, 25, 00, 5 c, 00, 53, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6 d, 00, 33, 00,------.
    32,00, 5 c, 00, 73, 00, 68, 00, 65, 00, 6 c, 00, 6 c, 00, 33, 00, 32, 00, 2nd, 00, 64, 00, 6 c, 00, 6 c,
    00, 2 c, 00, 2d, 00, 31, 00, 30, 00, 00, 31, 35, 00, 36, 00, 00, 00

    [HKEY_CLASSES_ROOT\exefile\DefaultIcon]
    @="%1"

    [HKEY_CLASSES_ROOT\exefile\shell]

    [HKEY_CLASSES_ROOT\exefile\shell\open]
    "EditFlags" = hex: 00, 00, 00, 00

    [HKEY_CLASSES_ROOT\exefile\shell\open\command]
    @="\"%1\" %*"
    ""IsolatedCommand"="\"%1\" %. "

    [HKEY_CLASSES_ROOT\exefile\shell\runas]

    [HKEY_CLASSES_ROOT\exefile\shell\runas\command]
    @="\"%1\" %*"
    ""IsolatedCommand"="\"%1\" %. "

    [HKEY_CLASSES_ROOT\exefile\shellex]

    [HKEY_CLASSES_ROOT\exefile\shellex\DropHandler]
    @= "{86C86720-42A0-1069-A2E8-08002B30309D}".

    [- HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\UserChoice]

    --------------------------------------------------------------
    DO NOT COPY THE LINES

    If necessary:

    Check the fix of exe here
    http://www.Winhelponline.com/articles/105/1/file-association-fixes-for-Windows-Vista.html

    Also check this one if it applies
    http://www.Winhelponline.com/articles/165/1/restore-the-exe-file-association-in-Windows-Vista-after-incorrectly-associating-it-with-another-application.html

    How to set default Associations for a program under Vista
    http://www.Vistax64.com/tutorials/83196-default-programs-program-default-associations.html

    ===================================
    ===================================

    If necessary: to determine what type of program is the cause after checking for malware.

    To search for older programs try these:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    Autoruns - free - see what programs are configured so that it starts automatically when
    your system boots and you connect. Autoruns also shows you the complete list of the registry
    and where applications can configure Auto-start for the files settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • Remove a line of table with a button in Livecycle Designer SS3

    I have a table in Livecycle which includes 16 static lines. Several lines can be added or removed dynamically at the end of the table.

    I want the user to be able to remove one of the static lines if they want to however I can't get the script to work.

    I have a button at the end of the line with the script:

    driverTable._Row2.removeInstance (true);

    I tried various forms of this script such as do not use the abbreviation for 'instanceManager', leaving 'real' outside, etc. Where it says 'Row2' I would like to use this script for the following lines, Row3, etc. Row4.

    I tried with the initial counter value of 1 and tried to zero. The table is in a fluid subform.

    Can anyone help?

    Hello

    A line cannot be set to 0 cases, if you want to remove a line, you need to hide by using its property of presence...

    But if you use 1 table for 16 different ranks, why don't you set the table with dynamic lines and have an initial 16 meter, then you can delete the lines you want with the removeInstance method

  • Insert several lines with dynamic data

    Hello
    When I do an insert into a table that has several lines of dynamic information. on
    a page, it inserts all rows that are dynamically filled. I want only what he
    to insert the lines that I choose the initials on. How can I do? Let's say I
    have 5 items that are displayed on a page and I want to insert only original
    the first 2 because the last 3 are left blank, how should I do this? I tried
    implementation of an if statement that says:

    < cfif "form. "Help of # PNR_Approval_Initials #" NEQ "" > "".

    Then make the insertion in the table

    < cfelse >
    < / cfif >

    I have this game were also up in a loop that says:

    < cfloop index = "help" list = "" #form.listofids # "delimiters =",">"

    Here is the code for just the insertion. I also have a code here
    Update another table. I got this to work, so I just try to get the insertion
    works fine for the moment. I can not use this where the query statement:
    Where ItemID = #id # because I'm trying to insert into the table of approval, not
    the items table. The table is just updated with some other info. in
    a few other input boxes.

    < cfloop index = "help" list = "" #form.listofids # "delimiters =",">"
    < cfif "form. "Help of # PNR_Approval_Initials #" NEQ "" > "".

    < cfquery Datasource = '#application. DataSource #">"
    Insert into accreditation (APV_ItemID,
    APV_ECID,
    Document_Type,
    Approval_Initials)

    Values (' #Evaluate ("form.) (' ItemID # help # ") #',
    ' #Evaluate ("form. ("ECID # help #") #',
    < cfif isDefined (form '. ') ("Help of # PNR_Doc_Type # ') and
    "form. "Help of # PNR_Doc_Type #" NEQ "" > "".
    ' #Evaluate ("form. ("Help of # PNR_Doc_Type # ') #',
    < cfelse >
    NULL,
    < / cfif >

    < cfif isDefined (form '. ') ("Help of # PNR_Approval_Initials # ') and
    "form. "Help of # PNR_Approval_Initials #" NEQ "" > "".
    ' #Evaluate ("form. (Aide de # PNR_Approval_Initials #») #
    < cfelse >
    Null value
    (< / cfif >)

    < / cfquery >

    < / cfif >
    < / cfloop >

    On the page display, just a table of dynamic info. Here are the 4
    things that I have on this page that needs to be inserted to the database.

    < input type = "hidden" name = "' ECID #ItemID #" value = "#ECID #" > "
    < input type = "hidden" name = "' ItemID #ItemID #" value = "#ItemID #" > "
    < input type = "hidden" name = "" PNR_Doc_Type #ItemID # ' value = "PNR Req" > "

    < td align = "center" >
    < cfif Approval_Initials is not "" > "".
    #Approval_Initials #.
    < cfelse >

    < select name = "PNR_Approval_Initials #ItemID #" >
    < option value = "" > select initials < / option >
    < cfloop query = "ShowInitials" >
    < Cfif Engineer_Initials EQ 1 >
    < option value = "#Initials #" > #Initials # < / option >
    < / cfif >
    < / cfloop >
    < / select >

    < / cfif >
    < table >

    Can someone help me please on just the insertion in the database so that it
    will insert on the lines that I chose the initials on and not others? Thank you.

    Andy

    You almost managed, but I see that you have commented.

    (" The help of # PNR_Approval_Initials # ') AND form ["PNR_Approval_Initials # help #" ""] NEQ "" >

    Do things here

  • Using pathfinder to cut a shape of several lines

    Hello

    There is probably a really easy answer to this, but I'm not. I created a model space "scratches" by using several lines aligned and equal remote etc, I then placed a form of rectangle on top of these lines and to extract the rectangle of the lines so that I'm only left with the pattern of scratches in the area of the rectangle. Hope that makes sense, could not think of a better way to describe!

    Thank you

    I'm not sure that understand what you're trying to do, i.e. the need to use the Scout at all. What group the traits and resize or make a compound path? Or even by selecting copy/cut, then 'paste' in the new frame?

    You try to use it as a filling for a frame that is containsomething else? If so, you might want to build a gradient instead.

    Peter

  • remove this line if you want to edit the code by hand? uh who's online?

    Several of my pages are locked and I don't know why. As I work in the code, I remembered that I modified a text in a SendEmail by directly editing the page rather than to use the server behavior. Do not understand why that would matter, but whatever...

    Now I wonder if that is causing the problem, I ran across this commented line in the code:

    remove this line if you want to edit the code by hand

    But they talk about the line just after //remove this line or they mean the actual comment line

    remove this line if you want to edit the code by hand?

    Thanks for your help

    Given that you post the code no, others can only guess, but I would have thought that it is pretty obvious that removing a comment will make no difference for the execution of a script. This means almost certainly remove the Next line.

  • View the information from the related table instead of the ID in several line datablock

    Hello

    I searched on the web, the forum and the documentation, but I have not found a solution to this problem:

    I have two tabs with a relationship of the master / detail of one-to-many. Block detail data shows several lines such that it can be several associations table of mater in the details and I want to display the description of the master data block instead of the field with the ID for each line in the block of retail.

    I tried to place an item with the option 'copy value', but then I lose the relationship of master / detail, because that is what forms wih the field id for linking blocks.

    Also, I've seen in other posts that I can use a view, but I can't understand how would I update or remove data then.

    The only thing that I realized is to the description field in its own datablock in the same tab, a relationship master / detail-detail (or master-detail-master). BTW, I don't think it's beautiful "formulas"programming"and it does too much for my needs."

    I guess it must be a trivial thing, but I don't know what to try next. Thanks in advance!

    Published by: user10278211 on Sep 17, 2008 20:13

    AAH, I think now I got your management!

    You have 1 Deptno and dname "XYZ" in the master and you want to display:

    EmpNo Ename DName
    1     User1 XYZ
    2     User2 XYZ
    

    -What?

    If so:

    1 create a new element in the retail block, let's call it DSP_DNAME, set database property to point to 'no '.
    2. create a POST-QUERY-Trigger on detail-block with the code: DETAILBLOCKNAME. DSP_DNAME: =: MASTERBLOCKNAME. DNAME;
    3. create WHEN-CREATE-RECORD-Trigger with the same code.

    That's all

  • Easy way to remove excess line breaks in txt, html, and epub files?

    Transfer to my e-reader to read web pages. I have to convert everything in epub, because the PDF files and djvus are designed for larger screens, and txt and html are not displayed correctly.

    In any case, some pages have a lot of extra newlines that are arranged for larger screens.

    I have to remove the line breaks to make it readable. I know that DevonTech wordservice works in txt, which I can convert it to Epub. Is there something that works in Epub itself? Is there something else that works in txt?

    Thank you.

    INTHE html, these line breaks appear to be either < br / > or < br / > where the paragraph breaks are < p >. So, it seems easier to edit files ePub in the editor, as the iWrite series Epub or the caliber, that the modification of the txts.

Maybe you are looking for