How to Get User entered value in a text variable
Hi,
I have made a text variable to show the user entered value in the column header.
The user enteres value in a formula variable ABC whose default value is say '30'.
I am using customer exit to capture this value in the text variable. The code is as follows
IF i_vnam EQ 'txtvar'.
if i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = 'ABC'.
CLEAR l_s_range.
l_s_range-low = loc_var_range-low.
l_s_range-opt = 'EQ'.
l_s_range-sign = 'I'.
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
endif.
endif.
Now when I am executing the query I am getting the default value in the column header i,e, 30. But when the user changes this default value to something else while executing the query, I simply get blank in the column. The changed value is not getting captured in the text variable.
Thanks
Hi,
Insted of going for exit,
just create a Text variable proceesing typr Default/ Manual Entry and set the default value as u wish,
use it in the KF header; dont use the same Text Variable for Query Title.
Now i tried this for you and it is working fine.
Regards
ReddY A
Similar Messages
-
How to keep user enter value in textbox even if JSP page get refreshed.
Hi Experts,
In My JSP Page i have one text(customer Name) and number of checkboxes and radio buttons.
My Problem is:
if user enter some value in Text Box and after that user clicks on some radio button becouse of some action on radio button page get refresh and also the value enter by user in text box get vanish.
I want keep text box value as it is even if page get refreshed becouse of some action.
Is it any setting in Strust framework for this.
I am using Struts Framework.
Please let me know if need more informationSorry, I don't clearly understand the question and the horrible code (Java code doesn't belong in JSPs) doesn't make it more easy to understand.
Best what I can guess is that you need to learn about passing request parameters/attributes in JSP and the possibilty of storing attributes in the session. And based on the code, also learn how to separate the data, business and presentation layers properly. -
How to run user enter value query and get result on Text item
Hi ,
I'm really newbie at JDeveloper and ADF , I want to run the query below , before with Forms i just adding :TEXT_NAME to get the entered users value , what I have to do now with ADF , really it's not clear question and I would appreciate any help with this ,
select
nvl(min(substr(a.starttime,1,8)),0) Service_Start_Time, nvl(sum(a.sessionvolume),0) Total_Traffic_KB
FROM
aaa_bill a
where
msid=:TEXT_ITEM
and starttime >=(select max(fee) FROM aaa_bill
where msid=:TEXT_ITEM and accountreason=5) ;You can use a ADF parameter form for this requirement.
https://blogs.oracle.com/shay/entry/combining_multiple_queries_and -
How to get the entered value in a web template?
Hi experts,
We have a BEX web template that executes a query with an input variable. Itu2019s 0BPARTNER. It runs a report filtered by business partner
We want to execute a web service in the same web temple using the same entered value for business partner as a parameter.
The entered variable is not accessible with a document.getElementById('0BPARTNER')
The entered must be available in some way as it can be shown in a text element.
Does anyone know how to access it and move it to a local JavaScript variable?
ThanksPlease see this document :- http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c01e9b01-abab-2d10-6687-96fc7bc39084
Hope it helps
Cheers
Craig -
How to get selected item value and display text in selectOneChoice ?
Hi
Thank you for reading my post
I bind the a selectOneChoice component to my backing bean so i have an object which represent this component in the backing bean.
now i need to find which item is selected by use , i know that i can use
getSelect_service().getValue.toString() , but it will return the value of the selected item, how about its display text ?
I should say that i create an static list for selectOneChoice items.
thanksUsing JDeveloper 10.1.3.1, freshly downloaded off OTN. I used the following code to try and identify the problem you are encountering. I attempted to use a valueChangeListener in combination with af:selectOneChoice components that use SelectItems and the singular SelectItem. I could not reproduce the error in either case. Please post more information about your development environment.
<af:selectOneChoice label="Label 1"
binding="#{backing_test.selectOneChoice1}"
id="selectOneChoice1"
valueChangeListener="#{backing_test.valueChangeListener}"
autoSubmit="true" immediate="true">
<af:selectItem label="1" value="1"
binding="#{backing_test.selectItem1}"
id="selectItem1"/>
<af:selectItem label="2" value="2"
binding="#{backing_test.selectItem2}"
id="selectItem2"/>
<af:selectItem label="3" value="3"
binding="#{backing_test.selectItem3}"
id="selectItem3"/>
</af:selectOneChoice>
<af:selectOneChoice label="Label 2"
binding="#{backing_test.selectOneChoice2}"
id="selectOneChoice2" valueChangeListener="#{backing_test.valueChangeListener}"
autoSubmit="true" immediate="true">
<f:selectItems value="#{backing_test.items}"
binding="#{backing_test.selectItems1}"
id="selectItems1"/>
</af:selectOneChoice>
public void valueChangeListener(ValueChangeEvent evt){
// returns a UISelectOneChoice object
System.out.println(evt.getSource().getClass().getName());
// returns a string
System.out.println(evt.getNewValue().getClass().getName());
public Map getItems(){
items = new HashMap();
items.put("11","11");
items.put("12","12");
items.put("13","13");
return items;
} -
How to get multiple row values in one text box while clicking one row from grid?
hi friends,
i am working on flex4 web application i am using one datagrid ,it have two records(bills),one button and one text box.
ex:
customername salesrepname receipt no amount
venkat raj 1102 10000
ramu ramesh 1102 20000
here both receipt no is same.now i want to select one of this receipt and click pay button which is place in outside the grid.
now my need is after click the pay button in text box i need 10000+20000=30000,after click that button i want both receipts should be invisible...'
how i will do this,
any suggession,
Thanks
B.venkatesanOne way with 10g:
select mgr,
rtrim(xmlagg(xmlelement(empno,empno||',').extract('//text()')),',') emps
from emp
where mgr is not null
group by mgr;10g:
-- define this function:
create or replace
function concatenate(c Sys_refcursor, sep varchar2 default null) return varchar2
as
val varchar2(100);
return_value varchar2(4000);
begin
-- open c;
loop
fetch c into val;
exit when c%notfound;
if return_value is null then
return_value:=val;
else
return_value:=return_value||sep||val;
end if;
end loop;
return return_value;
end;
select mgr,
concatenate(cursor(select empno from emp e where e.mgr=emp.mgr order by empno),',')
from emp
where mgr is not null
group by mgr;With 11g:
select mgr,
listagg(empno,',') within group (order by empno) emps
from emp
where mgr is not null
group by mgr; -
Hi All,
I have a requirement where i need to get the user entered value in the Parameter of a concurrent program while submitting it. i tried to query the FND_CONCURRENT_REQUESTS table but in that it stores the ID values from the value set of the Parameter.
After submitting the Concurrent request when we click on the view Details button it opens a form where it displays the arguments in the parameter field . i want to get that string.
Thanks a lot in advance for your time and help.
- VijayHi All,
I have a requirement where i need to get the user entered value in the Parameter of a concurrent program while submitting it. i tried to query the FND_CONCURRENT_REQUESTS table but in that it stores the ID values from the value set of the Parameter.
After submitting the Concurrent request when we click on the view Details button it opens a form where it displays the arguments in the parameter field . i want to get that string.
Thanks a lot in advance for your time and help.
- Vijay -
Need help to get the user entered value from a input field in Table in OA
I have a table in my OA page.
Here one column is there which should take in put from user.
i.e an item quantity field text input is there which should take the updated value when the add to cart link which is next column in the table. On clicking of the link I am trying to get the updated value entered by user. for the respected row for which addto cart link get clicked.
For that link I have defined some parameter through SPEL,( like this parameter name: item_quantity value : ${oa.MisibeItemSearchVO.ItemQuantity} ) which has fireaction. But when i am clicking the addto cart link I am not getting the current value entered by the user.
Can any body guide me how to get that related value for which the add to cart link got clicked.
for this when i am doing pageContext.getParameter("item_quantity"));
I am not getting the value entered by user.
please suggest me
Thanks!
SmarajeetThe below is my Vo query for item quanity i am using a dummy query "(select null from dual) as ITEM_QUANTITY"
in the below query and item type is number. and this is a messageTextINput in OA page and is maped to ItemQuantity vo attribute.
SELECT idsi.section_item_id
,idsi.inventory_item_id
,(select concatenated_segments from mtl_system_items_kfv mstk
where mstk.inventory_item_id = idsi.inventory_item_id
and mstk.organization_id =idsi.organization_id) ITEM_NAME
,(select description from mtl_system_items_tl mtll
where mtll.inventory_item_id = idsi.inventory_item_id
and mtll.organization_id =idsi.organization_id
and language = USERENV('LANG') ) ITEM_Description
,(SELECT CASE
WHEN instr(msib.segment6,'NAMED USER') > 0 THEN 'NAMED_USER'
WHEN instr(msib.segment6,'PROCESSOR')>0 THEN 'PROCESSOR'
ELSE msib.segment6
END
FROM MTL_SYSTEM_ITEMS_B msib
WHERE msib.INVENTORY_ITEM_ID = idsi.inventory_item_id
AND msib.ORGANIZATION_ID = idsi.organization_id) LICENSE_TYPE
,(SELECT CASE
WHEN instr(msib.segment6,'1 YR') > 0 THEN '1YR'
WHEN instr(msib.segment6,'2 YR') > 0 THEN '2YR'
WHEN instr(msib.segment6,'3 YR') > 0 THEN '3YR'
WHEN instr(msib.segment6,'4 YR') > 0 THEN '4YR'
WHEN instr(msib.segment6,'5 YR') > 0 THEN '5YR'
WHEN instr(msib.DESCRIPTION,'Perpetual') > 0 THEN 'PERPETUAL'
END TERM FROM MTL_SYSTEM_ITEMS_B msib
WHERE msib.INVENTORY_ITEM_ID = idsi.inventory_item_id
AND msib.ORGANIZATION_ID = idsi.organization_id) TERM
,(select qll.operand
FROM qp_list_lines qll
,qp_pricing_attributes qpa
WHERE qll.list_line_id = qpa.list_line_id
AND qpa.product_attr_value = to_char(idsi.inventory_item_id)
AND qll.list_header_id = 439381
AND sysdate between NVL(qll.start_date_active, sysdate) and NVL(qll.end_date_active, sysdate+1)
AND qpa.list_header_id = qll.list_header_id
AND qpa.product_attribute = 'PRICING_ATTRIBUTE1'
AND qpa.product_attribute_context = 'ITEM'
AND NVL(qpa.pricing_attribute_context,'MIXED') = 'MIXED') ITEM_PRICE
,(select null from dual) as ITEM_QUANTITY
,(select currency_code from qp_list_headers_b where list_header_id =439381) currency_code
,(select segment1 from mtl_system_items_b msib
where msib.inventory_item_id = idsi.inventory_item_id
and msib.organization_id =idsi.organization_id) PART_NUMBER
FROM ibe_dsp_section_items idsi
,ibe_dsp_msite_sct_items idmsi
,( select distinct child_section_id
from IBE_DSP_MSITE_SCT_SECTS b
connect by PRIOR child_section_id = parent_section_id
start with parent_section_id =:1
and mini_site_id =1
UNION
select distinct child_section_id
from IBE_DSP_MSITE_SCT_SECTS b
where child_section_id =:1
and mini_site_id =1
) csi
WHERE idsi.organization_id = 101
AND idmsi.section_item_id = idsi.section_item_id
AND idsi.section_id = csi.child_section_id
AND idmsi.mini_site_id = 14409 -
How to find the user entered value is Integer or not?
hi,
i want to find, whether the user entered value is Integer or not. If it is Integer, i wanna continue the program. otherwise send an error message. i tried to find for function in API. But i couldn't. can somebody help me with sample code. very urgent.Do a Integer.parseInt(<string value>) in a try catch block If a NumberFormatException is thrown, the entered number is not an integer.
-
How to get user input to keep in array in the form of int[]?
I really want to know how to get user input to keep in an array. Or if it's impossible, can i use the value in "int" and transfer it to an array?
What I understand is that you want to set an input from the user in an array of int.
Here is how it work:
1. Create a stream and a buffer to get and store the informations entered by the user:
BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
2. Set this input in a String:
String input = stdin.readLine();
3. Set this string in an int:
int userInput = Integer.parseInt(input);
4. Then you can put this int in the array.
Warning this code throws IOExceptions and NumberFormatException ( when you try to set letters as int ). But you can catch them easily. -
How to get the database value without submitting the jsp page
Hi,
I have a form that has many fields (textbox/listbox). when user enter/change a value in the first textbox, I need to pass this value to the database to check whether it exist and get the other values to be displayed to other fields in that form (i cannot get the javascript value to be pass to jsp without reload/refresh/submit. But, I need to get the user entered value, so I thought of hidden popup, iframe, etc but not sure how I could apply and which best suit this case). If I submit the page then I can easily get the value thru 'request.getParameter("fieldname") but cannot use this because I cannot submit the page.
Pls help and possible provide me with the sample coding
ThanksThe best way for you is surely AJAX. But there is another way to stay compatible with older browsers:
Since the default method a browser supposed to get data is refresh, there is nothing unnatural in it. Browsers are optimized to refreshes, like cached images, etc..
So for these step-by-step things, you need to roll forward your data from page to page, and make the page to respond according the data it actually have. This can be easily achived with type="hidden" input fields in a form: the user will send you back all the data. Optionally you may show him the data you already have as visible text too.
A more generalised way to "pull" the data: you make a whole page you include every time you need an additional data. This page will receive 2 parameters from where you've included it. This 2 parameters are each indexed arrays with the datas you have to pull in (here the default value), and you need to push forward. Optionally there is a 3rd parameter, the url it have to return (as the form's action property).
And for them who now say that it would me more culture way to store this data in the session: Beware! Common mistake: Sessions are to store data about the user itself, not the datas for the next page! You never know what will be the next page! The user click some backward button and refresh button, and depending on your script, it may go stupid! Ok, not all the codes, but I've seen some. It's ok to store a sent file (fx. image) on the server, but always think the evil refresh and back buttons! -
How to get the selected values from a selectmanylistbox?
Hi ADF Experts,
<af:selectManyListbox label="Label 1" id="sml1" partialTriggers="cb2"
value="#{viewScope.TestBean.lovValue}"
autoSubmit="true" valuePassThru="true">
<f:selectItems value="#{viewScope.TestBean.actualList}" id="si1"
binding="#{viewScope.TestBean.selectedItems}"/>
</af:selectManyListbox>
<af:commandButton text="get selected values" id="cb3"
actionListener="#{viewScope.TestBean.getSelectedValues}"
partialSubmit="true"/>
private List<String> lovValue;
private List<SelectItem> actualList;
//getters and setters
public void getSelectedValues(ActionEvent actionEvent) {
// Add event code here...
for (String selectedItem : lovValue) {
System.out.println("Selected item: " +selectedItem.); // this is giving 1 and 3 like this. how to get the checked values as I'm getting only the indexes. In this scenario I am populating the list programmatically.Just I wanted to know how can we get the selected values(not indexes). Please suggest.
Thanks-
AbhijitHi Timo,
As I am sharing the page fragment and the Java class. So its my usecase I have mentioned below
I am sharing the jsff page fragment and java class. So that it wud be of help to others.
jsff page fragment
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:f="http://java.sun.com/jsf/core">
<af:panelGroupLayout id="pgl1">
<af:commandButton text="Search" id="cb1"
actionListener="#{viewScope.TestBean.searchSupplier}"/>
</af:panelGroupLayout>
<af:popup id="p1" binding="#{viewScope.TestBean.searchSupplierPopup}">
<af:dialog id="d2"
type="none">
<af:table value="#{bindings.Contacts.collectionModel}" var="row"
rows="#{bindings.Contacts.rangeSize}"
emptyText="#{bindings.Contacts.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.Contacts.rangeSize}"
rowBandingInterval="0"
binding="#{viewScope.TestBean.tsupportIssues}"
filterModel="#{bindings.ContactsQuery.queryDescriptor}"
queryListener="#{bindings.ContactsQuery.processQuery}"
filterVisible="true" varStatus="vs"
selectionListener="#{bindings.Contacts.collectionModel.makeCurrent}"
rowSelection="multiple" id="t1">
<af:column sortProperty="name" filterable="true" sortable="true"
headerText="#{bindings.Contacts.hints.name.label}" id="c2">
<af:outputText value="#{row.name}" id="ot1"/>
</af:column>
<af:column sortProperty="email" filterable="true" sortable="true"
headerText="#{bindings.Contacts.hints.email.label}"
id="c1">
<af:outputText value="#{row.email}" id="ot2"/>
</af:column>
</af:table>
<af:commandButton text="OK" id="cb5" partialSubmit="true" actionListener="#{viewScope.TestBean.testMethod}"/>
<af:commandButton text="Cancel" id="cb6"
actionListener="#{viewScope.TestBean.cancelPopupSearch}"/>
</af:dialog>
</af:popup>
<af:selectManyListbox label="Label 1" id="sml1" partialTriggers="cb5"
value="#{viewScope.TestBean.lovValue}"
autoSubmit="true" valuePassThru="true"
binding="#{viewScope.TestBean.prp1}">
<f:selectItems value="#{viewScope.TestBean.actualList}" id="si1"
binding="#{viewScope.TestBean.selectedItems}"/>
</af:selectManyListbox>
<af:commandButton text="get selected values" id="cb3"
actionListener="#{viewScope.TestBean.getSelectedValues}"
partialSubmit="true"/>
<af:commandButton text="remove selected" id="cb4"
partialSubmit="true" actionListener="#{viewScope.TestBean.removeSelectedValues}"/>
</jsp:root>
TestBean.java
package com.demo.view;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.faces.component.UISelectItems;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.adf.view.rich.component.rich.RichPopup;
import oracle.adf.view.rich.component.rich.data.RichTable;
import oracle.adf.view.rich.component.rich.input.RichSelectManyListbox;
import oracle.adf.view.rich.context.AdfFacesContext;
import oracle.adf.view.rich.event.DialogEvent;
import oracle.jbo.Key;
import oracle.jbo.Row;
import oracle.jbo.RowSetIterator;
import org.apache.myfaces.trinidad.model.RowKeySet;
public class TestBean {
private RichTable tsupportIssues;
private List<SelectItem> lovValue;
private List<SelectItem> actualList;
private RichSelectManyListbox prp1;
private List valuesChoosed = new ArrayList();
private UISelectItems selectedItems;
private RichPopup searchSupplierPopup;
public TestBean() {
super();
public void setTsupportIssues(RichTable tsupportIssues) {
this.tsupportIssues = tsupportIssues;
public RichTable getTsupportIssues() {
return tsupportIssues;
public void testMethod(ActionEvent actionEvent) {
// Add event code here...
// For learning purposes - show Select Many Button clicked
System.out.println("Select Many Button has been Clicked");
// // RowKeySet Object can hold the selected rows from a user as follows
RowKeySet rksSelectedRows = this.getTsupportIssues().getSelectedRowKeys();
// Iterator object provides the ability to use hasNext(), next() and remove() against the selected rows
Iterator itrSelectedRows = rksSelectedRows.iterator();
// Get the data control that is bound to the table - e.g.
// OpenSupportItemsIterator
DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding dcIteratorBindings = bindings.findIteratorBinding("findAllContactsIterator");
// Information from binding that is specific to the rows
RowSetIterator rsiSelectedRows = dcIteratorBindings.getRowSetIterator();
// Loop through selected rows
int i=1;
while (itrSelectedRows.hasNext()) {
// Get key for selected row
Key key = (Key)((List)itrSelectedRows.next()).get(0);
// Use the key to get the data from the above binding that is related to the row
Row myRow = rsiSelectedRows.getRow(key);
// Display attribute of row in console output - would generally be bound to a UI component like a Label and or used to call another proces
System.out.println(myRow.getAttribute("name"));
valuesChoosed.add(myRow.getAttribute("name"));
// actualList = new ArrayList<SelectItem>();
// String j = Integer.toString(i);
// actualList.add(new SelectItem(j, (String)myRow.getAttribute("name")));
// i++;
searchSupplierPopup.hide();
AdfFacesContext.getCurrentInstance().addPartialTarget(prp1);
public void setLovValue(List<SelectItem> lovValue) {
this.lovValue = lovValue;
public List<SelectItem> getLovValue() {
return lovValue;
public void setActualList(List<SelectItem> actualList) {
this.actualList = actualList;
public List<SelectItem> getActualList() {
actualList = new ArrayList<SelectItem>();
if(valuesChoosed.size()!=0){
for(int i=0;i<valuesChoosed.size();i++){
actualList.add(new SelectItem(valuesChoosed.get(i), (String)valuesChoosed.get(i)));
else{
actualList.add(new SelectItem("1","Select One"));
return actualList;
public void setPrp1(RichSelectManyListbox prp1) {
this.prp1 = prp1;
public RichSelectManyListbox getPrp1() {
return prp1;
public void setValuesChoosed(List valuesChoosed) {
this.valuesChoosed = valuesChoosed;
public List getValuesChoosed() {
return valuesChoosed;
public void getValues(ActionEvent actionEvent) {
// Add event code here...
for(int i=0;i<valuesChoosed.size();i++){
System.out.println(valuesChoosed.get(i));
public void getSelectedValues(ActionEvent actionEvent) {
// Add event code here...
for(int i=0;i<this.getLovValue().size();i++){
System.out.println("Selected Value:"+this.getLovValue().get(i));
public void removeSelectedValues(ActionEvent actionEvent) {
// Add event code here...
public void setSelectedItems(UISelectItems selectedItems) {
this.selectedItems = selectedItems;
public UISelectItems getSelectedItems() {
return selectedItems;
public void setSearchSupplierPopup(RichPopup searchSupplierPopup) {
this.searchSupplierPopup = searchSupplierPopup;
public RichPopup getSearchSupplierPopup() {
return searchSupplierPopup;
public void cancelPopupSearch(ActionEvent actionEvent) {
// Add event code here...
searchSupplierPopup.hide();
public void searchSupplier(ActionEvent actionEvent) {
// Add event code here...
RichPopup.PopupHints hints = new RichPopup.PopupHints();
searchSupplierPopup.show(hints);
package com.demo.view;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.faces.component.UISelectItems;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.adf.view.rich.component.rich.RichPopup;
import oracle.adf.view.rich.component.rich.data.RichTable;
import oracle.adf.view.rich.component.rich.input.RichSelectManyListbox;
import oracle.adf.view.rich.context.AdfFacesContext;
import oracle.adf.view.rich.event.DialogEvent;
import oracle.jbo.Key;
import oracle.jbo.Row;
import oracle.jbo.RowSetIterator;
import org.apache.myfaces.trinidad.model.RowKeySet;
public class TestBean {
private RichTable tsupportIssues;
private List<SelectItem> lovValue;
private List<SelectItem> actualList;
private RichSelectManyListbox prp1;
private List valuesChoosed = new ArrayList();
private UISelectItems selectedItems;
private RichPopup searchSupplierPopup;
public TestBean() {
super();
public void setTsupportIssues(RichTable tsupportIssues) {
this.tsupportIssues = tsupportIssues;
public RichTable getTsupportIssues() {
return tsupportIssues;
public void testMethod(ActionEvent actionEvent) {
// Add event code here...
// For learning purposes - show Select Many Button clicked
System.out.println("Select Many Button has been Clicked");
// // RowKeySet Object can hold the selected rows from a user as follows
RowKeySet rksSelectedRows = this.getTsupportIssues().getSelectedRowKeys();
// Iterator object provides the ability to use hasNext(), next() and remove() against the selected rows
Iterator itrSelectedRows = rksSelectedRows.iterator();
// Get the data control that is bound to the table - e.g.
// OpenSupportItemsIterator
DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding dcIteratorBindings = bindings.findIteratorBinding("findAllContactsIterator");
// Information from binding that is specific to the rows
RowSetIterator rsiSelectedRows = dcIteratorBindings.getRowSetIterator();
// Loop through selected rows
int i=1;
while (itrSelectedRows.hasNext()) {
// Get key for selected row
Key key = (Key)((List)itrSelectedRows.next()).get(0);
// Use the key to get the data from the above binding that is related to the row
Row myRow = rsiSelectedRows.getRow(key);
// Display attribute of row in console output - would generally be bound to a UI component like a Label and or used to call another proces
System.out.println(myRow.getAttribute("name"));
valuesChoosed.add(myRow.getAttribute("name"));
// actualList = new ArrayList<SelectItem>();
// String j = Integer.toString(i);
// actualList.add(new SelectItem(j, (String)myRow.getAttribute("name")));
// i++;
searchSupplierPopup.hide();
AdfFacesContext.getCurrentInstance().addPartialTarget(prp1);
public void setLovValue(List<SelectItem> lovValue) {
this.lovValue = lovValue;
public List<SelectItem> getLovValue() {
return lovValue;
public void setActualList(List<SelectItem> actualList) {
this.actualList = actualList;
public List<SelectItem> getActualList() {
actualList = new ArrayList<SelectItem>();
if(valuesChoosed.size()!=0){
for(int i=0;i<valuesChoosed.size();i++){
actualList.add(new SelectItem(valuesChoosed.get(i), (String)valuesChoosed.get(i)));
else{
actualList.add(new SelectItem("1","Select One"));
return actualList;
public void setPrp1(RichSelectManyListbox prp1) {
this.prp1 = prp1;
public RichSelectManyListbox getPrp1() {
return prp1;
public void setValuesChoosed(List valuesChoosed) {
this.valuesChoosed = valuesChoosed;
public List getValuesChoosed() {
return valuesChoosed;
public void getValues(ActionEvent actionEvent) {
// Add event code here...
for(int i=0;i<valuesChoosed.size();i++){
System.out.println(valuesChoosed.get(i));
public void getSelectedValues(ActionEvent actionEvent) {
// Add event code here...
for(int i=0;i<this.getLovValue().size();i++){
System.out.println("Selected Value:"+this.getLovValue().get(i));
public void removeSelectedValues(ActionEvent actionEvent) {
// Add event code here...
for(int i=0;i<this.getLovValue().size();i++){
System.out.println("Selected Value:"+this.getLovValue().get(i));
System.out.println(this.getLovValue().remove(i));
AdfFacesContext.getCurrentInstance().addPartialTarget(prp1);
public void setSelectedItems(UISelectItems selectedItems) {
this.selectedItems = selectedItems;
public UISelectItems getSelectedItems() {
return selectedItems;
public void setSearchSupplierPopup(RichPopup searchSupplierPopup) {
this.searchSupplierPopup = searchSupplierPopup;
public RichPopup getSearchSupplierPopup() {
return searchSupplierPopup;
public void cancelPopupSearch(ActionEvent actionEvent) {
// Add event code here...
searchSupplierPopup.hide();
public void searchSupplier(ActionEvent actionEvent) {
// Add event code here...
RichPopup.PopupHints hints = new RichPopup.PopupHints();
searchSupplierPopup.show(hints);
Thanks,
A. Abhijit -
User entered values are lost on EO validation.
Hi ,
Subject : user entered values are lost on EO validation.
WE have an EO which has 4 attributes all are not null (mandatory)
There is a VO based on this EO
We have added 4 more attributes using a join in EO query using expert mode.
On the page there is a Table , that has 8 columns all mapped to these 8 attributes.
The First column is an LOv that populates 4 column attributes(2 EO based and 2 added thru expert mode)
When the user submits the page, without entering rest of the two EO mandatory atributes, the EO validation is raised and the 4 fields populated by LOv are cleared.
Can you pls tell me what am i doing wrong.
thanks
ChaitanyaObservation
All the table columns that were loosing information were "MessageStyledText" and those not loosing were "MessageTextInput"
Various approaches
SO we converted the MessageStyledText columns into MessageTextInput and the data was retaining properly.
But we wanted these columns are 'ReadOnly' so when we made these columns are MessageTextInput - ReadOnly, then data was not getting popluated by the lov in these.
Working solution - The FormValue 'Glue'
We created formValues correcponding columns and populated the FVs also along with the column (both FV and column have same ViewAtt and View instance) and found that in this case the formvalues 'Glues' the VO att value with the page and does not get lost on refresh.
Strange solution but works, thought to share with all.
thanks
Chaitanya -
Hi,
i am working in Oracle APEX. Can anyone tell me how to get the checkbox value Thru Pl/sql Procedure.
Ex:
if i have three users like 1) super admin 2) HR 3) user i am giving different grants to all. there s a check box i used if HR selected three grants i have to get the checked value from my procedure and put into a table in a single column.
grants :
1)user creation
2)salary details
3)Attendance details
4)Allowance
5)contacts
if its checked i am returning 1 not checked i hav to return 0
in my table i ahv to store 10111 like that......
Edited by: user12356342 on Dec 16, 2009 3:33 AMHi,
As a starting point, look at: [http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/check_box.htm#CHDCGIFA] as this explains how to use checkboxes on forms and reports
Andy -
Reg: User Entered Value in LOV Window
Hi All,
Following is the use case.
I have an LOV ("PO Number") with its own controller. If user enters a partial value in LOV Field, (say 513),
LOV Window comes up with results like PO Number starting with 513. Suppose, If user modifies the search value from 513 to 913,
LOV query needs to get executed with new search value (913).
Can you please suggest me to capture the new user entered value (913) in the controller.
I tried the following. But, poNum value obtained through below code is 513(old value - value entered in LOV of base page.)
Dictionary passiveCriteria = (Dictionary)pageContext.getLovCriteriaItems();
String poNum = (String)passiveCriteria.get("PosPoNumberInternalLov1");
Is there any other way, i can find out the new user entered value in LOV Window.
Thanks,
Kiran.Hi Gyan,
My requirement is that, I need to make some processing/manipulation on the user entered search value for the LOV.
If the user enters value in base page, i am able to get the value and process it.
But, If user clicks on LOV Window, enters a new value in search field, i am not able to capture the new value.
Please suggest accordingly.
Thanks,
Kiran
Maybe you are looking for
-
Oracle VM Manager 3.0 - Virtual Machine Console Access
Does anybody else out there seem to have problems launching the console to get into a VM Guest? When we do, we get the login screen and then nothing. It doesn't appear to be firewall related. We had similiar issues in 2.2. Any tricks on this?
-
Different badge for each forum?
As I understand the badge, the first bar is kudos and tags, second is number of posts and the third is messages read. If I go post on the Test Stand board where I have only posted one or two messages my badge is the same as it is on the LabVIEW forum
-
Post-iTunes re-install file problem
After re-installing iTunes on my Sony laptop, I get this error: "The iTunes library .itl file is locked, on a locked disc, or you do not have write permission for this file". What should I do?
-
I just got a nano 7th generation but came in chinese language and don't understand
Hi I new at this, I just got the nano 7th generation. Took it out of the package and discover that is in chinese language and don't understand and don't know which one of the setting in the one for changing the language. Can anyone help one Annie
-
i have compile and run my program. First time the program can run. But after that when i run, come out error messege as below: java.lang.NoClassDefFoundError: FormPoster (wrong name: search/FormPoster) at java.lang.ClassLoader.defineClass0(Native Met