Data table with fixed column with
I have a data table bound to a row set , and I would like the table to have fixed column widths to avoid unpleasant display shifts when paging through it.
The column component does not have too many properties I can work with (maybe this can be fixed in a future release??). Therefore I tried setting the style property of the output text object inside the column. The result looks good in the IDE, but reverts to variable column widths in the browser. I even tried setting the style property at runtime, with no luck.
Unfortunately I can't pad the column header with spaces, because output text has the annoying habit of converting any group of more than one blank space character to one char only (by the way, any remedy to that?). Trying to drop a grid or group panel in place of the column header and pad the column title with invisible (i.e. color: white) output texts did not work either...
Any ideas??
Thanks,
Luca
I took a look at the html encoder for data table and here's a trick you can use:
Go to your stylesheet (by default resources/stylesheet.css: open the Resources node in the project navigator and double click on stylesheet.css).
Let's say you want three columns - so add something like the following to the stylesheet:
.colwidth1 { width: 200px }
.colwidth2 { width: 400px }
.colwidth3 { width: 300px }
Save the stylesheet (ctrl-S).
Now, back in the designer, right click and select "Refresh" to ensure that the new stylesheet edits are discovered.
Then go to the designer surface, and select the data table (make sure it's selected, not one of its children like columns or output texts - if so hit Escape to pop to parent, or just click on it directly in the app outline.)
Go to the "columnClasses" property in the property sheet - and enter "colwidth1, colwidth2, colwidth3". Note - no dots here. If you have more than 3 columns you would obviously add additional columns here.
The table should now use the desired column widths - including the browser.
Similar Messages
-
Table Autofit - Fixed Column Width not actually fixed when resize viewing window
Using RoboHelp x8.0.2.208
Generating HTML help (CHM)
Set the Autofit property for a table as Fixed Column Width
Generate the CHM file
The table starts as the size specified
If I resize the width of the HTML help viewer, the column width shrinks
I tested generating this project as WebHelp with the same results
I also went into the Table Properties and specified a Preferred Width for the overall table and for each column.
I thought this option would set the size of the table based on how I sized it in source and would not resize the table as the viewing window is resized (either the HTML help viewer for CHM or the web browser window for WebHelp).
It appears the actual behavior is to start at the size specified and resize columns as the viewing window is resized.
Can someone tell me if I am not setting something correctly?
As always, thanks for any assistance/direction.
Michael F WeartThe "Autofit" option apparently only applies to the Window size you have specified.
Once you reduce the window size, the HTML table protocol takes over:
WARNING, WARNING, WARNING!
I need "this much" space for the widest element in column 1, and I don't care what your settings are.
Next, I need "this much" space for the widest element in column 2, and I don't care what your settings are.
Next, I need "this much" space for the widest element in column 3, and I don't care what your settings are.
Next, I need "this much" space for the widest element in column 4, and I don't care what your settings are.
etc.
etc.
By "widest element," I mean either an image or the longest text string with no separating spaces (ex: SYSTEM_DIAGNOSTICS_PARAMETER_EXTERNAL_ISSUER).
If you absolutely have to maintain the table the way you want, you might try creating it in a scrap topic, taking a screenshot, and saving that as a GIF file.
Good luck,
Leon -
Show Data as percent of Column with static table
Hello,
I have a problem calculating a % in a table. I have two columns in criteria tab:
Departments and measure
I need an extra column that calc % of total departments for each department. I know that I can do it with pivot table creating a new column and put: Show Data --> as Percent of --> Column but I need to do with static table.
Is possible to do it??
Thanks!!!Alex,
You could try the following example here :
http://www.biconsultinggroup.com/knowledgebase.asp?CategoryID=198&SubCategoryID=364
using sum( measure by dimension attribute)
This should give you access to the grand total in the report as a column, from which you can derive % of.
HTH, if correct please mark answered / award points as you see fit to do so!!
Alastair -
Scrollable table with fixed column headings problem
Dear list members,
A while ago I asked on this forum for a way to code a
scrollable table with fixed headings and I was kindly given the
HTML and CSS code to do that. Using the method I was given I coded
the following simple test case. It works under IE but under
Netscape the column headings scroll up instead of remaining fixed.
The code works fine in IE. Can anyone tell me what I'm doing wrong
or if there is a workaround.
Thanks,
HarryThe method you were given will only work in IE because only
IE understands
"expression" in CSS rules.
I'm afraid things are going to be a little more complicated
for you, but
it's not impossible.
Give this method a shot:
http://www.imaputz.com/cssStuff/bulletVersion.html
"harryspier" <[email protected]> wrote in
message
news:e53s1a$dv9$[email protected]..
> <style>
> div .headings {position:relative;
> top:expression(this.offsetParent.scrollTop);}
> </style> -
Hi Folks,
I have a grid in which I want to prevent the user to move the set column widths, because this grid has a separate graphik on top of it which would then cease to correspond with the grid columns.
My question: is there any means of difining a grid with <u><b>non-resizeble columns</b>?</u>
Thanks & Regards
Fouad
Message was edited by: Fouad SebbaneHi
In the below structure ,set bold field as 'X' for columns u wish to keep fixed.
Fieldcat
types: begin of slis_fieldcat_main0,
row_pos like sy-curow, " output in row
col_pos like sy-cucol, " position of col
fieldname type slis_fieldname,
tabname type slis_tabname,
currency(5) type c,
cfieldname type slis_fieldname, " currency
ctabname type slis_tabname, " and table
ifieldname type slis_fieldname, " initialcol
quantity(3) type c,
qfieldname type slis_fieldname, " qty
qtabname type slis_tabname, " and table
round type i," round in write statement
exponent(3) type c, " exponent for floats
key(1) type c, " column with key-color
icon(1) type c, " as icon
symbol(1) type c, " as symbol
checkbox(1) type c, " as checkbox
just(1) type c, " (R)ight (L)eft (C)ent.
lzero(1) type c, " leading zero
no_sign(1) type c, " write no-sign
no_zero(1) type c, " write no-zero
no_convext(1) type c,
edit_mask type slis_edit_mask,
emphasize(4) type c, " emphasize
<b>fix_column</b>(1) type c, " Spalte fixieren
do_sum(1) type c, " sum up
no_out(1) type c, " (O)blig.(X)no out
tech(1) type c, " technical field
outputlen like dd03p-outputlen,
offset type dd03p-outputlen, "offset
seltext_l like dd03p-scrtext_l, " long key
seltext_m like dd03p-scrtext_m, " middle
seltext_s like dd03p-scrtext_s, " short
ddictxt(1) type c, " (S)hort (M)
rollname like dd03p-rollname,
datatype like dd03p-datatype,
inttype like dd03p-inttype,
intlen like dd03p-intlen,
lowercase like dd03p-lowercase,
end of slis_fieldcat_main0.
Regards,
Raj -
RH 10 issue with Fixed Column width
Hi,
Is anybody else having issues with setting a fix width for a column in a table? In RH v.10 the "fixed widths" are not staying "fixed" as I have them manually set.
I've recently been upgraded from Robohelp (html) v.8 to v.10.
In a "Design" view in v.8.0 when I set a column width from the right click menu (AutoFit > Fixed Column Width), the width of the column would be whatever width I'd set it to. Now, in v.10, the width is whatever width the Robohelp window is set to! For example, I have a large monitor and I've got Robohelp open in Full Screen mode, the table (a 1-cell table) gets set to the width of the window rather than the particular width I want to use! I want the cell to be a particular width (much less than my monitor or the open window's width). Can someone please tell me what I am doing wrong?
OS=Windows7.
Browser=IE9
Robohelp is installed locally (it is not being run over a network).
Thanks!
P.S. So far this is the only issue I've had after upgrading from RH v.8 to RH v.10.Hi William,
In a "Design" view in v.10, the table (which is 1 cell) looks like a big rectangular box. I've turned off the border (cell or table border), so the border appears in gray.
Put mouse focus on this 1-cell table, then grab an edge with the mouse.
Move the table inward to make the column narrower in the view.
Then from the right click menu, choose AutoFit > Fixed Column Width.
Voilá - the width is back to the width of the display window.
Did that make sense to you? Thank you for your help and ideas.
Cheers,
Julia -
Multiple row selection in ADF Table using addition column with checkbox
I am using ADF table(Jdeveloper11g) and i want to selecte multiple rows it may be more than one OR all rows.
For that i added one Column to the table with Header Delete and checkbox
<af:table....
<af:column sortProperty="Delete" headerText="Delete" width="100"
sortable="false">
<af:selectBooleanCheckbox label="#{row.favoriteId}"
valueChangeListener="#{Mybean.onCheck}"
id="checkbox" autoSubmit="true">
</af:selectBooleanCheckbox>
</af:column>
</af:table>
backing bean:Here i added code to get Value of one column with id favoriteId and use an arrayList(listForDelete) to monitor the state of the checkboxes
public void onCheck(ValueChangeEvent valueChangeEvent) {
BindingContainer bindings = getBindings();
DCBindingContainer dcBindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iterBind =
(DCIteratorBinding)bindings.get("getUserFavoritesByUserIDIterator");
if (iterBind != null && iterBind.getCurrentRow() != null) {
RichSelectBooleanCheckbox ch = (RichSelectBooleanCheckbox)valueChangeEvent.getSource();
if (!ch.isSelected()) {
Long issueId = (Long)iterBind.getCurrentRow().getAttribute("favoriteId");
listForDelete.add(issueId);
else
Long issueId = (Long)iterBind.getCurrentRow().getAttribute("favoriteId");
listForDelete.remove(issueId);
Problem is that when i select single row checkBox, onCheck() method of backing bean gets called multiple times(equals to the number of rows)
I think this is beacuse of <af:selectBooleanCheckbox id is same that is "checkbox" but i am not sure.Even i tried to assign some unique id but no any success in assigning Id with value Expression.
I also find related post
Re: ADF Table Multiple row selection by Managed Bean
but that is related to Select All rows or Deselect all rows from table.
From the simillar post i follow the steps given by Frank.but problem with below step
->have an af:clientAttribute assigned to the checkbox with the following EL #{row.key} ,here I added <af:clientAttribute name="#{row.key}"></af:clientAttribute> and i am getting error
Error(64,37): Static attribute must be a String literal, its illegal to specify an expression.
Please let me know if any one had already implemented same test case.
Thanks for all help
Jaydeep
Edited by: JaydeepJ on Aug 7, 2009 4:42 AMjust to update after the rollback is called in the cancel button i wrote following code which does not change the row focus to the first row
DCBindingContainer bc =
(DCBindingContainer)BindingUtils.getBindingContext().getCurrentBindingsEntry();
DCIteratorBinding profItr =
bc.findIteratorBinding("ProfileSearchInstIterator");
Row cRow = profItr.getRowAtRangeIndex(0);
if(cRow != null){
System.out.println("Current row is not null so fixed ");
profItr.setCurrentRowIndexInRange(0);
RowKeySetImpl rks = new RowKeySetImpl();
ArrayList keyList = new ArrayList();
keyList.add(cRow.getKey());
rks.add(keyList);
profileTable.setSelectedRowKeys(rks);
AdfFacesContext.getCurrentInstance().addPartialTarget(profileTable);
} -
Table with a column with RANK formula does not sort properly
Hello,
I have a table in excel with Rank function that reference another column with numerical values. The results in the column (called Rank) with rank function are as expected but Sorting (ascending or descending) doesn't
work as expected on the column . The Rank gets sorted in the following order: 1,15, 2,19, 8 , 4......
Few things that I've verified are:
1. Verified that there are no text values in the column.
2. Tried changing the format to number but this still doesn't resolve the sort issue.
3. Copied the values from the Rank column to a different sheet and applying sort works as expected.
Does anyone have any idea on what could be wrong? Appreciate your help!
Thanks!Resolved the issue. I had an incorrect formula in one of the that was referenced by the Rank column.
-
How to give relationship between two tables with comon column with between oprator
Hi Folks,
I am using Sql Server 2008R2. I am getting a problem to establish relationship between two tables.
I have two Tables, 1.Inventory Details Table another one is Inventory Header Table.
Inventory Details Table having a column Card No and inventory Header Table having columns From card No and To Card No.
I want to give relationship between these two tables with Card no. Could you please provide me the Sql Query.
Your help would be greatly appreciated .
Regards
hasthi.
email:[email protected]Hi Raju,
We have two way that we can relate to the table either join or quality condition use following syntax/Query for relating two tables
select * from Inventory_Details ID inner join Inventory_Header IH on ID.CardNo between IH.FrmCardno and IH.ToCardNo
or
Select * from Inventory_Details ID ,Inventory_Header IH where ID.CardNo=IH.CardNo OrSelect * from Inventory_Details ID ,Inventory_Header IH where ID.CardNo between IH.FrmCardno and IH.ToCardNo
Hope this will help you
Niraj Sevalkar -
ALV printed in batch with fixed columns
Hi,
I am trying to print an ALV List report in a batch job. Fixed column widths and a filter on the layout was a requirement, so I have a layout variant as part of the initial selection screen and my batch variant.
When I print online, it looks great. When I print through batch, the font is much bigger and the rows wrap. Is there a way to print using a layout variant for ALV list in batch?
Thanks!Hi,
When you execute an ALV List through a Job, the Output Settings are determined by the Printer settings that are set for the Output device that you have selected while creating the backgorund job. so i suggest you will have to look at those settings and make the changes occordingly or change the output device that you select.
regards,
Mahesh -
PDF Export with fixed column widths ignores page break on Analysis item
Hi experts,
we use the column width modification to define fixed column width in a analysis item. On the same Web template we want to export the whole template including the analysis item to PDF format. First of all everything worked properly, but the fixed widths have not been applied to the PDF. According to [SAP Support Note 1336188|https://service.sap.com/sap/support/notes/1336188] and additional explainations from [SDN Thread 1558536|Column Width Modification not working in Print Version; we solved the problem.
Unfortunately another problem arises. Our Analysis item delivers a big number of rows which extent multiple pages. By applying the export fix width parameter all page breaks are ignored, meaning that the analysis item is never shown completely in the PDF. We tried all parameter options of the Export Function without success. It seems that the EXPORT_FIX_WIDTH is just working for analysis items, which fit on one single page by length.
Any ideas how to solve this?
FYI, our XHTML code (Version SAP BW 7.0 SP 19):
<bi:ANALYSIS_ITEM name="ANALYSIS_ITEM_1">
<bi:DATA_PROVIDER_REF value="DP_1" />
<bi:MODIFICATION type="CHOICE" value="MOD_SINGLE_MODULE" >
<bi:MOD_SINGLE_MODULE type="COMPOSITE" index="1" >
<bi:ACTIVE value="X" />
<bi:MOD_SELECT type="CHOICE" value="MOD_GENERIC_MODULE" >
<bi:MOD_GENERIC_MODULE type="COMPOSITE" >
<bi:MOD_REFERENCE value="com.sap.ip.bi.rig.ColumnWidth" />
<bi:MOD_PARAMETER_LIST type="ORDEREDLIST" >
<bi:MOD_PARAMETER type="COMPOSITE" index="1" >
<bi:MOD_PARAM_NAME value="COLUMN_DEFAULT" />
<bi:MOD_PARAM_VALUE type="CHOICE" value="INTEGER" >
<bi:INTEGER value="50" />
</bi:MOD_PARAM_VALUE>
</bi:MOD_PARAMETER>
<bi:MOD_PARAMETER type="COMPOSITE" index="2" >
<bi:MOD_PARAM_NAME value="EXPORT_FIX_WIDTH" />
<bi:MOD_PARAM_VALUE type="CHOICE" value="BOOLEAN" >
<bi:BOOLEAN value="X" />
</bi:MOD_PARAM_VALUE>
</bi:MOD_PARAMETER>
</bi:MOD_PARAMETER_LIST>
</bi:MOD_GENERIC_MODULE>
</bi:MOD_SELECT>
</bi:MOD_SINGLE_MODULE>
</bi:MODIFICATION>
</bi:ANALYSIS_ITEM>
Any help and comments will be appreciated. Thank you!
Best regards,
SebastianThank you!
Unfortunately I didn't find any work around.
Thanks,
Federico -
I am working with Report Builder 3.0 I am using a matrix to produce grouped data on separate worksheets in excel.
The select is:
SELECT ID, Measurement, Value, [Date] FROM Measurements_Report. (please ignore the underscores they are just for formatting)
The contents of the Measurements_Report table:
ID__Measurement__Value__[Date]
1___Hot_________33_____10/1/2014
2___Hot_________44_____10/2/2014
3___Cold_________55_____10/2/2014
The matrix contains a single row group based on the field "measurement". The Measurement group has the page break option of "Between each instance of a group" selected.
There is a column group based on the field "Date".
When this is matrix is exported to excel on the first worksheet (Hot) there are three columns as shown below:
ID__10/1/2014____10/2/2014___10/2/1014
1___33
2_______________44
Notice the last column doesn't have a value.
On the second worksheet (Cold) there are also three columns as shown below:
ID__10/1/2014___10/2/2014___10/2/1014
3__________________________55
This time notice there is only one row and only a value in the last column.
I only want the columns with data for that worksheet to show up. How can I remove these empty/duplicate columns? Hopefully there is a simple fix. Thanks ahead of time.With the following contents of the Measurements_Report table:
ID__Measurement__Value__[Date]
1___Hot_________33______10/1/2014
2___Hot_________43______10/1/2014
2___Hot_________44______10/2/2014
3___Cold________55______10/2/2014
Returns on the first tab (Hot):
ID__10/1/2014____10/1/2014____10/2/2014
1___33
2_________________43
2______________________________44
In the excel worksheet it contains a separate column for each date with a value. Thanks again!
Why is the same date repeating on multiple columns? Do you've the time part also returned from database?
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
A data table in one column of a dynamic data table
Hi , I have to design a dynamic data table(with dynamic columns and data) which looks as the following
DETAILS NAME ROLE NUMBER CLASS SECTION
15 MATHS SURESH 15 10 A
20 SCIENCE
25 ENGLISH
15 MATHS SURESH 15 10 A
20 SCIENCE
25 ENGLISH
The data in the column 'DETAILS' should have inner table. The data in this inner table should have hyper links. If there is no inner table infor mation there shold be an image with hyperlink. This data table should also have pagination and sorting features. Please send me some example code for this. Please help me out as i have client demo on mondayYou may find this example useful: [http://balusc.blogspot.com/2006/06/using-datatables.html#NestingDatatables].
To toggle between a nested datatable and a hyperlink with image just use the rendered attribute. E.g.
<h:column>
<h:dataTable rendered="#{!empty dataItem.innerList}">
</h:dataTable>
<h:commandLink rendered="#{empty dataItem.innerList}">
</h:commandLink>
</h:column>
... -
Hi all. Sorry, english is not my native language. I´ve made an .indd: each page has two columns with different threads (is a bilingual text). When I export this .indd to .epub only appears one column from a thread following the next thread. What can i do to fix this? My indesign is CS6
Thank youThere are fixed format EPUB files as can be used for children's books, etc. where there are a lot of illustrations. However, those are very work-intensive to produce. I've never worked on one.
Anne-Marie Concepcion did a Lynda.com video on producing one.
Rorohiko produces a product called ePubCrawler which can help in produced fixed format EPUB files:
Fixed Layout EPUB Assistant In InDesign: ePubCrawler | Rorohiko ... -
Check which table has no column with specific name over number of tables
Hello,
Withing my schema I have 66 tables, all of them have column last_update_date. Though not all have the column program_update_date. The problem is I want to go through all the tables and know which tables does not have the program_update_date column. It is to be noted that if the table does not have the program_update_date column query 2 will be used instead of query 1.
query1:
select last_extract_date,
to_char(min(greatest(nvl(*last_update_date*,'01-Jan-10'),nvl(*program_update_date*,'01-Jan-10'))),'DD-MON-YY HH24:MI:SS') mi,
to_char(max(greatest(nvl(*last_update_date*,'01-Jan-10'),nvl(*program_update_date*,'01-Jan-10'))),'DD-MON-YY HH24:MI:SS') ma
from table_names
group by last_extract_date
order by last_extract_date desc;
query2:
select last_extract_date,
to_char(min(nvl(last_update_date,'01-Jan-10')),'DD-MON-YY HH24:MI:SS') mi,
to_char(max(nvl(last_update_date,'01-Jan-10')),'DD-MON-YY HH24:MI:SS') ma
from mispa_events
group by last_extract_date
order by last_extract_date desc ;
Please find the PLSQL code that should be used:
Declare
cursor C_1 is
select unique table_name from user_tables; table_names varchar2(240); Begin Open C_1; Loop Fetch C_1 into table_names; EXIT WHEN C_1%NOTFOUND;
EXECUTE IMMEDIATE('select last_extract_date,
to_char(min(greatest(nvl(last_update_date,''01-Jan-10''),nvl(program_update_date,''01-Jan-10''))),''DD-MON-YY HH24:MI:SS'') mi,
to_char(max(greatest(nvl(last_update_date,''01-Jan-10''),nvl(program_update_date,''01-Jan-10''))),''DD-MON-YY HH24:MI:SS'') ma
from ' || table_names ||'
group by last_extract_date
order by last_extract_date desc');
End Loop;
Close C_1;
COMMIT;
End;
Please help.
Thanks in advance.
Edited by: P.Sam on Jun 14, 2010 5:00 PMwhy not use user_tab_columns
SQL> desc user_tab_columns
Name Null? Type
TABLE_NAME NOT NULL VARCHAR2(30)
COLUMN_NAME NOT NULL VARCHAR2(30)
DATA_TYPE VARCHAR2(106)
DATA_TYPE_MOD VARCHAR2(3)
DATA_TYPE_OWNER VARCHAR2(30)
DATA_LENGTH NOT NULL NUMBER
DATA_PRECISION NUMBER
DATA_SCALE NUMBER
NULLABLE VARCHAR2(1)
COLUMN_ID NUMBER
DEFAULT_LENGTH NUMBER
DATA_DEFAULT LONG
NUM_DISTINCT NUMBER
LOW_VALUE RAW(32)
HIGH_VALUE RAW(32)
DENSITY NUMBER
NUM_NULLS NUMBER
NUM_BUCKETS NUMBER
LAST_ANALYZED DATE
SAMPLE_SIZE NUMBER
CHARACTER_SET_NAME VARCHAR2(44)
CHAR_COL_DECL_LENGTH NUMBER
GLOBAL_STATS VARCHAR2(3)
USER_STATS VARCHAR2(3)
AVG_COL_LEN NUMBER
CHAR_LENGTH NUMBER
CHAR_USED VARCHAR2(1)
V80_FMT_IMAGE VARCHAR2(3)
DATA_UPGRADED VARCHAR2(3)
HISTOGRAM VARCHAR2(15)
Maybe you are looking for
-
Firefox crashes - will not start at all
If I try and start Firefox all I get is the Mozilla Crash Reporter, if I try and restart Fireofox from the Crash Reporter screen all I get presented with is the Mozila Crash Reporter again. If I try and submit a crash report the Crash Reporter states
-
I think when i was charging my iphone and syncing iphoto, itunes synced. i never check the box that says "synce itunes when iphone connected' but this box somehow was checked. now i have double music, taking up a lot of space. Having to manually re
-
ITunes 8 - my entire library has disappeared!
I admit I am not very tech savvy, but I have successfully upgraded my iTunes in the past. However, when I downloaded iTunes 8, all of my music and podcasts and everything disappeared. My iTunes is empty. I found my iTunes Folder in my owner folder, b
-
Hi Adobe. I'd like to change my display name but it seems to be locked out in the options. I see this as a privacy issue. If you cannot change the screen name could you please completely remove my forum account please? n
-
Anybody have a recommendation on a third party disk utility, performance enhancing software?