How to get the value selected inside the forEach loop
HelloI have foreach loop with a link inside command. It looks like in below:
* < af:forEach items = "#{PagingBean.pages}" var = "item" > * "
* < text af:commandLink = ' #{point} "id ="cl1. "
* actionListener = "#{PagingBean.pageLinkClicked}" / > * "
* < af:spacer width = "10" height = "10" id = "s1" / > *.
* < / af:forEach > *.
where PagingBean.pages is an array of integers.
Now the links look like this * 1 2 3 4 5 * I want to get the value of the clicked link.
Anyone please help me to get the value of commandlinks clicked in the bean
Hello
How about the text in the actionListener for the clicked commandLink and process accordingly?
Ex:
public void pageLinkClicked(ActionEvent actionEvent) {
// Add event code here...
System.out.println(((RichCommandLink)actionEvent.getSource()).getText());
}
Arun-
Tags: Java
Similar Questions
-
How to get the button loop on my calendar?
HII im using adobe flash cs5 nd my loop button is missing frm my calendar... can someone help me get this timeline button?
you see the bottom of the timeline (highlighted in yellow)?
-
How to get the items on a loop at the same time during the execution of the loop for
Hello
I am a student. I would like to know how to get the outside loop counter values For in parallel so that the loop runs rather than obtaining the value finally outside the loop for future prospects for the answers.
Thank you
Frederick
You already said yes, and you have said some of the different ways (registrants, locals, reference, queue, etc.). Since the information was provided to your request, the thread can be considered closed? If you want details about how to implement something, you must provide the details on what you are doing.
-
DVT:pivotFilterBar - how to get the selected values of the filter
Hi all
I have a question: how to get the selected values from the pivot table filter bar programmatically?
I tried to use
but to the edge of the side DATA INCORRECTESdeclarations page, it seems that it will return the cached values.pivotTable.getDataModel().getDataAccess().getValueQDR(startRow, startCol, DataAccess.QDR_WITH_PAGE);
Environment: JDev 11.1.1.3.0 without tasks.
Thank you
MiroslawHello
You can retrieve the value selected in the PivotFilterBar through the PivotFilterBar model, instead of dataaccess:
Download the template of the bar pivot filter instance
QueryDescriptior queryDescriptor = (QueryDescriptor) pivotFilterBar.getValue ();retrieve a list of criterion, each of them is used to fill each lov in the pivot filter bar
ConjunctionCriterion conjunctionCriterion = queryDescriptor.getConjunctionCriterion ();
ListcriterionList = conjunctionCriterion.getCriterionList ();
for (int i = 0; i)<_criterionList.size(); i++)="">
AttributeCriterion = (AttributeCriterion) criterionList.get (i) criterion._selected is the currently selected value
Selected object = criterion.getValues () .get (0);System.out.println (_selected);
}Hope that helps,
Chadwick -
How to get the value of a selected character unicode?
Hi all
How to get the value of a selected character unicode?
The content property of a 'Character' InDesign object is a simple Unicode string. For access to the various characters is a basic javascript operation, and a google gives this as a good first result: http://www.w3schools.com/jsref/jsref_charCodeAt.asp
Therefore, the value of a selected character unicode is
App.Selection [0]. Characters [0].contents.charCodeAt (0)
-
How to get the selected values from the shuttle
Hello
Please tell me how to get the values of the option chosen by the shuttle leading the list.
Thank youCheck out this link and that this might help you.
Thank you
-Anil
http://oracleanil.blogspot.com/ -
I use lv 8.5 and teststand 4.0.
I did a step type custom and recorded at the MyTypes.ini in pallets of type.
I specified a default module by opening the properties of the custom step of *.ini type window, then I put some values of the parameters.
T1) when I open teststand and I add the custom step type manaully in seq file, the labview module parameter values are represented.
But, if to use file (create and add support prototype stage), the labview module parameter values has the default value.
Using joint file, how to get the setting custom step type values I put in *.ini?
Q2) each type of step are automatically by name through the use of LoadTypePaletteFilesEx. When I open teststand and I add the custom step type manaully in seq file, the module is loaded automatically. Inside the attachment, I use a prototype of charge and a fixed path where the module labview is to load the labview module.
Can I load module automatically without using a prototype of charge or how can I get a dynamic path of type step?
I solved Q1 for myself by using the mapping tab of the parameter within the configuration to the default module window.
Everyone knows Q2?
Thank you.
-
How to get the value of a column in sql query?
Hi, anyone knows how to get the value of a column in sql query?
Here is my code, the value must be 1350079224397 in my PB, but I get 0
QString query ("SELECT version FROM db_version");
QVariant result = sda.execute (query);
QVariantMap versionMap = result.toList () such () .toMap ();
If (! versionMap.IsEmpty ())
{
qDebug()<"Version: "="">"Version:><>
}OK, I have the solution
QString query ("SELECT version as version FROM db_version");
-
How to get the value of varStatus in managed Bean
Hi all
I use jDeveloper 11.1.2.4 version.
I had a table with table with departments view object. I added an extra column to the table to display the serial numbers of the lines like this.
< af:table...
varStatus = 'vs' rowSelection = "multiple" id = "t1" binding = "#{ReferenceBeans.departmentTable}"> "
< af:column id = "c5" headerText = "varStatus" >
< af:outputText value = "#{vs.index + 1}" id = "ot1" binding = "#{ReferenceBeans.varStatus}" / > "
at the bean, I get all the values of the selected line, but I don't get the varStatus value of the column.
If I use
Object varStatus is getVarStatus () .getValue ();.
System.out.println("varstatus::"+varStatus);
That's the impression first value only, but not the values of the selected line.
How to get the varStatus value in the bean selected lines.
Best regards
Claude Reynier.
You can get the index of the line of the ViewObject.getRangeIndexOf (row) method. Something like this:
empIter.getViewObject () .getRangeIndexOf (currentRow)
example:
RowKeySet selectedEmps = getTable().getSelectedRowKeys(); Iterator selectedEmpIter = selectedEmps.iterator(); DCBindingContainer bindings = (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry(); DCIteratorBinding empIter = bindings.findIteratorBinding("EmployeesView1Iterator"); RowSetIterator empRSIter = empIter.getRowSetIterator(); while (selectedEmpIter.hasNext()) { Key key = (Key) ((List) selectedEmpIter.next()).get(0); Row currentRow = empRSIter.getRow(key); System.out.println("FirstName" + currentRow.getAttribute("FirstName") + " - Row Index= " + (empIter.getViewObject().getRangeIndexOf(currentRow) + 1)); }
-
How to get the balance of an element value
Hello
I have a requirement to obtain related information with balance. I am able to read the information on the element except balance.how to get the value of the particular item balance.
for the application-> transfer and process-> queries with trust-> value the month selected and chosen balances button and queries with the obtained item name break it down the value of the balance.
These values I want in my query.i tried backend with calling package by passing parameters like the number of transfer, balance the id and date but iam getting value "0".
IAM new to hrms, Please help me on how to get this balance of values
Thank you
Hello
It is not very clear what you want to display in the form of balance for a given range of dates.
It depends on how you have configured your balances and periods and balance which you are referring.
The API allows for a given only date that matches the date earned.
Say, for example, that you have a "basic salary" defined with a "Treatment period assignment to Date" dimension and feed of the element that corresponds to the base salary.
"If you need get the 'wage base Total' (balance?) for the period February 1, 2015 ' to March 31, 2015", then you need get dates earned for payroll passes made during that period and call the package above with the appropriate settings.
Another way is by querying the tables/views directly: you can use, for example - it's perhaps easier to your situation:
Select sum (nvl (pbv.value, 0))
of pay_balance_values_v the VB.
where pbv.balance_name = 'base salary.
and pbv.database_item_suffix = '_ASG_PTD. '
and pbv.assignment_id =
and pbv.effective_date between to_date (' 01/02/2015 ',' dd/mm/yyyy')
and to_date (' 31/03/2015 ',' dd/mm/yyyy');
Kind regards
Rajen -
How to get the values of the table of the ADF to bean class?
Hi all
My 11.1.1.6 Jdev
Here I do not use BC ADF in my project. I'll put values in the ADF table with bean.
In the table, I put a checkbox. When I selected (Checkbox) a few rows in table and submit. In the submit method, I want to get all the values of line checkbox selected in my bean class.
How can I get the values. ???
Here my table UI code
< af:table var = "row" rowBandingInterval = "0" id = "t1" value = "#{pageFlowScope.BinderSolutionsBean.uiBinderProperties} '"
styleClass = "AFStretchWidth" emptyText = "no record found".
Binding = "#{pageFlowScope.BinderSolutionsBean.binderTree}" >
< af:column sortable = "false" headerText = "Script ID" id = 'c4' >
< af:panelGroupLayout id = "pgl4" >
< af:selectBooleanCheckbox id = 'sbc1' > < / af:selectBooleanCheckbox >
< af:spacer width = "5" / >
< af:outputText value = "#{row.scenarioId}" id = "ot5" / > "
< / af:panelGroupLayout >
< / af:column >
< af:column sortable = "false" headerText = "Quote ID" id = "c1" >
< af:outputText value = "#{row.quoteId}" id = "ot4" / > "
< / af:column >
< af:column sortable = "false" headerText = "NASP ID" id = "c2" >
< af:outputText value = "#{row.naspId}" id = "ot2" / > "
< / af:column >
< af:column sortable = "false" headerText = "GCH ID" id = 'c3' >
< af:outputText value = "#{row.gchId}" id = "ot3" / > "
< / af:column >
< af:column id = "c6" headerText = "Term" >
< af:outputText value = "#{row.term}" id = "ot9" / > "
< / af:column >
< af:column sortable = "false" headerText = "Status" id = "c5" >
< af:outputText value = "#{row.status}" id = "ot6" / > "
< / af:column >
< / af:table >
follow some above recommendation such as the creation of additional attribute. You will also need the key in your collection, while making the data for your chart.
You must write a custom selectionListener. On valueChangeEvent of box, get the key of a line and add the line at the bean.
Maybe it's little help for you
-
How to get the fnd_profile.value in the host program
Hi all
How to get the FND_PROFILE. VALUE('ORG_ID') in the host program.
I loved not below, but it failed.
v_return =' $ORACLE_HOME/bin/sqlplus - s $FCP_LOGIN < < END
set pagesize 0
trigger the echo
fnd_profile. Value ('ORG_ID');
EXIT;
END '
echo $v_return
but it error with the message: Retrun value SP-0734: unknown command beginning "fnd_profile...". »
Kind regards
UVA
> but it error with the message: Retrun value SP-0734: unknown command beginning "fnd_profile...". »
.. .who is the same thing that will happen if you run SQL * more and type "fnd_profile.value...". »
Assuming that fnd_profile.value is a function, you must select from the something (say double) or assign to a variable.
-
How to get the checkbox value when value list changed in the classic report
Hello
I worked with apex 4.2 and I create normal classic report with a checkbox column and a single column change to select list (named loved) now, when I want change to user list
take the value of the checkbox element and display it in the message.
SQL for the report
{
SELECT
"" "< INPUT TYPE ="checkbox"NAME ="f01"VALUE =" "
|| SEQ
|'">"SEQ, "
ID,
DEPT_NO,
EMP_NAME} I change the column attributes of Dept_NO to display as the selection of the name of the Department (named lov) list.
now, I want when change of user name of the Department, the value of the MESSAGE ALERT SHOW IN SEQ
I create JavaScript on the page
function test (pThis) {}
var f01_value = $('select[name="f01"]').value;
Alert ("#SEQ:" + f01_value);
}
< /script >
I call this javascript function when the change in the list, but the value undefined...
My Question:
How can get this value or any value of the point in reports
concerning
AhmedHello
Check your page now.As mentioned earlier, you must use APEX_ITEM. CHECKBOX2.
APEX_ITEM.CHECKBOX2(2,EMP.EMPNO,null,null,null,'f02_'||lpad(ROWNUM,4,'0')) NO,
And the javascript function will be
You cannot use $v to get the value of the checkbox element such that it works differently for the boxes, see http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/javascript_api.htm #BGBGDGIH.
Therefore, you use the jQuery val().See you soon,.
-
How to get the value of viewrow by chain
With the help of Jdev11.1.1.5.0 - adfbc - ireport3.0.0
Here I will describe: what I've done.
use jsff (dynamic region) while hitting the af:tree nodes it opens. Fine OK
I had somevo manually wroten Query. and the query is fine no problem with it
I do drag and drop the pacctid correspondent run params vo as selectoncechoicehere i give sample not a original query select * from sometable where acctid = :pacctid
public static vo
Value of data - to pay account, advance
Announcement name - ap, given
in this jsff*page representation* account type : account payable (ap) - select one choice type advance (ad) - select one choice type like this some select once choice and some inputs. Run report - command button
. Java.jsff code <af:selectOneChoice value="#{bindings.ACCT_TYPE.inputValue}" label="Account Type" shortDesc="#{bindings.ACCT_TYPE.hints.tooltip}" id="soc3" required="true" autoSubmit="true" binding="#{backingBeanScope.SUP1040V.soc3}" valuePassThru="true" valueChangeListener="#{backingBeanScope.SUP1040V.ValueChangeListener1}"> <f:selectItems value="#{bindings.ACCT_TYPE.items}" id="si3"/> </af:selectOneChoice> <af:commandToolbarButton text="Export in pdf" id="ctb2"> <af:fileDownloadActionListener method="#{backingBeanScope.SUP1040V.Report}" /> </af:commandToolbarButton>
If I get ap means my report runs. or otherwise it will show an empty page.//while hitting the button following logs are appeared i show it as commented format. public void Report(FacesContext context, OutputStream out) throws IOException,Exception { FacesContext ctx = FacesContext.getCurrentInstance(); HttpServletRequest request = (HttpServletRequest)ctx.getExternalContext().getRequest(); HttpServletResponse response = (HttpServletResponse)ctx.getExternalContext().getResponse(); ..... BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry(); System.out.println("print binding" +bindings1 ); //while using sop i get this in my log : : print binding ReportsPageFragments_SUP1040VPageDef_WEB_INF_TaskFlows_SUP1040_V_TF_xml_SUP1040_V_TF JUCtrlListBinding listBinding1 = (JUCtrlListBinding)bindings1.get("ACCT_TYPE"); System.out.println("print list bindings" +listBinding1 ); //while using sop i get this in my log : : print list bindings0 Object selectedValue1 = listBinding1.getSelectedValue(); System.out.println("print selected value" + selectedValue1); //while using sop i get this in my log : : print selected valueViewRow [oracle.jbo.Key[AP ]] request.setAttribute("ACCT_TYPE", //here i want the value "AP" in String ); if i use like this means request.setAttribute("ACCT_TYPE", soc1.getValue() ); i get the index value. i need the dataname "ap" so i go above method which say wrotes ... ... request.getRequestDispatcher(response.encodeURL("/sup1040servlet")).forward(request,response); System.out.println("hihihihih"); response.flushBuffer(); ctx.responseComplete(); } public void ValueChangeListener1(ValueChangeEvent valueChangeEvent) { // Add event code here... String AcctType = valueChangeEvent.getNewValue().toString(); System.out.println("AcctType" + AcctType); FacesContext contxt = FacesContext.getCurrentInstance(); valueChangeEvent.getComponent().processUpdates(contxt); BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry(); // Get the sepecific list binding JUCtrlListBinding listBinding1 = (JUCtrlListBinding)bindings1.get("ACCT_TYPE"); // Get the value which is currently selected Object selectedValue1 = listBinding1.getSelectedValue(); System.out.println(selectedValue1); }
How to get the value of class viewrowimpl as string.
Published by: ADF7 on March 24, 2012 07:27ADF7,
I'm not sure that understand what you're up to.
For as far as I understand you want to get the value of display rather than the index
I use this codepublic void StatusChangedListener(ValueChangeEvent valueChangeEvent) { BindingContext lBindingContext = BindingContext.getCurrent(); BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry(); JUCtrlListBinding list = (JUCtrlListBinding) lBindingContainer.get("Status"); int newindex = (Integer) valueChangeEvent.getNewValue(); Object row = list.getDisplayData(); // Wichtig um die liste zu laden!!!! Row lFromList = (Row) list.getValueFromList(newindex); Object lAttribute = lFromList.getAttribute("Value"); String newVal = (String) lAttribute; }
to get the value of a component of selectOneChoice...
Timo
-
How to get the value of a particular column column name?
Hi all
How to get the column name for a particular column value.
example:
create table test (ID number, col2, col3 varchar varchar);
Insert into test values (1, 'true', 'false');
Insert into test values (2, 'false', 'true');
commit;
I want to choose the name of the data column 'true' with id = 1;
That is to say) while waiting for answer is "col2". pls help someone.This might help:
DECLARE c1 SYS_REFCURSOR; BEGIN OPEN c1 FOR SELECT col2, col3 FROM test WHERE id = 1; -- FOR c IN (SELECT rownum rn, t2.column_value.getrootelement() name, EXTRACTVALUE(t2.column_value, 'node()') value FROM TABLE(XMLSEQUENCE(c1)) t, TABLE(XMLSEQUENCE(EXTRACT(column_value, '/ROW/node()'))) t2) LOOP IF c.value = 'true' THEN DBMS_OUTPUT.PUT_LINE(c.name); END IF; END LOOP; END;
-
How to get the value of the list item
Hi all
How to get the value of the list item?
I have a problem with the list item object
in Oracle Forms.
How can I retrieve the selected item from
a list?
I have not found any function as ' list. GET_
SELECTED_ITEM()'...
Thank you
BalaHello
You get the value as any other element of forms:
:value := :block.list_tem ;
François
Maybe you are looking for
-
I can't transfer music from my computer to my iPhone
Nice day! I can't transfer music from my computer to my iPhone (iOS 9.3.1). My iTunes is the latest version. In iTunes, on the "Overview" TAB I don't have to change setting: music and video by hand. I have only: change video by hand. And I don't have
-
I have problems when sending emails on Outlook Express (Windows XP Home) told in the Outbox, even if they were sent. What can I do?
-
Windows update ERROR CODE 80240016
Updates Windows installs, giving the error code 80240016: "other updates installing" it lasts for weeks about 28 items which will not install, although some things get stuck... I did the "fix it" already it does not SOLVE this problem.
-
Authentication failed due to the error System.
After spending my fundamental problem with Burrito and 0.9.3 I advanced and made the PlayBook in 90-minute tutorial. When running in mode 'on the desktop", the app works great and works. When I change mode "On Device" and that the running virtual mac
-
Hello I associated a SP of a blade. If the blade of physcial failed, I can configure the SP automatically MS should be associated with another free blade? If so, how do I configure the SP or SP model? Thx for your comments Best regards Nicolas.