HOW I CAN DO INTER DEPENDEND list of value in adf
Hi all,
How i can do inter dependend list of value in adf
ie if i select Country AS:USA
next field it show me all state in usa
User,
Search the forum. It's probably the most asked questino
John
Similar Messages
-
When sending an email I used to be able to click on a distribution list in my contacts and it would add all the email addresses, I now have to add each email address individually and this takes a lot of time. Could someone tell me how I can add a distibution list/group to my emails?
Barney,
I have four groups.
I just typed the name of one of those groups in the To field on the iPhone's email, and received:
Invalid Address
"<group name>" does not appear to be a valid email address. Do you want to send it anyway?
I clicked continue and it remains in my outbox.
Help is appreciated.
Thanks,
Michael -
10GR2 - Match Merge - How can I Rank a list of values?
Hi
I am trying to use 10GR2 to take a set of multiple records and merge them into a single record. e.g.
ID Value
1 val1
1 val2
etc
I want to merge these into one record and give val1 priority over val2 etc. So the output record for ID 1 will have a value = val1.
I am trying to use a match-merge operator using rank, but am not sure how to use the Rank Rule Editor.
Can anyone please help with how I format the expression to rank these values? Or if this is the correct way to do this in 10GR2?
Thanks
GBYou can use this approach:
http://www.oracle.com/technetwork/developer-tools/jdev/listbindingvalue-088449.html
Or this:
https://blogs.oracle.com/shay/entry/adding_lov_to_non_database -
How to select multiple rows from List Of Values
Hello,
I use ADF 11g to create my list of values (LOV). I want to select multiple rows from it. but i can't.
so how i can select many rows to set them in my adf table.
Thank in advanceHi,
LOV is map to an attribute in the viewObject so it will return only one value or more values from selected row. You can't select multiple rows from LOV.
But you can do this by using popup which you can select multiple rows and insert the selected rows to another table.
This blog post explain how to achieve this :
http://husaindalal.blogspot.com/2009/11/search-from-popup-and-add-to-new-table.html#comments
Sameh Nassar -
How to call a procdure that will return me list of values(JSF,ADF BC)
hi all,
any one can help me how to call a procedure that will return me list of value with using adf and jsfI did this with a LoginModule that returned a list of user roles. Below is the Java call
stmt = conn.prepareCall(authquery);
stmt.registerOutParameter(1, OracleTypes.CURSOR);
stmt.setString(2,username);
stmt.setString(3,new String(password));
// realm is null if not set
stmt.setString(4,_application_realm);
stmt.execute();
rolesResultSet = (ResultSet)stmt.getObject(1);
stmt.close();authquery is the name of a procedure that returned a ref Cursor
CREATE OR REPLACE PACKAGE "DBPROCLM" IS
TYPE principal_ref IS REF CURSOR;
function get_user_authentication(p_username in varchar2, p_password in varchar2, p_realm varchar2) return principal_ref;
END;
CREATE OR REPLACE PACKAGE BODY "DBPROCLM" IS
FUNCTION get_user_authentication (p_username in varchar2, p_password in varchar2, p_realm varchar2)
RETURN principal_ref
AS
var_username varchar2(100);
var_userid number(10);
var_password varchar2(100);
role_cursor principal_ref;
FAILED_AUTHENTICATION exception;
BEGIN
select userid, username, password into var_userid, var_username, var_password from sec_users where username = p_username;
if (var_password = p_password) then
begin
if (p_realm is null) then
open role_cursor for
select rolename from user_roles_view where userid = var_userid;
else
open role_cursor for
select rolename from user_roles_view where userid = var_userid and realm=p_realm;
end if; -- p_realm check
end;
-- if password doesn't match, raise Excpetion for LM to
-- abort the authentication process
else raise FAILED_AUTHENTICATION;
end if;
RETURN role_cursor;
END get_user_authentication;
END;You only ned to expose the call to teh procedure in a method (e.g. on ADF BC Application Module) and create a method binding for it.
Frank -
How to set dynamic parameter in list of values in parameter property
Hi,
I am using cr4e-all-in-one-win_2.0.1version.I have created .rpt file in that how to set dynamic parameters(from database) in list of values parameter property
Regards,
amolHi,
I am using cr4e-all-in-one-win_2.0.1version.I have created .rpt file in that how to set dynamic parameters(from database) in list of values parameter property
Regards,
amol -
How i can display data from backing bean from jsf adf page
Hi all
I am creating a adf bc jsf application i am referring hr schema employee table
in my jsf page i have a inputtext with label employee number if i enter employee number and press tab i should get employee name and jobid and salary for this purpose i am doing like as follows
my view object query is as follows
SELECT EMPLOYEE_ID,FIRST_NAME,JOB_ID,SALARY
FROM EMPLOYEES
WHERE EMPLOYEE_ID=:EMP_NO
and my backing bean for my jsf page is as follows
package view.backing;
import javax.faces.component.html.HtmlForm;
import javax.faces.event.ValueChangeEvent;
import oracle.adf.view.faces.component.core.input.CoreInputText;
import oracle.adf.view.faces.component.core.output.CoreOutputText;
import oracle.adf.view.faces.component.html.HtmlBody;
import oracle.adf.view.faces.component.html.HtmlHead;
import oracle.adf.view.faces.component.html.HtmlHtml;
import oracle.jbo.ApplicationModule;
import oracle.jbo.Row;
import oracle.jbo.ViewObject;
import oracle.jbo.client.Configuration;
public class BindTest3
private HtmlHtml html1;
private HtmlHead head1;
private HtmlBody body1;
private HtmlForm testForm;
private CoreInputText employeeId;
private CoreOutputText firstName;
private CoreOutputText jobId;
private CoreOutputText salary;
public void setHtml1(HtmlHtml html1)
this.html1 = html1;
public HtmlHtml getHtml1()
return html1;
public void setHead1(HtmlHead head1)
this.head1 = head1;
public HtmlHead getHead1()
return head1;
public void setBody1(HtmlBody body1)
this.body1 = body1;
public HtmlBody getBody1()
return body1;
public void setTestForm(HtmlForm form1)
this.testForm = form1;
public HtmlForm getTestForm()
return testForm;
public void setEmployeeId(CoreInputText inputText1)
this.employeeId = inputText1;
public CoreInputText getEmployeeId()
return employeeId;
public void changeMethod(ValueChangeEvent event)
String EmployeeId=(String)event.getNewValue();
CheckForBind check=new CheckForBind();
System.out.println(check.getEmployeeNo());
String amDef = "model.AppModule";
String config = "AppModuleLocal";
ApplicationModule am =
Configuration.createRootApplicationModule(amDef,config);
ViewObject vo = am.findViewObject("EmployeeBindViewObj1");
vo.setNamedWhereClauseParam("EMP_NO",EmployeeId);
System.out.println("Query will return "+
vo.getEstimatedRowCount()+" rows...");
vo.executeQuery();
while (vo.hasNext()) {
Row curUser = vo.next();
System.out.println(vo.getCurrentRowIndex()+" "+
curUser.getAttribute("EmployeeId")+" "+
curUser.getAttribute("FirstName")+" " curUser.getAttribute("JobId")" "+curUser.getAttribute("Salary"));
//firstName =(String)curUser.getAttribute("EmployeeId");
//setFirstName(curUser.getAttribute("EmployeeId"));
firstName.setValue((String)curUser.getAttribute("FirstName"));
//jobId.setValue((CoreOutputText) curUser.getAttribute("FirstName"));
// salary.setValue((CoreOutputText)curUser.getAttribute("Salary"));
// values.setJobId((CoreOutputText)curUser.getAttribute("JobId"));
// values.setFirstName((CoreOutputText) curUser.getAttribute("FirstName"));
//values.setSalary((CoreOutputText)curUser.getAttribute("Salary"));
Configuration.releaseRootApplicationModule(am,true);
public void setFirstName(CoreOutputText outputText1)
this.firstName = outputText1;
public CoreOutputText getFirstName()
return firstName;
public void setJobId(CoreOutputText outputText2)
this.jobId = outputText2;
public CoreOutputText getJobId()
return jobId;
public void setSalary(CoreOutputText outputText3)
this.salary = outputText3;
public CoreOutputText getSalary()
return salary;
and my jsf page is as follows
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<f:view>
<afh:html binding="#{backing_BindTest3.html1}" id="html1">
<afh:head title="Home" binding="#{backing_BindTest2.head1}" id="head1">
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1252"/>
<style type="text/css">
body {
background-color: #f7f7f7;
</style>
</afh:head>
<afh:body binding="#{backing_BindTest3.body1}" id="body1">
<h:form binding="#{backing_BindTest3.testForm}" id="testForm">
<af:inputText label="Employee No" binding="#{backing_BindTest3.employeeId}"
id="employeeId" valueChangeListener="#{backing_BindTest3.changeMethod}" autoSubmit="true"/>
<af:outputText value="#{backing_BindTest3.firstName.value}"
binding="#{backing_BindTest3.firstName}"
id="firstName"/>
<af:outputText value="outputText2"
binding="#{backing_BindTest3.jobId}"
id="jobId"/>
<af:outputText value="outputText3"
binding="#{backing_BindTest3.salary}"
id="salary"/>
</h:form>
</afh:body>
</afh:html>
</f:view>
<%-- oracle-jdev-comment:auto-binding-backing-bean-name:backing_BindTest2--%>
but i am getting result in console but i cant get the value of firstname into my jsf page
can any one can tell me for get the value to jsf page what i can do
and what are the changes i can do in my jsf pagehi,
i tried to set value like as follows
name=(CoreOutputText)curUser.getAttribute("FirstName");
but that time i getting exception like as follows
ec 22, 2007 2:17:27 PM com.sun.faces.lifecycle.ProcessValidationsPhase execute
SEVERE: java.lang.ClassCastException: java.lang.String
javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.String
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1087)
at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:269)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:363)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:98)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassCastException: java.lang.String
at view.backing.ChangeValue.changeMethod(ChangeValue.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
What will be the resion please help it is very critical for me -
How to change background color in List of Values (LOV) ?
Hiya
In Forms 10g, the background color in list of values (LOV) is White whereas it was grey in Form 6i. Also, the position of 3 buttons i.e. Find, OK and Cancel on LOV is different than what it used to be in Forms 6i.
Is it possible to change the background color and the position of buttons of LOV in Forms 10g ?
Cheers
MayurI would like to share the outcome of this issue.
I had posted this same issue on Metalink yesterday. They (Metalink guys) have confirmed that its an bug in Oracle 10g DS R2 and it would be fixed in subsequent releases.
Following is an official response from Metalink:
This issue has been addressed to Oracle Development to be investigated/fixed in the published Bug:
Bug 1559776 <BACKGROUND COLOR SETTING FOR LOV OBJECT DOES NOT WORK ON WEB>
Cheers
Mayur -
I have 2 tables venue and concert. i have imported dummy values from xml file and data is imported to db successfully. when i go to ACC, afer select my EventsRepository->concert->click list. showing results in ID formatEventRepository:Concert:70701.
Can anyone tel me how to show my results by name?You need to set the display-property="<<Your name property>>" in item-descriptor tag.
e.g. <item-descriptor name="myItem" display-property="name" />
Cheers
R -
How i can limit the price lists in the LOV in Order Managment using form personlization
am using the below query in the argument but always am getting (FRM-41826 cannot replace group;columns don't match LOV )
SELECT hh.list_header_id,name,description FROM qp.qp_list_headers_tl hh,qp_list_headers_b bb
where ATTRIBUTE15='SPS'
and bb.list_header_id=hh.list_header_id
and bb.end_date_active is null
can any body help to give the match columns in the LOV ?
regardsHi Sanjay
Thanks for reply
Actually i already made a restriction on order type LOV and it is working , my problem in getting the correct matched column names in the select statement for price lists
regards -
Can I sum a list of value pairs by one element of the pairs?
OK, I got a very helpful pointer to working around the time function limitations in Numbers.
Now what I have is a table that looks something like this (excerpt of course)
10/10/07 2:15 PM 0:30 0.50 $0.00 Design - Draft
10/11/07 9:30 AM 0:45 0.75 $0.00 Design - Revision
10/12/07 9:30 PM 0:45 0.75 $0.00 Build - HTML
10/13/07 8:45 AM 0:30 0.50 $0.00 Build - Copy writing
10/14/07 8:45 AM 0:30 0.50 $0.00 Build - Copy writing
I calculated the third (decimal) column with the formula =TIMEVALUE(B1)*24. Then I can use normal addition to sum the number of hours for a specific value of the fifth column (e.g. Build - Copy writing)
Of course the second row references B2, the third B3, etc.
Now what I would like to do is get a second table that looks like this:
0.50 Design - Draft
0.75 Design - Revision
0.75 Build - HTML
1.00 Build - Copy writing
So what I would like it to do is automatically generate a list of the values in the fifth column with a sum of the decimal values associated with that value in the third column.
Now I can do that by laboriously typing out a list of the values in the fifth column and using the SUMIF function. But then if I miss a value, or mistype a value, I will run into problems.
Is there a way to produce such a summary list automatically?
Any help would be greatly appreciated!Yvan,
It appeared that there were probably a small number of categories, maybe six or eight, and if the Triton's list were hundreds, making an automated list builder seemed to be overkill. But to do so would require an additional column in the first table which would determine the list of unique categories:
=IF(COUNTIF(B$1:B2,B2)=1,MAX(C$1:C1)+1,"")
Then it's a matter of picking out those categories for the second table:
=IF(ROW()-1>MAX(Table 3 :: Hidden),"",LOOKUP(ROW()-1, Table 3 :: Hidden,Table 3 :: B))
Then the obvious SUMIF to get the values: =IF(A2="","",SUMIF(Table 3 :: B, A2,Table 3 :: A))
pw -
For Multi value attributes, how we can view only the most recent value?
Where we can set what in endeca servers (MDEX, Clover & Studio) to view only the most recent value of a multi assign value attribute on Studio server?
That's correct, multi-value attributes do not support this in Endeca.
If you're looking to do it, I would keep writing your updates to the multi-value attribute (to maintain the functionality that depends on this attribute and its multiple values) and also write it to a separate single-value that is constantly being updated, rather than appended to.
Something like:
One attribute called MyValueMulti as a multi-assign.
AND
One attribute called MyValueLatest as a single-assign.
Regards,
Patrick Rafferty
http://branchbird.com -
How can I print a list of my Contacts in alphabetical order from my iMac
I know how to change the alphabetical sequence of my contacts by first name & last name , but i would like to know how I can easily PRINT a list of my contacts in alphabetical order.
I know how to print a list but the names are in random order.
My question is what should I do so the printed list is in alphabetical order?
Thank youI just found a way to print contacts in ABC order. I signed in to my iCloud account online, then went to Contacts. I selected the contact group I wanted to print on the left page (example Xmas card list). On the right page at the bottom, I clicked on the gear symbol and clicked "select all", then clicked again on "print". When the print window appeared, I saved the file to PDF, just to see if the information was in ABC. It was!
It's not perfect but it works... you can also do the entire list this way also... no choices as to what appears but it is a beginning... -
How can i get the lists of native custom xml
Hi,
actually i am going for upgrade from idm 7.1 to idm 8.1
can anybody know how we can get the costomized lists of native xml in sun idm 7.1
for jsp and other we have assessment commands provided by sun but for xml how we can do that..
Thanks in advanceEvery object in repository is marked with the 'repoMod' attribute which is the last object modification time stamp. You can use it to filter objects modified after installation.
-
Parameter Form-How to use a user parameter to retrieve list of values for another par
I am developing a report in Reports 6i. There are 2 parameters on parameter form namely year and month.
LOV for Year is retrieved from database. After user selects a value from LOV for year, I want to retrieve another LOV for month parameter based on selected year. That is how can we use a user parameter's value to dynamically retrieve an LOV for another parameter on the same parameter form.
Pl. guide.
Thanks in anticipation.You can't restrict the "List of Values" of one parameter based on the value of another parameter within the Reports Builder/Runtime parameter form.
The SQL select statements within LOV's are only executed once. They aren't re-calculated when you enter, leave or change other field values in the parameter form. This is mainly because there is no event model in the Reports parameter form and it only supports basic form functionality.
To do what you're after in a client-server environment you need to create an Oracle Forms "parameter form" and use that to execute the Report using the run_product() call. Actually, you should probably use Oracle Forms for any more generic "form" functionality such as radio buttons or check boxes.
If you're in a Web rather than Client-Server environment, it may be easier to create a JSP based parameter form. You can then use Reports 9i since it has JSP support to assist here.
Maybe you are looking for
-
I downloaded music to my ipad mini and when I attempted to download the music on my ipod but when I search the song it says purchased and when I try and tap purchased it wouldn't do anything and only just played the song from the itunes store. How ca
-
Office 2013, after windows/office updates recently, pdf add-in no longer works
We have a user who has Windows 7 Enterprise 64-bit, Office 2013 (32-bit) and Adobe Acrobat XI Pro. They used to be able to "save as pdf" from word, but can no longer do it and gets the error "word is running into problems with the 'acrobat pdfmaker
-
I tried to upgrade to ios4 by plugging my Ipad into Itunes on my desktop. I got an error message as it was downloading. Now my Ipad won't turn on at all. All I get is a pic of the plug and an arrow pointing to the Itunes logo. I tried to reset, b
-
hi, I want a function module which could calculate the previous month's start date and end date... Say todays date is like 29.05.2007(start date) it should return 01.04.2007 and 30.04.2007... IS there any FM for this ... or how to go about this scen
-
hey everyone just wondering, if i use a certain font in iweb, does the user have to have that font installed locally for them to view the web page as i do in iweb with that font the default font seems to be palatino, but i've never seen this installe