How to get the Child count

Hi ,
I have requirement to display reprort based on number of Child records. Suppose I have 2 child record need to display reprot two times including header information in a report.
XML structure as below :
<ServiceAgreement>header
<AccountAddressId>1-H5-47</AccountAddressId>
<AccountId>1-GK-40</AccountId>
<Active>Y</Active>
<AgreementId>1-TUMH</AgreementId>
<BillToAddressId>1-H5-47</BillToAddressId>
<CreatedByName>501172873</CreatedByName>
<CreatedByUser>501172873</CreatedByUser>
<CreatedDate>03/16/2011 21:02:40</CreatedDate>
<BEHCAccountCity>HAY RIVER</BEHCAccountCity>
<BEHCAccountName>HAY RIVER HEALTH & SOCIAL SERVICES AUTHORITY</BEHCAccountName>
<BEHCAccountState>CN</BEHCAccountState>
<BEHCAccountStreetAddress>3 GAETZ DR</BEHCAccountStreetAddress>
<BEHCBillToStreetAddress>3 GAETZ DR</BEHCBillToStreetAddress>
<BEHCPOPreference>N</BEHCPOPreference>
<BEHCPORequired />
<ListOfbehcPurchaseOrder2>
Child1
<behcPurchaseOrder2>
<AgreementId>1-TUMH</AgreementId>
<Name2>1-132I10</Name2>
<POAmount>345</POAmount>
<POExpirationDate>11/17/2011</POExpirationDate>
<PONumber2>12345</PONumber2>
<Type>Purchase Order</Type>
</behcPurchaseOrder2>
Child2
<behcPurchaseOrder2>
<AgreementId>1-TUMH</AgreementId>
<Name2>1-132TGJ</Name2>
<POAmount>500</POAmount>
<POExpirationDate>10/20/2011</POExpirationDate>
<PONumber2>45678</PONumber2>
<Type>Purchase Order</Type>
</behcPurchaseOrder2>
</ListOfbehcPurchaseOrder2>
</ServiceAgreement>
In above xml have two child node are there and expecting below format report
Report Page1
Header information
BEHCAccountName
BEHCAccountState
first Child node information
PONumber2
POExpirationDate
for second report page2
Header information
BEHCAccountName
BEHCAccountState
second Child node information
PONumber2
POExpirationDate
To repeat header information how can i get number of childs and to repeat header for each child information.
Edited by: user9530489 on Sep 14, 2011 1:12 PM
Edited by: user9530489 on Sep 14, 2011 1:40 PM

ronisto wrote:
1e Even the modify XML file look like what u see below, still give me 5 for the lengh.There is still whitespace text between the elements.
If you don't want to see the Text elements, you should use the following:
<aaron2 lettres="DEORSU"><solution>
<mot3 mot="DOX"/>
<mot4 mot="DUVF"/>
</solution><dictionnaire>
<mot3 mot="DES"/>
<mot4 mot="DESF"/>
</dictionnaire></aaron2>
2e It return length = 0 for line u see below
NodeList children = aronDoc.getDocumentElement().getElementsByTagName(aronDoc.getDocumentElement().getNodeName());
That is because you are asking for the elements from the document-element which have the same name as the document element.
Your code is equivalent to:
NodeList children = aronDoc.getDocumentElement().getElementsByTagName("aaron2");Instead you probably want the following:
NodeList children = aronDoc.getDocumentElement().getElementsByTagName("solution");

Similar Messages

  • How to get the row Count of a ResultSet

    How to get the row Count of a ResultSet

    Hi
    I'v tried rennie1's way ,but I only get zero,my code is:
    rs.executeQuery("select count(*) from t_test");
    if (rs.next()) int rowCount=rs.getInt(1);
    I also tried barni's way ,but the method rs.last() and rs.beforeFirst() throw a same Exception
    I tried another way,the code is:
    while rs.next(){
    // Do nothing ,just move the cursour to the last row
    int rowCount=rs.getRow()
    However,the rowCount still equal zero
    Any help would be greatly apprecite!
    note:
    I get connection by DataSource's JNDI name from client, the Server is Weblogic Server 6, the DBMS is Oracle.

  • How to get the column count at the bottom of the column

    Hi Friends,
    How to get the column count at the bottom of the column
    Thanks
    Raj

    You mean row count? Add another column, click on the fx button and type RCOUNT(1).
    If you want just the total you can make it MAX(RCOUNT(1)), hide this column and then add a Narrative View after your report and enter "Total Number of Records: @n" where "n" represents what order your column is from the left side.

  • File Adapter - how to get the file count from a folder

    Hi All,
    I have a requirement that have to poll a directory when the file count is reached to number N (ex:number of files avilable in folder is 5) otherwise it should wait and not pick any of the files. Is it possible to get the file count from a folder using file adapter ?? otherwise please suggest me an approach to achieve this requirement.
    Thanks,
    JJ

    Hi Sarath,
    Thank you for your reply.
    Go with the list files operation of file adapter it will gives you the number of files in the specified folder as you given. . - this step is already done.
    When the number of files reaches your count startup your webservice that which can polls the files. . . - how can i acheive this?? Have to poll the directory and process the number files - please let me know, what could be added to the webservice which is being invoked after cheking file count from parent process.
    The reason for the above question is - we cannot use ReadFile operation in second webservice because it will be automatically triggered when the file is avilable. Also SyncRead operation supports reading one file in b/w bpel process. Kindly explain me the implementation steps.
    Thanks,
    JJ

  • How to get the FILE COUNT from File directory

    Hello,
    i have to develop a scenario like, get  the file count from source file directory and validate whether the file count is 5 or not. if 5 files exist i need to process those 5 files to DB tables. if file count is not equal to 5 then i need to send a mail to customer that files are missed at source directory. (subject as files were missed at source directory and in content i need to display the file names exist at source file directory. So that missed file will be generated by the customer based on this mail).
    Could you please let me know how to get the count of files from source file directory. if it is possible only with UDF please provide the Java code
    Best Regards,
    SARAN

    Do these files have some fixed names?
    Can you try to use the option Advanced Selection For Source File to make XI  pick all 5 files in one shot?
    Check this blog on the same -
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    If this is not a option - BPM sounds the only possible way.
    Regards,
    Bhavesh

  • SharePoint 2013 Rest API - How to get the item count with startsWith

    Hi All,
    I am using the below url to get the item count for specfied startsWith. For example I want to know how many items are there in the list which starts with "A". When i hit the below url in the address bar i am getting HTTP not found.
    siteURL/sites/Apps/SharePointApp3/_vti_bin/listdata.svc/SampleList/items?$filter=startsWith(Title,’A’)
    Navaneeth

    what
    is SharePointApp3.
    here. 
    it is a webpart.
    this will not work on webpart\apps
    Also I am not sure if it will work with specific SampleList 
    Try 
    siteURL/sites/Apps/SharePointApp3/SampleList/_vti_bin/listdata.svc/Keywords?$filter=substringof('r',Title)
    If this helped you resolve your issue, please mark it Answered

  • How to get the record count printed for the report in the Dashboards

    Hi,
    I would like to get the record count printed at the bottom of every dashboard report like:
    < 1 - 25 of 6300 > instead of < 1 - 25 >
    Any help is appreciated
    Regards
    B

    I have tried the following formula which identifies the lowest grain but it does not seem to give me correct result.. I am not getting the correct count. I am getting as 3.A work order can be updated only once at one point of time.hence the formula
    MAX(RCOUNT(CAST("SR Wo Fact"."Crm Wo Number" AS CHAR) ||CAST("SR Wo Fact"."PSC Timestamp" as char)))
    I tried only MAX(RCOUNT(1)), but I was able to get the record count as corect for Administrator but not for other users.
    Has anyone come across this scenario.
    Thanks Shravan
    Edited by: 786443 on Aug 19, 2010 10:22 AM

  • How to get the total count of the no. or rows a cursor has fetched

    Hi All,
    Is there a way to get the number of rows a cursor query has fetched, without looping into the cursor and using a counter variable
    I mean like in pl/sql table we can directly use the pl/sql table attribute .count is there a way to achieve this in cursor
    thanks a lot in advance

    Qwerty wrote:
    Is there a way to get the number of rows a cursor query has fetched, without looping into the cursor and using a counter variableYes.
    It is zero.
    On the first loop and first fetch it will be 1, second 2 etc.
    This is because cursors have no rows, or fetch no rows until your code or the client uses the cursor to fetch them.
    I mean like in pl/sql table we can directly use the pl/sql table attributeA PL/SQL array is not like a cursor, a PL/SQL array has the rows already fetched into it.
    A cursor is not an array but a pointer to a compiled SQL statement so you cannot count how many rows it has, because it has none. You can only count how many rows you fetch from it.

  • How to get the child class in inheritance?

    hi,
    if I have a store for renting videos .. and I have Video class (parent) and two (child) classes DVD and Cassete which they are extend the video class.
    And the user wants to rent a DVD which is the child, how do I do that? can I write just getDVD() as simple as that or maybe I need to use a keyword like "getinstance of DVD " or something I don't know how to do this.
    class Video have attributes like title, date of production and director.
    I'm not good in inheritance help please.
    thanks

    georgemc wrote:
    DrLaszloJamf wrote:
    Post a SSCCE: http://mindprod.com/jgloss/sscce.html
    You're not the boss of me ;-)Actually, I haven't stopped to count, but most of the time the poster never bothers to write a sample program. If fact, if I weren't such a softie, I would make that an absolute requirement for any further help. Too often, you are just shooting in the dark and 50 replies later the question is still vague.

  • How to get the page count of a tiff image:

    Hi,
      My process takes input (of document type) tiff image. I want to get the number of pages present in the tiff image into one of my process variables.
    How can I get that?
    Thanks,
    kc

    Hi
    I'v tried rennie1's way ,but I only get zero,my code is:
    rs.executeQuery("select count(*) from t_test");
    if (rs.next()) int rowCount=rs.getInt(1);
    I also tried barni's way ,but the method rs.last() and rs.beforeFirst() throw a same Exception
    I tried another way,the code is:
    while rs.next(){
    // Do nothing ,just move the cursour to the last row
    int rowCount=rs.getRow()
    However,the rowCount still equal zero
    Any help would be greatly apprecite!
    note:
    I get connection by DataSource's JNDI name from client, the Server is Weblogic Server 6, the DBMS is Oracle.

  • How to get the  page count in XML Publisher Report

    Hi Team,
    I am generating one xml report. I want to get the total Page count in XML publisher report. This page count is depends on the input Parameters at runtime. How to get this total page count on the runtime dynamically.
    Best Regards
    Sri

    there is some seeded variable available please read xml publisher developer user guide

  • How to get the Employess count ?? in the calculation  script

    Dears,
    I have a problem in my calculation script.
    I want to get the total number of employess in every grade .
    My logic is about ,to check if the cell of the employee is have a number
    So, I could counter how many cells filled with numbers . So, I could get the numbers of employess in each grade.
    I have 2 members :
    -One to put the employee No ( Which I will do the check in)
    -the other to put all number of the summed calculation
    Thanks in advance.

    Dears , I'm very grateful for your quick feedback ,
    BUT, I have some comments
    @COUNT functions is used to calculate how many members in the specified member |
    ex. in sample basic If I did @COUNT on products , It would return the number of products in outline
    BUT my situation will be as following :
    I have dataform for employess for the specified grade, containing employee number and employee name
    I want to check the cell of number of employess have a number or not , then count the employess total number by oserving how many rows filled with data

  • How to get the row count of a Table DATA?

    Hi,
      In my Adobe form layout, I have a Table node which is bound to an internal table. Now at runtime, I want to determine the number of rows that the internal table has, i.e the row count of the DATA node of the Table. How will I be able to determine the no. of rows of the internal table at runtime using Javascript? I am not being able to find any suitable answer in this forum. Please suggest. Thanks in advance.

    Hi,
    If you bind the interactive form table to the internal table and specify some properties, the table will vary its row size according to the number of data available in the internal table.
    You have to wrap the table in a sub form,  check 'allow page break with contents' and property 'flowed'.
    the table will automatically increase its row size...
    Is this the reason for which you wanted for the row count..?
    If so, this will help you..
    Regards.
    Surya

  • How to get the child data in MDX query?

    I have an MDX query that will return the data for an OLAP report. These report data include the parent_id, child_id and some dimensions data in it. How do I modify the MDX query to have a New member to show a dimension value of the child_id.
    The child_is is actually the parent_id on another row. It is the "Pstpd Decision" I want to be included in a new column using the "Appeal Id". Thanks
    WITH MEMBER [Measures].[Avg TA Time] AS [Measures].[Turn Around Time]/[Measures].[Number of Request]
    SELECT NON EMPTY { [Measures].[Number of Request] } ON COLUMNS,
    NON EMPTY { ([Request Date Time].[FY-AP].[Account Period].ALLMEMBERS *
    [Request Drugs].[Drug Generic Name].[Drug Generic Name].ALLMEMBERS *
    [Dispensary].[Dispensary Hierarchy].[Dispensary].ALLMEMBERS *
    [Disease].[Tumour Group Site].[Tumour Group Site].ALLMEMBERS *
    [Disease].[Tumour Group Sub Site].[Tumour Group Sub Site].ALLMEMBERS *
    [Patient].[Patient Agency ID].[Patient Agency ID].ALLMEMBERS *
    [Pstpd Decision].[Decision].[Decision].ALLMEMBERS *
    [Request].[Request Id Key].[Request Id Key].ALLMEMBERS *
    [Request].[Appeal Id].[Appeal Id].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS
    FROM ( SELECT ( { [Appeal Yes No].[Status].&[Yes] } ) ON COLUMNS
    FROM ( SELECT ( STRTOSET(@RequestDateTimeFiscalYear, CONSTRAINED) ) ON COLUMNS
    FROM [CAP Request])) WHERE ( IIF( STRTOSET(@RequestDateTimeFiscalYear, CONSTRAINED).Count = 1, STRTOSET(@RequestDateTimeFiscalYear, CONSTRAINED), [Request Date Time].[Fiscal Year].currentmember ), [Appeal Yes No].[Status].&[Yes] ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    data. 
    Kahlua

    I got it to work by adding the child_id's "decison' to the fact table as it is alot easier to get that data using Sql Script while creating the fact table and also there is already a "decsion" dimension setup. In the cube I can select the
    parent_id's decision and/or child_id's decision. It is working on the report. Thanks.
    Kahlua

  • How to get the page Count of an .epub document

    How does the page is counted for an ebook in Adobe Digital Editions in .epub format and where the total page count is saved?

    This is not exactly what I'm talking about. This is what is written about this suite in the documentation:
    This suite allows you to activate, access, and modify crop areas in Illustrator documents.
    Illustrator maintains a list of crop areas in a document, and these functions allow you to iterate through the list. The active crop area is the one returned by AIDocumentSuite::GetDocumentCropBox(), which is displayed with crop marks, and which is used when saving or exporting to a file.
    That is, using this suite, we can select crop box of the document (area inside crop marks). I choose this area by using the function SetDocumentCropBox or using actions - PlayActionEvent( "adobe_makeCropMark",...
    And how choose a page size of the document, which is selected through menu item Page Setup? Standard function SetDocumentSetup not works - as stated in the documentation, it can be called only in documents opening. :-(

Maybe you are looking for

  • N810 (Internet Tablet): Is it possible to have the...

    Hello, I have a brand new Nokia N810 with a built-in GPS. There is a Map application from WayFinder (a company that is only contactable via a non working web form!) included with the device. The map application starts fine, and have maps for my count

  • Vendor - 1099 Misc.

    Hi, Can someone please walk me through how to config / set up and print 1099 MISC forms for vendors. Thanks

  • Mis-registered system or lost?

    I have a user with a laptop AB12345, which is in a remote location but joined to our domain. These systems use our external-facing (DMZ) Zenworks 11.2.4 server "over the internet", but also the user can connect via VPN which then automatically will s

  • DSEE 6:  do "dsconf export" and "dsadm export" produce identical results?

    Hi, I tried exporting using "dsconf export" with the flag "not-export-unique-id". I was surprised that when I checked the resulting LDIF file "nsUniqueId" values were present. I then tried the same export using "dsadm export" with the "not-export-uni

  • How to patch DemoIdentity.jks with new host name

    Somehow, after WebLogic was installed on a particular box, the DNS name for the local host was changed slightly. I created a domain on that box and I was about to start a managed server from the admin console, and I noticed that the NodeManager was n