Displaying Multiple Row Header for Matrix...
Hi
Can you please tell me, whether we can display Multiple row headers for the Matrix object same as that in the Posting Period SAP Form...
Please check the Link: http://img198.imageshack.us/img198/3491/postingperiodform.jpg..
Thanking you in advance...
Thanks
Hari
I am extremly sorry...Please check the following link...
Link Address : http://www.freeimagehosting.net/image.php?d499726589.jpg
Edited by: hari angamaly on Jun 17, 2009 1:20 PM
Edited by: hari angamaly on Jun 17, 2009 1:21 PM
Similar Messages
-
Displaying multiple rows in html
Hi folks, another newbie question for you:
Is it possible to have an HTML area which displays multiple rows of a query?
I can get the page to display the first row of the query but I need all the possible rows to show up (in new lines where possible....). It's to be displayed as a final report for an application, pulling in details from numerous tables, so a normal report page was a no no. Can anybody help??
DaveIt's kind of difficult to explain but the report heading is taken from one table. the next paragraph (a list of people) is taken from another table (but dependant on the title info - place date etc..). the rest of the information is using data from three tables depending on (yet again) the title (which is an LOV returning an ID just now). the rest of the information is broken into sections which are headed by two lots of info from two of the three tables and sectioned by item from these two tables. If I tried one query I'd end up with LOTS of copies of the same info all over the shop. All I need is the pl/sql to check a table and return the info from the only column I need from that table, display the mulriple rows in a section and I can do the rest I think. As I said, I can display the first row and that's it.....
sorry if that was confusing and long-winded (welcome to my day... :) ) -
JTable with Multiple Row Header
well, Im do an application thats need formated ISOS Sheets, and most of them have a Table with Multiple Row Header , and Groupable Header, and both of them. I have the .java and in the class MultipleRowHeaderExample calls a class AttributiveCellTableModel for setColumnIdentifiers() and setDataVector() the cue is why this print stack :
Exception in thread "main" java.lang.StackOverflowError
at java.util.Vector.<init>(Unknown Source)
at java.util.Vector.<init>(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:54)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:55)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:55)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:55)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:55)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:55)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
at jp.gr.java_conf.tame.swing.table.AttributiveCellTableModel.setDataVector(AttributiveCellTableModel.java:55)
at javax.swing.table.DefaultTableModel.setColumnIdentifiers(Unknown Source)
.if in main class, have initialized the data, and column vars
public class MultipleRowHeaderExample extends JFrame {
Object[][] data;
Object[] column;
JTable table;
MultiSpanCellTable fixedTable;
public MultipleRowHeaderExample() {
super( "Multiple Row Header Example" );
setSize( 400, 150 );
data = new Object[][]{
{"SNo." ,"" },
{"Name" ,"1"},
{"" ,"2"},
{"Language","1"},
{"" ,"2"},
{"" ,"3"}};
column = new Object[]{"",""};
AttributiveCellTableModel fixedModel = new AttributiveCellTableModel(data, column) {
public boolean CellEditable(int row, int col) {
return false;
};What's the code in AttributiveCellTableModel?
* (swing1.1beta3)
package jp.gr.java_conf.tame.swing.table;
import java.util.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.event.*;
* @version 1.0 11/22/98
public class AttributiveCellTableModel extends DefaultTableModel {
protected CellAttribute cellAtt;
public AttributiveCellTableModel() {
this((Vector)null, 0);
public AttributiveCellTableModel(int numRows, int numColumns) {
Vector names = new Vector(numColumns);
names.setSize(numColumns);
setColumnIdentifiers(names);
dataVector = new Vector();
setNumRows(numRows);
cellAtt = new DefaultCellAttribute(numRows,numColumns);
public AttributiveCellTableModel(Vector columnNames, int numRows) {
setColumnIdentifiers(columnNames);
dataVector = new Vector();
setNumRows(numRows);
cellAtt = new DefaultCellAttribute(numRows,columnNames.size());
public AttributiveCellTableModel(Object[] columnNames, int numRows) {
this(convertToVector(columnNames), numRows);
public AttributiveCellTableModel(Vector data, Vector columnNames) {
setDataVector(data, columnNames);
public AttributiveCellTableModel(Object[][] data, Object[] columnNames) {
setDataVector(data, columnNames);
public void setDataVector(Vector newData, Vector columnNames) {
if (newData == null)
throw new IllegalArgumentException("setDataVector() - Null parameter");
dataVector = new Vector();
setColumnIdentifiers(columnNames);
dataVector = newData;
cellAtt = new DefaultCellAttribute(dataVector.size(),
columnIdentifiers.size());
newRowsAdded(new TableModelEvent(this, 0, getRowCount()-1,
TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));
@Override
public void setColumnIdentifiers(Vector arg0) {
// TODO Auto-generated method stub
super.setColumnIdentifiers(arg0);
public void addColumn(Object columnName, Vector columnData) {
if (columnName == null)
throw new IllegalArgumentException("addColumn() - null parameter");
columnIdentifiers.addElement(columnName);
int index = 0;
Enumeration enumeration = dataVector.elements();
while (enumeration.hasMoreElements()) {
Object value;
if ((columnData != null) && (index < columnData.size()))
value = columnData.elementAt(index);
else
value = null;
((Vector)enumeration.nextElement()).addElement(value);
index++;
cellAtt.addColumn();
fireTableStructureChanged();
public void addRow(Vector rowData) {
Vector newData = null;
if (rowData == null) {
newData = new Vector(getColumnCount());
else {
rowData.setSize(getColumnCount());
dataVector.addElement(newData);
cellAtt.addRow();
newRowsAdded(new TableModelEvent(this, getRowCount()-1, getRowCount()-1,
TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));
public void insertRow(int row, Vector rowData) {
if (rowData == null) {
rowData = new Vector(getColumnCount());
else {
rowData.setSize(getColumnCount());
dataVector.insertElementAt(rowData, row);
cellAtt.insertRow(row);
newRowsAdded(new TableModelEvent(this, row, row,
TableModelEvent.ALL_COLUMNS, TableModelEvent.INSERT));
public CellAttribute getCellAttribute() {
return cellAtt;
public void setCellAttribute(CellAttribute newCellAtt) {
int numColumns = getColumnCount();
int numRows = getRowCount();
if ((newCellAtt.getSize().width != numColumns) ||
(newCellAtt.getSize().height != numRows)) {
newCellAtt.setSize(new Dimension(numRows, numColumns));
cellAtt = newCellAtt;
fireTableDataChanged();
public void changeCellAttribute(int row, int column, Object command) {
cellAtt.changeAttribute(row, column, command);
public void changeCellAttribute(int[] rows, int[] columns, Object command) {
cellAtt.changeAttribute(rows, columns, command);
}that's it -
Displaying multiple rows in a form layout problem?
HI,
I displayed multiple rows using form layout,but form browse buttons displaying one row multiple times like if i click next it is displaying same rows in next page also ?
how can I prevent this?
very urgent
Thanks in advanceSet the table range size property to the number of rows you want to display.
Then as a post-generation action, drag and drop the Next Set and Previous Set operations of your View Object usage as buttons onto your page.
Then move the button code to a custom template, and uncheck group-level checkbox "Clear Page Definition before generation" to preserve the NextSet and PreviousSet action bindings.
Steven Davelaar,
JHeadstart Team. -
Multiple column heading for sql that returns single column
Hi All,
I have just started using APEX and my apex version is 3.2.0.00.27.
We have a report that displays the output from a query similar to the below one. We are using borderless template and removed the "before each row" and "after each row" values to allow the output displayed in table format.
Now we wanted to include heading for each column displayed in table. We wanted to include headings from a derived value, Example for column1 , heading need to display the sysdate and column2 heading should be sysdate-1 and so on. But the column attribute tab is having only one column My_rep. Not sure how to se pl/sql type column heading in this case. Could someone please help me to achieve this?
Please let me know if I have missed to provide any other details. Thanks in advance.
select '<tr>
<td>' || column1 || '</td>' ||
<td>' || column2 || '</td>' ||
<td>' || column3 || '</td>' ||
<td>' || column4 || '</td>' ||
|| '</tr>' My_rep
from mytable22335813-cfb0-46c4-9bef-b61a46f0de67 wrote:
Please update your forum profile with a real handle instead of "22335813-cfb0-46c4-9bef-b61a46f0de67"
I have just started using APEX and my apex version is 3.2.0.00.27.
Upgrading from this unsupported version to the current 4.2 release is recommended.
When you post a question, always include the following information in addition to the full APEX version number:
Full database version, edition and host OS
Web server architecture (EPG, OHS or APEX listener), server platform, and host OS
Browser(s)/version(s) used
UI/Theme
Templates
Region type (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. To get a detailed answer then it's appropriate for the questioner to take on a significant part of the effort by reproducing the problem on apex.oracle.com before asking for assistance with specific issues, which can then be seen at first hand in a real APEX environment.
we wanted to get a report in Apex with the below format. and we wanted to change background color of each cell depends on the combination of code||status
Heading sysdate sysdate-1 sysdate-2 ...(sysdate-30
====== ====== ======== =======
name code||status code||status
name code||status
we are using the below query to get this table format. But heading is the issue we are facing now
select '<tr>
<td>' || name || '</td>' ||
'<td style=background-color:' || case when sysdate0='0C' then 'Green' when sysdate0='0I' then 'Red' when (substr(sysdate0,1,1)!='0' and substr(sysdate0,1,1)='I') then 'Orange' else 'Yellow' end || '>  ' || sysdate0 || '  </td>' ||
|| '</tr>' repcolumn
from
(select
a.name,
max(decode(trunc(a.ardate),trunc(sysdate), a.code||a.STATUS , '' )) sysdate0,
max(decode(trunc(a.ardate),trunc(sysdate-30), a.code||a.STATUS , '' )) sysdate30
from
mytab a
where
a.ardate>=sysdate-30
group by a.name)
See Re: Matrix report for a custom report template-based solution to a similar problem, with dynamically generated column headings. -
Display null rows / columns in matrix report
Hi,
Is it possible to display any character ('0' for example) in a matrix report where the entire row or column show no value at all ?
My matrix shows Row1 and Row2 with values but no Row3 at all like this:
Column1 Column2 Column3
Row1 value1 value2 value3
Row2 value4 value5 value6
But I would like it to show my rows 3 with '0's :
Column1 Column2 Column3
Row1 value1 value2 value3
Row2 value4 value5 value6
Row3 0 0 0
Thank you,
DeniseMake your query return 0 with nvl(column, 0) and an outer join, plus some stuff to avoid a double outer join.
E.g. a sales per product per city:
City1 City2 City3
Prod1 10 100 12
Prod2 25 110 200
Prod3 0 0 0Could be made like this:
create table city (c_city varchar2(10));
create table prod (p_prod varchar2(10));
create table prod_sales (ps_city varchar2(10)
, ps_prod varchar2(10)
, ps_sales number);
<.....insert some values, except voor Prod3 .....>
SQL> select p_prod, c_city, nvl(ps_sales,0)
2 from (select c_city, p_prod from city, prod)
3 , prod_sales
4 where ps_city(+) = c_city
5 and ps_prod(+) = p_prod
6 order by 1,2 ;
P_PROD C_CITY NVL(PS_SALES,0)
Prod1 City1 10
Prod1 City2 100
Prod1 City3 12
Prod2 City1 25
Prod2 City2 110
Prod2 City3 200
Prod3 City1 0
Prod3 City2 0
Prod3 City3 0 -
Displaying multiple rows in interactive PDF form
hi All,
I am creating a web dynpro application to display the data retrived from back end in an interactive form.
Data is stored in the back end in the form of tables.
Now I want to display the entire data coming from tables in rows in the PDF which I am generating.
please guide me how to go ahead.
thanks and regards
krishi Markus,
Thanks for the information.
Let me be clear about my problem with you.
I am using a RFC to get data from SAP system and display them in the web dynpro application using Interactive form.
I want to know how can we make the multiple rows of data be displayed in the interactive form, as we can do in the view designing of web dynpro application.
I have data in the back end R/3 system and I want to bind
that data with the Interactive form and display the same in a tabular format as we do in the case of view.
Thanks and regards
kris
ou please help me further -
How to display a Column Header for the characteristic Text column
Hi All
Our users want me to provide for a column header for the characteristic text.
Here is what I mean
I am reporting 0plant in the rows as key and Text. In the column on Plant Key the column header says Plant but there is no column header for the plant text.
Eq:
Plant Amount
IE00 Initiator Plant 244
IE01 Initiator Plant NJ 890
Our users in the plant text column want a dummy column header to be displayed. SInce they download the data from the BW report to Excel and use pivot reporting. How can I introduce a column header for the texts.
Thanks
KarenHi Karen,
I am not sure if this is possible, although Users can ask anything :).
In Planning we used to predefine cell headings via Macros and creating dummy cells in between. I am not sure if a similar scenario can work here.
By default this is not possible in Reports. In BEx workbooks, you could probably try with Macros.
Another easy option is to bring the data in the Cube as another field or create a nav. attribute in the master for text and use it as a nav. attr. in the Cube and put it in your Query row alongside.
-Aby -
I am using CL_SALV_TABLE (List_Display = X) to create a ALV report. I am willing to change it to function module REUSE_ALV_LIST_DISPLAY if it serves my requirement.
The header for the report needs to be multiple lines (8 lines). How can I accomplish this?
I looked into the possibility of using TOP_OF_PAGE event but I will have to hard code the vertical positions of the headers and since it is ALV and you can remove columns at will, I dont think this solution will work. Also if the columns are optimized or output length changed by the user, the positioning of the headers will be ruined.
Currently the header can only be of one line, how can we make the header to display a table of contents.
H1-L1 H2-L1 H3-L1
H1-L2 H2-L2 H3-L2
H1-L3 H2-L3 H3-L3
H1-L4 H2-L4 H3-L4
H1-L5 H2-L5 H3-L5
H1-L6 H2-L6 H3-L6
H1-L7 H2-L7 H3-L7
H1-L8 H2-L8 H3-L8
Thank you.Please guide me hw to put internal table field at report header in ALV.
this is my field catalog.
wa_fieldcat-row_pos = 1.
wa_fieldcat-col_pos = 1.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-fieldname = 'VBELN'.
wa_fieldcat-seltext_m = 'SalesOrderNo'.
wa_fieldcat-outputlen = '10'.
APPEND wa_fieldcat TO i_fieldcat.
CLEAR wa_fieldcat.
Also i wnt to total 4 field at header level and other is detail level.
Please guide me hw to do.
thnks
Bhavesh -
Result displaying multiple rows with Single Record
I created DB adapter and using transformation to display the result set. Expecting 4 rows as a result but it displays one row 4 times.
SOA - Studio Edition Version 11.1.1.2.0,
Database - DB2,
DB Adapter - xsd
<?xml version = '1.0' encoding = 'UTF-8'?>
<xs:schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA" elementFormDefault="qualified" attributeFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="F4102Collection" type="F4102Collection"/>
<xs:complexType name="F4102Collection">
<xs:sequence>
<xs:element name="F4102" type="F4102" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="F4102">
<xs:sequence>
<xs:element name="ibitm" type="xs:int"/>
<xs:element name="iblitm" type="xs:string" minOccurs="0"/>
<xs:element name="ibaitm" type="xs:string" minOccurs="0"/>
<xs:element name="ibmcu" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="cd_DBASelect_ITMInputParameters" type="cd_DBASelect_ITM"/>
<xs:complexType name="cd_DBASelect_ITM">
<xs:sequence>
<xs:element name="ITM" type="xs:int" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Adapter WSDL
<?binding.jca cd_DBA_db.jca?>
<wsdl:definitions name="cd_DBA" targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/CD_Application/CD_JDE1/cd_DBA" xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/CD_Application/CD_JDE1/cd_DBA" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA">
<plt:partnerLinkType name="cd_DBA_plt">
<plt:role name="cd_DBA_role">
<plt:portType name="tns:cd_DBA_ptt"/>
</plt:role>
</plt:partnerLinkType>
<wsdl:types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA" schemaLocation="xsd/cd_DBA_table.xsd"/>
</schema>
</wsdl:types>
<wsdl:message name="cd_DBASelect_inputParameters">
<wsdl:part name="cd_DBASelect_inputParameters" element="top:cd_DBASelect_ITMInputParameters"/>
</wsdl:message>
<wsdl:message name="F4102Collection_msg">
<wsdl:part name="F4102Collection" element="top:F4102Collection"/>
</wsdl:message>
<wsdl:portType name="cd_DBA_ptt">
<wsdl:operation name="cd_DBASelect">
<wsdl:input message="tns:cd_DBASelect_inputParameters"/>
<wsdl:output message="tns:F4102Collection_msg"/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>James Thanks for reply.
I am using BPEL. I am seeing these 4 rows in XML out put.
My Query is very simple.
select ibitm,iblitm,ibaitm,ibmcu from accdtaa73/f4102 where ibitm = InputToBPEL.
o/p should see these 4 rows.
IBLITM IBMCU
2002313 AGRT
2002313 AG00
2002313 FAR0
2002313 FA00
But o/p is
IBLITM IBMCU
2002313 AGRT
2002313 AGRT
2002313 AGRT
2002313 AGRT
Here is o/p of this BPEL
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<env:Header>
<wsa:MessageID>urn:F60F8800A01311DFBFAC73A17F5C618C</wsa:MessageID>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
</wsa:ReplyTo>
</env:Header>
<env:Body>
<processResponse xmlns:client="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess" xmlns="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess">
<client:element1>
<client:UPC> AGRT</client:UPC>
<client:LITM>2002313</client:LITM>
</client:element1>
<client:element1>
<client:UPC> AGRT</client:UPC>
<client:LITM>2002313</client:LITM>
</client:element1>
<client:element1>
<client:UPC> AGRT</client:UPC>
<client:LITM>2002313</client:LITM>
</client:element1>
<client:element1>
<client:UPC> AGRT</client:UPC>
<client:LITM>2002313</client:LITM>
</client:element1>
</processResponse>
</env:Body>
</env:Envelope>
XSL Script
<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
<!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
<mapSources>
<source type="XSD">
<schema location="../xsd/cd_DBA_table.xsd"/>
<rootElement name="F4102Collection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA"/>
</source>
</mapSources>
<mapTargets>
<target type="WSDL">
<schema location="../CD_BPELProcess.wsdl"/>
<rootElement name="processResponse" namespace="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess"/>
</target>
</mapTargets>
<!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.2.0(build 091103.1205.1216) AT [WED AUG 04 11:39:11 PDT 2010]. -->
?>
<xsl:stylesheet version="1.0"
xmlns:xpath20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:med="http://schemas.oracle.com/mediator/xpath"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/cd_DBA"
xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:client="http://xmlns.oracle.com/CD_Application_jws/CD_JDE1/CD_BPELProcess"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
exclude-result-prefixes="xsi xsl ns0 xsd client plnk wsdl xpath20 bpws mhdr oraext dvm hwf med ids xdk xref ora socket ldap">
<xsl:template match="/">
<client:processResponse>
<xsl:for-each select="/ns0:F4102Collection/ns0:F4102">
<client:element1>
<client:UPC>
<xsl:value-of select="ns0:ibmcu"/>
</client:UPC>
<client:LITM>
<xsl:value-of select="ns0:iblitm"/>
</client:LITM>
</client:element1>
</xsl:for-each>
</client:processResponse>
</xsl:template>
</xsl:stylesheet> -
Handle multiple rows selection on Matrix
Hi all,
i'd like to know if someone could help me with multiple selections on matrix via shift + left mouse button on a matrix.
I got a matrix with one column containing a checkbox for selection. The matrix, on a UDO Form, is defined as auto selecting, so multiple selection of rows is allowed.
I want to add the rows selected by the checkbox (using shift + left mouse button on the selection start and selection end) column to the matrix selected rows collection.
Is there any chance to catch an event handling this situation?
I can add the rows in the matrix selected rows collection clicking the checkboxes one by one, but when i use the multiple selection i can't get any event handling this.
I know i couldn't use the checkbox for the selection and use instead the native function of sap b1 matrix., but this way is faster (and more clear, because you see the check when a row is selected) when you have multiple rows selected one by one
I hope i've been clear enough, and hope somene can give me an hint.
Thanks in advance.Hi Cesidio,
if I understand you correctly you want to select one row than shift+mouseclick some rows lower and the result should be, that all rows are selected ?
You can achieve this by catching the itempressed event and querying pVal.Modifiers.
This is an example for Grid :
private void Grid0_PressedAfter(object sboObject, SAPbouiCOM.SBOItemEventArg pVal)
if (pVal.Modifiers == SAPbouiCOM.BoModifiersEnum.mt_SHIFT)
int lastRowSelected =Grid0.Rows.SelectedRows.Item(Grid0.Rows.SelectedRows.Count-1,SAPbouiCOM.BoOrderType.ot_RowOrder);
if (lastRowSelected < pVal.Row)
for (int i = pVal.Row; i > lastRowSelected; i--)
Grid0.Rows.SelectedRows.Add(i);
regards,
Maik -
Displaying multiple rows of a table using smartforms
hi,
how to get multiple rows on a form from a table using smartforms.I succeded in getting only the first row of the table on the main window of the page .In order to display more than one record on the page what i have to do.You have to use LOOPS / TEMPLATES to achieve this
Here is a very good code sample for using Template,Table,Loop in smartforms with screen shot
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
Please do not post multiple threads. Kindly close them rewarding point for helpful answers,
extracting multiple records
to display multiple records in smart form
Re: extracting multiple records
Kindly reward point and close the duplicates.
Regards
Kathirvel -
Multiple row select for table not working..
Hi Experts,
I have a table in ABAP Web Dynpro where I have enabled the multiple row select functionality. I can select all and deselect all. I can also select a block of adjacent rows of table by choosing first and last by pressing Shift key.
But I am not able to select multiple individual records for that table.
I tried the same thing in different system and it works fine there.
Please let me know if we are missing some standard plugin or we need to enable this in some settings.
System where the issue is:
SAP_APPL: release 600, level 18
SAP_BASIS: Release 700, level 22
System where it is working fine:
SAP_APPL: release 604, level 8
SAP_BASIS: release 701, level 8
Regards,
Anand KolteHi
Press CTRL key and Select records, you can select multiple records, continuously or randomly your desired selection.
Cheers,
Kris. -
Multiple row selection for table element
Hi,
I have a requirement where I require to select multiple rows from a table element in a WD for abap application.
I have defined a node with cardinality and selection set to 1..n.
The contex node contains 4 fields : emp_name, pernr, manager and position.
The attributes of the table element for selectionmode is set to 'multi' and 'selectionchangebehaviour' is set to 'auto'.
I have defined an action on the 'onleadselection' event.
The code in this method also includes the statement 'lo_el_team_view->set_selected( EXPORTING flag = abap_true ).'
When I execute the application only 1 row is highlighted at any one time when I select it. You can select multiple rows by holding down the 'ctrl' key but I want to avoid having to do this. Is there anything I have missed out causing multiple row selections not to be all highlighted.
Thanks in advance for any assistance.Hi raj,
you can try the following code in the 'onleadselect' event of the table,
create one attribute ' Flag' of type WDY_BOOLEAN under the node which has been binded to the table.
DATA lo_nd_node_tab1 TYPE REF TO if_wd_context_node.
DATA lo_el_node_tab1 TYPE REF TO if_wd_context_element.
DATA lo_elements TYPE wdr_context_element_set.
DATA lo_ele_select_new TYPE REF TO if_wd_context_element.
DATA lv_deselect TYPE wdy_boolean.
DATA lv_flag TYPE wdy_boolean.
DATA lv_select TYPE wdy_boolean.
DATA lv_index TYPE i VALUE 0.
lo_nd_node_tab1 = wd_context->get_child_node( name = wd_this->wdctx_node_tab1 ).
get the current selected element
lo_ele_select_new = wdevent->get_context_element( name = 'NEW_ROW_ELEMENT' ).
CHECK lo_ele_select_new IS NOT INITIAL.
check whether it has been selected or not
CALL METHOD lo_ele_select_new->is_selected
RECEIVING
flag = lv_select.
lo_ele_select_new->get_attribute( EXPORTING name = 'FLAG' IMPORTING value = lv_deselect ).
check whether element has been previously selected or not,if not, set the flag to select it
IF lv_select IS NOT INITIAL AND lv_deselect IS INITIAL.
lo_ele_select_new->set_attribute( name = 'FLAG' value = 'X' ).
if selected currently and previously then set the flag as false,in order to delect it
ELSEIF lv_select IS NOT INITIAL AND lv_deselect IS NOT INITIAL..
lo_ele_select_new->set_attribute( name = 'FLAG' value = ' ' ).
ENDIF.
CALL METHOD lo_nd_node_tab1->get_elements
RECEIVING
set = lo_elements.
according to the falg, select and delect the elements
LOOP AT lo_elements INTO lo_el_node_tab1.
lo_el_node_tab1->get_attribute( EXPORTING name = 'FLAG' IMPORTING value = lv_flag ).
IF lv_flag = 'X'.
lo_el_node_tab1->set_selected( abap_true ).
lo_nd_node_tab1->set_lead_selection_index( lv_index ). * this statement deselects the lead selection index*
ELSE.
lo_el_node_tab1->set_selected( abap_false ).
lo_nd_node_tab1->set_lead_selection_index( lv_index ).
ENDIF.
ENDLOOP.
I hope this resolves your problem.
Thanks,
krishna -
Display multiple rows of datas from database in IDM forms
Hi,
I asked the same question in this forum before and some one answered to use 'FieldLoop'.I tried using that it didn't work.I using IDM version 5.
Heres the code...
EmployeeList is a supposed to be java array which contains java bean object,( EmployeeList -->raStagingObject-->getFname) since it doesn't work I thought I might try with simple list..I might be missing something...I would really apprecite if someone cld let me know...
<Field name='employeeList'>
<Default>
<block>
<defvar name='EmployeeList'>
<null/>
</defvar>
<set name='EmployeeList'>
<list>
<s> Red</s>
<s> Blue</s>
<s> Green</s>
<s> Yellow</s>
</list>
</set>
</block>
</Default>
</Field>
<Field>
<Display class='SimpleTable'/>
<FieldLoop for='name' in='EmployeeList'>
<Field name='XYZ'>
<Display class='Label'>
<Property name='value'>
<ref>name</ref>
</Property>
</Display>
</Field>
</FieldLoop>
</Field>
I also tried while loop(not sure whether which is the best way to approach...but kind of tried this didn't work too...)
Let me know what cld possibily work...
<Field name='while'>
<Default>
<block>
<defvar name='length'>
<null/>
</defvar>
<defvar name='counter'>
<null/>
</defvar>
<set name='length'>
<invoke name='size'>
<ref>EmployeeList</ref>
</invoke>
</set>
<set name='counter'>
<i>0</i>
</set>
<set name='length'>
<sub>
<ref>length</ref>
<i>1</i>
</sub>
</set>
<while>
<cond>
<lte>
<ref>counter</ref>
<ref>length</ref>
</lte>
<block>
<Field>
<Display class='Html'>
<Property name='html' value='<td>'/>
</Display>
</Field>
<Field name='myTextField'>
<Display class='Html'>
<Property name='html' value='mytext'/>
</Display>
</Field>
<Field>
<Display class='Html'>
<Property name='html' value='</td>'/>
</Display>
</Field>
<set name='counter'>
<add>
<ref>counter</ref>
<i>1</i>
</add>
</set>
</block>
</cond>
</while>
</block>
</Default>
</Field>
Instead of html I also tried 'Label' and did invoke on EmployeeList's raStagingObject which is a java bean.I didn't work either.
Thanks,
KaithsHi,
I asked the same question in this forum before and some one answered to use 'FieldLoop'.I tried using that it didn't work.I using IDM version 5.
Heres the code...
EmployeeList is a supposed to be java array which contains java bean object,( EmployeeList -->raStagingObject-->getFname) since it doesn't work I thought I might try with simple list..I might be missing something...I would really apprecite if someone cld let me know...
<Field name='employeeList'>
<Default>
<block>
<defvar name='EmployeeList'>
<null/>
</defvar>
<set name='EmployeeList'>
<list>
<s> Red</s>
<s> Blue</s>
<s> Green</s>
<s> Yellow</s>
</list>
</set>
</block>
</Default>
</Field>
<Field>
<Display class='SimpleTable'/>
<FieldLoop for='name' in='EmployeeList'>
<Field name='XYZ'>
<Display class='Label'>
<Property name='value'>
<ref>name</ref>
</Property>
</Display>
</Field>
</FieldLoop>
</Field>
I also tried while loop(not sure whether which is the best way to approach...but kind of tried this didn't work too...)
Let me know what cld possibily work...
<Field name='while'>
<Default>
<block>
<defvar name='length'>
<null/>
</defvar>
<defvar name='counter'>
<null/>
</defvar>
<set name='length'>
<invoke name='size'>
<ref>EmployeeList</ref>
</invoke>
</set>
<set name='counter'>
<i>0</i>
</set>
<set name='length'>
<sub>
<ref>length</ref>
<i>1</i>
</sub>
</set>
<while>
<cond>
<lte>
<ref>counter</ref>
<ref>length</ref>
</lte>
<block>
<Field>
<Display class='Html'>
<Property name='html' value='<td>'/>
</Display>
</Field>
<Field name='myTextField'>
<Display class='Html'>
<Property name='html' value='mytext'/>
</Display>
</Field>
<Field>
<Display class='Html'>
<Property name='html' value='</td>'/>
</Display>
</Field>
<set name='counter'>
<add>
<ref>counter</ref>
<i>1</i>
</add>
</set>
</block>
</cond>
</while>
</block>
</Default>
</Field>
Instead of html I also tried 'Label' and did invoke on EmployeeList's raStagingObject which is a java bean.I didn't work either.
Thanks,
Kaiths
Maybe you are looking for
-
What is wrong with the ipod touch 4th gen battery?
I have an 8gb 4th gen ipod touch that I purchased in December 2011. I charged it completely last night after doing a full reset, and by morning the battery was only at half charge. I've turned off all unnecessary services, no apps were running, no mu
-
Do I need to shut DB when using Veritas Backup Exec 10d w/ Oracle agent?
Hi All, Do I need to shutdown oracle when we back up the database server using Veritas Backup Exec 10d with the Oracle agent? thanks.
-
please don't tell me to search. I can't figure out what I need to ask yet. how can you make the artboards line up to the grid? each of my boards is not quite set the same on the grid so trying to place items in the same position from one board to the
-
Vendor Missing on SC when Purchasing from Internal & External Catalog
Hi All - I have a strange problem and I am wondering if anyone else has run into this and how they solved it. We are implementing SRM 5.0 on SRM Server 5.5 with SRM-MDM. We are using both internal catalogs as well as punch out catalogs. If we sele
-
New pages made From Template messed up!
Hello, I have made a template that is not yet finished... I decided to test it out, but when I make new pages from it, the formatting is messed up (in any new pages that I create from the template). This of course is happening prior to uploading to t