Shading in Smartform Table Header
Hi Experts,
In my smartform I need to provide a gray shading in Header and in few partivular fields in Footer, like, Total.
Whenever I am trying to select any Text field in the Headerline and in the output option trying to increase the saturation percentage it is showing "Boxes/Shadings are not allowed within a table".
Please let me know in details how to achieve this.
Thanks.
Anirban.
Hai,
In that case you create one more linetype same as what you have now (Eg. Ltype1 and Ltype2 with same columns). Use Ltype1 for Header and Ltype2 for Main area. Now Double click on Table and select "Table" tab. Select all the columns in the Ltype1 with selecting "Draw Lines and Columns" tool from toolbar and give the shading color then activate it. It will work for sure. If you have any queries revert back.
-Prabu S
Similar Messages
-
How to display smartforms table lines useing different background colour
Hi all:
How to display smartforms table lines useing different background colour .
for example:
line1:green
line2:red
line3:green
line4:red
line5:green
line6:red
line7:green
line8:red
Any help is highly appreciated!!
启明星Hi,
Create a two lines one for header and second for data in the table.
1)In table painter we can find the pencil mark.
2)select the pencil mark
3)now select the line which you need to shade
4) now select the shading colour in the table painter and the provide the resolution up to 100% and select table pattrn for that line.
5) Now you can use this for the header now only the header gets shaded and the remaining gets unshaded.
reward points if useful
Thanks and Regards,
Nishant -
Dynamic color in cell of an SmartForm Table
Hi Experts,
How can i assign a color for a text in a cell (shading) in a smartform table?? Color depends of the data in smartform.
ThanxI don't think we can do it dynamically.
So, may be you have to create as many texts as you have colors conditions and assign relevent condition to each text.
Regards,
Naimesh Patel -
Smartforms- TABLE -Lines,rgrding passing Quan&DATS fields to smartforms
Hi All ..
Iam working on Tables in smartform ,
These are queries to which i need solution ..
1) In (Window) Table- Heading i have created 3 LINES in which my data had to display...( i have a line in that TEXT is used to display a particular fields of the Itab ) . as i came to know that in my Zprog iam gettting my data in the fields but wen in smartform these fields values are not displayed ( when these fields are placed in LINE ) but wen these fields are placed outof LINE that is outof table then iamgetting value for these fields.. so please let me know wat are the changes that ishould do to get my data in my table ( LINE )
2) How to pass DATS and QUAN fields to the smartforms..
as iam getting data to DATS and Quan Fields in my Zprog but these values are not showed in my smartForm .. ..
Thanks in Advance..
Looking for a good reply ..
Aslam..Hi,
you have created 3 linetypes for table .
you have create loop for multiple records display.
in loop you have to pass table from which you are displaying inti output.
To internal table we get data from print program and create text for corresponding cells.
then it will pass those data to table.
2) create programlines for that.
in that mention table from which table is containing quantity.
that is import parameter specified .
export parameters are your output fields using for calculation.
AMOUNT = TAB3-NETWR.
Netamount = Netamount + TAB3-NETWR.
here input is tab3 table it contains quantity data.
lamount,netamount are output parameters.
like that you can display quantity.
or in global definitions currency/quantity fields tab is available you can pass there also.
for dat fields write logic for conversion of date and pass that variabl in form output. -
Table header not visible on all pages
I have created a table, which have the following subforms.
MaterialBody ( Type -Flow Content & Flow direction - Table )
- Header ( Type - Flow Content & Flow direction - Table row )
- Data ( Type - Flow Content & Flow direction - Table row )
Also Checked the check BOX , Include Header Row in Initial Page
In the output of my form i see all the records in table format, but my header is not visible on all the pages.
The header is visible only on the firs and second page.
Can anyone suggest, why the header is not visible on every page.Hi Ayesha,
can you please show us the screenshot of your elements you have declared under smartforms.
Please check this too, for your header data you have checked or not. -
Hi,
Is it possible to wrap the text of a table heading? I have found this question in many places always with a negative answer. Althought they are old posts and in main thread of this forum [POLL: Web Dynpro UI elements - enhancement proposals; in the first response Armin says that header text wrapping is now supported. Anyone knows how? I am working with NW7.0
Thanks,
Gabriel.Hi Gabriel,
The header text wrapping is now supported in the SAP CE 7.1 and SAP NW 7.0 EHP 1.
This a table column property.
For documentation on NW 7.0 EHP 1 please refer the following link:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/c4/219041d3c72e7be10000000a1550b0/frameset.htm
Regards,
Kartikaye -
I am working no one SSRS my table headers are freeze cangrow property is false and my report is working perfect while rendering data on RDL and i want same report after exporting in Excel also , i want my table header to be freeze and wrap text property
to work after exporting in my report in excel but its not working ,is there any solution ? any patch ? any other XML code for different rendering ?Hi Amol,
According to your description, you find the wrap text property and fix column is not working after exporting into Excel. Right?
In Reporting Services, when exporting to excel file, it has limitation for textbox.
Text boxes are rendered within one Excel cell. Font size, font face, decoration, and font style are the only formatting that is supported on individual text within an Excel cell.
Excel adds a default padding of approximately 3.75 points to the left and right sides of cells. If a text box’s padding settings are less than 3.75 points and is just barely wide enough to accommodate the text, the text may wrap in Excel.
In this scenario, it supposed to be wrap text unless you merge cells. If cells are merged, word-wrap does not work correctly. If any merged cells exist on a row where a text box is rendered with the
AutoSize property, autosize will not work. For the Fix Data Property, it can't be working in Excel. These are features when exporting to Excel. We can't change it because it's by design.
Reference:
Exporting to Microsoft Excel (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
How to hide the table header if no data present
Hi
I need to hide the table header if no data present. Table has 5 column. if no any clolumn has data then this table section should not be display.
i am using <?if:count(Installation_Event_S19)= 0?> but this is not work for me.
Could you please help me out.
Thanks
Indrajeet KumarHi Priya,
Thank you very much !!! its work fine.
Thanks
Indrajeet Kumar -
How to add the Row count(number of rows in table) in the table header?
Hi,
I'm having a table. This table is viewed when i click on a search button.
<b>On the table header it should dynamically display the number of rows in the table, i.e., the row count.</b>
How to do this? could any one explain me with the detailed procedure to achieve this.
Thanks & Regards,
SureshIf you want to show a localized text in the table header, you should use the <b>Message Pool</b> to create a (parameterized) message "tableHeaderText" like "There are table entries".
Next, create a context attribute "tableHeaderText" of type "string" and bind the "text" property of the table header Caption UI element to this attribute.
Whenever the table data has changed (e.g. at the end of the supply function for the table's data source node), update the header text:
int numRows = wdContext.node<TableDataSourceNode>().size();
String text = wdComponentAPI.getTextAccessor().getText
IMessage<ComponentName>.TABLE_HEADER_TEXT,
new Object[] { String.valueOf(numRows) }
wdContext.currentContextElement().setTableHeaderText(text);
Maybe you want to provide a separate message for the case that there are no entries.
Alternatively, you can make the attribute calculated and return the header text in the attribute getter.
Armin -
Insert a new Dropdown UI-Element in a Table header
Hello,
i need to insert a Dropdown UI-element in a Table header, i was looking in the forum and the Web, BUT i didnt find anythinf that can help.
please schow me how can I insert a DropDown UI-Element in the Header.
thank you allHello,
You can normally create a table. Insert a table column and for the table column you need to give Dorpdown by Key / index as a cell editor.
Thanks,
Raju Bonagiri -
Table Header in freezed pane when exporting SSRS report to Excel
Hi,
I want table Header in freezed pane when exporting SSRS report to Excel.
Can I have the table header of tablix be present in freezed pane of excel.
Thanks,
Vivek SinghHi Vivek,
Please refer the following thread.
may be u get the answer.
How to freeze header pane in SSRS
Regards
msbilearning -
How can I right-align a table header?
Does anyone know a way to right-align a table header?
For example, in the table below I want the word 'Price' to be right-aligned. I could set the table's 'header renderer' to be a right-aligned DefaultTableCellRenderer, but then the header would look like a cell, not a header. Why can't swing be simple, like table.getColumn(1).setAlignment(Column.RIGHT) ????
public class TestTableHeader {
public static void main(String[] args) throws Exception {
JFrame frame = new JFrame("Test");
Object[][] rowData = new Object[][] { { "General Electric", "$100.60" },
{ "IBM", "$5.20" }, { "Wal-mart", "$17.00" } };
JTable table = new JTable(rowData, new Object[] { "Name", "Price" });
DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
renderer.setHorizontalAlignment(DefaultTableCellRenderer.RIGHT);
table.getColumnModel().getColumn(1).setCellRenderer(renderer);
frame.getContentPane().add(new JScrollPane(table));
frame.setSize(400, 300);
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.setVisible(true);
}I modified your code an came up with a solution to the problem.
import java.awt.Component;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;
public class TestTableHeader {
public static void main(String[] args) throws Exception {
JFrame frame = new JFrame("Test");
Object[][] rowData = new Object[][] {
{ "General Electric", "$100.60" }, { "IBM", "$5.20" },
{ "Wal-mart", "$17.00" } };
JTable table = new JTable(rowData, new Object[] { "Name", "Price" });
RightAlignRender right = new TestTableHeader().new RightAlignRender();
table.getColumnModel().getColumn(0).setHeaderRenderer(right);
table.getColumnModel().getColumn(1).setHeaderRenderer(right);
frame.getContentPane().add(new JScrollPane(table));
frame.setSize(400, 300);
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.setVisible(true);
public class RightAlignRender extends DefaultTableCellRenderer {
public Component getTableCellRendererComponent(JTable table,
Object arg1, boolean arg2, boolean arg3, int arg4, int column) {
Component toReturn = table.getTableHeader().getDefaultRenderer().getTableCellRendererComponent(table,
arg1, arg2, arg3, arg4, column);
switch (column) {
case 0:
((JLabel) toReturn).setHorizontalAlignment(DefaultTableCellRenderer.CENTER);
break;
case 1:
((JLabel) toReturn).setHorizontalAlignment(DefaultTableCellRenderer.RIGHT);
break;
return toReturn;
} -
Table Header not getting repeated in subsequent pages
Hi,
I have a table and i want to table header to be repeated in subsequent pages but only till 2nd page the table header is repeated from the 3rd page onwards the table header is not repeated.
I have selected the Header Row in hierarchy and in Pagination tab for the header row i have checked the the check box Insert Header Row in Subsequent Pages.
After selecting the checkbox also table header is repeated only in 2 pages and not repeated after the second page.
My table hierarchy in form is :
TableSubform
---Table
HeaderRow
Row1
I am using Designer 8.0 and Acrobat Reader 8.1.2
Can you please help me in solving this issue.
Regards,
Bala Baskaran.sHi All,
I have selected the the check box Insert Header Row in Subsequent Pages then also the header is not getting flowed in subsequent pages only till 2nd page its getting flowed.
I have used table wizard to create table and i have made the table subform as flowed then also table header is not repeating in subsequent pages.
MainForm (Flowed)
TableSubform1(Flowed)
Table1
HeaderRow
Row1
TableSubform2(Flowed)
Table2
HeaderRow
Row1
I selected TableSubform1 and in Pagination tab OverFlow Leader dropdown i selected HeaderRow, the same i did for TableSubform2 also but the table header is not getting repeated in subsequent pages.
Please help me in solving this problem.
Regards,
Bala Baskaran.S -
Button not working in a table header
I have a custom view that implements table header. I have buttons in that view. The buttons used to work fine in SDK prior to 5. I moved directly to SDK 7, and the buttons stopped working. The action is not called anymore.
Any help will be appreciated.
ThanksWell, you have me stumped. I just replicated your code and it works fine for me:
- (void)doStuff:(id)sender
NSLog(@"Logo Touched!");
- (void)viewDidLoad {
// loadingView is a UIView that becomes the tableHeaderView
self.tableView.tableHeaderView = loadingView;
[loadingActivity startAnimating];
// setup a sample button (declared in header)
logoButton = [[UIButton alloc] initWithFrame:CGRectZero];
[logoButton setImage:[UIImage imageNamed:@"logo_webclip.png"] forState:UIControlStateNormal];
[logoButton addTarget:self action:@selector(doStuff:) forControlEvents:UIControlEventTouchUpInside];
logoButton.tag = 100;
[loadingView addSubview:logoButton];
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
logoButton.frame = CGRectMake(50., 50., 64., 64.);
That calls my target everytime it's touched... are you remembering to call the superclass for each of your overrided methods in your custom UIView? The only difference between my quick test and yours is that I didn't subclass UIView -- I just used the UIView class directly. -
Vertical text in table heading
Hi,
I would like to save some space in some reports and I would like to change orientation of text in table heading.
Is it posible to have vertical text in table heading?
What I want is showed on this picture: [Vertical text|¨http://img179.imageshack.us/img179/234/obiverticaltext.jpg]
Thank you for some tips.Hi,
Go through this...will help you solve your requirement....http://blog.trivadis.com/blogs/andreasnobbmann/archive/2009/07/17/vertical-text-in-obiee.aspx
Use the same code Writing-mode: tb-rl; filter: flipv fliph; in custom css style of column heading.(column properties->column format->edit format icon beside column heading->css style)
Regards,
Srikanth
Maybe you are looking for
-
Loss of sound to speakers/ headphones after Windows Pro 8 upgrade
Product Name = Satellite U205-S5034 I upgraded my laptop from XP media SP3 to Windows 8 Pro and chose the option of keeping only personal files. After the installation the laptop was running well and there didnt seem to be any problems so I deleted
-
Problems with 10.5.6 & DVDSP
I'm reading a lot of complaints about the compatibility between the two, but I've yet to see a definitive verdict on the issue, or a solution. Personally, I am running DVDSP4 & OS 10.5.6 and have been having lots of problems recently. I was going to
-
At the time of go-live, how to adjust the stock in the bins which match- -
Hello, Materials are already distributed in to the bins physically where SAP WH mgt not implemented. When we implement the SAP/(at the time of go-live),we have following issues When we go live, then how to adjust the stock in the system as per actual
-
Cannot get external procedural call in Oracle RAC Environment
Cannot get external procedure call to work in our test RAC env. We are able to get it to work in our DEV env which is a single instance LISTENER.ORA: NODE1: # listener.ora Network Configuration File: /opt/oracle/app/oracle/product/10.2.0/db_1/network
-
I can't connect to the I Tunes Store. I receive the error message:"We could not complete your ITunes Store request. An unknown error occured (-2096). There was an error in the ITunes Store. Please try again later." I get this message for days. I have