Unable to select rows in table
Hi Expert,
I am a beginer of Webdynpro application development. I have created 2 views. In main view material No selection is there and in a second view table display is there. Data is getting populated nicely in second view but i uanble to select rows in table.
I have checked the node parameters in component controller for selection 0 - n and it was maped in second view. and in table perameter row selectable perameter is also enabled. I unable to fix this issue. Kindly guide me.
Thanks and Regards,
Jayakumar Mani
Hi Jayakumar,
If you want select a single or multiple row of a table then
1. your table should not be read only. This property should not be checked.
2. It should be enabled. This property should be checked.
3. It should be row selectable. This property should be checked.
However when ever you create a new table in in layout the above properties are set accordingly by default.
In your case if you are still unable to select a row of your table you can set this properties dynamically through coding from any particular action.
Create a attribute of type WDUI_TSMODE.
Then bind this attribute with the selection mode property and the set values according to your requirement.
Check this once and reply in case of any issue.
Regards,
Monishankar C
Similar Messages
-
How to get selected row from table(FacesCtrlHierBinding ).
I'am trying to get selected row data from table:
FacesCtrlHierBinding rowBinding = (FacesCtrlHierBinding) tab.getSelectedRow();
Row rw = rowBinding.getRow();
But import for oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding cannot be found from my JDev 11.
What is correct package for FacesCtrlHierBinding?Hi, another problem.
I fill table with data manualy from source:
<af:table var="row" value="#{getCompanyData.com}"
rowSelection="single" columnSelection="single"
editingMode="clickToEdit"
binding="#{getCompanyData.tab}"
selectionListener="#{getCompanyData.GetSelectedCompany}">
<af:column sortable="false" headerText="col1">
<af:outputText value="#{row.id}"/>
</af:column>
<af:column sortable="false" headerText="col2">
<af:outputText value="#{row.name}"/>
</af:column>
<af:column sortable="false" headerText="col3">
<af:outputText value="#{row.phone}"/>
</af:column>
</af:table>
and when I'am trying to use method to get selected row:
RichTable table = this.getTab(); //get table bound to UI Table
RowKeySet rowKeys = table.getSelectedRowKeys();
Iterator selection = table.getSelectedRowKeys().iterator();
while (selection.hasNext())
Object key = selection.next();
table.setRowKey(key);
Object selCompany = table.getRowData();
JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding) selCompany;
row = rowData.getRow();
I got an error:
SEVERE: Server Exception during PPR, #1
javax.el.ELException: java.lang.ClassCastException: data.COMPANY cannot be cast to oracle.jbo.uicli.binding.JUCtrlHierNodeBinding
When I created tables by dragging data from date control, all worked fine.
What could be a problem? -
Selecting rows in table control
Hi experts,
I have question regarding selecting rows in table control. How can I select a row when a button is pressed. I cannot use the selection column in this case. Is there any option to achieve my requirement without using the selection column. Thanks.
regards,
sriram.By,
Using the Get cursor syntax you can achive the Selected row in Table control.
DATA : selrow TYPE i,
selindex TYPE i .
* getting the cursor line in Table Control for selected row
GET CURSOR FIELD selfield LINE selrow.
selindex = <tablecontrol>-top_line + selrow - 1.
Prabhu -
Unable to process row of table.......
When i trying to insert the data im getting below error
ORA-20505: Error in DML: p_rowid=1, p_alt_rowid=BOOKING_NO, p_rowid2=, p_alt_rowid2=.
* ORA-01403: no data found*
Unable to process row of table.
how to resolve this?
Thanks and regard,
skudIn your development environment
01. Run the application.
02. Jjust before you do the action you get above error, press "Debug" button in the bottom toolbar.
03. Do the action(Insert)
04. Ones after get the error press "Show Debug" button and you will see the detailed actions perform for that with session details(variable and values)
See whether you get some useful info there -
Error Unable to process row of table
Hello,
I am getting this error message when I try to submit my application. Error Unable to process row of table ORA-06550: line 1, column 52: PL/SQL: ORA-01741: illegal zero-length identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored. How can I resolve this problem? Any help is appreciated
Thanks,
HankI have the same kinf od problem, but I did not create pl/sql code.
IS ther any way I can check the used insert? Maybe I can find the problem..... -
hi
i want select rows in table,that mean i have to put radio button in front of each row in table when i select that radio button and click the go button i should able to edit that row.
please help me to devloped above functionality.
Thanks in AdvancedIt would help if you tell us your jdev version and full use case.
Why do you want to use a radio button in front of a row to just edit the row?
In 11g you can select a row and edit it directly (clickToEdit mode), or hit a button on the selected row and open a form to edit the selected row.
@Abhijit you should mention that the sample is for 10g. If the OP uses 11g this confuses matters.
Timo -
How to get all the index of "selected rows" in table control?
Hi Gurus,
I have a table control, wherein I need to get selected row so that I can get its respective TABIX.
I know that the event for capturing selected row is in PAI.
I also ensure that the w/ selColumn name in my screenpainter is exactly the same as my declaration in ABAP.
TOP INCLUDE
YPES: BEGIN OF Y_ZQID_CHECK,
IDNUM TYPE ZQID_CHECK-IDNUM,
WERKS TYPE ZQID_CHECK-WERKS,
MATNR TYPE ZQID_CHECK-MATNR,
LICHA TYPE ZQID_CHECK-LICHA,
LIFNR TYPE ZQID_CHECK-LIFNR,
ECOA_S TYPE ZQID_CHECK-ECOA_S,
ID_STAT TYPE ZQID_CHECK-ID_STAT,
ID_DATE TYPE ZQID_CHECK-ID_DATE,
FLAG_MAILCOA(1) TYPE C,
MARK(1) TYPE C, "Name of w/ SelColumn in ScreenPainter: T_ZQIDCHECK_DISCH-MARK
END OF Y_ZQID_CHECK.
DATA: T_ZQIDCHECK_DISCH TYPE STANDARD TABLE OF Y_ZQID_CHECK WITH HEADER LINE.
PAI
PROCESS AFTER INPUT.
* MODULE USER_COMMAND_9004.
LOOP AT T_ZQIDCHECK_DISCH.
MODULE READ_TC_DISCH .
ENDLOOP.
module READ_TC_DISCH input.
DATA: W_LINE_SEL TYPE SY-STEPL,
W_TABIX LIKE SY-TABIX.
GET CURSOR LINE W_LINE_SEL.
W_TABIX = TC_ID_ONLY-TOP_LINE + w_LINE_SEL - 1.
MODIFY T_ZQIDCHECK_DISCH INDEX TC_ID_ONLY-current_line.
If I am selecting single row, I can properly get the selected index via debug.
BUG:
When I'm selecting multiple rows in table control, only the last row is always being read inside the loop of my table control.
Please see the screenshot.
[url]http://img268.imageshack.us/img268/5739/tcselectedrows.jpg[url]
Notice in the debug screenshot, even if it's just in the 1st loop of table control, it automatically gets the 4th table control index, instead of the 2nd one.
Helpful inputs will be appreciated.
Thanks.
Jaime
Edited by: Jaime Cabanban on Dec 9, 2009 3:16 PMHi,
Are you sure that you have selected multiple line for tablecontrol in the property window of the tablecontrol.
Flowlogic.
LOOP WITH CONTROL TC_01.
Module Get_Marked.
ENDLOOP.
Module Pool
Module Get_Marked.
read the data from the internal table where mark = 'X'.
this should give you only selected records.
Endmodule.
Kindly check the tablecontrol property.
Regards,
Ranjith Nambiar -
How to delete selected row in table control
Hi all,
here is my coding for deleting selected row.
But it is not working correctly.
I am not able to delete seleced row.
If i press delete button it automatically delete from beginning instead of selected rows.
Can anyone can help me plz...
CONTROLS rowdeleting TYPE TABLEVIEW USING SCREEN 100.
TABLES zdetails.
data : begin of itab occurs 0,
NAME TYPE ZDETAILS-NAME,
ADDRES TYPE ZDETAILS-ADDRES,
CONTACTNO TYPE ZDETAILS-CONTACTNO,
INIT TYPE C,
end of itab .
DATA OK_CODE LIKE SY-UCOMM.
CALL SCREEN 100.
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'BACK'.
IF ITAB-INIT IS INITIAL.
SELECT NAME ADDRES CONTACTNO FROM ZDETAILS
INTO CORRESPONDING FIELDS OF TABLE ITAB.
DESCRIBE TABLE ITAB LINES rowdeleting-LINES.
ITAB-INIT = 'X'.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
MODULE CHANGE_SDYN_CONN OUTPUT.
READ TABLE itab INTO ZDETAILS INDEX rowdeleting-current_line.
ENDMODULE. " CHANGE_SDYN_CONN OUTPUT
MODULE READ_TABLE_CONTROL INPUT.
IF ITAB-INIT = 'X' AND OK_CODE = 'DELETE'.
DELETE ITAB index rowdeleting-current_line ."FROM ZDETAILS.
DESCRIBE TABLE ITAB LINES rowdeleting-LINES.
ENDIF.
ENDMODULE. " READ_TABLE_CONTROL INPUT
MODULE USER_COMMAND_0100 INPUT.
CASE OK_CODE.
WHEN 'BACK'.
LEAVE PROGRAM.
WHEN 'DELETE'.
IF ITAB-INIT = 'X' AND OK_code = 'DELETE'.
DELETE ITAB index rowdeleting-current_line .
ENDIF.
ENDCASE.
ENDMODULE.
regards ,
ranjith.Hi,
Check the following code:
CONTROLS TABLE_CONTROL TYPE TABLEVIEW USING SCREEN 100.
TABLES SDYN_SDW4.
DATA SDYN_ITAB LIKE STANDARD TABLE OF SDYN_SDW4.
DATA INIT.
DATA OK_CODE LIKE SY-UCOMM.
DATA SAVE_OK LIKE SY-UCOMM.
DATA MARK.
DATA COL TYPE CXTAB_COLUMN.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'GRUND'.
SET TITLEBAR '100'.
IF INIT IS INITIAL.
Datenbeschaffung
SELECT CARRID CONNID CITYFROM AIRPFROM CITYTO AIRPTO DEPTIME ARRTIME
DISTANCE DISTID
FROM SPFLI
INTO CORRESPONDING FIELDS OF TABLE SDYN_ITAB.
DESCRIBE TABLE SDYN_ITAB LINES TABLE_CONTROL-LINES.
INIT = 'X'.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module FILL_TABLE_CONTROL OUTPUT
text
MODULE CHANGE_SDYN_CONN OUTPUT.
you can change the content of current table control line via
sdyn_conn
READ TABLE sdyn_itab INTO sdyn_conn INDEX table_control-current_line.
ENDMODULE. " FILL_TABLE_CONTROL OUTPUT
*& Module READ_TABLE_CONTROL INPUT
text
MODULE READ_TABLE_CONTROL INPUT.
Check input values
IF MARK = 'X' AND SAVE_OK = 'DELETE'.
DELETE TABLE SDYN_ITAB FROM sdyn_sdw4.
DESCRIBE TABLE SDYN_ITAB LINES TABLE_CONTROL-LINES.
ENDIF.
ENDMODULE. " READ_TABLE_CONTROL INPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
SAVE_OK = OK_CODE.
CLEAR OK_CODE.
CASE SAVE_OK.
WHEN 'SORT'.
DATA: FLDNAME(100),HELP(100).
READ TABLE TABLE_CONTROL-COLS INTO COL WITH KEY SELECTED = 'X'.
SPLIT COL-SCREEN-NAME AT '-' INTO HELP FLDNAME.
SORT SDYN_ITAB BY (FLDNAME).
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module EXIT INPUT
text
MODULE EXIT INPUT.
LEAVE PROGRAM.
ENDMODULE. " EXIT INPUT
Regards,
Bhaskar -
How to read attributes of selected row in table?
hi,
can anyone give me a example, how to get value of currently selected row of af:table,in backingbeans? assuming using jdv10g & single selection in table.
thanks & regardsin the table selectionlistener
BindingContainer bindings = getBindingsForDCB();
RichTable table=table1;
DCIteratorBinding outListIter = getBindingsForDCB().findIteratorBinding("yourtableIterator");
RowKeySet rowSet = table.getSelectedRowKeys();
Iterator rowKeySetIter = rowSet.iterator();
while (rowKeySetIter.hasNext()) {
List l = (List) rowKeySetIter.next();
Key key = (Key)l.get(0);
outListIter.setCurrentRowWithKey(key.toStringFormat(true));
Row r = outListIter.getCurrentRow();
} -
How to get the values of last selected row in Table?
Hi,
I have one editable table , where i have Create, Delete and Commit operation on it.
When i am clicking on Create button it add new row to my table.
But I want the value of my last selected row from the table in my Bean.
Can anyone suggest me please....... its urgent
Jdev:- 11.1.1.0.3
Thanks,
Ramitjust get this code empTable is the table binding
RowKeySet rks = new RowKeySetImpl();
CollectionModel model = (CollectionModel)empTable.getValue();
RowKeySet selectedRowKeys = empTable.getSelectedRowKeys();
if (selectedRowKeys != null)
Iterator iter = selectedRowKeys.iterator();
if (iter != null && iter.hasNext())
empTable.setRowKey(iter.next());
model.setRowIndex(empTable.getRowIndex());
Object key = model.getRowKey();
rks.add(key);
empTable.setSelectedRowKeys(rks);
AdfFacesContext.getCurrentInstance().addPartialTarget(empTable);
public void setEmpTable(RichTable empTable) {
this.empTable = empTable;
public RichTable getEmpTable() {
return empTable;
} -
How to Highlight the selected row of table
Hi All,
I have a result table. I want the selected row to be highlighted in orange color.
The properties of the table are as follows :
rowSelectable : true
selectionChangeBehaviour : auto
selectionMode : auto
Please let me know what am I missing.
NikhilHi Nikhil,
We too encountered this problem in EP 6.0. The code is correct. Actually
int index=wdContext.nodeSales_Orders1().getLeadSelection();
is enough.
But this is not the problem. It is the problem with either browser or Portal Runtime.
Is your version EP 6.0? Is this a problem for all tables or only this table? Check with other browsers like Mozilla..(or different IE versions).
regards,
Siva -
Enable/disable operation buttons according to the selected row in table?
Hi,
I used JDev 11.1.1.2.0
On my main page, it has a query section and display search result to a table component, and also has some operation buttons like (update/delete) on the toolbar.
I want to enable/disable the operation buttons according to some filed value of the selected row in the table, and I searched the OTN forum, found more questions like this but seemed no found one right solution.
The table is single selection, and has a status column, its data type is Integer, and I want to enable buttons when the selected row's status field value is 0 or 1, disable buttons when status value is other values.
Table code like:
<af:table value="#{bindings.VO1.collectionModel}" var="row"
rows="#{bindings.VO1.rangeSize}"
emptyText="#{bindingsVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.VO1.rangeSize}"
rowBandingInterval="0"
filterModel="#{bindings.VOCriteriaQuery.queryDescriptor}"
queryListener="#{bindings.VOCriteriaQuery.processQuery}"
filterVisible="true" varStatus="vs"
selectedRowKeys="#{bindings.VO1.collectionModel.selectedRow}"
selectionListener="#{bindings.VO1.collectionModel.makeCurrent}"
rowSelection="single" id="resId1">
Operation buttons code like:
<af:commandToolbarButton text="Update" id="ctb2" action="editDAF"/>
Any suggestion will be great help.
Thanks,
zeroxinHi,
create an attribute binding in the PageDef file for the status field. Then setup the button PartialTriggers property to point to the table ID. The button's disabled property then points to the status attribute binding like
#{bindings.statusField.inputValue=='value'}
Frank -
Print the selected rows in table
Hi All,
I have a one applications which shows the data in table (i.e multiple rows are displayed)
Now from this table user wants to select some selected rows and take the print out of those selected rows
I dont want to take the print out of entire table i want only print out of selected rows
How can we achieve this
Regards
SrinivasHi Srinivas,
I can't think of a way of doing it in VC. However, a kind of workaround can be done in EhP1 where you can export the table to Excel and there you can print whatever you want.
Regards,
Natty -
Want to display selected rows of table in another table
Hello all,
On jspx page their is quick query search component clcking on it popup gives result in table format
user can select multiple rows for this I have provided checkbox column which transit variable in my view..
now I want to display selected rows into another table
how I can achieve this functionality...Hi,
You can add the method in the AM, expose them as client interface. In the action listener of the button (of the popup where you are selecting the rows and clicking to continue), execute the method from AM.
Sample,
AM method
public void filterMyTableRows(){
this.getMyViewObject().setWhereClause("transient_attribute='Y'"); // Change according to your view object name and transient attribute name
this.getMyViewObject().executeQuery();
}In your actionListener, add something like
public String commandButtonActionListener() {
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("filterMyTableRows");
Object result = operationBinding.execute();
if (!operationBinding.getErrors().isEmpty()) {
return null;
/* your rest of the code goes here..
return null;
}-Arun -
I have a table and need to fill several rows with a colour. Its not alternate rows, but maybe the 1st, the 3rd, the 4th, the 10th etc. How do I select those rows all at once so I can apply the same colour. Holding down the shift key doesn't work.
You don't... It's the same as with text, you can make
i one
selection and that's it.
If you're worried about having to select the same colour again, why not make it into a swatch? Just pop-up the Swatches panel while you have your color selected, and from the little menu, choose "Add to swatches".
(Alternatively, select the entire table and set it to the colour you want. Then re-set the
i other
rows to transparent.)
Maybe you are looking for
-
Movie Playing on HD TV via HDMI plays to fast
Hi everyone, I have a Mid 2011 Mac Mini with 8G of RAM and it is connected to a Sony Bravia 55' Full HD TV via HDMI. When I play a movie from the mac mini , there is a clear " fast going " effect , the video plays faster than natural but the sound is
-
" Title on the warning : warning, a problem occurred"
I've just bought final cut studio 2. i've installed it and everything seems ok, BUT... when I switch on the mac, a window now appears, bearing the symbol of FCP and it says, more or less (I translate it from french) : " Title on the warning : warning
-
I did the upgrade but my apps now don't work. Any suggestions?
I click on them, then appear to start then return to start screen. If I delete them and reinstall then they work. But I don't want to do that for all 30...
-
No archive exist for output type YWNK
Hi, in order to see the output message (print) I click on the print icon within contracts (T-code ME33K). I get the message 'No archive exist for output type YWNK'. How else can I see the output print. I have to preview the output. What is wrong in t
-
Form Mail vs. Database...
Hi, I'm debating whether to set up a form to send via formmail (comes in as a regular e.mail) or to go through my host company so that the responses go through a database first. Which is more reliable, or would you think would be best for a form in w