Setting the current in an ADF table via click
Hi,
I have created a HTML table in a jsp by dragging a DataControl from the DataControl Palette. Can I set the current row by clicking a table row?
Thank you for any Information!
Simon
hi,
take a look at this thread
how to get a pagination dropdown inside an ADF Faces Rich Client Table ?
Timo
Similar Messages
-
Get the current item in advance table by clicking button
hello friends,
i have an urgent requirement that...
1) i have a search page, when i click the go button all the search results should populate into table region.
2) every row having username, firstname,lastname,email ...etc. and one disable user button
3)suppose user can click any row and click disable user button that user should be disable by calling Oracle Api
here my code everything is ready, i am strucking to get the username from row...and then paas it to the oracle api
if(pageContext.getParameter("DIsableUser")!=null)
OADBTransaction txn =am.getOADBTransaction();
CallableStatement callablestatement1 = txn.createCallableStatement("begin FND_USER_PKG.DISABLEUSER(?);end;",1);
System.out.println("procedure1 is:"+callablestatement1);
try
callablestatement1.setString(1,UserName);
callablestatement1.executeUpdate();
callablestatement1.close();
txn.commit();
catch(Exception e)
throw new OAException(e.getMessage(),OAException.ERROR);
//throw new OAException("POS","MODPOS_SUPPLIER_EXIST");
very urgent...can any one give some solution.
Thanks
krish.Anand, thanx,
no luck...
if("update".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
String userName="";
if(rowReference != null)
PosUserAdminVORowImpl vorowimpl = (PosUserAdminVORowImpl)am.findRowByRef(rowReference);
userName = vorowimpl.getUserName();
System.out.println("print username"+userName);
OADBTransaction txn =am.getOADBTransaction();
CallableStatement callablestatement1 = txn.createCallableStatement("begin FND_USER_PKG.DISABLEUSER(?);end;",1);
System.out.println("procedure1 is:"+callablestatement1);
try
callablestatement1.setString(1,userName);
callablestatement1.executeUpdate();
callablestatement1.close();
txn.commit();
catch(Exception e)
throw new OAException(e.getMessage(),OAException.ERROR);
//throw new OAException("POS","MODPOS_SUPPLIER_EXIST");
where update is firepartial event.when i clcik disableuser button below error poped out on page
ORA-01403: no data found ORA-06512: at "APPS.FND_USER_PKG", line 180 ORA-06512: at "APPS.FND_USER_PKG", line 1315 ORA-06512: at "APPS.FND_USER_PKG", line 1616 ORA-06512: at line 1
let me know you find any thing issue in above code.
Thanks
krish. -
Unable to open windows using boot camp. Get message "The bless tool was unable to set the current boot disk." I am using an Imac , Lion operating system, and Windows 7. It worked a few days ago. Any thoughts, Thank you.
Note that nowhere in the Boot Camp instructions does it tell you to use Disk Utility to format the Windows partition. The Boot Camp Assistant program creates the partition & sets the +partition scheme info+ of the disk as appropriate for the Windows installer but the Windows installer itself is responsible for formatting the new partition with the appropriate +file system scheme+ (NTFS for Windows 7).
If you follow the instructions in the Boot Camp Installation & Setup Guide to the letter you should have no problems installing Windows. -
Set the column name of a table in a list box
is there any code to set the column name of a table in a list box at oracle devloper 6i?
pls help.I dont want to go for pl/sql . It should work any table.You want Dynamic SQL without using PL/SQL? Tricky. I'm sure there's a possible way using some very complex and convoluted XML functionality of SQL but in reality you are asking for something that isn't natural to SQL queries, especially if you are expecting a dynamic number of columns to be produced for each row of data. SQL expects a table structure, including output formats, to be a defined number of columns with any number of rows, not a defined number of rows with any number of columns.
Perhaps if you explain why you need this sort of functionality then we may be able to offer a better solution.
;) -
How to set the AppleTV to output PCM DIGITAL via toslink
how do you set the AppleTV to output PCM DIGITAL via toslink - my amp can only recieve PCM audio via toslink cable
I am having the same problem. I bought an optical-analog convertor from Amazon (SANOXY) and had Onkyo try to help me set it up. No luck. I am going to try a Monoprice version. I was able to output audio through my DirectTV box to the Zone 2 speakers, so that isn't the problem. I was able to hear the music from my iMac through the AppleTV/Onkyo receiver on the 5.1 side but was unable to output it through Zone 2 to the speakers.
Very frustrating!!!! -
Focusing a field/column in the new row of adf table
Hi all,
I am using JDeveloper 11.1.2.4.0. and UI-Shell Template in Main application and sub applications are added to this master application as ADF library jar files. Application is working fine.
I am trying to focus to make focus on a column in the newly created row in one of the sub application by referring the below link
http://adfnbpel.wordpress.com/2013/08/14/focusing-a-fieldcolumn-in-the-new-row-of-adf-table/
I created a single application and found that its working
But in my application focus is not working.
When i checked the java script by using FireBug console it is found that comp = AdfPage.PAGE.findComponent(‘”+inputId+”‘); is getting as "undefined" , where inputId = table.getClientId(facesCtx) + “:” + rowId + “:” + “it3″; I am getting the exact row id also. When i tried with by passing the table id as input id like inputId = table.getClientId(facesCtx) ; the fire bug console then showing the table id. So its sound strange.
What may be the cause of not able to find the input text it3 by using findComponent ?
Is any body can suggest a solution for this.
Thanks in advance,
GijithHi,
read up about "findComponentByAbsoluteLocator" in http://www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf
or check ...
AdfPage JS doc
Frank -
How to set the current month as the default value of an input control?
Hello,
I want to set the current month or current year as the default value of an input control. Something like try to get the month from the currentdate() formula and assign it to the input control.
Is this possible?
Thanks & Regards
SU>
soauniverse wrote:
> Hello,
>
> I want to set the current month or current year as the default value of an input control. Something like try to get the month from the currentdate() formula and assign it to the input control.
>
> Is this possible?
>
> Thanks & Regards
> SU
I don't think so. I tried to find a property or something in that Input Control but there is nothing to set it that way. -
How to set the current row in table automatically when tabout from one row to next row
Hi
I'm using jdev 11.1.2.0.0
How can we set the row(in which row focus is) as current row in the table?
If we create a table with single row selection, then whichever row we select, that row becomes current row because of the selection listener(#{bindings.xxvo.collectionModel.makeCurrent}).
Then if we do tabout from one component to another component in table and moved to next row, then the focus would be on another row .
when focus is shifted from one row to another row, then how can we make the focused row as current row or selected row.
Any suggestion would we appreciated
Thanks.Add clientListener inside table component and set client listener type to dblClick with method as a JavaScript method name.
<af:clientListener method="dblclk" type="dblClick"/> -
How to set coumn value for an ADF Table?
Hi,
I am currently using Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660. I have an ADF table in which I have a column created using View Object as Select one choice. I want to set the value(first time as selected one) in it which is coming from my second View Object. Can anyone please provide me sample code for the same?
Thanks,
VikHi,
I have no idea what you are asking for. Did you try model driven List-of-Values defined for the attribute you want to update using a select one choice ? See this document http://www.oracle.com/technetwork/developer-tools/adf/learnmore/dec2010-otn-harvest-199274.pdf and look for how to create dependent list of values. Just follow the first part of it that explains how to create model driven LOV
Frank -
How to show next set of columns in a adf table
hi,
i want to display 999 no of columns in a adf table. since it is not a better way to show all the columns in the adf table at a time, we want to show 10 columns at first and by using the next and previous links the user can see the next and previous set of columns. i dont know how to do this. please help me.
parameswaranYou have to put table name in Capital letters
Like
SELECT COUNT(1)
FROM user_tab_columns
WHERE table_name = 'EMP';
or
SELECT COUNT(1)
FROM user_tab_columns
WHERE table_name = UPPER('Emp');Regards
Arun -
Unable to display the ClobDomain value in adf table
Hi ,
I have a database table whose column is Clob. Accordingly the Entity Attribute and VO attribute are of type. oracle.jbo.domain.ClobDomain
Now this VO is wired as a ADF Table in jsff page. I am setting the value programmatically inside the AM by using the following.
//Code inside AM
String text="some xml";
ClobDomain clobval=new ClobDomain(text.toString())
vo.setAttribute("atrName",clobVal);
Now at the UI level, I was able to print the value of the attribute inside a bean code. However, in the adf table, this cell is always empty. But if i try to set the value through UI then it works.
If i make the inputText readonly then it displays the value.
Am i missing something.
Inside the af:column
<af:inputText value="#{row.bindings.VariableValue.inputValue}"
label="#{bindings.TestcaseInput.hints.VariableValue.label}"
required="#{bindings.TestcaseInput.hints.VariableValue.mandatory}"
columns="#{bindings.TestcaseInput.hints.VariableValue.displayWidth}"
shortDesc="#{bindings.TestcaseInput.hints.VariableValue.tooltip}"
id="it4" converter="oracle.genericDomain"
rows="10">
<f:validator binding="#{row.bindings.VariableValue.validator}"/>
</af:inputText
jdev version 11.1.1.6.0Try using SELECT_TEXT in place of READ_TEXT.
Hope this helps.
Regards
vinayak -
EJB 3.0 - Custom create method - current row in adf table
Hello,
its funny I cannot find a good solution for such simple problem.
I'm using EJB 3.0 stateles session bean, ADF controller and ADF Faces.
I have simple page with read-only adf table containing roles and Create Role button. The button sends you to create page. This works.
I wrote my own create role method in session bean.
When I use this method instead of standard create then the new role row is no longer current in adf table. So create page displays different row not the new one.
How to make my new role row current in the adf table?
RadoThank you Frank,
yes this seems to be the only solution I can use.
In fact the role table is detail table. This is why I have my own constructor with one parameter: master entity. So the "create page" you suggested have to have access to master entity and this is why I wanted to create new role instance on fist page - there is master entity accessible.
Now I need to send master instance to create_page somehow.
What you think is the best way? Are bindings from previous page accessible directly or I have to use request/session/process scope?
Another solution would be to have method "createAnotherDetail" in master entity. But I'm afraid I will have again problem with currency.
Rado -
How to Highlight the CURRENT RECORD in a Table with Report Form
Hi,
I have created a Table with Report Form....let suppose the table is - EMP
Report page - 1
Form page - 2
Now, when I do Create / Update on Page 2,....the control is back on Page1.
Suppose in the Report Page (Page1)..we have 10 records....NOW how should I highlight the CURRENT RECORD in Page 1 with some color to identify the record which I have updated/created just now...
Thanks,
DeepakHi Deepak,
You could do that with a custom report template. I've done that here: [http://apex.oracle.com/pls/otn/f?p=267:175]
Go to Shared Components, Templates and create a new Report template as a copy of your existing one. Then edit your template. In the above example, the Column Template 1 setting was:
<td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data">#COLUMN_VALUE#</td>I copied this into the Column Template 2 setting and updated the Column Template 1 setting to:
<td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data" style="background-color:red; color:yellow;">#COLUMN_VALUE#</td>I then set the Column Template 1 Condition to: Use Based on PL/SQL Expression
and the Column Template 1 Expression to: '#EMPNO#' = '&P178_EMPNO.'
(In my example, P178_EMPNO is the single item on the linked to page.
Save those changes and go to your report and change its template to the new one. As long as a selection has been made and P178_EMPNO has a value, the condition will make sure that the report uses the first template for the row with the matching EMPNO value. All other rows get the template from Column Template 2.
Andy -
How to set default sorting order in ADF Table
Hi,
I want to set the default sorting order as ascending in adf table. Please help me regarding how can we do it.
Using JDev 11.1.1.5.0Hi Frank,
Thanks for the quick reply.
I have done binding of table with list of pojos.
The Class for which Data control is created is as:-
public class DemoDC {
private List<TableEntity> tableList =
new ArrayList<TableEntity>();
public List<TableEntity> getTableList() {
return tableList;
public void setTableList(List<TableEntity> tableList) {
this.tableList = tableList;
where TableEntity is a pojo which has all the columns as its attributes.
Now when i do the above steps , after clicking on pencil icon and seecting the iterator name in the iterator tab (DemoDC-> tableList) , and selcting the 'sort criteria' tab when i select a column and try to set the sort order I get error as ' Iterator can not be created for the selected node ' . -
How set the values programatically in custom tables ?
Hi Guru's,
Please help me where i did mistake....
My scenario is i have 4 columns that 4 columns are look up based on row i need save the "XX_hr_Vacancies_CompTab"
4 columns look like....
column1(15 questions ) column2(message choice) column3(message choice) column4(free text)
(1-15)question manually select (1-10) manually select (1-10) comments
this vo purpose i am using this query
SELECT ROWNUM,
xhv.VACANCY_ID
, xhv.RFP_NO
, hl.lookup_code
, hl.meaning
, XJCT.BUHR_RATING
, XJCT.COMBEN_RATING
, XJCT.RATIONALE
FROM hr_lookups hl ,
xx_hr_vacancies xhv,
XX_JOBEVAL_COMP_TAB XJCT
WHERE lookup_type = 'XX_JE_QUESTIONAIRE'
AND xhv.RFP_NO = 'IRC616'
AND XJCT.VACANCY_ID(+) = XHV.VACANCY_ID
ORDER BY ROWNUM
I am using sample code is for one column inserting.....please help where i am doing mistake.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.invokeMethod("createjobVacancy1");
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if (pageContext.getParameter("Save") != null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject vacncyVO = (OAViewObject)am.findViewObject("XXTableLookupVO1");
int fetchedrowcount = vacncyVO.getRowCount();
RowSetIterator multiIter;
multiIter = vacncyVO.createRowSetIterator("VacancyId");//Attribite of the select box
multiIter.setRangeStart(0);
multiIter.setRangeSize(fetchedrowcount);
System.out.println("no before for loop condition rows"+fetchedrowcount);
for(int i=0;i<fetchedrowcount;i++)
am.invokeMethod("createjobVacancy1");
OAViewObject vacncyVO1 =
(OAViewObject)am.findViewObject("XX_hr_Vacancies_CompTab_EOVO1");
Object vacancy = vacncyVO.getRowAtRangeIndex(i).getAttribute("VacancyId"); */*63 Line code is this one*/*
System.out.println("vacancy number is in table region current row is "+vacancy);
System.out.println("no or rows"+fetchedrowcount);
if(vacancy != null && !"".equals("vacancy"))
vacncyVO1.getCurrentRow().setAttribute("VacancyId",vacancy);
System.out.println("set create vacancy number is in table region current row is "+vacancy);
}else{
vacncyVO1.getCurrentRow().setAttribute("VacancyId",null);
am.invokeMethod("apply1");
System.out.println("out of for loop :"+fetchedrowcount);
Sop:
13/01/10 06:55:28 no before for loop condition rows15
13/01/10 06:55:29 Header is =725
13/01/10 06:55:30 vacancy number is in table region current row is 616
13/01/10 06:55:30 no or rows15
13/01/10 06:55:30 set create vacancy number is in table region current row is 616
13/01/10 06:55:30 Header is =726
Error:
## Detail 0 ##
java.lang.NullPointerException
at xxsup.oracle.apps.per.jobevaluation.webui.MainCO.processFormRequest(MainCO.java:63)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
Regards,
SrinivasThanks Keerthi,
i am getting values but i unable to set the values, once i am setting values i am facing null pointer exception ..
java.lang.NullPointerException
at xxsup.oracle.apps.per.jobevaluation.webui.MainCO.processFormRequest(MainCO.java:86)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
i am using below coding in PFR
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if (pageContext.getParameter("Save") != null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject oaviewobject =(OAViewObject)am.findViewObject("XXTableLookupVO1");
if(oaviewobject!=null)
pageContext.writeDiagnostics(this,"View Object is exists",OAFwkConstants.STATEMENT);
int rowcountValue = oaviewobject.getRowCount();
pageContext.writeDiagnostics(this,"Row returned by the View Object"+rowcountValue,OAFwkConstants.STATEMENT);
System.out.println("before for loop geting values = "+rowcountValue);
Row rowAdv= oaviewobject.first();
RowSetIterator iterator = oaviewobject.createRowSetIterator("iterator");
iterator.setRangeStart(0);
iterator.setRangeSize(oaviewobject.getRowCount());
for(int i=0; i<iterator.getRowCount(); i++)
pageContext.writeDiagnostics(this,"Inside For loop ",OAFwkConstants.STATEMENT);
rowAdv =iterator.getRowAtRangeIndex(i);
if(rowAdv != null)
pageContext.writeDiagnostics(this,"flag not null",OAFwkConstants.STATEMENT);
pageContext.writeDiagnostics(this,"Flag Value Checked as Y",OAFwkConstants.STATEMENT);
OAViewObject vacncyVO1 =
(OAViewObject)am.findViewObject("XX_hr_Vacancies_CompTab_EOVO1");
if(rowAdv.getAttribute("VacancyId")!=null)
Object vacancyname = rowAdv.getAttribute("VacancyId").toString();
vacncyVO1.getCurrentRow().setAttribute("VacancyId",vacancyname); This is the 86 line
System.out.println("Vacancy ID IS = "+vacancyname);
System.out.println("Vacancy ID IS = "+rowAdv);
am.invokeMethod("apply1");
// System.out.println("out of for loop :"+iterator);
please help me where i am doing mistake...
Regards,
Srinivas
Maybe you are looking for
-
Samba on Linux with Tiger clients
Maybe someone can help me with this, I am not sure if this is the place to ask or not... I have a new Linux (SuSE 10) server running Samba. My issues are two-fold. My Tiger clients have to authenticate manually -twice in order to be able to log in. S
-
What are the chances of me getting approved for financing for a Macbook with no credit at all?
I don't have bad credit. I have no credit. I make an okay amount of money annually. Not bad for having no rent or bills over 50$ to pay for. I applied this morning for financing cause I need one for school and it said I'd get a letter in 7-10 days..
-
Updated to 8.1 now it wont work
I updated my itunes to the 8.1 and now it wont open i keep getting an error message iTunes 8.1.0.52 has crashed. A minidump file has been created What do i do?
-
How to use the program called ZSAPLINK to import Function Name
How to use the program called ZSAPLINK to import Function Name
-
Open AVI files using Adobe Acrobat
Hello, When i open an AVI file(about 600Mb) using Adobe Acrobat it is ok, but when i want to play the file, it is very slow befor to play the file, the loading time before playing the file is long, how can solve this problem. thanks.