How to create a clickable row in a table
hi all
I'm trying to use the onclick prop of a tr elem in table. At the moment I'm using the same h:commandLink inside each column (td) I have. How can I place in the onclick tr prop. the same onclick funcion generated by the h:commandLink component?
regards
checkout t:dataTable from Tomahawk, it extends dataTable and has rowOnclick attribute you can set.
Similar Messages
-
How to create multiple new rows in ADF Table?
Hello,
being new to ADF Faces/BC I managed to display data in an ADF Table and create new entries using the "CreateInsert" operation (one at a time).
Now, the next task is to create multiple new rows at the same time, set some default values and display the new rows in the ADF table. Then the user will enter additional data and commit the new rows.
Where do I step in? In the EntitiyImpl? Can this be handled declaratively or do I have to implement custom method(s) in the AM?
Thanks
GeraldHi John,
I'm still getting the following error
Error(94,144): method getValue() not found in class javax.faces.el.ValueBinding
What should it be casted to?
The code in backing bean is like this..
package view.backing;
//import com.test.model.TestAppModuleImpl;
import javax.faces.component.html.HtmlForm;
import javax.faces.component.html.HtmlPanelGroup;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
//import javax.faces.event.FacesListener;
//import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.adf.view.faces.component.core.data.CoreColumn;
import oracle.adf.view.faces.component.core.data.CoreTable;
import oracle.adf.view.faces.component.core.input.CoreInputText;
import oracle.adf.view.faces.component.core.nav.CoreCommandButton;
import oracle.adf.view.faces.component.core.output.CoreMessages;
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.server.ViewObjectImpl;
//import view.utils.EL;
public class MultipleInsert1 {
private HtmlHtml html1;
private HtmlHead head1;
private HtmlBody body1;
private CoreMessages messages1;
private HtmlForm form1;
private CoreTable table1;
private CoreColumn column1;
private CoreInputText inputText1;
private CoreColumn column2;
private CoreInputText inputText2;
private CoreCommandButton commandButton1;
private HtmlPanelGroup panelGroup1;
private CoreCommandButton commandButton2;
public void setHtml1(HtmlHtml html1) {
this.html1 = html1;
public void createMultiRows(ActionEvent actionEvent) {
DCBindingContainer dc = (DCBindingContainer) FacesContext.getCurrentInstance().getApplication().createValueBinding("#{bindings}").getValue();
DCIteratorBinding iter = dc.findIteratorBinding("TestView1Iterator");
ViewObject vo = iter.getViewObject();
for (int i=1; i<=5; i++) {
Row newRow = vo.createRow();
newRow.setAttribute("Id", i);
ApplicationModule am = vo.getApplicationModule();
am.getTransaction().commit();
vo.executeQuery();
Do I need to import something else?
Thanks,
Shri. -
How to create a clickable hyperlink in iCloud Numbers?
How to create a clickable hyperlink in iCloud Numbers?
There is no such thing. All you could do is create an HTML e-mail, but many users won't even view it in that mode for security reasons and it may get filtered. Similarly, Flash-based content may get removed/ not show up. So at best, if you really want to get a clickable document, you could use a PDF file containing a link. but did i mention that the user can suppress those, too? Well, sorry, but you are SOL. You want something that for a million reasons nobodyy can give you. The best you can do, as always, is host your content on a proper website and send peopel a link to it...
Mylenium -
How to create a new row for a VO based on values from another VO?
Hi, experts.
in jdev 11.1.2.3,
How to create a new row for VO1 based on values from another VO2 in the same page?
and in my use case it's preferable to do this from the UI rather than from business logic layer(EO).
Also I have read Frank Nimphius' following blog,but in his example the source VO and the destination VO are the same.
How-to declaratively create new table rows based on existing row content (20-NOV-2008)
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/13-create-with-params-169140.pdf
I have tried:
1.VO1(id,amount,remark1) and VO2(id,amount,remark2) are based on different EO,but render in same page,
2.Drag and drop a Createwithparams button for VO1(id,amount,remark),
3.add: Create insertinside Createwithparams->Nameddata(amount),
4.set NDName:amount, NDValue:#{bindings.VO2.children.Amount}, NDtype:oracle.jbo.domain.Number.
On running,when press button Createwithparams, cannot create a new row for VO1, and get error msg:
<Utils> <buildFacesMessage> ADF: Adding the following JSF error message: For input string: "Amount"
java.lang.NumberFormatException: For input string: "Amount"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
Can anyone give some suggestions?
Thanks in advance.
bao
Edited by: user6715237 on 2013-4-19 下午9:29Hi,CM,
I'm really very appreciated for your quick reply! You know, today is Saturday, it's not a day for everyone at work.
My principal requirement is as follows:
1.select/check some rows from VO2, and for each selection create a new row with some attributes from VO2 as default values for VO1's corresponding attributes, and during this process the user may be cancel/uncheck or redo some of the selections.
--so it's better to implement it in UI rather than in EO.
2.it's better to implement this function with declarative way as in Frank Nimphius' blog.
--little Jave/JS coding, the better. I only have experience in ORACLE FORMS, little experience in JAVA/JS.
In order to get full information for the requirements of my use case, can take a check at:
How to set default value for a VO query bind variable in a jspx page?
(the end half of the thread: I have a more realworld requirement similar to the above requirement is:
Manage bank transactions for clients. and give invoices to clients according to their transaction records. One invoice can contain one or many transactions records. and one transaction records can be split into many invoices.
Regards
bao
Edited by: user6715237 on 2013-4-19 下午11:18
JAVE->JAVA -
How to create DVT Clickable Piechart in ADF Mobile framework
Hi All,
I am working on ADF Mobile app which displays piechart component on the mobile UI screen. I want to have clickable piechart which the user will click to navigate to next page to show more details of the pie clicked/touched.
I have looked into this doc link below but there is no info on how to create a clickable pie chart.
http://docs.oracle.com/cd/E37975_01/doc.111240/e24475/amxui.htm#ADFMF670
Is there any documentation on how to do that?
Thanks.
-Nirav
Edited by: Shah23 on May 29, 2013 11:10 AMHi Nirav,
There is an action attribute on the dvtm:pieDataItem tag where you can specify which action to take when the user touches the pie slice.
Hope this helps
Katia -
How to create a clickable Table of contents using Crystal Reports 8.5
How to create a clickable Table of contents using Crystal Reports 8.5. I was able to create the table of contents using subreport and temporary table. but not able to link to the pages.
how to make it clickable ?
-VivekHi Vivek,
To you may create on demand sub report.
In main report only the link will be shown when you click on the link the sub report will be opened in a new tab.
It can be placed in a Group header and to show the data for that particular group only.
Click on the Help menu in the crystal Reports Designer and open the Crystal Reports Help
Go to Index tab and type in subreport
Select Creating On demand you will get lot of information on that.
Please let us know if that is enough to solve your problem
Regards,
Aditya Joshi -
How 2 create coloumns and rows in smartforms using template????
How to create coloumns and rows in smartforms using template????...
Kindly explain in details.......
Regards,
Faiz
Moderator message: please search for available information.
Edited by: Thomas Zloch on Mar 5, 2012Hi JV,
Yes you can create rows dynamically in a table in IF. You can follow the instruction in [this link|Re: Dynamic Table - same data repeating in all rows] to create the dynamic table.
Also refer to these links:
[Data in dynamic table not pass to webdynpro java|https://forums.sdn.sap.com/click.jspa?searchID=16436680&messageID=5638776]
[DYNAMIC TABLE IN WEBDYNPRO INTERACTIVE FORM|https://forums.sdn.sap.com/click.jspa?searchID=16436680&messageID=5775811]
Hope this helps!!
Regards,
Arafat -
How to create transaction code for a Z-table
How to create transaction code for a Z-table?
Se93 --> then which radio button to be selected? and what is the program nam e to be givenHi Sam,
<b>Procedure to create a TCODE for ZTABLE:</b>
Create a table maintainance/View for the Z* Table.
Once you create the view goto SE93>Select Parameter transaction and give the short desc.>
Give the transaction as SM30(Skip the first screen-optional)>Check all check boxes under GUI support>In the default values(grid)section first row give the VIEWNAME as you created initially and the second row UPDATE as X.
<u><i>Se93 --> then which radio button to be selected</i></u>
Select the parameter transaction as a radio button.
<u><i>what is the program nam e to be given</i></u>
no need to give any program name. Instead you have to give the transaction code name as SM30.
Pls mark the helpful answers.
Thanks
Eswar -
How-to create dependent list boxes in a table -Frank Sample
hi everyone i would like to ask a suggestion about Frank's example on How-to create dependent list boxes in a table -Frank Sample ...
i want to extend this example for 3 dependent lists... including locations, departaments and employes....
this the ListboxBean java that Frank is using in his example.... and this is only for locations and departaments tables and it works ok... i want to add the third list for employers wich is dependent only from departaments list.... as i am not good in java i would like to ask u a suggestion on how to develop the third list in this java class ...
public class ListboxBean {
private SelectItem[] locationsSelectItems = null;
private SelectItem[] departmentsSelectItems = null;
public SelectItem[] getLocationsSelectItems() {
if (locationsSelectItems == null){
FacesContext fctx = FacesContext.getCurrentInstance();
ValueBinding vbinding = fctx.getApplication().createValueBinding("#{bindings.LocationsView1Iterator}");
DCIteratorBinding locationsIterBinding = (DCIteratorBinding) vbinding.getValue(fctx);
locationsIterBinding.executeQuery();
Row[] locRowsArray = locationsIterBinding.getAllRowsInRange();
// define select items
locationsSelectItems = new SelectItem[locRowsArray.length];
for (int indx = 0; indx < locRowsArray.length; indx++) {
SelectItem addItem = new SelectItem();
addItem.setLabel((String)locRowsArray[indx].getAttribute("City"));
addItem.setValue(locRowsArray[indx].getAttribute("LocationId"));
locationsSelectItems[indx] = addItem;
return locationsSelectItems;
return locationsSelectItems;
public SelectItem[] getDepartmentsSelectItems() {
FacesContext fctx = FacesContext.getCurrentInstance();
ValueBinding vbinding = fctx.getApplication().createValueBinding("#{row}");
JUCtrlValueBindingRef rwJUCtrlValueBinding = (JUCtrlValueBindingRef) vbinding.getValue(fctx);
Row rw = rwJUCtrlValueBinding.getRow();
if (rw.getAttribute(6) != null){
OperationBinding oBinding = (OperationBinding) fctx.getApplication().createValueBinding("#{bindings.ExecuteWithParams}").getValue(fctx);
oBinding.getParamsMap().put("locId",rw.getAttribute(6).toString());
oBinding.execute();
ValueBinding vbinding2 = fctx.getApplication().createValueBinding("#{bindings.DepartmentsView2Iterator}");
DCIteratorBinding departmentsIterBinding = (DCIteratorBinding) vbinding2.getValue(fctx);
departmentsIterBinding.executeQuery();
Row[] depRowsArray = departmentsIterBinding.getAllRowsInRange();
// define select items
departmentsSelectItems = new SelectItem[depRowsArray.length];
for (int indx = 0; indx < depRowsArray.length; indx++) {
SelectItem addItem = new SelectItem();
addItem.setLabel((String)depRowsArray[indx].getAttribute("DepartmentName"));
addItem.setValue(depRowsArray[indx].getAttribute("DepartmentId"));
departmentsSelectItems[indx] = addItem;
return departmentsSelectItems;
public void setLocationsSelectItems(SelectItem[] locationsSelectItems) {
this.locationsSelectItems = locationsSelectItems;
public void setDepartmentsSelectItems(SelectItem[] departmentsSelectItems) {
this.departmentsSelectItems = departmentsSelectItems;
Thanks in advance :0Hi,
I think that all you need to do is to look at how I implemented the dependent detail for querying the Employees select items
Then you make sure the DepartmentsVO and the EmployeesVO have bind variable to query them according to the pre-selected value in their respective master list
Frank -
How to delete a particular row in ALV table
Hi,
How to delete a particular row in ALV table based on some condition(by checking value for one of the columns in a row)
Thanks
Bala DuvvuriHello Bala,
Can you please be a bit more clear as to how you intend to delete the rows from your ALV? By the way deleting rows from an ALV is no different from deleting rows from a normal table. Suppose you have enabled selection property in ALV & then select multiple rows and click up on a button to delete the rows then below would be the coding: (Also keep in mind that you would have to maintain the Selection property of the context node that you are binding to your ALV to 0..n)
data : lr_table_settings TYPE REF TO if_salv_wd_table_settings,
lr_config TYPE REF TO cl_salv_wd_config_table.
lr_table_settings ?= lr_config.
** Setting the ALV selection to multiple selection with no lead selection
lr_table_settings->set_selection_mode( value = cl_wd_table=>e_selection_mode-multi_no_lead ).
Next delete the selected rows in the action triggered by the button:
METHOD onactiondelete_rows .
DATA: wd_node TYPE REF TO if_wd_context_node,
lt_node1 TYPE ig_componentcontroller=>elements_node,
wa_temp TYPE REF TO if_wd_context_element,
lt_temp TYPE wdr_context_element_set,
row_number TYPE i VALUE 0.
wd_node = wd_context->get_child_node( name = 'NODE' ).
CALL METHOD wd_node->get_selected_elements
RECEIVING
set = lt_temp.
LOOP AT lt_temp INTO wa_temp.
wd_node->remove_element( EXPORTING element = wa_temp ).
ENDLOOP.
CALL METHOD wd_node->get_static_attributes_table
EXPORTING
from = 1
to = 2147483647
IMPORTING
table = lt_node1.
wd_node->bind_table( new_items = lt_node1 ).
ENDMETHOD.
If in case this isn't your requirement please do let me know so that I can try come up with another analysis.
Regards,
Uday -
How to find newly updated rows in a table
Hi..
How to know newly updated rows in a table.
Thanks in advance
palOr other good thing would be to add LAST_UPDATED column to your table, that can reflect the time the row gets updated.
G -
How to get count of rows for a table?
Hi,
How to get count of rows for a table and secondly, how can i have access to a particular cell in a table?
Regards,
DevashishHi Devashish,
WdContext.node<Your_node_name>().size() will give you the no: of rows.
This should be the node that is bound to the table's datasource property.
WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value); will select the row at that particular index.
You can access an attribute of a particular row as
WdContext.node<Your_node_name>().get<node_name>ElementAt(index_value).get<attribute_name>();
Hope this helps,
Best Regards,
Nibu.
Message was edited by: Nibu Wilson -
How to create an entry in Badi Filter table T77HAP_FLT_PRP
How to create an entry in Badi Filter table T77HAP_FLT_PRP
Hello Rahul,
Filter types should be created on badi implementations ( in transaction se19 )
Read my answer on this thread :
Re: BADI:Filter type un editable
I hope it helps.
Bulent -
How to create Criterian For more than one table
Hi,
I have one problem how to create criteria for more than one table in that using one criteria hot to get the values from database in that more than onetable for getting these values .Please send me the exampke code.
reagrds,
raghuHi,
I don't think its possible to create fieldcatalog for different tables,
but if you want to do so create a dummy table which has all the fields which you want in fieldcatalog.
populate the data from different table to that dummy table
then create fieldcatalog for that table and pass it in the function module...
Regards,
Siddarth -
How to create User and Database in different Table spaces
How to create User and Database in different Table spaces using oracle 10g
Regards
dayaI am sorry but your question does not seem to make much sense.
Can you please rephrase your question?
Maybe you are looking for
-
N96 V 30.0.33 Unstable,frequent restarts, lock ups...
Hi all. Upgraded my firmware using FOTA the day the V30 firmware was released. Ever since though I have had major issues with my N96. The previous version 20 and version 12 were stable enough and I had minimal issues with them. I have not installed a
-
Iphone 5 isn't recognized by itunes or any other program
iphone 5 isn't recognized by itunes or any other program after trying to restore it from itunes and got a error. now is stuck in itunes screen. any help please?
-
JAAS Login Module development/deployment - getting en error
Guys, I have developed a JAAS Login Module (as per the SAP documentation) and configured the J2EE Engine (as per the SAP documentation) for this module to sit amongst several other standard modules, but I have a problem. I am unable to get the Modu
-
What's the problem? There is a problem with the update. I have uninstalled Photoshop CC (2014) and have reinstalled. Nothing. Always the same problem!!!
-
Hello PC users! I have installed iTunes on my laptop confirmed correct installation by Apple tech and iTunes will not connect. Pswd and user I D have been confirmed, no error messages it just says connecting to iTunes store and it never does. Tried u