How to create colored rows in an avl table?
I am looking for a possibility, how to color a row if the attribute "KEY" of my context has the value 'GOAL'.
I did following:
1. creating a attribute CELL_DESIGN type WDUI_TABLE_CELL_DESING in my context.
then i wrote following coding:
DATA lo_nd_table TYPE REF TO if_wd_context_node.
DATA lo_el_table TYPE REF TO if_wd_context_element.
DATA lt_table TYPE wd_this->elements_search_data.
DATA ls_table TYPE wd_this->element_search_data.
lo_nd_table = wd_context->get_child_node( name = wd_this->wdctx_search_data ).
*get element via lead selection
lo_el_table = lo_nd_table->get_element( ).
lo_nd_table->get_static_attributes_table(
IMPORTING
table = lt_table ).
loop at lt_table into ls_table.
if ls_table-NAME1 = 'GOAL2'.
lo_el_table->set_attribute(
name = `CELL_DESIGN`
value = 'negative' ).
elseif ls_table-name1 = 'GOAL'.
lo_el_table->set_attribute(
name = `CELL_DESIGN`
value = 'positive' ).
endif.
endloop.
Hello,
See this: set color alv output cell abap webdynpro
Regards.
Similar Messages
-
How to create multiple rows in a child table from the multi select Lov
Hi
We have Departments and EmployDept and Persons tables and each employee can associate multiple departments and vice versa.While creating a Department page there should be a Multi Select LOV(values from Persons table) with search option for the Persons.From the search panel we can select multiple persons for that department.Suppose we have selected 5 persons and click on submit, then it should create 5 rows in the EmployDept table for 5 persons with that department id.
Any inputs on how to implement this scenario please..Maybe you can get some ideas from here -
http://adfdeveloper.blogspot.com/2011/07/simple-implementation-of-af.html -
How to create new row in Adf uix table
hi,
I am using Jdev 10.1.2 , Can any body tell me how to insert new row in table ?
ThanxHi,
try creating a createInsert action.
Regards,
Koen Verhulst -
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 increase the row height of the table in the smartform
Hi,
Can any one say,
How to increase the row height of the table in the smartform.
It is presently show the row width very small, i want to increase the row with of the table in the smartform.
Plase say how can we increase the row height in the smartform.Hi Ravi,
In Smartforms , Select the Table and you can adjust the cell hieghts in OUTPUT OPTIONs TAB.
Reward points if that Helps.
Manish -
How to get selected row index of a Table ?
hi gurus,I'm new to Webdynpro for abap
I'm displaying just Flight details in a Table so
how to get selected row index of a Table and need to be display in Message manager.Hi,
For getting the row index use the following code.
DATA lo_nd_node TYPE REF TO if_wd_context_node.
DATA lo_el_node TYPE REF TO if_wd_context_element.
DATA index TYPE i.
* navigate from <CONTEXT> to <NODE> via lead selection
lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_node ).
lo_el_node = lo_nd_node->get_lead_selection( ).
index = lo_el_node->get_index( ).
node is the name of the node which is binded to the table.
For printing the message u can use code wizard.
Press ctrl-F7. Now Select generate message.
IN this select the method REPORT_SUCCESS
In the code now u can give index to Message text Exporting parameter. Comment receiving parameter.
Write the whole code in onLeadSelect of the table.
Regards,
Pankaj Aggarwal -
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? -
How to create DB partitioning in active data tables for ods?
hi all,
Can anyone let me know how to create DB partitioning in active data tables for ods. if any docs pls share with me at my email id : [email protected]
regds
harithaHaritha,
The following steps will briefly explain you to improve the performance in terms of DB partitioning as well as loading. Please find the same,
transaction RSCUSTA2,
oss note 120253 565725 670208
and remove 'bex reporting' setting in ods if that ods not used for reporting.
hope this helps.
565725
Symptom
This note contains recommendations for improving the load performance of ODS objects in Business Information Warehouse Release 3.0B and 3.1 Content.
Other terms
Business Information Warehouse, ODS object, BW, RSCUSTA2, RSADMINA
Solution
To obtain a good load performance for ODS objects, we recommend that you note the following:
1. Activating data in the ODS object
In the Implementation Guide in the BW Customizing, you can implement different settings under Business Information Warehouse -> General BW settings -> Settings for the ODS object that will improve performance when you activate data in the ODS object.
1. Creating SIDs
The creation of SIDs is time-consuming and may be avoided in the following cases:
a) You should not set the indicator for BEx Reporting if you are only using the ODS object as a data store.Otherwise, SIDs are created for all new characteristic values by setting this indicator.
b) If you are using line items (for example, document number, time stamp and so on) as characteristics in the ODS object, you should mark these as 'Attribute only' in the characteristics maintenance.
SIDs are created at the same time if parallel activation is activated (see above).They are then created using the same number of parallel processes as those set for the activation. However:if you specify a server group or a special server in the Customizing, these specifications only apply to activation and not the creation of SIDs.The creation of SIDs runs on the application server on which the batch job is also running.
1. DB partitioning on the table for active data (technical name:
The process of deleting data from the ODS object may be accelerated by partitioning on the database level.Select the characteristic after which you want deletion to occur as a partitioning criterion.For more details on partitioning database tables, see the database documentation (DBMS CD).Partitioning is supported with the following databases:Oracle, DB2/390, Informix.
1. Indexing
Selection criteria should be used for queries on ODS objects.The existing primary index is used if the key fields are specified.As a result, the characteristic that is accessed more frequently should be left justified.If the key fields are only partially specified in the selection criteria (recognizable in the SQL trace), the query runtime may be optimized by creating additional indexes.You can create these secondary indexes in the ODS object maintenance.
1. Loading unique data records
If you only load unique data records (that is, data records with a one-time key combination) into the ODS object, the load performance will improve if you set the 'Unique data record' indicator in the ODS object maintenance.
Hope this helps..
****Assign Points****
Thanks,
Gattu -
How to create a Row in a table in SMARTFORMS
Dear All,
I'm working with SAP 4.6C.
I have created a table under the Main Window. After that I have activated the Heade and Footer Check Box in the EVENT TAB of the TABLE. But, Main Area option is not there.
Because of that it is displaying the TABLE Node like
TABLE
Header
Footer
Not Like
TABLE
Header
Main Area
Footer
Under the Header I want to create a row. After creating the row only I can create the cells.
I have defined the line type as %LTYPE1. Even though it is not dispalying the ROW under Header
It should display
TABLE
Header
Row
Cell1
Text1
Cell2
Text2
Main Area
Footer
But, it is not displaying the ROW after creating the line type .
How to overcome this problem...
<<Text removed by moderator>>
Regards,
Bhaskar
Edited by: Matt on Feb 28, 2009 7:02 PM - Please do not offer rewards or pointsHello,
u have posted this question 2 times
When you work on a table node in your form, the node is marked with the table icon . In the
maintenance frame, you get a new type of tab, the Table tab. See below.
On this tab, you can define the table characteristics, and turn on the Table Painter to help lay out
the rows and columns. Turn on the Table Painter by choosing-> Table Painter.
May this link helps u
http://www.scribd.com/doc/7375795/Smart-Form
Thank u,
santhosh -
How to create dublicate row in af:table ?
Hi All,
In my use case i have to add one custom button name as duplicate just above of af:table where user have option to click that button to create a row in table which contains duplicate value of the current row.
How would i achieved this scenario
Please let me know
Thanks
Edited by: ADFORCLE on Jan 16, 2012 6:48 PMTake a look at the blog post which provides the solution for the use-case:
http://www.adftips.com/2010/10/adf-model-creating-duplicate-row.html
Thanks,
Navaneeth -
How to Create multiple rows in Rich table programatically
Hello ADF Exparts.
I am Using below Code to create Rich Table Programatically on Clicking a button but I can't able to Create multiple tables will you please help me to create new row programatically
public class NewTable {
private RichInputText txtSearching;
private RichShowDetailItem resultTab;
private RichShowDetailItem simpleSearchTab;
private RichColumn firstColumn;
private RichOutputText outPutText;
private String searchString;
AdfFacesContext ctx=AdfFacesContext.getCurrentInstance();
Connection conn;
RichTable table;
Statement stmt;
private RichShowDetailItem basicSearchTab;
private RichTable basicResultTable;
private RichPanelGroupLayout panelGL;
public NewTable() {
public String buttonClicked() {
// Add event code here...
//Starrt Creating Table
table =new RichTable();
table.setId("demo");
table.setVisible(true);
table.setWidth("1024px");
table.setValue("mat_search");
table.setVar("Search");
table.setFilterVisible(true);
table.setAllDetailsEnabled(true);
table.setRowKey("0");
table.setFetchSize(25);
table.setRows(10);
table.setRowBandingInterval(0);
table.setRowSelection("single");
// table.setHorizontalGridVisible(false);
//table.setVerticalGridVisible(false);
//Start Table Header Text Declaretion and Assignment
RichOutputText colTextMat_No = new RichOutputText();
colTextMat_No.setValue("Material No ");
RichOutputText colTextShotDes = new RichOutputText();
colTextShotDes.setValue("Short Description");
RichOutputText colTextLongDes = new RichOutputText();
colTextLongDes.setValue("Long Description");
//Start Table Columan Creatin
RichColumn colMat_No = new RichColumn();
colMat_No.setVisible(true);
colMat_No.setHeader(colTextMat_No);
colMat_No.setWidth("100px");
colMat_No.setSortProperty("Material No");
colMat_No.setSortable(true);
colMat_No.setFilterable(true);
colMat_No.setSeparateRows(true);
RichColumn colShotDes = new RichColumn();
colShotDes .setVisible(true);
colShotDes .setHeader(colTextShotDes);
colShotDes.setWidth("500px");
colShotDes.setSortProperty("Short Description");
colShotDes.setSortable(true);
colShotDes.setFilterable(true);
colShotDes.setSeparateRows(true);
RichColumn colLongDes = new RichColumn();
colLongDes .setVisible(true);
colLongDes .setHeader(colTextLongDes);
colLongDes.setWidth("500px");
colLongDes.setFilterable(true);
colLongDes.setSeparateRows(true);
//End Table Columan Creatin
//Start Creating table Children
List<UIComponent> tblChild;
tblChild=table.getChildren();
//Start adding Columan to Table
tblChild.add(colMat_No);
tblChild.add(colShotDes);
tblChild.add(colLongDes);
List<UIComponent> displayPanel;
displayPanel=panelGL.getChildren();
List<UIComponent> matChild;
matChild=colMat_No.getChildren();
RichOutputText rot=new RichOutputText();
rot.setValue("15000");
matChild.add(rot);
displayPanel.add(table);
System.out.println("RowIndex="+table.getRowIndex());
System.out.println("Row Count="+table.getRowCount());
return null;
Thank you very muchMaybe you can get some ideas from here -
http://adfdeveloper.blogspot.com/2011/07/simple-implementation-of-af.html -
How to create multiple rows in HFR-- need help urgent
I want to create a row template in HFR, there are almost 500 members in rows and we already have them listed in an excel sheet in rows. They are not under a particular hierarchy so cannot choose the relationship functions ( like idesc or children and all). Is there a way we can copy paste it some way in HFR from excel or do we need to pick every member in HFR separately.
Please help.Firstly format the members in excel such that they end with a comma, then "Copy" and "Transpose" paste these on a new cell in excel.
Copy the transposed line and paste in financial reporting studio in the formulae bar & click save.
Maybe you are looking for
-
Whats the difference between DBI and BIS ??
Our objective is to implement "Purchasing Intelligence".Does it mean that we can implement "Purchasing Intelligence" reports either by using BIS or DBI ? DO they give essentially same results or are they different? What will be the difference using B
-
Does anyone have any suggestions for QA providers that work on eCommerce sites? I am looking for a QA provider with the following capabilities:Functionality testing of new code/features on eCommerce site Checkout and cart testing, including the use
-
I'm using Windows 7 home premium, Lightroom 5.2 RC, Photoshop CS6. After working on an image in Lightroom, I went to Photoshop to do some finishing. In the process I wanted to convert the profile from prophoto to sRGB. I expected to see the choice of
-
X11 Keyboard Settings Not Applied on Boot
I'm having problems setting my keyboard layout on boot in X11 using Xorg.conf.d. Specifically, I would like to set the default X keyboard to be Programmer Dvorak on boot with the caps:swapescape option on. I have followed the instructions on the Wiki
-
Import contacts from Gmail to new iphone?
I have the original Motorola droid which does not support backup assistant, but i have all of my contacts in Gmail. How do i get my contacts from Gmail to my new Iphone?