Table Header Reference as variable
Good Day,
I have a simple table that is a summary of multiple tables. The data comes in with a function SheetName::Table 1:: ColunnReference RowReference
I would like to adjust the ColumnReference with a variable from a Pop-Up Menu box. Is this possible? I've been struggling to find the correct syntax if it is possible.
For example I would have a Pop-Up Menu that has values 1-9, and it would replace the ColumnReference with the selected value of the Pop-Up Menu, and then alter all the pricing values in the table.
Quantity
Price A
PriceB
0-9
$1
$1.25
10-19
$0.75
$.95
Anyway I would appreciate any insight.
Regards,
Ryan
Message was edited by: ryankivi
Ryan,
That problem can be solved with the INDIRECT function. INDIRECT converts a string to an address. You can build a string that includes the content of cell A1.
Here's an example using your location:
=INDIRECT("SheetName::Table 1:: "&A1&"RowReference"
Jerry
Similar Messages
-
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 keep a table "header" stuck at top of each page
Okay. This will probably be impossible to explain, but here goes.
I have a document template that consists of a table (4 columns and variable number of rows depending on the content).
I would like the columns to have their "headers" (meaning here the first row) appear on each page. So, as the first page gets filled up, when page 2 appears, the headers are duplicated from page one (so that the contents of the columns are evident on each page).
Hope that makes sense. Can this be done with pages? (I can't use the regular page header for this since it's got different info that needs to be there.
Thanks.I was just fooling around with a table trying to solve a different problem when I came up with a different solution to your question (assuming I understood what you wanted).
In the Wrap Inspector choose Moves with Text and your table will continue to successive pages. (If you want to center the table, or position it anywhere other than all the way left, click on the table and grab the little triangle in the Ruler and drag it to the right to move the table.)
If you don't already have the "Header Row" box checked, do so now. (In the Table Inspector.) Any text in the Header cells will repeat on each page just like a regular page header.
If you don't want the default gray, highlight the Header and go to the Object Inspector and in the Fill menu select None or any color you like. You can even select each header cell separately and make each one a different color.
Happy Paging,
Walt -
Table header not repeat in some page [Reporting Service]
I make report using reporting services in VS 2010 and SQL Server 2012.
My report have table and I want to repeat table header in each page then I set repeat in advance mode at row group I set Header Row (static) below :
KeepWithGroup : After
RepeatOnNewPage : True
But in Some page Header not repeat anyone can help me to solve this problem
Thank you.Hi Chanon,
Based on my understanding, tablix header doesn’t repeat on some pages.
In Reporting Service, when setting RepeatOnNewPage as True and KeepWithGroup as After, a static tablix member(row or column) will display on multiple pages. In your scenario, please make sure you choose the first static member in Row Groups pane, then set
these two properties. As we tested in our environment, when setting these two tablix members as proper value, the tablix header repeats on multiple pages. Please refer to the screenshots below:
Reference:
Repeat Table Header on Each Page in SSRS
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu -
Hi, I have a requirement to add "Continued ... " to the table header.
I have the table header flowing to multiple pages using the MS-Word option to do so, but i am not sure how to add the " Continued... " to it.
I found a lot of forums discussing on how to add it to the table footer
( http://blogs.oracle.com/xmlpublisher/entry/continued ) but i am not able to get it to work for header.
Can someone please help me with this?By the way, I tried a higher level approach, creating a global variable in
the report Initialize() event then trying to modify it in the Table's
OnPageBreak event, but it doesn't seem to work.
It is also possible (from my reading of the scripting model document) that
the OnPageBreak event does not fire when running the report using "View as
PDF" - can anyone confirm or deny that?
Richard -
Hi,
I want to know how to put some value on a table header dynamically.
Regards
HawkerWhen the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
Hope that helps
Paul -
Error:Invalid reference to variable 'PARTS1.PNUM%TYPE' - how to resolve
error:
ERROR at line 29:
ORA-06550: line 29, column 39:
PLS-00487: Invalid reference to variable 'PARTS1.PNUM%TYPE'
ORA-06550: line 29, column 4:
PL/SQL: SQL Statement ignored
DECLARE
cursor c1 is select pnum from parts1;
TYPE NumTab IS TABLE OF parts1.pnum%TYPE INDEX BY PLS_INTEGER;
TYPE NumTab1 IS TABLE OF parts1.pnum%TYPE INDEX BY PLS_INTEGER;
--TYPE NameTab IS TABLE OF parts1.pname%TYPE INDEX BY PLS_INTEGER;
pnums NumTab;
pnums1 NumTab1;
-- pnames NameTab;
--iterations CONSTANT PLS_INTEGER := 500;
t1 INTEGER;
t2 INTEGER;
t3 INTEGER;
l_num_index integer := 0;
BEGIN
FOR j IN 1..50000 LOOP -- load index-by tables
insert into parts1 values(j);
END LOOP;
commit;
t1 := DBMS_UTILITY.get_time;
/* FOR i IN 1..iterations LOOP -- use FOR loop
INSERT INTO parts1 VALUES (pnums(i));
END LOOP;
select pnum bulk collect into pnums from parts1;
t2 := DBMS_UTILITY.get_time;
open c1;
loop
l_num_index := l_num_index + 1;
fetch c1 into pnums1(l_num_index).pnum;
EXIT WHEN c1%notfound;
end loop;
close c1;
t3 := DBMS_UTILITY.get_time;
DBMS_OUTPUT.PUT_LINE('Execution Time (secs)');
DBMS_OUTPUT.PUT_LINE('---------------------');
DBMS_OUTPUT.PUT_LINE('FOR loop: ' || TO_CHAR((t2 - t1)/100));
DBMS_OUTPUT.PUT_LINE('FORALL: ' || TO_CHAR((t3 - t2)/100));
COMMIT;
END;
thanks,
vinodhThe line number in the error message is nearly always a good clue.
fetch c1 into pnums1(l_num_index).pnum;should be
fetch c1 into pnums1(l_num_index); -
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 -
Currency Translation not working with "Time Reference from Variable"
We have created several Currency Translations using RSCUR with a fixed "Key Date". All have been working fine until we got the request to allow a variable date for the exchange rate date. I have built a variable on 0DATE which I am putting a default date value into using user exit. This default date is the SAME date as the fixed "Key Date" which we have been using. Unfortunately when we use the "Time Reference from Variable" option and use this new variable, no currency conversion is taking place, instead it only shows the original currency values. I am 100% sure that my variable is getting a value and it is the same date we are using for the fixed "Key Date" value so both methods should be using the exact same exchange rates. The documentation that I can find states:
● Time reference: The time reference for the currency translation can be either fixed or variable.
If the time reference is fixed, the time at which the exchange rate is determined is independent of the data. You have the following options:
○ You can establish that the time reference be determined upon translation.
○ You can select the current date.
○ You can specify a fixed date as the key date.
○ You can specify any variable that exists for InfoObject 0DATE.
○ You can establish that the query key date be used. This is determined in the query settings.
In my case I am only switching from option "You can specify a fixed date as the key date"=(Key Date) to "You can specify any variable that exists for InfoObject 0DATE"=(Time Reference from Variable).
What am I missing? Any help is appreciated.I neglected to mention that we are calling this currency translation through a WAD button using the SET_CURRENCY_TRANSLATION command. I did do a test by applying the currency conversion within query key figure. This seems to work. So it appears the issue is with how the WAD is processing the variable, not the query. When I display the variable in a drop down item within the WAD it does have the default value that I have assigned in user exit.
-
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 -
Problem creating Allocation Table with Reference to a PO
Dear Folks,
I am having problems creating an allocation table with reference to a PO in T-code WA01.
I read the SAP help that some prerequisites need to exist:
==> You can only reference order items flagged as being relevant to a stock split (the Allocation table relevant indicator in the additional item data).
Can anyone advice me where to find this stock split indicator?
Also, can anyone advice me how to reuse an allocation table? For example, I had previously created an allocation table with many articles and various allocation rules. I already generated follow on documents for this table.
Say after 2 weeks, I have the similar requirements that I can make use of the same table, only with minor adjustments to the quantity. How do I create a new allocation table using the existing allocation table data?
Thanks and Regards
JunwenAny idea please?
thanks -
How to store internal table value in single variable
hi gurus,
i have 3 value in int table , so want to store the value of int table into single variable of type string.
how it is possiblehmmm, your requirement is kinda weird and you could have given us a bit more info, but well lets start.
Why is your requirement weird?
Well an internal table kinda is a variable itself, or rather a set of variables which together make up for a line type of your table.
So you have a value you already have in a variable and now want to store it in anotherone? Seems weird.
What type is your internal table?
Do you have those three values in one record or in three records which only hold one value each?
Which of your values do you want to store in another variable?
Anyway, make a F1 on the "READ TABLE" statement, this should definiteley help you.
The "LOOP AT WHERE" statement could as well help if there should occur probrlem using READ TABLE.
/edit DAMn i was posting this while you gave us more info.
So still the question stays if you got your three values in one record or in three records.
DATA: lv_variabl_containing_all type char100.
loop at itab into wa.
concatenate lv_variabl_containing_all wa-value into lv_variabl_containing_all seperated by space.
endloop.
after the loop you now got all your values in lv_variabl_containing_all.
That is for the case you got three records.
other case would be
Read table itab into wa index 1.
concatenate wa-value1 wa-value2 wa-value3 into lv_variabl_containing_all.
Edited by: Florian Kemmer on Apr 16, 2010 12:59 PM
Maybe you are looking for
-
How to trigger a button without having to click it
In the view i have defined a button, and if a condition is met, i want that button to be triggered/clicked automatically so the processing continues as if someone had clicked the button. <phtmlb:matrixCell row = "2" col = "1" /
-
Upgrading from BW 3.5 to BI7.0
Hi all, What is the work involved in a upgrade process?Lets suppose we are upgrading from BW 3.5 to BI 7.0. Thanks in Advance, Aravind
-
hello i have a problem and i need your help to solve it last week i was working normally on my laptop toshiba l305 s919 and the battery was empty than the laptop turns off when i plugged the adaptor and turned on the laptop it is stucked on the first
-
Complete Language Supplementation ?
Hi, I'm currently trying to find out whether the following is possible: all users of all countries should work with an english setup of the SAP system, but should create, modify and display documents in local language * Coming from that objective - i
-
Hi Manager is configured as external employee, when the manager tried to approve leave request over the ESS, a system error popped up. Where is configuration in ESS that is associated employee group ? I suspect it might be some configuration in ESS t