Deleting line of advanced Table region
Dear members,I have an OFA Page where I use Advanced Table region to display the data in a table.
As soon as the page opens I displays a single line in the area of advanced table. In this area, I also gave a button called + (using the feature of ADVANCED TABLE COMPONENTS, FOOTER, TABLE FOOTER, ADD TABLE ROW) add one MORE LINE.
So when the user clicks on this button a new row will be added. Now, if the user wishes to remove how do I achieve this.
Please please help me in implementing this feature.
Thanks in advance.
Best regards
Arun D. Reddy
Hi Arun,
You must first create a button or image called Delete on your advanced table region.
Action type: firePartialAction
Event: remove
Then in your CO PFR, write the code below
if ("delete".equals(pageContext.getParameter(EVENT_PARAM)))
{
String rowRef = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
OARow row = (OARow)am.findRowByRef(rowRef);
row.remove();
}
I hope this helps. :)
Thank you
SK
Published by: SK February 9, 2011 17:21
Tags: Oracle Applications
Similar Questions
-
Deleting lines in a table with a button
Good day all.
I seemed to have encounter a problem with trying to add a delete button in a table that deletes a row. Let me expain.
The form contains 1 table that has 7 elements composed of fields of text and drop downs. This table is in its own subform.
There is a button to add lines that the user needs. The code I use to add lines: psl_list_subform.instanceManager.addInstance (1);
I was asked to add a delete for a user button can delete rows. I added this at the end of the table. SO whenever a row is repeated, there's a button Delete. The code I am "trying" to use is;
Table4.Row1.instanceManager.removeInstance (this.parent.index);
When I click on the button Delete, nothing happens. I grew up the JavaScript debugger, there is no errors.
Any ideas what I missed.
Thank you all
Chomp
Hello
my understanding of your form, you can add new instances of the "psl_list_subform" subform that contains a single table row.
The hierarchy that resemble 'psl_list_subform. Table4.Row1.removeButton ".
To remove an instance of the subform, a button in the row of the table, the script needs to refer to the 3rd parent of the button Delete.
this.parent.parent.parent.instanceManager.removeInstance(this.parent.parent.parent.index);
Explanation: this = Radiobutton2, 1 parent = Row1, 2nd parent = table 4, 3rd mother = psl_list_subform
-
How to get the current line of advanced table
Hello
I have the following code to retrieve the value of one of the columns of an advanced table column:
OAViewObject vo = (OAViewObject) am.findViewObject ("AAALineVO2");
He perks up the first value of the first column to record properly, but when I add a new line, is not picking up the column value more.
If (vo! = null)
{
OARow vorow = (OARow) vo.getCurrentRow ();
ColA string = (String) vorow.getAttribute ("ColumnA");
String message = ColA; to send a message so I can check the value of the column
throw new OAException (message, OAException.INFORMATION);
}
What I am doing wrong?
Thanks in advance,
Nmethod findRowByRef (java.lang.String) not found
Make sure that you write it in AMImpl not in CO.
Thank you
AJ -
Clear/clear to clear the line in the table region forward button
Hello
IAM using region table in advance for items on the level line.
If I press the button for a line of AddAnother he is setting fund new line to add records, once if I click on add another line button, I don't have control to erase/delete the record. If anyone has example code, please share.
Thank youTry with this
public void deletelines(String LineId) { getOADBTransaction().writeDiagnostics(this, "In the delete Method LineId==>" +LineId, 1); OAViewObject vo = getXxafpEepStageRebateLineVO1(); XxafpEepStageRebateLineVORowImpl rowi = null; int fetchedRowCount = vo.getRowCount(); getOADBTransaction().writeDiagnostics(this, "Row Count is =>" + fetchedRowCount, 1); RowSetIterator selectIter = vo.createRowSetIterator("selectIter"); Connection conn = getOADBTransaction().getJdbcConnection(); try { if (fetchedRowCount > 0) { selectIter.setRangeStart(0); selectIter.setRangeSize(fetchedRowCount); for (int i = 0; i < fetchedRowCount; i++) { getOADBTransaction().writeDiagnostics(this, "in the foor Loop" + i , 1); rowi = (XxafpEepStageRebateLineVORowImpl)selectIter.getRowAtRangeIndex(i); String voLineId = rowi.getLineId()+""; getOADBTransaction().writeDiagnostics(this, "voAssignmentId && tableAssign id is "+voLineId "," LineId, 1); if(LineId.compareTo(voLineId) == 0) { // This performs the actual delete. rowi.remove(); getTransaction().commit(); break; // only one possible selected row in this case } } } } catch(Exception e) { e.printStackTrace(); } selectIter.closeRowSetIterator();//Here we close the rowSetIterator }//deletelines end
Thank you
AJ -
deleting line of AF: table, using window note as confirmation
Hi Experts,
I use JDev 11.1.1.4. Here, I have a requirement that I have to create af:table in which a column should be remove the image and clicking on this image will open 'window of note' that will ask the user for confirmation if user confirm and then delete the line.
is it possible to use the "note" as a confirmation. How to customize the 'window of note' to show the buttons(yes,no) conformation in side it?
Help, pleaseHello
have you tried dragging a control element in the note window? Sometimes by train is easier than to ask. Drag an af:popup, add an af:noteWindow and an af:commandButton. You can launch the Java popup.
Frank
-
Can we do a line read only in the advanced table?
Hello
We have an obligation where the user wants to the first line of a table advanced to readonly, and remaining lines as editable lines. Can someone please let me if we can achieve this?
Thanks in advance.
SolèneHello
Yes, you can set row as read only in the table in advance.
Steps to follow:
(1) take the attribute Transient seen as ControlReadonly (Boolean Type) in the attached with advanced table view object.
Note: Your all the lines will have now a new attribute called ControlReadOnly.(2) using the property read only set SPELL on each field of your advance deposited the region.
as ReadOnly ${oa.. ControlReadOnly} (3) the loading of the page, in the query itself process you can set the attribute to True and if you need frontline to travel up to the end of the rows in the table and set the value to False for ControlReadOnly.
ex: line = vo.first ();
row.setAttribute ("ControlReadOnly", Boolean.TRUE);Kind regards
Swati. -
Advanced table add another line
Hi all
I created a table in my custom page region. This isn't a region required in my page, but there are other fields that are required in the page. At the moment, I can't add another line in the advanced table unless all other required fields on the page are given to certain values.
Is it possible to comeout of this situation.
Thank you.
PKSKO
the validation of the side game server disable to true.
Thank you
Kumar -
Deliver in advance to region Table - please help!
Hi all
I have a personalized page where I use a region advanced table.
The question - what is the value in advanced of the table row [two fields are there both are MessageTextInput] is automatically populated the page rendering. Is he is seeded feature of collateral table?
If you how to solve this problem...
I need to display line with no value or empty. I heard that if the attribute that is attached to the column of the row has a value then it shows on the frontend automatically and if I remove the line then I got white.
Kind regards
AjayAjay,
Create dynamically by default 5 lines in adavance table using the loop.
But it's very difficult to manage the events if you create lines dynamically.
GOLD),
Try with several rowlayouts in AdvanceTable.
Thank you
Kumar -
Hello I have an advanced array.
When I click on apply and remove transactions.
The table is updated, and it brings me to the last line of the table, i.e. the rank 11 in this case.
Is there a way to always stay on the first set of rows?
vo.first () call outside the loop. option 1
See you soon
AJ
-
Deleted lines flashback: unable to read data - table definition has changed
Hi all
Its really Important.
I unfortunately truncated a table using
Trancate table mytable;
and made an alter table to reduce the length of the pricision data.
But I need back data of tabla
I used the command to get the deleted lines, below, it shows error.
query: select * from pol_tot versions between timestamp systimestamp-1 and systimestamp;
error: ORA-01466: unable to read data - table definition has changed
query: flashback table pol_tot to timestamp systimestamp - interval '45' minutes;
error: ORA-01466: unable to read data - table definition has changed
Well want to share your ideas how can I deleted thoose Records.
Edited by: 887268 July 8, 2012 12:26This
and Made a alter table to decrease data pricision length.
is the cause of your error.
Now please do what is obvious.
-------------
Sybrand Bakker
Senior Oracle DBA -
view multiple lines in the advanced table
Hi all
I have a requirement. I created advancedtable. When the page loads, to display 4 rows at a time. Can anyone please help how to achieve this req
Kind regards
MuraliHello
Write the code below in AM that will create 5 blank lines in the advanced table.
xxVOImpl voImpl = getxxLineVO1();
voImpl.setWhereClause ("1 = 2");
voImpl.executeQuery ();
for (int i = 1; i)<=5>=5>
{
Line = voImpl.createRow ();
voImpl.insertRow (row);
row.setNewRowState (Row.STATUS_INITIALIZED);
row.setAttribute ("column1", i);
row.setAttribute ("column2", "XYZ");
}Kind regards
Mary -
Add background lines advanced table.
Hello
When we try to create a new line in the table by programming using the ViewObject, its lines add on top. How to add a new line at the bottom of the table?
Thank youHi user539616,
Add the following code before inserting a new line.
VO. Last();
VO. Next();
vo.insertRow (row);hope this will help you...
Thank you...
-
How to add new record to the Advanced Table.
Hello
I created a table advanced in a Page customized and added a button in the footer and added events for this button. After clicking this button, I need to add a line in addition to advanced table. Pls share code for this requirement.
Thanks in advance,
Roxanne.ViewObject attribute is null; ViewUsageName: (XXIosAuthorisedVO1); RegionItem: (bleep)
ViewObject attribute is null; ViewUsageName: (XXIosAuthorisedVO1); RegionItem: (Ext)
ViewObject attribute is null; ViewUsageName: (XXIosAuthorisedVO1); RegionItem: (used)Please ensure that for these elements of three region Bleep, Ext & employee
you have defined the attribute of the view property.
Thank you
AJ -
[Urgent] Problem with some advanced table rows
[I searched the archives and found a lot of emails on the same subject but none did so I ask this time]
Hi all
I created an advanced table and I want to have the feature, delete the selected lines.
For the implementation of this feature, I created a transient selectflag [varchar2] attribute and related to several select an advanced array element, but the table always returns NULL for the selectflag attribute regardless of the line currently selected or not.
One thing I noticed, is that I can provide 'value checked' and 'unverified value' property in the advanced table several select an item. What is the question?
Can someone please guide, its quite urgent.
Concerning
LokeshHi Lokesh,
I noticed this error with at least 4 or 5 users and at least reason was that they attached AM even twice to the page, please check that you are also not the same error.
Kind regards
Out Sharma -
How to delete lines in pieces?
How to remove 12,33,200 lines in the oracle table?
I want to remove 10000 lines each time, otherwise, my rollback segment is not big enough to cope.
Yes, is there some sort or an easy way to do it?
Is anyway to do this in a single sql statement? I guess not. Correct me if I'm wrong :-)
Thanks in advance!
Published by: PhoenixBai on July 21, 2009 10:39PhoenixBai wrote:
It's a way to do it, however, I would always ask "is there a better way than that?Yes. You can use the same approach in Oracle parallel query processing.
Simplistically - a table has a data block and a block of data end start. You can calculate the physical address of the lines for a row of this table in the starting block. Similarly, you can calculate the last address of a row of this table in the end data block.
You divide the range of data block start and end in several beaches - where each line has an equal number of data blocks. Assume that the table includes a 1000 data blocks. We create 5 ranges, each with 200 data blocks. Now, for each of these lines, we can determine what would be the rowid (physical address lines) for the first and last lines to this range of data block.
We take our original SQL that will hit most of the lines in this table:
delete from fooTable where col_n = :filter1
We add a rowid range predicate to it:
delete from fooTable where col_n = :filter1 and rowid between :1 and :2
We can now start 5 process (in series or parallel) and to provide each of these with the physical ROWID calculated for 5 lines. Thus, each SQL get 200 blocks of data to deal with. As opposed to a single SQL that would have made all the data blocks of 1000.
This approach only works if the SQL is similar to a full table scan - this means that your SQL will probably hit most of the lines in this table.
Basic code for this approach was published in [this thread | http://forums.oracle.com/forums/thread.jspa?messageID=1534900#1534900]. (ignore the smiley in the code, which is assumed to be zero bindvariable, but is now rendered differently by the new version of Jive)
Maybe you are looking for
-
I can't find new app after upgrading to ios 9.3?
I have got all the other features of IOS 9.3 but can't able to find the news application?
-
excellent control of spreadsheet for windows 64 - bit OS
Hi all I am looking for a way to use excel (or something equivalent) in a 64-bit labview application. I am using OWC11 in a 32-bit application to allow users to enjoy the most excel features and build a table that is used by the application to perfo
-
ac149tx: cannot change the brightness
I installed win 10 in my laptop free back ac149tx but f2 f3 brightness keys don't are not working.i tried to change the brightness of the windows Mobility Center, but his does not work as well.
-
Original title: keep me connected When I check the box to keep me connected, when I sign, it dose not keep me connected. What can I do?
-
When I edit my photos in Windows live Photo Gallery can't find the. I found where the originas are registered but the edited images disappear.