Dynamic Table Header in WebI
Hi community
I'm currently facing quite a challange with WebI:
I have (simplified) the following data structure in my Universe (which ist built upon a BEx Query):
- Customer
- Calendar Day
- Calendar Week
- Calendar Month
- Turnover
Now, the customer want's to a have cross-tab like this one:
June 2010
July 2010
August 2010
Customer 1
324'324
847'342
543'534
Customer 2
567'456
249'143
579'134
The challange is: The customer wants to select the data by a list of customers (that's easy) and one of the three time dimensions (would be easy too). BUT: Depending on the time dimension the user selects, the cross-tab's table header should change to that dimension! So, when the user enters "july 2010 - august 2010" the table's header shows the months like in my example above. When he leaves the month blank in the prompt and restricts calendar week to "03.2010 - 07.2010", the table's header should show the corresponding weeks, not months!
Has anyone an idea how to accomplish this?
Restriction: I don't want the user to have to "drag & drop" the dimensions from and into the table. The report should not be editable.
Thank you trying to help me!
phil
Capture the User selection using UserResponse() function.
Eg: Prompt on Month: Select Month == Jan2010 (User Selected)
In Table headers: write formula like this:
|=UserResponse(Select Month) | =UserResponse(Select Month)-1 | =UserResponse(Select Month)-2 etc...,
Seems you have Prompts for both Month and Week as well, follow the same.
Hope it helps you.
Thank You!
H2H
Similar Messages
-
Dynamic table header/footer on multiple pages stay original
hi experts,
i've got a form with a dynamic table. this means that i have a footerrow with mapped information if it should be visible or not. so the table can have from 1 to 40 columns.
i did some scripting in the table's initialize section:
loop over count of colums and set the headerrow, row1 and footerrow elements for index x to hidden.
everything works out fine BUT if the data spans over multiple pages the headerrow on pages 2 to last is original again. means that the hiding of cells is not effective any more. same with footerrow (but here its fine at last page and original at page 1 to last -1).
i tried to hide cells again in layout:ready section for the other instances of the headerrow.
cells got hidden, but the still visible cells didnt relocate to the left (if i hide it, there should be no space between staying cells).
can anyone please give me a hint what i am missing here?
does anyone have a simple sample for this task? its all about the header/footer for multiple pages!
thanks a lot!
daapooWhen 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 -
Create sortable dynamic table header
I have a webpage .ASP that connects to a database by system ODBC connection. How can I make my dynamic table have clickable header text to sort the column in ascending or descending order?
Dreamweaver CS3
ThanksIf you do it server-side, the page will need to reload every time you
sort. You could do it client side, with a bit of script, as we've done
on our updates page (after several suggestions to do so from a customer
who posts regularly on this forum
http://www.projectseven.com/support/updatepages/
Al Sparber - PVII
http://www.projectseven.com
The Finest Dreamweaver Menus | Galleries | Widgets
Since 1998 -
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 -
Dynamic table columns in web dynpro abap
Hi,
In my current project I have got a requirement whose solution I am not able to figure out.
My requirement is this:
I will have a table containig budget owners name(since its compensation management in HR).There will be a table popin inside this table on the click of the personal number of the budget owner. Now the table popin will have another table with all employees name under that particular budget owner.
The problem is that the table inside the popin will not be having fixed columns.Actually the columns will be coming from a standard java web dynpro application (say in the form of an internal table).
My requirement is this how can this be handled?Can we include all the possible columns in the node(which i bind to the child table) and make them visible/invisible during runtime? or create a dynamic node and assign it to the table(but in this case a node needs to be bound to the table during design time,what to bind?) ?
Can u please help along with code snippets.
Thanks and Regards,
Saikat.Thnx for the input.
I am abke to make the table columns inside the popin visible/invisible.
I have a tabstrip.Indise one of the tabs is my main table and inside one of the columns is the popin.Inside that a transparent container and finally the table inside that.
This is the code that worked for me.
METHOD wddomodifyview .
DATA lr_root_container TYPE REF TO cl_wd_uielement_container.
DATA lr_table_popin TYPE REF TO cl_wd_table_popin.
DATA lr_transparent_container TYPE REF TO cl_wd_transparent_container.
DATA lr_table TYPE REF TO cl_wd_table.
DATA lr_table_column TYPE REF TO cl_wd_table_column.
DATA lr_table_in_table_popin TYPE REF TO cl_wd_table.
DATA lr_node_header_node TYPE REF TO if_wd_context_node.
DATA lr_node_item_node TYPE REF TO if_wd_context_node.
DATA lr_tabstrip TYPE REF TO cl_wd_tabstrip.
DATA lr_tab TYPE REF TO cl_wd_tab.
data lr_tc type ref to CL_WD_TRANSPARENT_CONTAINER.
data lr_table2 type ref to cl_wd_table.
DATA lr_table2_column TYPE REF TO cl_wd_table_column.
IF first_time = abap_false.
lr_root_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
lr_tabstrip ?= lr_root_container->get_child( id = 'TABSTRIP1' ). "GETTING THE TABSTRIP
lr_tab ?= lr_tabstrip->get_tab( id = 'TAB1' ). "GETTING THE TAB INSIDE TABSTRIP
lr_table ?= lr_tab->GET_CONTENT( ). "GETTING THE CONTENT(TABLE IN THIS CASE) INSIDE TABSTRIP
lr_table_column ?= lr_table->get_grouped_column( id = 'TABLE_MAIN_PERNR' ). "GETTING THE COLUMN INSIDE THE TABLE
"Table popin
lr_table_popin ?= lr_table_column->GET_POPIN( ). "GETTING THE POPIN INSIDE THE TABLE
lr_tc ?= lr_table_popin->GET_CONTENT( ). "GETTING THE CONTENT(TRANSPARENT CONTAINER IN THIS CASE)INSIDE THE TABLE
lr_table2 ?= lr_tc->get_child( id = 'TABLE_EMPLOYEE' ). "GETTING THE EMPLOYEE TABLE INSIDE THE TRANSPARENT CONTAINER
lr_table2_column ?= lr_table2->get_grouped_column( id = 'TABLE_EMPLOYEE_PERNR' ). "GETTING THE COLUMN INSIDE THE TABLE
lr_table2_column->SET_VISIBLE( '02' ). "SETTING VISIBILITY FOR THE COLUMN
ENDIF.
ENDMETHOD.
But I'm still considering the dynamic node concept.Lets see if this works out or not.If not then I'll have to go for the dynamic node thing.
Thanks,
Saikat -
Reading Dynamic Table Values in interactive form (web Dynpro ABAP)
Hi All,
I have created a Web Dynpro ABAP application which contains an Interactive Form, That Adobe Interactive Form contains Dynamic table (New rows can be added manually and deleted using a button).
I am not able to read the Dynamic table values in Web Dynpro u201COn Submitu201D.
In the Adobe form I have web Dynpro native button (I am using ZCI), while clicking the native button I need to read the dynamic table values.
How can I resolve this problem.
Thanks and Regards,
Boopathi Mthat means, when u add the table instance at runtime, you will also have to add an element to the node that is bound to the table.
probably addNew() mathos may be useful to you.
it appends a new record to the record set.
xfa.sourceSet.dataConnectionName.addNew()
also when on the exit event of the table field, do the following:
var i = xfa.parent.index
$record.rootnodename.tablenodename.data<i>.fieldname = $.rawValue
xfa.host.messageBox($record.rootnodename.tablenodename.data<i>.fieldname) -
Hi,
I've been trying to read an XML file to build a dynamic Table in a Web Dynpro App:
It works but always displays only one record (if I change the code little bit it displays first record otherwise the last record)
I'm not sure what I'm doing wrong and have struggled enough to post it on SDN
I displayed the values from XML fine..just trying to build a dynamic Table now.
XML:
<?xml version="1.0" encoding="UTF-8"?>
<jobs>
<job>
<id>1</id>
<desc>Test</desc>
</job>
<job>
<id>2</id>
<desc>Test2</desc>
</job>
</jobs>
IWDNodeInfo nodeInfo=wdContext.getNodeInfo().addChild("XMLTable", null, true, true, true, false, false, true, null, null, null);
nodeInfo.addAttribute("ID", "com.sap.dictionary.string");
nodeInfo.addAttribute("Desc", "com.sap.dictionary.string");
IWDNode node = wdContext.wdGetAPI().getRootNode().getChildNode("XMLTable", IWDNode.LEAD_SELECTION);
IWDNodeElement nodeElem = node.createElement();
for (int s = 0; s < nodeLst.getLength(); s++)
-----condition that loops twice------
nodeElem.setAttributeValue("ID", ((Node) fstNm.item(0)).getNodeValue());
nodeElem.setAttributeValue("Desc", ((Node) lstNm.item(0)).getNodeValue());
node.addElement(nodeElem);
My table only shows one row no matter what.
Any idea?
Regards,
E.HI Explorer,
move IWDNodeElement nodeElem = node.createElement(); into for loop i.e.
IWDNodeInfo nodeInfo=wdContext.getNodeInfo().addChild("XMLTable", null, true, true, true, false, false, true, null, null, null);
nodeInfo.addAttribute("ID", "com.sap.dictionary.string");
nodeInfo.addAttribute("Desc", "com.sap.dictionary.string");
IWDNode node = wdContext.wdGetAPI().getRootNode().getChildNode("XMLTable", IWDNode.LEAD_SELECTION);
for (int s = 0; s < nodeLst.getLength(); s++)
-----condition that loops twice------
// create a new element everytime and add data into it IWDNodeElement nodeElem = node.createElement();
nodeElem.setAttributeValue("ID", ((Node) fstNm.item(0)).getNodeValue());
nodeElem.setAttributeValue("Desc", ((Node) lstNm.item(0)).getNodeValue());
node.addElement(nodeElem); -
How to create a dynamic table (repeating) with static header?
Hello
My purpose is to create a table which should be dynamically filled at runtime depending on the number of elements in the datasource($record.list). If the list is empty, the table shouldn't be displayed at all.
I created a subform which holds a table, ticking "Repeat Subform for each data item" and I set the binding of the table elements to $record.list[*].myelement. This works fine so far.
For the table header I created a second subform with a table having exactly the same size like the other table with text fields that contain the table header texts.
My problem now is that I would like to control the display of the subform which serves as table header row depending on whether $record.list is empty or not.
What's the best way to do this? How can I have access to the datasource for a form?
Thank you very much for your help!!!
Best regards
Bettina HeppHi,
Instead of creating the header row outside the table.
Create it inside the same table as header row.
So when you create a condition then automatically applicable for the header row also.
This is the best option.
Regards,
sasi -
Create dynamic table in web dynpro abap
Hi Friends,
I want to create several tables in a web dynpro. For this reason I have created a View, a group1 and a context node.
Now I want create a table for each characteristic group from cabn in the ui group1.
For this reason I want to use create_table_from_node and I have to craete dynamicly attributes in the node.
Is it the propper way or is there a different approach.
So in this case
1. I read the node
2. craete attribute for each characteristic group in this node
3. create a UI Table with create_table_from_node for each attribute
4. bind the data to the UI Table
Can I do the same without to craete attributes?
Thank in advance.
RG. JimbobHi Jimbob,
Have you looked at using the row-repeater UI element? You could then have as many tables as per your characteristic groups.
Although this would be more difficult if the attributes of each table were to also be only known at run-time. (I'm not sure that this is the case though from your description of the issue.)
so have a context of the form:
Context Root
--->node_characteristic_group (0..n)
>node_char_group_details(0...n) (non-singleton child node)
then bind your row repeater to node "node_characteristic_group " and bind the table inside the row repeater to node "node_char_group_details".
Each time you had a new element in the node_characteristic_group you would get a new table...
Much easier to support that anything dynamically created.
Cheers,
Chris -
Dynamic Tables in PDF - repeating Header row in all pages
Hi ,
I have created a dynamic table in PDF, When I add rows, the table is spanning to next page, and I should get the header row in all pages. But, I am getting the header row only for the 2nd page(In Header row properties, I have choosed the header row to be displayed in all pages). I need the Header row to be displayed in all pages.
To see the previous thread, Click [here|Dynamic Table - same data repeating in all rows;.
Thanks and Regards,
Prabhakar.Hi Prabhakar,
Try out with following step
Header Row -> Binding -> Select the check box
Repeat Row for each Data item (Min Count 1)
Please let me know if this is working or not.
Cheers
Satya -
Dynamic tables on one page - overflow problem with repeating header/footer
Hi,
with the help of the user RADZMAR I was able to create dynamic tables..
But now, I have got the next problem.
2 different tables are placed on 1 page.Each of them should be dynamic.
Please let me list what is working, and what not:
each textfield should be expandable (-> working)
Table 01 should be overflowing to page 02 (-> working)
Table 02 should be overflowing to page 02 (->working)
Table 02 should be scrolling to page 02 if tabele 01 is growing (->working)
Table 01 and Table 02 should be splittable (->working)
header 02 + the footer 02 ( from table 02) should be repeated on every page (->working)
header 02 + the footer 02 ( from table 02) should not be stand alone, indepentenly on which page (-> NOT WORKING)
In other words:
How can I reach, that the header and the footer enclose at least ONE textfield-row ?
The setting "keep with previous / following" did not helped me.
If the text in table 02 is large, the settings "keep with..." cause some layout destructions.
This is the screenshot of the problem:
Here you can download my doc:
https://acrobat.com/#d=V*HZAV8VILZarp6gF0B3nw
Thanks and Greetings
NuriYour question was "... but the font on the footer is much larger than that of the template", yes?
I only can repeat, look at the difference of:
1. index.html (Font-size > medium) >
2. Calendar.html (Font-size > no entry):
> "... font on the footer is much larger than that of the template",
Hans-Günter
P.S.
See us again - maybe - at Monday > we will do a nice little trip to Austria. -
BO Dynamic Table IN Universe or webi
Hi All,
we need solution to create dynamic table in Universe or Web Intelligence , as example below
Table : f_temp_Feb15_tbl
Feb15 should be dymanic or it should be given as prompt
f_temp_Jan15_tbl
we dont want to change table name , so instead do we able to change table name dynamically or by promptHi Sreenivasulu,
Good Morning!!!
In our DB , every month we will create new table on month name and we need to use this tables as source for report.
Table names will be like
F_TEMP_JAN15_TBL
F_TEMP_FEB15_TBL
F_TEMP_MAR15_TBL
F_TEMP_APR15_TBL
SO ON
Every month new table will be created and we want prompt to give input to table name to get data for that month.
so when we refresh report ,we will give month as input and data for that month should be output in report
Regards
Mahesh -
Has anyone tried changing the color of the table header in Dynamic Pages?
When you generate the sample Dynamic Page you get a table header with the color of #C0C0A0.
Has anyone ever found where this value is coming from within the database ?
I'd like to change it so I can control the background color in the TH tag for Dynamic Pages.
TIA
Mark.You probabli dispay the data as
<oracle> select empno,empname from scott.emp</oracle>
However, you could do it like this:
<oracle>
being
htp.p('<table>');
htp.p('<tr>');
htp.p('<td bgcolor=#ffaabb>empno</td>');
htp.p('<td bgcolor=#ffaabb>empname</td>');
htp.p('</tr>');
for c in (select empno,empname from scott.emp) loop
htp.p('<tr>');
htp.p('<td>');
htp.p(c.empno);
htp.p('</td>');
htp.p('<td>');
htp.p(c.empname);
htp.p('</td>');
htp.p('</tr>');
end loop;
htp.p('</table>');
end;
</oracle>
htp is package in sys schema in oracle. -
Dynamic table with multilevel column header
Hi all ,
Can u please tell me how to create dynamic internal table and display which has two level column header using alv.
For example : | amount | year | Month |
in $
in #
oct
nov
Thanks in advance ,
SAHi SA,
For your first question - Creating dynamic table refer code below...
PARAMETERS: p_input TYPE i OBLIGATORY.
START-OF-SELECTION.
DATA: v_fieldname TYPE char30.
DATA: v_char TYPE numc4.
DATA: it_fldcat TYPE lvc_t_fcat.
DATA: wa_it_fldcat LIKE LINE OF it_fldcat.
DATA: gp_table TYPE REF TO data.
FIELD-SYMBOLS: <gt_table> TYPE table.
DO p_input TIMES.
v_fieldname = 'COL'.
v_char = sy-index.
CONCATENATE v_fieldname v_char INTO v_fieldname.
CONDENSE v_fieldname.
CLEAR wa_it_fldcat.
wa_it_fldcat-fieldname = v_fieldname.
wa_it_fldcat-datatype = 'CHAR'.
wa_it_fldcat-outputlen = 5.
wa_it_fldcat-intlen = 5.
APPEND wa_it_fldcat TO it_fldcat .
ENDDO.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING it_fieldcatalog = it_fldcat
IMPORTING ep_table = gp_table.
ASSIGN gp_table->* TO <gt_table>.
Now you can use <gt_table> ..
2. It is not possible to have multiple format column for ALV..
Hope this solves ur prob..
Enjoy SAP.
Pankaj Singh. -
Dynamic table with header on each page
Hi,
I am new to livecycle forms. I am not sure if I am asking a silly question but this is what I need to achieve.
I am designing a pdf form using livecycle designer. Need to build a dynamic table using data from xml. The challenge is I need to have a signature button on each page and the button will be below the table. So if there are for eg. 100 rows of data, then the table should be split into 5 pages of 20 rows each page (each page should have the table header) or based on page content and the button should be on the bottom of each page. Is it possible to achieve this? Also any example/suggestion on implementing signature using signature pad would be greatly appreciated.Hi,
For individual objects, like the button that you want to appear on each page, you should place this on the Master Page. Position the button at the bottom of the page and then make sure that you size the Content Area, so that the button is OUTSIDE of the content area. This way objects on the design page will not overflow over the button. See here: http://assure.ly/g0Wx7r.
If you are using a Table object for your data, then you can set it to repeat the Header row, see the Object palette.
If you are using ADEP Designer 10 (latest version of Designer) AND your users will have Acrobat X/Reader X (eg version 10.1), then you could use Flash object for a signature field. See the example here: http://assure.ly/rqCuEn. See "Assure Dynamics Map with Signature" example. Again please note that you will need Acrobat X/Reader X to view this.
Hope that helps,
Niall
Maybe you are looking for
-
I recently started getting a message popping up asking me for my Yahoo password and it references my email address that is attached to Yahoo Sync somehow. It happens very frequently and I don't know that I have ever done anything with sync and I wan
-
How many computers can I run this software on?
The laptop I am currently using is dying. Can I install this on a new computer?
-
How to send PDF file to fax number
Hi I am using COLDFUSION 8," I have a small screen to take the fax number and want to fax the PDF file to that fax number from my system using ColdFusion". I have no idea to implement this. Any help will be appriciated. Thanks
-
Album order on ipod differs--why?
I have my photos organized nice on iPhoto, in albums by year and month, but the order is shuffled on the iPod. Why? Any solutions? Replies would be greatly appreciated.
-
Duplicate Clips appears in recorded media files
I use my Panasonic AG-AC120EN for video recording on 32GB SanDisk ULTRA card., and I get about 3 hours 13 Mts of HD recording. Last week I recorded an Event of about 2hours 30 mts duration my Card file shows it has used 21.1 GB When I brought my c