How to reorder rows in advanced table
Hi ,
I have a requirement to create a advanced table on a page which has col say A,B ,C
i need to create 2 rows as the pageload which will show fixed values in column A for initially created two rows
1) free
2) chargeable
after this if user clicks on the add another row button
he should create another row and Column A should be editable and user has to fill value as below
3) Extension
i am able to do this much on the page, but the problem is with ordering of rows
order of rows should be
1) free
2) chargeable
3) extension
but when user click to create the row it always create the row on the top rather than on bottom
Please help!!
Hi
On the Add New Row button click
Get the reference to Vo
Row row=vo.last()
vo.setCurrentRow(row);
vo.next()
vo.insertRow(vo.createRow())
Thanks
Ivar
Similar Messages
-
How to add new rows in Advanced Table along with attribute value?
Hi,
I have one advanced table that contain one messageChoice and messageTextInput field.
I want to add new rows in advanced table. I can able to add rows using the AddMoreRows button in the footer of the advanced table,
but I want to add attribute value(contactId) each time when new row created.
contactId I am getting from pageContext.getParameter("contactId")
How to achive this? Please suggest.
Thanks & Regards,
SunitaHi,
There are two ways to do it.
1. Use create method of entity object, create method fires whenever you creates new row.
2. Handle the event raised by addanotherrow button and write logic there to initialize contactid as you are getting contactid from pageContext so I will suggest you to use this method.
if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
&& ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
//write your logic here to default the contact id
Hope this will help.
Regards,
Reetesh Sharma -
How to save the selected rows from Advance table into database
Hi
I have requirement like..
In custom page , Manager Search the Candidates and selects the candidate ROWS from advance table.
The reqt is how to save the selected multiple rows into the database.hi Reetesh,
In Custom page
Supoose the Recruiter Search is for Position Finance Mangager , it retrieves 100 rows , out of which Recruiter select 10 rows .
So in Such scenario how to save this 10 rows against Recruiter
, i mean , Is i need to create custom table, to save Recruiter , these selected 10 rows.
I hope u understand my question -
I am unabel to select all rows in advance table using Select All option
Hi all ,
I am unable to select all the rows in advance table . Select All option in advance table selects all rows present in working page but doesnt select the rows which we get by clicking next button ... i am having a requirement to select all the rows with a single click on select all , is it possible ..
Plz help
Thanking you allHi,
I'm using an adf table but i don't want to have the "Select All" and "Select None" options above the table. Does someone know how i have to remove those links?
Or is there indeed a solution to override the methodes of those links?
Message was edited by:
Alexander -
How To Create the New Advance Table in standered RN?
Hi Gurus,
How to create the New Advance Table in stander RN?
My requirement is slandered RN Having 1 Advance Table that advance table retrieve the two types of data 1.FUNC 2.BEHV Now My Client is asking split the data
1) FUNC Data
2) BEHV Data.
Now i did first one through Vo Extension Filter the FUNC Data. now i really struck the Another part plz help me i cont go the next step....pl z tell me what are prerequisites are needed and how to go next step plz help me Gurus.
Regards,
SriniHi,
I have adding new & existing forms and creating User Defined Field in row. example on adding a field in an existing Form and its corresponding to the database, including user input validations?
I want to add a new field in the detail section ( row area ) of a Production Document, and save it to database and read it back when the document is opened.
Thanks.
Syed Waqar Khurshid -
How to get current row of Advanced table with no submit
I have an advanced table with an 'Add another button'. When an empty row is created by clicking this button, LOV is used on the first column to populate other fields of the row. The rows of the table carry a button called "Add dependencies" whose functionality is to take the user to a different table to add rows to a different VO. This button is just a button and not a submitButton. I am passing the row's primary key as part of the URI as Vo attribute FdTaskId={@FdTaskId}
The button works perfectly fine for database fetched rows (rows already present in the database), but, for the rows created using 'Add Another button', though LOV populates all fields including the primary key, the URI parameter passes null to the next page. That means, the VO attribute is not set. This works fine only when a 'submit' happens in the first page. For example, if I click Add another row again, then the previously inserted row passes the primary key fine as part of {@FdTaskId}.
Could you please help me how I can resolve this issue?
Thanks,
DattaI am doing exactly that. My issues is that, VO attribute is passed correct for the table rows which are fetched from the database. For the table rows which got created through 'Add Another button', the VO attribute passed through URI as {@FdTaskId} is returning null. The VO attribute sets only when a form submit happens. For example, after adding a row through 'Add another row' button, click the same button again to add one more row and now go back to previously added row and now you can see that its VO attribute is set ({@FdTaskId} carries value )
-
How to change VO's dynamically for a item for each row in advanced table?
Hi All,
We had a requirement to filter the employees based on the search criteria table. I am using advanced table for developing search criteria.
In that table I am having three columns. Operator (messagechoice), Criteria Type (messagechoice), and Criteria value (messageLovInput). Also 'Add Another Row' functionality is available.
My requirement is:
First Row:(Initial Row)
When the user selects a value in Criteria Type, only the values that are relevant to that type should be displayed in the Criteria Value.
Second Row: (when the user selects Add Another Row button)
When the user selects a value in Criteria Type, only the values that are relevant to that type should be displayed in the Criteria Value.
The problem I am facing here is, the Criteria Value column is pointing to only one VO at design time. But wee need to change that VO dynamically without disturbing other rows depending on the Criteria Type value.
Is it possible to do so?
Note: User can add n number of conditions as he want.
Can anyone help how to acheive this.
Regards,
Sundeep.Check Dynamic Poplist section under Standard Web Widgets in Chapter 4 of OA Framework Developers guide.
-
How to get control on each row in advance table
hi, i have a advanced table with some data, in each row i have two radio buttons which i need to set depending on some column value in the row, i tried by following code
for(SoftCompVORowImpl row2 = (SoftCompVORowImpl)svo.first();row2!=null;row2=(SoftCompVORowImpl)svo.next())
if(row2.getAttribute("CommitEndDate")==null || row2.getAttribute("CommitEndDate").equals(""))
onetime.setSelected(true);
recurring.setSelected(false);
else
onetime.setSelected(false);
recurring.setSelected(true);
but this code is making set only one radio button (onetime), which ever i am making first true its getting selected, i need to know how to get control of each row....Babu,
Basically you should use the decode function in your sql query itself and attach it with BC4J properties of radio buttons.In that case you don't have to worry about setting them declaratively !
--Mukul -
How to default Sysdate in Advance table region on clicking Add Another Row
Hi,
Can any one please help me how to default Sysdate (MessageTextInput column) in Advance table region on clicking Add Another Row.
Thanks,
MohanGot it... thanks mukesh..here it works.Reference to others!!!
if (ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
OAViewObject vo3 = (OAViewObject)am.findViewObject("XxStageLineVO1");
OARow row1 = (OARow)vo3.getCurrentRow();
java.util.Date sysdate = pageContext.getCurrentUserDate();
String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
row1.setAttribute("StrtDt", convSysDate);
} -
How to get the values of all rows in advanced table
HI All,
I am using an advanced table to enter the values for the service contract line (its a custom page)in that advanced table i ahave column with lov called task number for that task number once i had choosed one task number and creating one more row using add anethor row button i want to restrict the user to not to choose the task number which was entered in the previus row.
Or if this is not possible i want to restrict the user by showing an error message when click on the submit button by saying you have choosed the duplicate task number please choose a uniqu task number
please give some hints
thanks
ajayHi
your approach will have two steps
1.) use the row refernce and get the value of task number of the row which is enterd by user .
2.) use getRows in range and compare values of task number of every row with the user selected value ,if value match then throw error.
Thanks
Pratap -
How to get current row from advanced table
Hi,
I have the following code to pick the value of columnA from one of the columns of an advanced table:
OAViewObject vo = (OAViewObject)am.findViewObject("AAALineVO2");
if (vo != null)
OARow vorow = (OARow)vo.getCurrentRow();
String ColA = (String)vorow.getAttribute("ColumnA");
String message = ColA; //to throw message so i can verify the value of ColumnA
throw new OAException(message, OAException.INFORMATION);
}It's picking up the first value of ColumnA of the first record correctly, however when I add a new row, it's not picking up the value of columnA anymore.
What am I doing wrong?
Thanks in advance,
NTry with this:
import oracle.apps.fnd.lookups.server.LookupCodeVORowImpl;
public void aaa (String row)
LookupCodeVORowImpl laborcreateeovorowimpl = (LookupCodeVORowImpl)findRowByRef(row);
}Thanks
--Anil -
hi all,
i have a requirement where we have to calculate sum of the row values in advanced table
when i click on ADDROW button a new row is displayed after entering the values
i need to get the sum of values that i enter into the new row
i know about RECALCULATE button which gives sum of columns but i need to get the sum of the rows
plz help me.........
thanx in advance
DEVHi Dev ,
You need to make use of iteration , loop through every record in the VO get the column value and keep adding it
to obtain the sum .
Here is the code to loop through and get the column value
OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
int sum = 0;
OAViewObject oaviewobject =(OAViewObject)am.findViewObject("ApplicationsListVO"); // your vo name attached to table region
if(oaviewobject!=null)
oapagecontext.writeDiagnostics(this,"View Object is exists",OAFwkConstants.STATEMENT);
int rowcountValue = oaviewobject.getRowCount(); // retruns no of rows
Row rowAdv= oaviewobject.first();
RowSetIterator iterator = oaviewobject.createRowSetIterator("iterator");
iterator.setRangeStart(0);
iterator.setRangeSize(oaviewobject.getRowCount());
for(int i=0; i<iterator.getRowCount(); i++)
oapagecontext.writeDiagnostics(this,"Inside For loop ",OAFwkConstants.STATEMENT);
rowAdv =iterator.getRowAtRangeIndex(i); // start from 0 to fetch count ( no of rows )
if(rowAdv != null)
if(rowAdv.getAttribute("VacancyName")!=null) // get your column name
vacancyValue = rowAdv.getAttribute("VacancyName").toString();
Sum = sum +vacancyValue ; // Obtain the sum here
Let me know if you need further inputs .
Keerthi -
How to disable a Column for a particular row in Advanced Tables
Hi All,
We are using an Advanced Table for search criteria. Our requirement demands to disable a column (we are using messagechoice item in that column) for only first row. We use standard Add Another Row functionality to add the rows.For the remaining rows it (message choice) should be enabled. Can anyone help me to solve.
Regards,
SundeepYou can either use a Switcher or OADataBoundVariables for this.
Please see the section OADataBoundVariable in the dev guide. Based on certain View Attribute value, you can set the specific column in the table as Read Only.
Switcher can be very similar too. Decide an Attribute for the Switcher and make sure the first row (which you want to disable) has some specific value. All other rows should have some other value. Decode can help you here. Then you would need to create two cases. Under the specific to first row, have a read only item. For the other case, have an enterable item. A little read through of the Switcher chapter in the Dev guide would clarify the doubts if any.
Regards
Sumit -
How to show the two advance tables In a ROW
Hi ALL,
There is any Option to show the two advance tables In a ROW
Thanks&Regards
vinuI have responded to your other post. Kindly respond to that and close this one.
Regards
Sumit -
IRecruitment - custom page based on selected row in advanced table
HI,
We are implementing an addition to iRec. From the vacancy search page I have added an extra image column called worklog to the advanced table. Within the attributes I have set the view instance and and view attribute to
View Attribute VacancyId
View Instance IrcVacancyVO
However this value does not get passed across. I have even called the image ID VacancyId in the hope that this value pair would be posted to the custom app I have written.
I know this is a pretty low tech question on here, but does anyone know how I can pass the id of the selected row acroos to my custom page?
TIA,
SimonHi Simon,
In OATables we can not get the handle of current row.
The alternate solution is to call an AM method, execute the method and get the value from the VO row. Return it back to CO and then you can call your new page from the Search page in iREC.
it should work. Let me know if you are facing any problem.
Thanks
Anoop
Maybe you are looking for
-
Multiple iCloud accounts and find my devices
i have an apple id for app store that my wife and i share. i have a icloud account for my stuff and use it for find my devices on our iPhones,iPads and my macbook pro. my wife has her icloud account for her stuff. my question is how can i add her mac
-
Usage of keyword static at different places in a Java Class File
Hi i am Raj, i just wanted to know where all i can use keyword "static" and what does tht usage mean? For example, what do you mean when you declare a class static, what do you mean when you declare a method static, what do you mean when you declare
-
I'm new or Oracle and am trying to emulate the JDBC function TIMESTAMPDIFF(interval, timestamp1,timestamp2). This function returns an integer which represents the number of intervals by which timestamp2 is greater than timestamp1. The interval may be
-
Mountain Lion (Mail 6.0) Issue
I just purchased and installed Mountain Lion. If I go into Mail after quitting and re-opening it, I sometimes get this tiny screen glitch over the message (mostly when there is a link). So I'm just assuming it's from Mountain Lion being buggy since
-
On a layer not allowed by settings
I have a board with dozens of the following errors reported by DRC: The object "Trace width (nn.nnn mil) Layer (Copper Bottom) Clearance (n.nnnn mil) Net (3P3V)" is on a layer not allowed by the net settings and The object "Trace width (nn.nnn mil) L