BIP Requirement - How to get subtotals of each combination val of 2 columns
Hi Gurus, Experts and All,
Help me please with my reporting requirement, on how to code this in BIP. Thank you.
Requirement: I need to get the subtotals of each combination value of two columns.
Example Columns: Group Team AMOUNT
Column Sample Values: GroupA Team1 100
GroupB... Team2... 200
GroupA - Team1 Subtotals = 500(sample value only)
GroupA - Team2 Subtotals = 400(sample value only)
GroupB - Team1 Subtotals = 600(sample value only)
GroupB - Team2 Subtotals = 200 (sample value only)
GrandTotal= 1700
Thank you.
John Paul
BIP newbie
Edited by: user10955574 on Oct 28, 2010 5:40 AM
Hi Kavipriya
Please see updated XML Structure.
<?xml version="1.0" encoding="utf-8" ?>
- <ROWSET>
- <ROW>
<SALES_GROUP>GROUPA</SALES_GROUP>
<SALES_TEAM>TEAM1</SALES_TEAM>
<CUSTOMER_NAME>Diego</CUSTOMER_NAME>
<CURRENCY>USD</CURRENCY>
<ADJUSTMENT_AMOUNT>200</ADJUSTMENT_AMOUNT>
</ROW>
- <ROW>
<SALES_GROUP>GROUPB</SALES_GROUP>
<SALES_TEAM>TEAM1</SALES_TEAM>
<CUSTOMER_NAME>Alex</CUSTOMER_NAME>
<CURRENCY>USD</CURRENCY>
<ADJUSTMENT_AMOUNT>300</ADJUSTMENT_AMOUNT>
</ROW>
- <ROW>
<SALES_GROUP>GROUPC</SALES_GROUP>
<SALES_TEAM>TEAM2</SALES_TEAM>
<CUSTOMER_NAME>Michael</CUSTOMER_NAME>
<CURRENCY>USD</CURRENCY>
<ADJUSTMENT_AMOUNT>400</ADJUSTMENT_AMOUNT>
</ROW>
- <ROW>
<SALES_GROUP>GROUPD</SALES_GROUP>
<SALES_TEAM>TEAM2</SALES_TEAM>
<CUSTOMER_NAME>Robert</CUSTOMER_NAME>
<CURRENCY>USD</CURRENCY>
<ADJUSTMENT_AMOUNT>500</ADJUSTMENT_AMOUNT>
</ROW>
- <ROW>
<SALES_GROUP>GROUPA</SALES_GROUP>
<SALES_TEAM>TEAM3</SALES_TEAM>
<CUSTOMER_NAME>Bryan</CUSTOMER_NAME>
<CURRENCY>USD</CURRENCY>
<ADJUSTMENT_AMOUNT>600</ADJUSTMENT_AMOUNT>
</ROW>
- <ROW>
<SALES_GROUP>GROUPB</SALES_GROUP>
<SALES_TEAM>TEAM3</SALES_TEAM>
<CUSTOMER_NAME>Paul</CUSTOMER_NAME>
<CURRENCY>USD</CURRENCY>
<ADJUSTMENT_AMOUNT>700</ADJUSTMENT_AMOUNT>
</ROW>
- <ROW>
<SALES_GROUP>GROUPC</SALES_GROUP>
<SALES_TEAM>TEAM4</SALES_TEAM>
<CUSTOMER_NAME>John</CUSTOMER_NAME>
<CURRENCY>USD</CURRENCY>
<ADJUSTMENT_AMOUNT>800</ADJUSTMENT_AMOUNT>
</ROW>
- <ROW>
<SALES_GROUP>GROUPD</SALES_GROUP>
<SALES_TEAM>TEAM4</SALES_TEAM>
<CUSTOMER_NAME>Peter</CUSTOMER_NAME>
<CURRENCY>USD</CURRENCY>
<ADJUSTMENT_AMOUNT>900</ADJUSTMENT_AMOUNT>
</ROW>
- <ROW>
<SALES_GROUP>GROUPA</SALES_GROUP>
<SALES_TEAM>TEAM5</SALES_TEAM>
<CUSTOMER_NAME>Zoe</CUSTOMER_NAME>
<CURRENCY>USD</CURRENCY>
<ADJUSTMENT_AMOUNT>1000</ADJUSTMENT_AMOUNT>
</ROW>
</ROWSET>
Regards,
John Paul
Edited by: user10955574 on Oct 29, 2010 3:05 AM
Similar Messages
-
How to get LASTDAY for each and every month between given dates..
Hi Friend,
I have a doubt,How to get LASTDAY for each and every month between given dates..
for ex:
My Input will be look like this
from date = 12-01-2011
To date = 14-04-2011
And i need an output like
31-01-2011
28-02-2011
31-03-2011
is there any way to achieve through sql query in oracle
Advance thanks for all helping friendsHere's a 8i solution :
select add_months(
trunc(
to_date('12-01-2011','DD-MM-YYYY')
,'MM'
, rownum ) - 1 as results
from all_objects
where rownum <= ( months_between( trunc(to_date('14-04-2011','DD-MM-YYYY'), 'MM'),
trunc(to_date('12-01-2011','DD-MM-YYYY'), 'MM') ) );
The above two query is worked in oracle 11GActually the first query I posted is not correct.
It should work better with
months_between(
trunc(to_date(:dt_end,'DD-MM-YYYY'),'MM'),
trunc(to_date(:dt_start,'DD-MM-YYYY'),'MM')
)Edited by: odie_63 on 12 janv. 2011 13:53
Edited by: odie_63 on 12 janv. 2011 14:11 -
How to get control on each row in advance table
hi, i have a advanced table with some data, in each row i have two radio buttons which i need to set depending on some column value in the row, i tried by following code
for(SoftCompVORowImpl row2 = (SoftCompVORowImpl)svo.first();row2!=null;row2=(SoftCompVORowImpl)svo.next())
if(row2.getAttribute("CommitEndDate")==null || row2.getAttribute("CommitEndDate").equals(""))
onetime.setSelected(true);
recurring.setSelected(false);
else
onetime.setSelected(false);
recurring.setSelected(true);
but this code is making set only one radio button (onetime), which ever i am making first true its getting selected, i need to know how to get control of each row....Babu,
Basically you should use the decode function in your sql query itself and attach it with BC4J properties of radio buttons.In that case you don't have to worry about setting them declaratively !
--Mukul -
How to get total at each hierarchy
Hello Gurus,
Does anybody know how to get total at each level.
I mean, if I have the following structure...
Level 1
Level 2
Level 3
Level 4
Level 5
At level 5 we have the following calculation
Volume Price Amount(From Formula Volume * price)
5 2 10,00
6 3 12,00
7 4 28,00
My question is how to get a sum of (10,00 + 12,00 +28,00 = 50,00) at level 4?
Thanks in advance.
With regards,
AnandDoes anybody know how to get total at each level.
I mean, if I have the following structure...
Level 1
Level 2
Level 3
Level 4
Level 5
At level 5 we have the following calculation
Volume Price Amount(From Formula Volume * price)
5 2 10,00
6 3 12,00
7 4 28,00
I am getting following results : It is adding volume and price then multiplying volume * price and giving results.
18 9 18 * 9 = 162,00
But I have to get sum of ( 10,00 + 12,00 +28,00 = 50,00) at level 4.
My question is how to get a sum of (10,00 + 12,00 +28,00 = 50,00) at level 4?
Thanks.
With regards,
Anand -
How to get sum for each currency's in ALV Report
Hi,
A column has amounts with various currency's.
May I know how to get sum quantity for each currency in ALV Report?
Thanks in advance.Hi,
Currency value column should have reference to currency code column.
Regards,
Wojciech -
COMPUTE function: How to get subtotals and GRAND total together?
I am wrtiting a report using SQL and SQL*Plus to get subtotals and a grand total. The COMPUTE function allows me to COMPUTE SUM on a group, but it only gives me subtotals. I'm interested in getting a report with the SUBTOTALS and a final GRAND TOTAL. Can this be done using SQL*Plus?
Here is my current code that gives me subtotals:
COMPUTE SUM LABEL subtotal OF sal ON deptno
SELECT ename, sal, deptno
FROM emp
ORDER BY deptno;
ENAME SAL DEPTNO
CLARK 2450 10
VOLLMAN 5000
MILLER 1300
8750 subtotal
SMITH 800 20
ADAMS 1100
FORD 3000
SCOTT 3000
JONES 2975
10875 subtotal
ALLEN 1600 30
BLAKE 2850
MARTIN 1250
JAMES 950
TURNER 1500
WARD 1250
9400 subtotalHere is the code to give one grand total:
Column DUMMY NOPRINT
COMPUTE SUM OF sal ON DUMMY
BREAK ON DUMMY
SELECT NULL DUMMY, ename, sal, deptno
FROM emp
ORDER BY deptno;
ENAME SAL DEPTNO
CLARK 2450 10
VOLLMAN 5000 10
MILLER 1300 10
SMITH 800 20
ADAMS 1100 20
FORD 3000 20
SCOTT 3000 20
JONES 2975 20
ALLEN 1600 30
BLAKE 2850 30
MARTIN 1250 30
JAMES 950 30
TURNER 1500 30
WARD 1250 30
29025
How can I combine both on one report?Massimo Ruocchio wrote:
Do you like this?I believe OP is looking for both department totals and grand total. Frank already showed how to do it in SQL*Plus. To do it in SQL:
SELECT CASE GROUPING_ID(real_deptno,real_ename)
WHEN 0 then real_ename
WHEN 1 then 'Department ' || real_deptno || ' total'
ELSE 'All department total'
END ename,
SUM(sal),
deptno
FROM (
SELECT deptno real_deptno,
ename real_ename,
sal,
CASE ROW_NUMBER() OVER(PARTITION BY deptno order by ename) WHEN 1 THEN deptno end deptno
FROM emp
GROUP BY GROUPING SETS((),real_deptno,(real_deptno,deptno,real_ename))
ORDER BY real_deptno nulls last,
real_ename nulls last
ENAME SUM(SAL) DEPTNO
CLARK 2450 10
KING 5000
MILLER 1300
Department 10 total 8750
ADAMS 1100 20
FORD 3000
JONES 2975
SCOTT 3000
SMITH 800
Department 20 total 10875
ALLEN 1600 30
ENAME SUM(SAL) DEPTNO
BLAKE 2850
JAMES 950
MARTIN 1250
TURNER 1500
WARD 1250
Department 30 total 9400
All department total 29025
18 rows selected.
SQL> SY. -
How to get subtotals on my table
Hello,
Could any one please tell me how can i get subtotals on my table. i am new to the tool trying to get subtotals and grand totals for my analysis. please adviceHi,
Can you post how you achieved this? It can help other users in the future. And also remember to close the thread.
J.- -
How to get IAttributeStrand for each Cell in Table
Hello All,
I am trying to set the font and size depending upon the user inputs under each cell in the table.
For Text frame I am able to achieve this by using ITextModel->QueryStrand(). But for Table I am not able to find any function which can allow me to query the Cell Strand and allow to apply the attributes.
Has anyone been able to achieve the same. If so please do let me know its urgent.
Thank you all in advance.
regards
Farzana.Hi,<br /> <br />Thanks for the prompt reply. By the way I forgot to mention that we are using the same in CS3.<br />We tried as you have mentioned in your mail. But we did not find any way to achieve the ITextStoryThread from ICellConent. We tried all possible ways but we always get the Text Frame TextModel.<br />We have used following code to get TextModel for each cell. We get correct startindex and endindex for each cell and also get the valid TextModel Interface. But when we try to find out its length then it returns the whole TextModel length. <br />Thus when we try to apply different attributes for each cell then it applies to whole table. <br />E.g. When we try to apply 12 font size for 1st cell then it also applies to remaining cells. So we think we are not able to find out correct TextModel for each cell. <br /> <br />Below is our snippet of code on what we tried.<br /> <br />ITableModel::const_iterator iterTable(tableModel->begin());<br />ITableModel::const_iterator end(tableModel->end());<br /> <br />while(iterTable != end) <br />{<br />GridAddress gridAddress = *iterTable; <br />GridID gridid= tableModel->GetGridID(gridAddress);<br /> <br /> InterfacePtr<ITableTextContainer> tableTextContainer(tableModel, UseDefaultIID());<br /> if(tableTextContainer != nil) <br /> {<br /> InterfacePtr<ITextModel> textModel(tableTextContainer->QueryTextModel());<br /> if(textModel != nil) <br /> {<br /> InterfacePtr<ITextStoryThreadDict> textStoryThreadDict(tableModel, UseDefaultIID());<br /> if (textStoryThreadDict != nil) <br /> {<br /> InterfacePtr<ITextStoryThread> textStoryThread(textStoryThreadDict->QueryThread(gridid));<br /> if (textStoryThread != nil)<br /> {<br /> InterfacePtr<ITextModel> iTextModel(textStoryThread->QueryTextModel());<br /> if (iTextModel != nil)<br /> {<br /> TextIndex startIndx;<br /> TextIndex endIndx;<br /> startIndx=textStoryThread->GetTextStart(&endIndx);<br /> }<br /> else<br /> CAlert::ErrorAlert("iTextModel == nil");<br /> }<br /> }<br /> } <br /> }<br /> <br /> ++iterTable; <br /> }<br /><br />Regards,<br />Farzana.
-
Trigger how to get new and old value for nested table column?
Hi,
I have created a nested table based on the following details:
CREATE TYPE typ_item AS OBJECT --create object
(prodid NUMBER(5),
price NUMBER(7,2) )
CREATE TYPE typ_item_nst -- define nested table type
AS TABLE OF typ_item
CREATE TABLE pOrder ( -- create database table
ordid NUMBER(5),
supplier NUMBER(5),
requester NUMBER(4),
ordered DATE,
items typ_item_nst)
NESTED TABLE items STORE AS item_stor_tab
INSERT INTO pOrder
VALUES (800, 80, 8000, sysdate,
typ_item_nst (typ_item (88, 888)));
Now I would like to create a trigger on table pOrder for after insert or update or delete
and I would like to track the new and old value for the columns inside nested table.
Can anybody direct me how to do it?
I would like to know the sytax for it like:
declare
x number;
begin
x := :new.nestedtablecolumn;--how to get the new and old value from nested table columns
end;
Hope my question is clear.
Thanks,
LavanHi,
Try like this:
CREATE OR REPLACE TRIGGER PORDER_I
BEFORE INSERT
ON PORDER
REFERENCING OLD AS old NEW AS new
FOR EACH ROW
DECLARE
items_new typ_item_nst;
ordid_NEW NUMBER;
BEGIN
FOR i IN :new.items.FIRST .. :new.items.LAST LOOP -- For first to last element
DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').prodid: ' || :new.items(I).prodid );
DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').price: ' || :new.items(I).price );
END LOOP;
END;Regards,
Peter -
How to get IHTMLDocument2 of each newly created tab?
Hi there,
I'm working on an C++ IE automation application that opens multiple URLs. Each URL is opened in a new tab of the same IE instance. My problem is: How do I get a IHTMLDocument2 of each tab that the application just created? When I use the same IWebBrowser2
interface to open the tabs in the same IE instance, I always get the IHTMLDocument2 of the first tab.
This is what I do:
1. Call the CoCreateInstance method for the "InternetExplorer.Application"
2. QueryInterface from "InternetExplorer.Application" to IDispatch
3. QueryInterface from IDispatch to IWebBrowser2. For each URL that should be opened, I call the navigate-method on the same "IWebBrowser2"-interface. The navigate-method has a FLAGS-parameter, which I set to "navOpenInNewTab" in order
to open new tabs each time I call the method.
This all works fine, except that I'm not able to get the IHTMLDocument2 of each tab I just created. As I just said, I'm performing multiple calls to the navigate-method on the same "IWebBrowser2"-interface in order to open the new tabs in the same
IE-instance. But when I call the get_Document-method on the "IWebBrowser2"-interface, I always receive the document of the first tab. How can I get the document of the second, third, etc. tab?
Any suggestions?problem is 1 there isn't an event for browser saying "NewTabCreated" and even if you wrote one, you would have a hard time sending anything to the outside of the sandbox without extra accommodation (e.g. create a named pipe then grant access to
low integrity level processes).
Why the methods mentioned above won't work reliably:
IShellWindow is broken since Vista (Only trusted sites running in normal
integrity level would be displayed)
As a Windows Message, WM_HTML_GETOBJECT would be subject to
User Interface Privilege Isolation which has the same blocking effect.
DWebBrowserEvents2::NewProcess is best as a tab creation is guaranteed at this time, but
a new process is not guaranteed when you create a new tab so you would miss some tab creations.
Visual C++ MVP -
How to get top10 for each brand..
Hi all,
I have a table which contains brands information. to get top10 sites for a brand, we can use the following query.
select brand,site,sales from (
select brand,site, sales
from all_brands_info
where brand = :p_brand
order by sales desc)
where rownum<10
There are 15 brands. If i want top10 sites for each brand, how can i...
Please help me,
satti.Given your sample data and desired output, I don't see how rownum would help. I think you need something more like:
SQL> WITH t AS (SELECT 'A' brand, 'S1' site, 30 sales FROM dual UNION ALL
2 SELECT 'A', 'S2', 40 FROM dual UNION ALL
3 SELECT 'A', 'S2', 20 FROM dual UNION ALL
4 SELECT 'A', 'S3', 20 FROM dual UNION ALL
5 SELECT 'A', 'S4', 35 FROM dual UNION ALL
6 SELECT 'B', 'S1', 40 FROM dual UNION ALL
7 SELECT 'B', 'S2', 35 FROM dual UNION ALL
8 SELECT 'B', 'S3', 50 FROM dual UNION ALL
9 SELECT 'B', 'S3', 30 FROM dual UNION ALL
10 SELECT 'B', 'S4', 45 FROM dual UNION ALL
11 SELECT 'C', 'S1', 40 FROM dual UNION ALL
12 SELECT 'C', 'S2', 35 FROM dual UNION ALL
13 SELECT 'C', 'S3', 10 FROM dual UNION ALL
14 SELECT 'C', 'S4', 30 FROM dual)
15 SELECT brand, site, sales, rn
16 FROM (SELECT brand, site, sales,
17 ROW_NUMBER() OVER (PARTITION BY brand
18 ORDER BY sales DESC) rn
19 FROM (SELECT brand, site, SUM(sales) sales
20 FROM t
21 GROUP BY brand, site))
22 WHERE rn <= 2;
B SI SALES RN
A S2 60 1
A S4 35 2
B S3 80 1
B S4 45 2
C S1 40 1
C S2 35 2However, as I said before, you may want to look at rank and dense_rank depending on how you feel about ties. For example, for brand A if I add another 5 to site S1 making a tie with S4 for second highest see the differences in the values between row_number, rank abd dense_rank:
SQL> WITH t AS (SELECT 'A' brand, 'S1' site, 30 sales FROM dual UNION ALL
2 SELECT 'A', 'S2', 40 FROM dual UNION ALL
3 SELECT 'A', 'S2', 20 FROM dual UNION ALL
4 SELECT 'A', 'S3', 20 FROM dual UNION ALL
5 SELECT 'A', 'S4', 35 FROM dual UNION ALL
6 SELECT 'A', 'S1', 5 FROM dual)
7 SELECT brand, site, sales,
8 ROW_NUMBER() OVER (PARTITION BY brand
9 ORDER BY sales DESC) rn,
10 RANK() OVER (PARTITION BY brand
11 ORDER BY sales DESC) rnk,
12 DENSE_RANK() OVER (PARTITION BY brand
13 ORDER BY sales DESC) drnk
14 FROM (SELECT brand, site, SUM(sales) sales
15 FROM t
16 GROUP BY brand, site);
B SI SALES RN RNK DRNK
A S2 60 1 1 1
A S1 35 2 2 2
A S4 35 3 2 2
A S3 20 4 4 3John -
How to get Runtime for each statement in abap program
Is there any tool which tells the runtime of each statement in our program..apart from sto5 and se30
Thanks in advance
PRASANNADetermining the calculation time for calculating the tangent of 1. Since the runtime of the statement is less than a microsecond, the runtime of several executions in an inner loop is measured. The exection time for the loop itself is also measured in order to deduct it as an offset. These measurements are executed several times in an outer loop and the mean value is created using division by n0. Through division by ni, the runtime of an individual statement is determined.
DATA: t0 TYPE i,
t1 TYPE i,
t2 TYPE i,
t3 TYPE i,
t4 TYPE i,
tm TYPE f,
no TYPE i VALUE 100,
ni TYPE i VALUE 1000,
res TYPE f.
DO no TIMES.
GET RUN TIME FIELD t1.
DO ni TIMES.
res = TAN( 1 ).
ENDDO.
GET RUN TIME FIELD t2.
GET RUN TIME FIELD t3.
DO ni TIMES.
ENDDO.
GET RUN TIME FIELD t4.
t0 = t0 + ( ( t2 - t1 ) - ( t4 - t3 ) ).
ENDDO.
tm = t0 / ni / no.
Source: SAP Help.
Regards,
Santosh -
How to get xpath of each node?
I need to read xml data and put it on the browser. I thought frist i will get xpath of all the elements and get its value calling xpath from my another java program.
Is there any better way to do it ? please suggest me?! In the following code the last element's number is
getting incremented where i want that to start from [0].
Can anyone please help me?
My code as follows:
book.xml
<?xml version = "1.0" encoding= "ISO-8859-1" standalone ="no"?>
<book>
<person>
<first>Kiran</first>
<last>Pai</last>
<age>22</age>
</person>
<person>
<first>Bill</first>
<last>Gates</last>
<age>46</age>
</person>
<person>
<first>Steve</first>
<last>Jobs</last>
<age>40</age>
</person>
</book>
[/cdoe]
My java code as follows:import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;
import javax.xml.parsers.*;
import org.xml.sax.*;
import org.xml.sax.helpers.DefaultHandler;
* SAX handler that creates and prints XPath expressions for each element encountered.
* for above book.xml, my program will report
* //book[0]
//book[0]/person[0]
//book[0]/person[0]/first[0]---> This segment is working fine.
//book[0]/person[0]/last[0]
//book[0]/person[0]/last[0]/name[0]
//book[0]/person[0]/age[0]
//book[0]/person[1]
//book[0]/person[1]/first[1]->(this is wrong: should be //book[0]/person[1]/first[0])
//book[0]/person[1]/last[0]
//book[0]/person[1]/age[0]
//book[0]/person[2]
//book[0]/person[2]/first[2]-> (this is wrong: should be //book[0]/person[2]/first[0])
//book[0]/person[2]/last[0]
//book[0]/person[2]/age[0]Sorry code was in complete:
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;
import javax.xml.parsers.*;
import org.xml.sax.*;
import org.xml.sax.helpers.DefaultHandler;
public class SaxCreateXpath extends DefaultHandler {
// map of all encountered tags and their running count
private Map<String, Integer> tagCount;
// keep track of the succession of elements
private Stack<String> tags;
// set to the tag name of the recently closed tag
String lastClosedTag;
* Construct the XPath expression
private String getCurrentXPath() {
String str = "//";
boolean first = true;
for (String tag : tags) {
if (first){
str = str + tag;
// first = false;
else
str = str + "/" + tag;
str += "["+tagCount.get(tag)+"]";
first = false;
return str;
@Override
public void startDocument() throws SAXException {
tags = new Stack();
tagCount = new HashMap<String, Integer>();
@Override
public void startElement (String namespaceURI, String localName, String qName, Attributes atts)
throws SAXException
boolean isRepeatElement = false;
if (tagCount.get(localName) == null) {
tagCount.put(localName, 0);
} else {
tagCount.put(localName, 1 + tagCount.get(localName));
if (lastClosedTag != null) {
// an element was recently closed ...
if (lastClosedTag.equals(localName)) {
// ... and it's the same as the current one
isRepeatElement = true;
} else {
// ... but it's different from the current one, so discard it
tags.pop();
tagCount.put(localName, 0);
// tagCount.put(localName, 1 - tagCount.get(lastClosedTag));
// if it's not the same element, add the new element and zero count to list
if (! isRepeatElement) {
tags.push(localName);
System.out.println(getCurrentXPath());
lastClosedTag = null;
@Override
public void endElement (String uri, String localName, String qName) throws SAXException {
// if two tags are closed in succession (without an intermediate opening tag),
// then the information about the deeper nested one is discarded
if (lastClosedTag != null) {
tags.pop();
lastClosedTag = localName;
public static void main (String[] args) throws Exception {
/*if (args.length < 1) {
System.err.println("Usage: SAXCreateXPath <file.xml>");
System.exit(1);
// Create a JAXP SAXParserFactory and configure it
SAXParserFactory spf = SAXParserFactory.newInstance();
spf.setNamespaceAware(true);
spf.setValidating(false);
// Create a JAXP SAXParser
SAXParser saxParser = spf.newSAXParser();
// Get the encapsulated SAX XMLReader
XMLReader xmlReader = saxParser.getXMLReader();
// Set the ContentHandler of the XMLReader
xmlReader.setContentHandler(new SaxCreateXpath());
//String filename = "menuItems1.xml";
String filename = "book.xml";
String path = new File(filename).getAbsolutePath();
if (File.separatorChar != '/') {
path = path.replace(File.separatorChar, '/');
System.out.println("path="+path);
if (!path.startsWith("/")) {
path = "/" + path;
// Tell the XMLReader to parse the XML document
xmlReader.parse("file:"+path);
} -
How to get skin in each page in adobe robohelp 8 in each page
If i right click and open a new page from the generated output in adobe robohelp 8 the skin is not there. Do we have any setting in it so that if can have skin in each page if i right click and open. Please sugges me what i can do here?
Hi there
And from the sidelines here, I'm a bit concerned about seeing multiple instances of the Show link. This seems to suggest that your source files may have been repeatedly overwritten with the output files. In the first image I saw the Show link three times.
When you edit your topics, do you see little red squares all over the place? If so, you have likely shot yourself in the foot.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
How to get summary on each group
Hello,
I have DB9i and I have this query
select nvl(max(gl.load_mw), 0) MaxLoad, g.grid_name as GridName, g.max_capacity as MaxCapacity, to_char(gl.r_date,'dd/mm/rrrr') as RDate, to_char(gl.r_time,'00') as RTime
from grid g, grid_load gl
where to_char(gl.r_date,'mmyyyy') = '012008'
group by r_date,grid_name, max_capacity, r_timeI want the max of load on each GridName but with the above query its not possible if I do group with the above query the result will be same as simple query because of the existence of date and time in query. Is there any other way to handle this situation.
Thanks and Regards, Khawar
Message was edited by:
S. KhawarIf i have undersood correctly... you do not want to group by date/time ... whereas you want to display the date/time values.....
I do this using the emp table of the SCOTT schema... with analytic function.....
You have a query like this(no analytic function)
SQL> select max(sal) , job , hiredate from emp
2 group by job , hiredate;
MAX(SAL) JOB HIREDATE
1600 SALESMAN 20/02/1981
1250 SALESMAN 28/09/1981
1500 SALESMAN 08/09/1981
3000 ANALYST 03/12/1981
1100 CLERK 23/05/1987
950 CLERK 03/12/1981
799 CLERK 17/12/1980
2850 MANAGER 01/05/1981
5000 PRESIDENT 17/11/1981
1250 SALESMAN 22/02/1981
2450 MANAGER 09/06/1981
2975 MANAGER 02/04/1981
3000 ANALYST 19/04/1987
1310 CLERK 23/01/1982
14 rows selected
You can use this with the analytic function:
SQL> select max(sal) over(partition by job,hiredate) , job , hiredate from emp;
MAX(SAL)OVER(PARTITIONBYJOB,HI JOB HIREDATE
3000 ANALYST 03/12/1981
3000 ANALYST 19/04/1987
799 CLERK 17/12/1980
950 CLERK 03/12/1981
1310 CLERK 23/01/1982
1100 CLERK 23/05/1987
2975 MANAGER 02/04/1981
2850 MANAGER 01/05/1981
2450 MANAGER 09/06/1981
5000 PRESIDENT 17/11/1981
1600 SALESMAN 20/02/1981
1250 SALESMAN 22/02/1981
1500 SALESMAN 08/09/1981
1250 SALESMAN 28/09/1981
14 rows selectedGreetings...
Sim
Maybe you are looking for
-
Is there a way to delete an ebook from my iPad a and just leave it in the icloud
I have books in my iPad from Kindle.Is there a way to delete the read books from my device and just leave them in the iCloud ?
-
Error Message 1316 while uninstalling Java 2 Runtime Env SE v1.4.2_03msi
I recently updated to Java 10 while in the process of clearing some nasty virus/malware off my system. I worked with a tech guide to do the clean up. He told me to uninstall old updates, including Java 2 Runtime Environment, SE v1.4.2_03. In the proc
-
my macbook pro started acting strange after a safari reset. the mouse no longer: animates the dock, activates hot corners or selects pages from safari 'top sites' (without a hassle). attempts to reset dock and hot corners from preferences has been fr
-
Unable to sync..
Whenever I try to sync my ipod it gives me this msg "songs on the ipod cannot be synced because all of the playlists selected for syncing no longer exist". and I cant seem to find the summary tab. It always gives me that register your ipod option and
-
HELP ON NOKIA 5530 xpress music
hi, i am new user, and just buyed 2-3 days back a new nokia 5530 xpress music, and i am not happy with it, the main problems are 1) earphone problems - the earphones are not good i mean i got the white color earphone still the sound in it is so bad t