How to set selected field in one choice
Hi,
I am using ADF 11.1.1.3 and dynamic tab shell.
In my application i create a question based on different subjects.
This subject is a drop down and the value of this drop down is coming from a VO.I dropped that VO as Select One Choice on my page fragment.
And create question.But when i go to edit that question i want to show the subject ( which was selected at the time of question creation) as selected and the other options in drop down.
For Example-
While creating i had 3 subjects
A,B,C .I selected B and created a question.
When i tried to edit the question i fetch the selected subject from one VO (VO to fetch the quetsions detal) and the list from another one.
The option i tried to resolve this is -
I drop the subject VO on edit page as select one choice and in in value of select ites i set the subject from questiondetailVO
*<af:selectOneChoice*
label="Subject:"
shortDesc="Select the program description"
*binding="#{backingBeanScope.backing_fragments_Ques.existingSubject}"*
*id="existingSubject"*
*showRequired="true"*
*unselectedLabel="Select Subject"*
*value="#{bindings.Subject_DESC.inputValue}"> (selected SUbject fom questionVO*
*<f:selectItems value="#{bindings.SubjectVO1.items}"*(Subject list from Subject VO)
*binding="#{backingBeanScope.backing_fragments_Ques.selectItems10}"*
*id="selectItems10"/>*
*</af:selectOneChoice>*
Any idea why this is not wokring or what is the correct way to achieve the same?
Hi,
I used following code
OAMessageLovInputBean lovbean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("AssetNumber");
OAMessageChoiceBean Choicevalue=(OAMessageChoiceBean)webBean.findIndexedChildRecursive("EamWrPriority");
if (pageContext.isLovEvent())
String lovInputSourceId = pageContext.getLovInputSourceId();
if(lovInputSourceId.equalsIgnoreCase("AssetNumber"))
if(lovbean!=null)
String slovVal=(String)lovbean.getValue(pageContext);
String prValue = getPRValue(pageContext.getApplicationModule(webBean).getOADBTransaction(),slovVal);
//String prValue = "1";
Choicevalue.setValue(pageContext,prValue);
}// end of processFormRequest
private String getPRValue(OADBTransaction con,String slovVal)
// System.out.println("In WorkRequestDffCO.getContextValue.organizationID" + organizationID);
String prValue = null;
String sql = "select decode(ml.meaning,'AC1',1,'AC2',1,'AC3',3,'AC4',3,null) from FND_LOOKUP_VALUES_VL ml ,mtl_serial_numbers msi where ml.lookup_type = 'MTL_EAM_ASSET_CRITICALITY' and msi.ASSET_CRITICALITY_code = ml.lookup_code and msi.serial_number = 'slovVal' ; //'30AC-TR002B'"
Statement st = null;
ResultSet rs = null;
try
st = con.createStatement(1);
rs = st.executeQuery(sql);
if(rs.next())
prValue = rs.getString(1);
catch(Exception e)
e.printStackTrace();
finally
try
if(st != null)
st.close();
if(rs != null)
rs.close();
catch(Exception e)
e.printStackTrace();
return prValue;
Query is executing but no value is retuning, if i use hard coded value in where condition like '30AC-TR002B' it is tt's returning value .
Similar Messages
-
How to get selected value from one choice list
Hi All,
i want to get selected value in onechoice list.how to achive this
Regards,
Smarancheck these
http://groundside.com/blog/DuncanMills.php?title=adf_the_list_binding_value_problem&more=1&c=1&tb=1&pb=1
http://blogs.oracle.com/jdevotnharvest/2010/12/reading_the_selected_value_of_an_adf_bound_select_list_in_java.html
http://www.oracle.com/technetwork/developer-tools/jdev/listbindingvalue-088449.html -
How do I select more than one picture and send them all to Facebook on my iPhone 4s with iso7?
Hi, I want to thank you for all your information regarding my questions about sending more than one photo to Facebook. I did have to stop in at Verizon (where I bought my iPhone) to find out why I did not have a choice to choose Facebook with the export icon. The tech had to go into my setting and enable Facebook to recognize my iPhone. When I upgraded to iso7 somehow it could not recognize Facebook. Once he did this for me I was able to follow your advice and your answer solved my question. Thank you
-
In flex, How to set a value to one parameter, the parameter
defined in a cffunction in a cfc file, In the cffunction there are
much cfargument, I want set a value to one of them, such as the
cfc:
<cffunction access="remote" name="myShow" output="false"
returntype="struct">
<cfargument name="ID" type="numeric" default=0>
<cfargument name="GoodsID" type="string" default="">
<cfargument name="DestTime" type="string" default="">
<cfargument name="DestCount" type="numeric" default=1>
How I set a value to only parameter one of them , such as set
GoodsID when use mx:remoteObject.
Thanks for your helpGot maybe a solution for you, I have just tested it.
So, the idea is to use intermediate variables. Imagine Var1 and Var2 variables that you refresh with your more or less complicated queries. Then what you can do is to refresh your final variable Var3 with a query using your intermediate variables. Here is an example for Oracle:
select #Var1+#Var2 from dual
This way you can make a chain of dependent variables: Var3 is using Var2 and Var2 is using Var1.
Hope it helps.
Shamil -
How to set Character field's Format Mask?
dear all,
how to set Character field's Format Mask?
i searched the forum and found the following, where can i use this code and how to change and set its format mask.
SRW.SET_FORMAT_MASK('mask');
Thanks
Muhammad NadeemNadeem,
If you have database 10g, look into function REGEXP_REPLACE. Otherwise you can also try this (you might already know).
SELECT SUBSTR('CHHOCMIPO07020001', 1,2)||'-'||SUBSTR('CHHOCMIPO07020001' ,3,2)||'-'||
SUBSTR('CHHOCMIPO07020001' , 5,2)||'-'||SUBSTR('CHHOCMIPO07020001' , 7,3)||'-'||
SUBSTR('CHHOCMIPO07020001' , 10,2)||'-'||SUBSTR('CHHOCMIPO07020001' , 12,2)||'-'||
SUBSTR('CHHOCMIPO07020001' , 14,4)
FROM dual
CH-HO-CM-IPO-07-02-0001
If you have to use this at many places, create a function, pass the raw value, manipulate the string and return.
FS -
How to set the field SKB1-FDLEV as requestred-entry in G/L Master data?
Hi All,
Could anyone tell me how to set the field SKB1-FDLEV as requestred-entry in G/L Master data?
Thanks
Gandalfhi
Go to OB26
select Your criteria ( create, change or display)
double click on it
again double click on Bank/financial details
there you will find the Planning level make it require entry
save
with regards
ramanuja chary -
How do I select more than one frame? (editing a movie in PS)
Fisrt time ive tried this.
I want to do a quick selecton on a movie clip but can only seem to select 1 fram at a time. How can I select more than one frame?
cheers
jamieIf you used Sequence to Layers, Shift and Control key in the layers palette work just as they would when selecting files in Explorer... If it's a video layer, then you should only see one layer and will have to use the Timeline to navigate.
Mylenium -
How can I select more than one song from the search results?
I want to create playlists based on certain words in the song title. For example, I may want to create a playlist of all my songs with LOVE in the title.
Doing the search is easy, but I can't select more than one song at a time. Is there any way in iTunes 12 for Windows to do this? I found an answer in iTunes for Mac, and it basically says to "un-check "Search Entire Library." " but I don't see that option in iTunes for Windows.
Here is the link to that question: how can i select more than one song from drop down search bar
I hope some Windows user can help me out.Found the "Search Entire Library" option - click on the small (VERY small for my eyesight) down arrow next to the magnifying glass. Also need to select "Filter by: Songs", and then the songs in the main window show the results.
I'm going to leave this up on the board because 1) in case someone else has this question, and 2) I don't know how to delete it anyway. -
How to set cookie value in one page and retrieve in another page using setA
How to set cookie value in one page and retrieve in another page using setActionListener?
I have tried with following code srcpage.jspx->destpage.jspx
srcpage.jspx
<af:table value="#{bindings.DepartmentsView1.collectionModel}"
var="emp" rows="#{bindings.EMPView1.rangeSize}"
first="#{bindings.EMPView1.rangeStart}"
emptyText="#{bindings.DepartmentsView1.viewable ? 'No rows yet.' : 'Access Denied.'}">
<af:column sortProperty="EmployeeName" sortable="false"
headerText="Cookie Testing">
<af:commandLink text="#{emp.EmployeeName}" action="success">
<af:setActionListener from="#{emp.EmployeeName}"
to="#{cookie}"/>
</af:commandLink>
</af:column>
</af:table>
espage.jspx
<af:outputText value="Test Cookie Value: #{cookie}"/>
,Here Test Cookie Value prints the following instead of its original String value
{JSESSIONID=javax.servlet.http.Cookie@7da288, oracle.uix=javax.servlet.http.Cookie@399f62}
I have passed employee name "Robert" to cookie in srcpage.jspx,but it prints "JSESSIONID....." instead of "Robert" in destpage.jspx
Thanks in advance
KaleeHi,
"cookie" is a reserved name. If you want to write to a session scope attribute called "cookie" then you have to call #{sessionScope.cookie}. If you want to use EL to set and read from cookies then you will have to use
#{cookie.cookieName}
Note that #{cookie} writes to and returns a map
check this: http://www.informit.com/articles/article.aspx?p=30946&seqNum=7
Frank -
How to set key fields in a Database view
Hi guru's
iam balaji,plz guide me with how to set key fields in a view.......that field is a non key field in the base table....
thanks in advance,
Balaji.Stake a look at this:
Diagnosis
In the view, not all of the mandatory fields were included as key
fields. The key of the view therefore is not unique.
System Response
All the fields are regarded as key fields in order to guarantee that th
key lengths are unique.
Procedure
For views with a large number of fields, this could have a negative
effect on the performance for the language construction described below
In this case, all the mandatory key fields should be included in the
view.
regards -
How do I select more than one message at a time for archiving
I want to archive multiple messages into one archive folder. How do I select more than one message at a time?
Really appreciate the help. Many thanks
-
How to set two radius servers one is window NPS another is cisco radius server
how to set two radius servers one is window NPS another is cisco radius server
when i try the following command, once window priority is first , i type cisco radius user name, it authenticated fail
i can not use both at the same time
radius-server host 192.168.1.3 is window NPS
radius-server host 192.168.1.1 is cisco radius
http://blog.skufel.net/2012/06/how-to-integrating-cisco-devices-access-with-microsoft-npsradius/
conf t
no aaa authentication login default line
no aaa authentication login local group radius
no aaa authorization exec default group radius if-authenticated
no aaa authorization network default group radius
no aaa accounting connection default start-stop group radius
aaa new-model
aaa group server radius IAS
server 192.168.1.1 auth-port 1812 acct-port 1813
server 192.168.1.3 auth-port 1812 acct-port 1813
aaa authentication login userAuthentication local group IAS
aaa authorization exec userAuthorization local group IAS if-authenticated
aaa authorization network userAuthorization local group IAS
aaa accounting exec default start-stop group IAS
aaa accounting system default start-stop group IAS
aaa session-id common
radius-server host 192.168.1.1 auth-port 1812 acct-port 1813
radius-server host 192.168.1.2 auth-port 1812 acct-port 1813
radius-server host 192.168.1.3 auth-port 1645 acct-port 1646
radius-server host 192.168.1.3 auth-port 1812 acct-port 1813
privilege exec level 1 show config
ip radius source-interface Gi0/1
line vty 0 4
authorization exec userAuthorization
login authentication userAuthentication
transport input telnet
line vty 5 15
authorization exec userAuthorization
login authentication userAuthentication
transport input telnet
end
conf t
aaa group server radius IAS
server 192.168.1.3 auth-port 1812 acct-port 1813
server 192.168.1.1 auth-port 1812 acct-port 1813
endThe first AAA server listed in your config will always be used unless/until it becomes unavailable. At that point the NAD would move down to the next AAA server defined on the list and use that one until it becomes unavailable and then move to third one, and so on.
If you want to use two AAA servers at the same time then you will need to put a load balancer in front of them. Then the virtual IP (vip) will be listed in the NADs vs the individual AAA servers' IPs.
I hope this helps!
Thank you for rating helpful posts! -
How to insert select columns from one internal table to another
Hi,
How to insert select columns from one internal table to another based on condition as we do from a standart table to internal table.
regards,
SriramHi,
If your question is for copying data from 1 int table to other ;
we can use
APPEND LINES OF it_1 TO it_2.
or if they have different columns then:
loop at it_1 into wa_it1.
move wa_it1-data to wa_it2-d1.
apped wa_it2 to it_2.
clear wa_it2.
endloop.
thnxz -
How to set the field non-editable in the classical report..
Hi..
How to set the field non-editable in the classical report..Hi experts,
For the component 'ICCMP_EMP_SRCH' there is a view 'BUPAEMPSEARCH' , which has 2 context nodes 'CUSTOMER' AND 'SEARCHEMPLOYEE' , i need to add the field 'NICKNAME' which is part of the 'CUSTOMER' context node on the search screen. Currrently all the fields on the screen screen are from the 'SEARCHEMPLOYEE' context node. when i did the configuration , the 'NICKNAME' field is greyed out . I have already generated the Getter ,Setter , GET_I, GET_M methods for the 'NICKNAME' field and the context node and controller class and context class are all active .
on debugging the GET_I method, i see that rv_disabled = 'TRUE' and the current = collection_wrapper->get_current( ) is returning empty value .
for this rv_disabled to be set false , the code below is not triggered since there is no value in current.
IF current->is_property_readonly(
'NICKNAME' ) = abap_false. "#EC NOTEXT
rv_disabled = 'FALSE'.
ENDIF.
when i check for other search fields of context node 'SEARCHEMPLOYEE' , all the fields are set to rv_disabled = 'FALSE'.
can anyone suggest how to approch this. iam i missing any binding between context nodes or any activations ?
The field properties are set as Input field and the display checkbox is not checked. -
How to put SELECTED videos in one place, so I can ONLY show the SELECTED videos on my TV and not ALL of the videos I have ever taken
YYou have to describe your issue in more detail. Are you using iTunes? Trying to see it in Apple TV, etc, etc.
Maybe you are looking for
-
Please help me, two similar errors 1772 and 2080
Hello, I have a problem. I went to ign.com and when the page loaded an advertisement also loaded, ign.com always has advertisements. Well the advertisement minimized itself so I opened it and closed it, and my whole browswer shut down and I received
-
An unusual problem happened when I upgraded from earlier version of thunderbird - which was working fine - version 9. I decided to update. So update to latest version. Once I did this something happened: 1. When I go to address book, I select address
-
Mail crashes when using it with GMail
I have two GMail accounts set-up with mail.app using IMAP. Since upgrading to Snow Leopard mail.app will crash when i'm composing an e-mail. I can receive GMail messages fine and send them also, but if i'm taking a while writing an e-mail mail.app wi
-
How do i add ios 5 to a ipod 3
how do i do it?
-
How to import csv data into Oracle using c#
Hello, How to import csv data into Oracle using c #. Where data to be imported 3GB in size and number of rows 7512263. I've managed to import csv data into Oracle, but the time it takes about 1 hour. How to speed up the time it takes to import csv da