JSF rich:dataGrid - display empty cells
Hi,
I created a rich:dataGrid with 5 columns but when the arraylist has about only 2 rows of data, the data grid displays empty cells.
How do I get rid of the empty cells? border=0 did not solve the problem.
Thanks in advance.
apply simple table CSS dear.
Here is one sample style css you can modify as per your need
<style>
.myDataGrid thead th {
background: #ffffff; /*change as per your need*/
text-align: center;
font-size: small;
font-weight: normal;
padding: 5px;
border : 1px solid #ffffff; /*change as per your need*/
border-bottom: 1px solid;
.myDataGrid tbody td {
font-size: small;
padding-right: 10px;
text-align: left;
border : 1px solid #ffffff; /*change as per your need*/
padding-left: 5px;
.myDataGrid {
width: 100%;
border : 1px solid #ffffff; /*change as per your need*/
border-collapse: collapse;
margin: 10px;
.myDataGrid caption {
text-align: left;
font-weight: normal;
padding: 5px;
</style>and apply it in datagrid
<rich:dataGrid columns="3" value="#{orderBean.orderItems}" var="item" styleClass="myDataGrid" >
<h:outputText value=" #{item.description}" />
<h:outputText value=" #{item.qty}" />
</rich:dataGrid>
Similar Messages
-
Table View : display:none leaves a empty cell
Hi Experts,
There is a requirement to display a report in a normal table view but print the other view ( sectioned table view).
I have created two views in teh same request and in teh second view i have used the display:none css code in the Data section , Folder Heading and Column Heading of evey column being used in this report.
But i see some grey empty cells and since its a sectioned table view these empty cells are increasing.
Can you please help me on how to hide this empty cells from getting displayed in the Dashboard
Regards
Veena AHi,
Refer
OBIEE Changing unchangeable cells
http://obiee101.blogspot.in/2010/02/obiee-changing-unchangeable-cells.html
Award points if this helped to help others with similar issues.
Regards
MuRam -
Displaying timings as empty cell?
Hi,
When i try to execute the query , the values are populating correctly. Indeed instead of timigs feilds
i am getting the empty cells.
Until my DSO data display am getting the timigs correctly. but after query exceution am getting the issue how to resolve this?
Cheers
vassHi Vasu,
you are reporting on DSO or Cube ?, check you have any filter conditions or restriction on your query.
give same selection you have given in DSO and Cube (if it is there) and give same selections in Query also. -
Datagrid display scrolling bug?
Hello,
I'm developing an AIR application using the 4.1 SDK and have come across inconsistent display behavior from a datagrid when scrolling.
My datagrid has three fixed columns created in MXML with the DataGridColumn tag. When the datagrid fires a creationComplete event, I then dynamically add additional columns to it, setting the column item renderer to an MXML component. This is all rather straightforward and when I start the application, everything looks just fine. However, once I scroll the datagrid, either vertically or horizontally, the values from the dynamically created columns change or empty cells are displayed in their place. They change every time I scroll. The fixed columns don't exhibit this behavior.
Has anyone encountered this issue? Is this a Flex bug and is there a workaround?
Your help is appreciated.
Thanks,
-JoseitemRenders in DataGrid and other list based controls are recycled, so this often causes problems for scrolling "depending on what you are doing".
Show code and we may be able to help more.
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex Training and Support Services -
How to get data from rich:dataGrid variable to backing bean
Hi,
I have a problem in the following code. I have a dataGrid and I display data in the data grid by calling an array (bean.list). The array is displayed as pictures in JSF and the user clicks on one of those images. (more like a shopping card)
My question is once the user selects a picture, I want to get some details (e.g.price) and store it back in my bean class for later use.
Please tell me how I store the data back to the bean class.
<rich:dataGrid border="0" value="#{bean.list}" var="item" columns ="2" >
<h:panelGrid border="0" columns="2">
<a4j:commandLink onclick="#{rich:component('modalPanel')}.show()"><h:graphicImage value="/images/#{item.imageName}" /> </a4j:commandLink>
<h:outputText value=" #{item.price}" /> bean.list is stored in the DB and once I display all the product images in JSF, the user clicks on any picture.
I want to get some information (item.price) from that item and store it back in the bean class. And probably some other information (e.g.item.date) from the item.
Thanks for your help
Edited by: shana10 on Nov 18, 2009 10:45 PMprivate function onItemClick( e:ListEvent ):void
alert=Alert.show(experimentdetails.getItemAt(e.rowIndex).experimentName.toString());
The ListEvent has a rowIndex and a columnIndex property that you can use to find out the record/attribute that was clicked.
Does this solve your query ?
Balakrishnan V -
How to get an empty cell when SUM cells are empty?
When doing a SUM, I want the result to be blank if there are no numbers yet. In Excel, if you have =SUM(A6:A30) with empty cells, the result is an empty cell.
In Numbers, it's a zero.
I know you can use =IF(SUM(A6:A30)>0,SUM(A6:A30),"") to put an empty string in the cell if there's nothing to add, but this doesn't work for negative numbers.
I tried =SUMIF(A6:A30,"count(A6:A30)>0") and it puts a zero there even if all the cells are blank, and I don't think it's correct anyway.
=IF(SUM(A6:A30)>0,SUM(A6:A30),(IF(SUM(A6:A30)<0,SUM(A6:A30),"")))
works, but it seems rather cumbersome.
Is there a better way?
Ideas?Terrell Smith wrote:
=IF(SUM(A6:A30)>0,SUM(A6:A30),(IF(SUM(A6:A30)<0,SUM(A6:A30),"")))
works, but it seems rather cumbersome.
</div>
Hello
The best way I found to solve your problem is:
=IF(COUNT(A6:A30),SUM(A6:A30),"")
Which reads:
if at least one cell of the range (A6:A30) contains a numeric value returns SUM(A6:A30)
else
returns a blank cell.
Of course, if the sum is nil the displayed [thanks you Barry ;-)] value will be a zero.
Maybe it's what schubladenschrank was offering but I don't read Deutsch.
Just for info, your formula may be shorten as:
=IF(SUM(A6:A30)=0,"",SUM(A6:A30))
Yvan KOENIG (from FRANCE samedi 2 février 2008 13:55:43) -
How to disply empty cell from a string using stringtokenizer class
Hello All
I had wriiten a small program to read the string and split the string into different tuples.When i had empty cell in string i am unable to display it. Can any body help me out pls?
code given below
import java.io.*;
import java.util.StringTokenizer;
class Tokenize {
// Create BufferedReader class instance
static InputStreamReader input = new InputStreamReader(System.in);
static BufferedReader keyboardInput = new BufferedReader(input);
static String record;
/* Main method */
public static void main(String[] args) throws IOException {
//declare the string variables
String text,delim,var,delimv,vname;
String X = "x";
int i = 1;
//read the inputs from keyboard for variables and delimv
System.out.print("What is your variable names? ");
var = keyboardInput.readLine();
System.out.println("variable are :" + var );
System.out.print("What is your separator? ");
delimv = keyboardInput.readLine();
//read the inputs from keyboard for string and delim
System.out.print("What is your String? ");
text = keyboardInput.readLine();
System.out.println("String is :" + text );
System.out.print("What is your separator? ");
delim = keyboardInput.readLine();
//create the stringtokenizer class instance
StringTokenizer vt = new StringTokenizer(var,delimv);
StringTokenizer st = new StringTokenizer(text,delim);
//print the nexttokens as long as tokens and variables are available
while (vt.hasMoreTokens()) {
while (st.hasMoreTokens()) {
vname = vt.nextToken();
// if(st.nextElement() == X){
// System.out.println("filed is empty");
// System.out.println(vname + "= ");
System.out.println(vname + "=" + st.nextToken());
//nextToken());
Variables name : cat1,cat2,cat3,cat4,cat5,cat6,cat7,cat8,cat9,cat10,cat11
String name : Produkten;Voor hem;;Funny Mask ;12.50;4.90;17.40;1-5 dagen;0;http://www.eroticastore.nl/ProductDetails.asp?ProductId=21733&ReferrerId=134;http://www.eroticastore.nl/ProductImages/thumb_3300000510.jpg
Note : Empty cell is in between "Voor hem" and "Funny Mask"
Thanks In advance,
MuraliWhen you post code, please use [code] and [/code] tags as described in Formatting Help on the message entry page. It makes it much easier to read.
-
Hi Experts,
After executing the query, I am getting some cells which are empty without any zero / any value....
Is there any setting to display those cells with zeros ........
Thanks in Advance..
Regards,
NagamaniHi Nagmani,
After calculation if ur getting few of ur cells empty even the desired is 0 then in this case u have to create 2 more Calculated key figure and to write something like this in ur Figure:
Suppose the blank ciolumn name is KF1
Then create a KF2 and type below formula:
in KF2 write : KF1 + 1.
Now create another KF3 in that use the below formula:
(KF2 == 1) * 0 + KF1.
KF3 wil be ur final column then,
As the blank space is not zero so directly adding 0 to that will not serve to ur purpose u need to create two more KF as suggested above.
Its a common problem faced as such there is no settings for this so need to do little +, - with Zero so that u can get the 0
Thanks
Dipika -
Treating empty cells as missing data in formulae in Numbers '09
I'm working with numerical data where many cells are empty (missing data). My problem is that when I use formula to make calculations, Numbers treats empty cells as zeros, and won't let me search and replace an empty cell with a placeholder (like . in excel).
Any ideas?When we don't want to display the result of a calculation on a certain condition, we can test for that condition and substitute a different output. In your case, you may have blank input cell and you don't want to display the negative result that would otherwise occur. There are at least two general approaches that you could use. The easiest would be to go ahead and make the calculation and then format all negative results to a font that wouldn't be visible, using Conditional Format. A slightly more complicated way, as Barry described above, would be to test for the blank cell condition and substitute a null string. Here's a graphic of the null string case.
When you have learned a few basic tricks this will all seem easy to you.
Jerry -
Message when datagrid is empty
I need to display dataGrid headers and the "no records" message when the
DataGrid is empty, is there any way to achieve this?
Tks
RafaelThis code answers your question:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.collections.ArrayCollection;
[Bindable] private var ac:ArrayCollection = new ArrayCollection([]);
private function checkDP():void {
if(ac.length == 0){
mx.controls.Alert.show("DataGrid dataProvider is empty!");
]]>
</mx:Script>
<mx:DataGrid dataProvider="{ac}" creationComplete="checkDP()">
<mx:columns>
<mx:DataGridColumn dataField="test1"/>
<mx:DataGridColumn dataField="test2"/>
<mx:DataGridColumn dataField="test3"/>
<mx:DataGridColumn dataField="test4"/>
<mx:DataGridColumn dataField="test5"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex / AIR Development, Training, and Support Services -
Getting right end of text displayed in cells of a JTable column
Hey All,
Platform: WinXP, Java 5.0.
I have a simple one-column table whose cells contain pathnames of user-selected files. The pathnames may be quite long, and when they're too long for the fixed width of the column (the containing JFrame is not resizable), I want the trailing (right) end of the pathnames to visible (so the filenames are visible) and for elipsis to be used on the left side (omitting root directory, etc., if need be). I can't figure out how to do this. I've tried many different approaches. Currently I use a class that extends TableCellRenderer, but no combination of alignment settings in this class seems to do the trick.
I've noticed that in the case of JTextFields, this manner of display seems to be the default, no matter what alignment setting I choose. I can't seem to get the desired effect with the display of cells in my JTable though.
Anyone have any suggestions?
Thanks in advance.Great job camickr,
That did just what I wanted; you get the points for sure! I will say that It's surprising to me that Swing leaves so much work in calculation to be done for this simple idea.
Btw, I also want to mention here that there's another forum issue I raised and you responded to recently, and you never quite answered my question there:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=5160875
That's got 10 pts riding on it too, if you care to revisit the issue...
Thanks very much for the good work on the CellRenderer. -
Display a cell in ALV report as Pushbutton
Hi,
I am having an ALV report. I want to display one cell of the ALV report as a Pushbutton. How is it possible ?
Thanks and regards.Hi WTM,
To display a cell as pushbutton in container display of a simple, two-dimensional table, use the cell type BUTTON.
cell type -->
In the content of your ALV output, you are able to display various elements in place of text. Some of these elements can be treated as a click area for the user. You are able to display the following elements:
· Checkbox
In list-type ALV ouputs, the checkbox is disabled. With the content of the column, you are only to display whether the checkbox is set or not.
In the tree structure, however, you are able to handle users actions on this element using an event.
· Pushbutton
You are able to handle user actions on this element with an event.
· Hyperlink
You specify the Internet addresses (URLs). Users can then call up the corresponding page in the Internet browser by clicking on one of these Internet addresses.
· Click Area
You are able to handle user actions on this element with an event.
Hope this helps u,
Regards,
Nagarajan. -
How can I add a character globally to empty cells in an InDesign table?
I have a document with 190 tables, each with many empty cells. Client now wants m-dashes in the empty cells. Is it possible to do this in an automated fashion, without having to go cell-by-cell?
Hi Jarek,
Unfortunately I'm still getting the same "no tables found in the active document" message after modifying it the way you instructed.
Here's my current code. Hopefully you'll be able to detect my problem. I greatly apologize for my ineptitude in javascript
try
var myCells = app.app.selection[0].cells.everyItem().getElements();
alert("myCells:" + myCells.length)
for(i=0; i<myCells.length; i++)
if(myCells[i].contents == "")
myCells[i].contents = "N/A"
catch(myError)
alert("no tables found in the active document") -
Getting error while displaying a cell as a button in ALV
Hello All,
I am trying to display a cell in ALV output as pushbutton. The following is the code I am using.
DATA BEGIN OF gt_list OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA rowcolor(4) TYPE c.
DATA cellcolors TYPE lvc_t_scol.
DATA carrid_handle TYPE int4.
DATA connid_handle TYPE int4.
DATA cellstyles TYPE lvc_t_styl.
DATA END OF gt_list.
LOOP AT gt_list.
gs_style-fieldname = 'Details'.
gs_style-style = cl_gui_alv_grid=>mc_style_button.
APPEND gs_style TO gt_list-cellstyles.
MODIFY gt_list.
ENDLOOP.
CALL METHOD gr_alvgrid->set_table_for_first_display
EXPORTING
is_layout = gs_layout
CHANGING
it_outtab = gt_list
it_fieldcatalog = gt_fieldcat.
But this is giving mr an error message that in call to method set_table_for_first_display type of it_outtab & gt_list do not match.
Could anyone please suggest how to circumvent this error.
Regards
Indrajit.Hello Indrajit
The following sample report is a variation of a previously published report () showing radiobuttons and pushbuttons (at cell level) within a single ALV list.
*& Report ZUS_SDN_ALV_WITH_RADIOBUTTONS1
*& This program shows how to realize radiobuttons in ALV grid lists
*& using event HOTSPOT_CLICK.
*& In addition it shows how to realize pushbuttons at CELL level.
*& Screen 100:
*& - Flow logic
*& PROCESS BEFORE OUTPUT.
*& MODULE PBO.
*& PROCESS AFTER INPUT.
*& MODULE PAI.
*& - Screen elements: none
*& - ok-code field -> gd_okcode
*& GUI Status MAIN100:
*& - F3 = 'BACK', Shift+F3 = 'EXIT', F12 = 'CANC'
PROGRAM zus_sdn_alv_with_radiobuttons.
TYPE-POOLS: abap, icon. " INCLUDE <icon>. for releases < 6.20
TYPES: BEGIN OF ty_s_sflight.
INCLUDE TYPE sflight.
TYPES: button1 TYPE iconname.
TYPES: button2 TYPE iconname.
TYPES: button3 TYPE iconname.
TYPES: button4 TYPE iconname.
TYPES: pushbutton TYPE iconname.
TYPES: cellstyles TYPE lvc_t_styl.
TYPES: END OF ty_s_sflight.
DATA:
gt_sflight TYPE STANDARD TABLE OF ty_s_sflight,
gs_layout TYPE lvc_s_layo,
gt_fcat TYPE lvc_t_fcat.
DATA:
gd_okcode TYPE ui_func,
go_docking TYPE REF TO cl_gui_docking_container,
go_grid TYPE REF TO cl_gui_alv_grid.
* CLASS lcl_eventhandler DEFINITION
CLASS lcl_eventhandler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS:
handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
IMPORTING
e_row_id
e_column_id
es_row_no
sender,
handle_button_click FOR EVENT button_click OF cl_gui_alv_grid
IMPORTING
es_col_id
es_row_no
sender.
ENDCLASS. "lcl_eventhandler DEFINITION
* CLASS lcl_eventhandler IMPLEMENTATION
CLASS lcl_eventhandler IMPLEMENTATION.
METHOD handle_hotspot_click.
* define local data
FIELD-SYMBOLS:
<ls_entry> TYPE ty_s_sflight,
<ld_fld> TYPE ANY.
READ TABLE gt_sflight ASSIGNING <ls_entry> INDEX es_row_no-row_id.
CHECK ( <ls_entry> IS ASSIGNED ).
* Set all radio buttons "unselected"
<ls_entry>-button1 = icon_wd_radio_button_empty.
<ls_entry>-button2 = icon_wd_radio_button_empty.
<ls_entry>-button3 = icon_wd_radio_button_empty.
<ls_entry>-button4 = icon_wd_radio_button_empty.
ASSIGN COMPONENT e_column_id-fieldname OF STRUCTURE <ls_entry>
TO <ld_fld>.
IF ( <ld_fld> IS ASSIGNED ).
* Set selected radio button "selected".
<ld_fld> = icon_wd_radio_button.
ENDIF.
* Force PAI followed by refresh of table display in PBO
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = 'REFRESH'
* IMPORTING
* RC =
ENDMETHOD. "handle_hotspot_click
METHOD handle_button_click.
MESSAGE 'Pushbutton selected' TYPE 'I'.
ENDMETHOD. "handle_button_click
ENDCLASS. "lcl_eventhandler IMPLEMENTATION
* MAIN *
START-OF-SELECTION.
PERFORM select_data.
PERFORM init_controls.
PERFORM build_fieldcatalog.
PERFORM set_layout.
CALL METHOD go_grid->set_table_for_first_display
EXPORTING
* i_structure_name = 'SFLIGHT'
is_layout = gs_layout
CHANGING
it_fieldcatalog = gt_fcat
it_outtab = gt_sflight.
* Link docking container to dynpro
CALL METHOD go_docking->link
EXPORTING
repid = syst-repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
lifetime_dynpro_dynpro_link = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL SCREEN 100.
END-OF-SELECTION.
* MODULE PBO OUTPUT *
MODULE pbo OUTPUT.
SET PF-STATUS 'MAIN100'.
ENDMODULE. "PBO OUTPUT
* MODULE PAI INPUT *
MODULE pai INPUT.
* Leave report
CASE gd_okcode.
WHEN 'BACK' OR
'EXIT' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
* Refresh table display
WHEN 'REFRESH'.
PERFORM refresh_display.
WHEN OTHERS.
* do nothing
ENDCASE.
CLEAR gd_okcode.
ENDMODULE. "PAI INPUT
*& Form BUILD_FIELDCATALOG
* text
* --> p1 text
* <-- p2 text
FORM build_fieldcatalog .
* define local data
DATA:
ls_fcat TYPE lvc_s_fcat.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
* I_BUFFER_ACTIVE =
i_structure_name = 'ICON'
* I_CLIENT_NEVER_DISPLAY = 'X'
* I_BYPASSING_BUFFER =
* I_INTERNAL_TABNAME =
CHANGING
ct_fieldcat = gt_fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DELETE gt_fcat WHERE ( fieldname <> 'NAME' ).
* NOTE: field ICON-NAME has data element ICONNAME.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
* I_BUFFER_ACTIVE =
i_structure_name = 'SFLIGHT'
* I_CLIENT_NEVER_DISPLAY = 'X'
* I_BYPASSING_BUFFER =
* I_INTERNAL_TABNAME =
CHANGING
ct_fieldcat = gt_fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE gt_fcat INTO ls_fcat
WITH KEY fieldname = 'NAME'.
IF ( syst-subrc = 0 ).
DELETE gt_fcat INDEX syst-tabix.
ENDIF.
ls_fcat-fieldname = 'PUSHBUTTON'.
ls_fcat-coltext = ls_fcat-fieldname.
** ls_fcat-icon = 'X'.
ls_fcat-hotspot = 'X'.
INSERT ls_fcat INTO gt_fcat INDEX 5.
ls_fcat-fieldname = 'BUTTON4'.
ls_fcat-coltext = ls_fcat-fieldname.
ls_fcat-icon = 'X'.
ls_fcat-hotspot = 'X'.
INSERT ls_fcat INTO gt_fcat INDEX 5.
ls_fcat-fieldname = 'BUTTON3'.
ls_fcat-coltext = ls_fcat-fieldname.
INSERT ls_fcat INTO gt_fcat INDEX 5.
ls_fcat-fieldname = 'BUTTON2'.
ls_fcat-coltext = ls_fcat-fieldname.
INSERT ls_fcat INTO gt_fcat INDEX 5.
ls_fcat-fieldname = 'BUTTON1'.
ls_fcat-coltext = ls_fcat-fieldname.
INSERT ls_fcat INTO gt_fcat INDEX 5.
* Renumbering of the columns
LOOP AT gt_fcat INTO ls_fcat.
ls_fcat-col_pos = syst-tabix.
MODIFY gt_fcat FROM ls_fcat INDEX syst-tabix.
ENDLOOP.
ENDFORM. " BUILD_FIELDCATALOG
*& Form SELECT_DATA
* text
* --> p1 text
* <-- p2 text
FORM select_data .
* define local data
DATA:
ls_sflight TYPE ty_s_sflight,
ld_style TYPE raw4,
ls_cellstyle TYPE lvc_s_styl,
lt_cellstyles TYPE lvc_t_styl.
SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE gt_sflight.
ls_sflight-button1 = icon_wd_radio_button. " selected radiobutton
ls_sflight-button2 = icon_wd_radio_button_empty.
ls_sflight-button3 = icon_wd_radio_button_empty.
ls_sflight-button4 = icon_wd_radio_button_empty.
* Alternatively: create icons using function module 'ICON_CREATE'
MODIFY gt_sflight FROM ls_sflight
TRANSPORTING button1 button2 button3 button4
WHERE ( carrid IS NOT INITIAL ).
ls_cellstyle-style2 = cl_gui_alv_grid=>mc_style_hotspot.
APPEND ls_cellstyle TO lt_cellstyles.
LOOP AT gt_sflight INTO ls_sflight.
REFRESH: ls_sflight-cellstyles.
CLEAR: ls_cellstyle.
ls_cellstyle-fieldname = 'PUSHBUTTON'.
IF ( syst-tabix < 6 ).
ls_sflight-pushbutton = icon_detail.
ls_cellstyle-style = cl_gui_alv_grid=>mc_style_button.
APPEND ls_cellstyle TO ls_sflight-cellstyles.
ELSE.
ls_sflight-pushbutton = space.
ls_cellstyle-style = cl_gui_alv_grid=>mc_style_hotspot_no.
APPEND ls_cellstyle TO ls_sflight-cellstyles.
ENDIF.
MODIFY gt_sflight FROM ls_sflight.
ENDLOOP.
ENDFORM. " SELECT_DATA
*& Form INIT_CONTROLS
* text
* --> p1 text
* <-- p2 text
FORM init_controls .
CHECK ( go_docking IS NOT BOUND ).
* Create docking container
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
* REPID =
* DYNNR =
* SIDE = DOCK_AT_LEFT
* EXTENSION = 50
* STYLE =
* LIFETIME = lifetime_default
* CAPTION =
* METRIC = 0
ratio = 90
* NO_AUTODEF_PROGID_DYNNR =
* NAME =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Size of container = full screen size
CALL METHOD go_docking->set_extension
EXPORTING
extension = 99999
EXCEPTIONS
cntl_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Create ALV grid instance
CREATE OBJECT go_grid
EXPORTING
* I_SHELLSTYLE = 0
* I_LIFETIME =
i_parent = go_docking
* I_APPL_EVENTS = space
* I_PARENTDBG =
* I_APPLOGPARENT =
* I_GRAPHICSPARENT =
* I_NAME =
* I_FCAT_COMPLETE = SPACE
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Set event handler for events
SET HANDLER:
lcl_eventhandler=>handle_hotspot_click FOR go_grid,
lcl_eventhandler=>handle_button_click FOR go_grid.
ENDFORM. " INIT_CONTROLS
*& Form REFRESH_DISPLAY
* Refresh table display after switching the radiobuttons
* --> p1 text
* <-- p2 text
FORM refresh_display .
* define local data
DATA:
ls_stable TYPE lvc_s_stbl.
ls_stable-row = abap_true.
ls_stable-col = abap_true.
CALL METHOD go_grid->refresh_table_display
EXPORTING
is_stable = ls_stable
* I_SOFT_REFRESH =
EXCEPTIONS
finished = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " REFRESH_DISPLAY
*& Form SET_LAYOUT
* Set layout for ALV list
* --> p1 text
* <-- p2 text
FORM set_layout .
CLEAR: gs_layout.
gs_layout-cwidth_opt = abap_true. " optimize column width
gs_layout-zebra = abap_true.
gs_layout-stylefname = 'CELLSTYLES' .
ENDFORM. " SET_LAYOUT -
Dimension member values not showing (just empty cells)
Hi,
I have an organization dimension (Business > Business Unit> Department > Account) and a single fact (Dollars) on my test repository. When I add my fact and any dimension level to an answers report I can see for example two empty cells for each member at the "Business" level and the result of my fact calculation. I've tried many ways to attempt solving this issue from aggregating my data to compressing all the dimension in a single table and still haven't had success. I also turned on logging and found out that the physical layer SQL being generated returns the correct values when I run it in my query tool.
Has anyone experienced similar behavior? I'm not sure if I skipped a step on my modeling or this is a bug in my OBIEE installation
Thanks a lot!!
-IgnacioHad this problem when source datatype was nvarchar and the field was coming over as varchar with a length of 0 in the physical layer. Check your physical table definitiion to see the length of the fields that are empty for you, may have to change it to an appropriate value
Maybe you are looking for
-
Internet explorer is required to access some of my financial accounts; what are the risks? I am running Mac OS X 10.7.2 on a Mac Pro Message was edited by: 74683msn
-
Dear experts, I have a piece of code like this.. ASSIGN (lv_field) TO <f1>. IF NOT <f1> IS INITIAL. CONCATENATE 'IS_BUS000_EEW' '-' lv_fieldname INTO lv_field. ASSIGN (lv_field) TO <f1>. CONCATENATE 'LS_BUT000-' lv_fie
-
I've reviewed the .Mac Help to use my personal domain for my web site, but when I go to my account settings page on the .Mac home page, there is no button that says "Personal Domain"...so I can't complete this step. Anyone have any suggestions? Thank
-
Help with Adobe Reader update installation on mac book pro
am trying to update adobe reader 9.4.6 to the latest version on my mac book pro. Am able to download the updtae to 10. whatever and proceed with installation. At the step where I am asked to choose the adobe reader file, I select the file and then th
-
Hi, all guru I'm new to SNP, would like to clarify the process flow . What is the output of each SNP process after release the forecast from DP to SNP 1. is the first process is DRP ? when we run optimizer, what is the output , any order send to R3 2