How to display the some extra text in footer last page of each department
Hello Experts,
I need help in generating RTF template to generate sum of salary for each department in the footer of the last page of each department name As shown below.
Total salary of <DEPARTMENT_NAME>=<Sum of salary>.
Someone plese help me.
For example:
If my output is displaying in multiple pages for each department I want the output should be as follows in the footer of last page of current group
*Total Salary of Accounting = _20300_*
My xml file is as follows*
<?xml version="1.0" standalone="yes"?>
<ROWSET>
<ROW>
<DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>
<FIRST_NAME>Den</FIRST_NAME>
<JOB_ID>PU_MAN</JOB_ID>
<SALARY>11000</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>
<FIRST_NAME>Alexander</FIRST_NAME>
<JOB_ID>PU_CLERK</JOB_ID>
<SALARY>3100</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>
<FIRST_NAME>Shelli</FIRST_NAME>
<JOB_ID>PU_CLERK</JOB_ID>
<SALARY>2900</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>
<FIRST_NAME>Sigal</FIRST_NAME>
<JOB_ID>PU_CLERK</JOB_ID>
<SALARY>2800</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>
<FIRST_NAME>Guy</FIRST_NAME>
<JOB_ID>PU_CLERK</JOB_ID>
<SALARY>2600</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Purchasing</DEPARTMENT_NAME>
<FIRST_NAME>Karen</FIRST_NAME>
<JOB_ID>PU_CLERK</JOB_ID>
<SALARY>2500</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Finance</DEPARTMENT_NAME>
<FIRST_NAME>Nancy</FIRST_NAME>
<JOB_ID>FI_MGR</JOB_ID>
<SALARY>12000</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Finance</DEPARTMENT_NAME>
<FIRST_NAME>Daniel</FIRST_NAME>
<JOB_ID>FI_ACCOUNT</JOB_ID>
<SALARY>9000</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Finance</DEPARTMENT_NAME>
<FIRST_NAME>John</FIRST_NAME>
<JOB_ID>FI_ACCOUNT</JOB_ID>
<SALARY>8200</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Finance</DEPARTMENT_NAME>
<FIRST_NAME>Ismael</FIRST_NAME>
<JOB_ID>FI_ACCOUNT</JOB_ID>
<SALARY>7700</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Finance</DEPARTMENT_NAME>
<FIRST_NAME>Jose Manuel</FIRST_NAME>
<JOB_ID>FI_ACCOUNT</JOB_ID>
<SALARY>7800</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Finance</DEPARTMENT_NAME>
<FIRST_NAME>Luis</FIRST_NAME>
<JOB_ID>FI_ACCOUNT</JOB_ID>
<SALARY>6900</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Accounting</DEPARTMENT_NAME>
<FIRST_NAME>Shelley</FIRST_NAME>
<JOB_ID>AC_MGR</JOB_ID>
<SALARY>12000</SALARY>
</ROW>
<ROW>
<DEPARTMENT_NAME>Accounting</DEPARTMENT_NAME>
<FIRST_NAME>William</FIRST_NAME>
<JOB_ID>AC_ACCOUNT</JOB_ID>
<SALARY>8300</SALARY>
</ROW>
</ROWSET>
Hi,
This a good document to look at. Search for the words "Running Totals" and "Regrouping the XML Data" on the page.
Oracle Fusion Middleware Report Designer's Guide for Oracle Business Intelligence Publisher
http://docs.oracle.com/cd/E21043_01/bi.1111/e13881/T421739T481157.htm
I hope it helps.
Sinan
Similar Messages
-
How to find the avg salary of first 3 employees based on each department?
how to find the avg salary of first 3 employees based on each department?
Hi,
Do you mean something like this?
with a as
select
deptno
,sal
,row_number() over ( partition by deptno order by sal desc) rn
from
emp
select
deptno
,round(avg(sal)) avg_sal_of_top_3
from
a
where
rn <= 3
group by
deptno
order by
deptno
DEPTNO AVG_SAL_OF_TOP_3
10 2917
20 2992
30 1983
If not please give more details.
Regards,
Peter -
How to display multiple records in smart forms in new page for each record
Hi,
How to display the data from a internal table in a smart form.
I want each record to be displayed in seperate page.
please tell me with example.
thank u,
SarathDo this ,
in the main window - open a loop on your internal table ,
within the loop open the text and give the output fields,
after this text use the Command node and in this set the next page as page1,
so when the loop gets executed its first record will be on the first page and the second record will be on the next page and so on ..
Reward to usefull answers. -
How to display the multiple lines text in a single - String, StringBuffer
Hi,
I have a textarea field named Decription which contains more than one line seperated by new line.I need to display those five lines in a single text without breaking. Is it possible? I am getting ArrayIndexOutOfBoundsException while i reached to the end of the line. Plz help me how to align the below code so that i can display the lines as a single line in my excel sheet.
if(op.getDescription()!=null)
String[] oppDescs = op.getDescription().split("\n");
StringBuffer sb = new StringBuffer();
for(int i1=0; i<=oppDescs.length-1;++i1)
*writeFile(sb.append(oppDescs[i1]), valueWriter);*
} else {
writeFile(op.getDescription(), valueWriter);
private void writeFile(java.lang.Object value,PrintWriter valueWriter)
if(value!=null)
valueWriter.print(value);
}Thanks and Regardsprevious was java1.5
heres a 1.1 - 1.4 version
String[] oppDescs = op.getDescription().split("\n");
StringBuffer sb = new StringBuffer();
for(int i = 0; i < oppDescs.length : i++){
sb.append(oppDescs);
sb.append( '\t' );
writeFile(sb.toString(), valueWriter );Edited by: simon_orange on 31-Oct-2008 13:02 -
How to display the username and current date in OAF page Footer region
Hi,
I need to display the username and Current-Date in footer region.If anybody knows the procedure then please share with me.
Thanks
Divya AgarwalHi,
Read this Thread:--
You have to capture the UserName and Date in the Process Request Method of page Controller and invoke a method which will subsequently get and set the value in some attribute.
String userName = pageContext.getUserName();
How to populate Current Date and Time in OAF page through CO
Thanks
--Anil -
How to display the total of a particular xml element page wise
Hello friends,
My requirement is like I need to display an xml element Margin along with the other elements..Now I want the sum of margin element for each page... how do I do it in the rtf template.. and the end user views it in pdf form...
thanks in advanceCan you check the example in http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm#4535379
You can also check an example in your local machine in C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\samples\RTF templates\Advanced\Page Total -
How to display the text as a Bold in the Text Element of a Smart Form
Hi,
I created one Smart Form.
In that i created the Text element.
I provide some data also in that.
It is coming as a MS WORD.
I executed my smart form.
Customer Number: &WA_KNA1-KUNNR&
it display the data of the particular customer.
But i need to display the Customer Number as BOLD or else Increase the Size.
For this also I created one SMARTSTYLE.
In that I created the Paragraph and Character Formats also.
Now i assignee that SMARTSTYLE in the Output Option Tab of the Text Element also.
But i unable to get the CUSTOMER NUMBER in Bold.
In MS WORD we have BOLD button.
I selected the Text and Press the BOLD button. At that time it is Highlighted.
Whenever i press the SAVE Button.
Then it is not saved with BOLD.
It is coming in Normal Format.
In the ECC 6.0. I am unable to get the Text as a BOLD.
This text Element is like a MS WORD.
Can you please tell me how to display the Data with BOLD. please tell me. I am unable to get that one.
Thank You.
Regards,
B. Krishna.Hi,
Check where u have given BOLD. In character Format or in Paragraph format.
In SMART FORM,
1. Change to OLD EDITOR if u are confused with the new one.
(This can be done by clicking the button left to new editor ).
2. If it is PARAGRAPH FORMAT,
Give the name of paragraph format in the editor.
P1 &WA_KNA1-KUNNR&
If it is CHARACTER FORMAT,
<C1> &WA_KNA1-KUNNR&
Thanks,
Nithya. -
Want to customise the message display by adding extra text in Logon Help forgot password link
Dear All,
I am implementing Forgot Password functioanlity or link in my Portal ( SAP EP7.0).I am getting "Logon Problem ? Get Support " link in my Portal welcome page.When I am clicking this link ,I am getting pop up asking me to enter user id and mail id.Everything is working fine.
But my real concern is I want to customise the message display in case wrong user id or mail id or wrong question answer.
The current message displaying as "User information incorrect. Cannot send e-mail with new password" and I want to display it as
"User information incorrect. Cannot send e-mail with new password ,Please contact your Administrator"
If I will tell in one sentence ,I want to customise the message display by adding extra text
For example: "User information incorrect. Cannot send e-mail with new password"
Requirements:"User information incorrect. Cannot send e-mail with new password ,Please contact your Administrator "
Kindly help em out how to do it ................
Thanks,
Sanjay MohantyHi,
Until you have only played around with the layout of the logon page and not the actual code then you will be able to use this property. There are bits of code in the logon par which retreives these values.
For eg you can see the below if statement in the logon page to determine if logon help has to be displayed. This is part of standard logo page so if you have not removed this in your custom one everything should work just fine.
<% if ( logonBean.getLogonHelp() ) { %>
Also check this link:
http://help.sap.com/saphelp_nw70/helpdata/en/45/7e6313d8780dece10000000a11466f/frameset.htm
Regards,
Vijith -
HOW TO DISPLAY THE TEXT ON A PARTICULAR PAGE IN SAPSCRIPTS
HI,
HOW TO DISPLAY THE TEXT ON A PARTICULAR PAGE IN SAPSCRIPTS?in ur script main window
/: IF &TTXSY-PAGE& = 15.
ur text or standard text
/: ENDIF.
use this.
hope it helps if any issues revert back -
How to display the PK which is it alreday database sequence in a text field
hi alllllllllllllll how to display the PK which is it alreday database sequence in a text field in form instance???
2 ways,
1) select the item in your SQL query and call it item_display - then you can treat it as a normal item with no impact on the database.
2) Set the item to a display only item.
Hope this helps,
Russell -
How to display the selection screen with icons as well as with text element
How to display the selection screen with icons as well as with texts (written in text elements) for PlantDate, OrderType,WareHouse..
Report zex33.
type-pools: icon.
selection-screen begin of line.
selection-screen comment 1(20) text_001.
parameters: p_werks type marc-werks.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 1(20) text_002.
parameters: p_whouse(10).
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 1(20) text_003.
parameters: p_auart like vbak-auart.
selection-screen end of line.
initialization.
write ICON_PLANT as icon to text_001.
concatenate text_001 text-001 into text_001 separated by space.
write ICON_WAREHOUSE as icon to text_002.
concatenate text_002 text-002 into text_002 separated by space.
write ICON_ORDER as icon to text_003.
concatenate text_003 text-003 into text_003 separated by space. -
How to Display the ColumnName for the Text of any Master Data Object in BEx
Hi Experts,
In Bex Analyzer While Displaying the Key and text of any Master data object it shows column name for master data key but not for the text, here client requirement is he wants to see the Text column name as Description for any master data text.
say Customer Number is a master data object , while displaying key and text of CustomerNumber - column names should look like as below
CustomerNumber Description
C11111 Pepco
C11112 Coke
but usually in Bex Analyzer it displys as following(Text without column Name)
CustomerNumber
C11111 Pepco
C11112 Coke
Please suggest how can we achive this requirement, thanks in advance.
Regards,
ChandraHi Chandra,
I suggest you to enhance your datasource with text feild, by adding text feild to your datasource in ECC side and replicate it ti BI side.
For this you have to write code at CMOD.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/302d4b15-5847-2a10-93bb-9c45d9f06b16?QuickLink=index&overridelayout=true
Better this doc will help you.
Regards,
rvc -
How to display the eror message in the iView
Hi
I want to check the user input in the client side and display an error message in the iView instead of displaying the error message as an alert
it is ok when I tried to do it as an alert
alert('ERROR MESSAGE');
but the problem is how to display the error message as a text in the iView ...
I wrote the below code..
any one can see it and has any sugestion?
Thanks
=============
<%@ taglib uri="tagLib" prefix="hbj" %>
<%
String compid = "";
String message = "";
%>
<hbj:content id="MyContent">
<hbj:page title = "Selection Screen">
<hbj:form id = "myForm">
<br>
<br>
<br>
<center>
<H3>Benefits Statement </H3>
<H4>Selection Screen</H4>
<hbj:gridLayout
id="FSSLayout"
debugMode="False"
width="40%"
cellSpacing="5"
>
<hbj:gridLayoutCell
rowIndex="1"
columnIndex="1"
width="10%"
horizontalAlignment="LEFT"
style="WildStyle"
>
<hbj:label
id="label_inputPernr"
required="TRUE"
text="Personal Number:"
design="LABEL"
labelFor="inputPernr"
/>
</hbj:gridLayoutCell>
<hbj:gridLayoutCell
rowIndex="1"
columnIndex="2"
width="40%"
horizontalAlignment="LEFT"
>
<hbj:inputField id = "inputPernr"
>
<%
compid=MyContent.getParamIdForComponent(inputPernr);
%>
</hbj:inputField>
</hbj:gridLayoutCell>
<hbj:gridLayoutCell
rowIndex="10"
columnIndex="1"
width="40%"
horizontalAlignment="CENTER"
colSpan="2"
>
<hbj:button id = "myButton" text="Submit.." design="EMPHASIZED"
tooltip="Click me to submit this form" onClick="ClickEvent" onClientClick="validRequired()">
</hbj:button>
</hbj:gridLayoutCell>
</hbj:gridLayout>
</center>
<p font="Arial" size=20><%= message%></p>
</hbj:form>
<SCRIPT LANGUAGE="Javascript">
function validRequired()
var myvar = document.getElementById('<%=compid%>').value;
var ivID='<%=componentRequest.getComponentContext().getContextName()%>';
if (myvar = " ")
message = "Enter Employee Number";
ivuRefresh(ivID);
htmlbevent.cancelSubmit=true;
</SCRIPT>
</hbj:page>
</hbj:content>No problem, here is an example of some html code and javascript that you can adapt to your needs. You can display this standalone to see how it works.
I hope this helps
<html>
<head>
<script language="JavaScript">
function validateForm(){
if(document.getElementById("nameField").value == "")
document.getElementById("errormessage").innerHTML = "Please enter the Name";
else if(document.getElementById("ageField").value == "")
document.getElementById("errormessage").innerHTML = "Please enter the Age";
else if(document.getElementById("idField").value == "")
document.getElementById("errormessage").innerHTML = "Please enter the id";
else
document.getElementById("errormessage").innerHTML = "";
</script>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Name</td>
<td><input type="input" id="nameField" name="nameField"></td>
</tr>
<tr>
<td>Age</td>
<td><input type="input" id="ageField" name="ageField"></td>
</tr>
<tr>
<td>Id</td>
<td><input type="input" id="idField" name="idField"></td>
</tr>
<tr><td><font color="red"><span id="errormessage"></span></font></td></tr>
<tr><td><input type="button" name="validate" onClick="validateForm()" value="Click to validate"/></td></tr>
</table>
</body>
</html> -
How to display the sort value in the selection screen in the report title
Dear All,
How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
Good day,
Thanks and regards
Arun SHi Arun,
Try this.
1, Set one dynamic parameter,
2, Drag and drop that parameter into your report title.
3, Pass the value(sort value) dynamically from your application,
4, Cheers..
Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then set the data source from CR designer. and darg and drop that data column into the report.
Hope this will work,
Regards,
Salah
Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM -
How to change the output as text format in Apps R12.1.3
Hi All,
Currently iam trying to modify the Java Concurrent Program (FDExtractAndFormatting) in Batch Payment Process. This Program is generated in text format in 11i APPS. Now we are upgrading to R12.1.3. In R12.1.3 output is coming as PDF format. Here my requirement is how to change the output as text format in R12.1.3 also.
Please do the needful and suggest me.
Regards,
Jagadeesh1. It is seeded java concurrent program. Some attributes are missing from 11i to R12. In 11i it is a text format.So i have to investgate on how to retrive those attributes in R12. What is the concurrent program name?
Have you tried to change the output and submit the request?
2. Once all are attributes are coming in PDF format. Client wants to open same output in text format as it is 11i (In R12 it is generated in PDF format).If the above does not help, please log a SR.
Thanks,
Hussein
Maybe you are looking for
-
I have an IMac, an IPhone and a Macbook Pro. I use Mobile Me. The Macbook and Iphone are my primary computers. I receive email on all devices, but I cannot send email from my IMac. This does not work for a .Mac account or an AOL account. Is ther
-
Jabber 9.2.1 outlook integration.
Hi, Just rolled out jabber 9.2.1 to a few users and we are noticing a few problems. 1. We are no longer able to search the outlook local address book. On the connection status it shows connection error, address outlook, protocol MAPI, error COM0
-
Applescript: How to start an application with parameters
AppleScripters, I am sorry if I have posted this in the inappropriate forum, I saw none with a specific regard to AppleScript. Let us presume that we have a regular shell script which when initiated from the Terminal has code such as what follows her
-
ITunes music folder keeps reverting back to default
If anyone can help, I'd appreciate it: I just moved my music library to a new hard drive, following the Apple instructions on "moving the iTunes music folder" (i.e. changing the iTunes music folder location on the advanced tab in preferences, setting
-
hi master error Could not find Policy File: C:\Documents and Settings\Administrator\.java.policy Sir when I open policytool the system give me this error And I use http://www.jensign.com/JavaScience/www/keystorereader/index.html this link For Keystor