Record count message

Hi all,
I have 2 canvas (1 canvas having database block items ,2nd having control block items & FIND button also in Control block), My requirement is when i select any one of the lov and click on the find button(in 2nd canvas , control block canvas) then it navigates to the database block canvas and displays records, at that time i want to display record count message. for this i add on-count trigger on form level, but not working, Could any one suggest me please.
declare
  cnt number := 1;
begin
  go_block('Blockname');
  first_record;
  while :system.last_record = 'FALSE'
  loop
  cnt := cnt + 1;
  next_record;
  end loop;
message('There are ' || cnt || ' records in this block');
end;
Thank You

994122 wrote:
declare
  cnt number := 1;
BEGIN
  IF :SYSTEM.LAST_RECORD='TRUE' THEN
  go_block('HOPE_FORECAST_DATA');
  first_record;
  loop
      cnt := cnt + 1;
          EXIT WHEN :SYSTEM.LAST_RECORD='TRUE';
      next_record;
  end loop;
    FND_MESSAGE.SET_STRING('There are ' || cnt || ' records in this block');
    FND_MESSAGE.SHOW;
message'There are '||to_char(cnt)||' records in this block'); message(' ',no_acknowledge);
  END if;
end;

Similar Messages

  • Record Count validation - BPM v.s. Message Mapping

    Greetings,
      I've got a file of sales orders coming in from File -> RFC -> File.
    In my incoming file, the final record contains my record count.
    In my outbound file are, of course, the messages from my RFC to create orders.
    In my BPM I receive the inbound file, then use a transformation  to count the number of orders and split them into separate messages so I can loop through them in a block & call the RFC.
    I want to validate my order count against the number of orders listed in my trailer record.  Should I use a switch step in my BPM... or should I use a UDF in my message split? All I want to do... I think... is supress everything coming in and pass a message stating the error... in my outbound file.
    Please advise...
    Doug -

    Hi Doug,
    As pointed by Prabhu, u need to validate it within Mapping...
    However , I am of the opinion that the source system should ensure to send correct record count before passing on to XI....
    Thanks,
    Himadri

  • Record count per message

    How do we count the number of records send in a message. the scenario is from FTP to Proxy. No graphical mapping involved. Need to count the number of records that XI processed for a particular message.

    Kumar,
    On receiver end you have proxy's..right? you can code to count number of records  per messages inside proxys. I think this would be the simplest way.
    Nilesh

  • What event should I use to grab the record count of a DataGrid?

    I have a "Go" button on a search form.  It works correctly, fetching records from a CF data service into a data bound DataGrid.  However, using the code shown below, the record count always shows zero.  I've tried putting the "..Provider.length" line shown below, into various events on the grid, so that it will always update the count at the correct time, but I get "null" object errors at run time. There seems to be no event that fires "AfterDataLoad".
                protected function btnGo_clickHandler(event:MouseEvent):void
                     getSBJsResult.token = baa_data_svc.getSBJs(cmbSrch.text);
                     tabSbjs.label = 'Subjects: ' + grdSBJs.dataProvider.length;    //  This always returns zero.  Why?

    For example, this doesn't work.  The grid is told to loaded data on line 1, but this must just be only a message send to the Flash Player 10, because the processing doesn't stop and wait for the loading of data to complete, it just continues on to line 2, at which point '...Provider.length' is always zero the first time through.   So... the NEXT time the user clicks the Go button, line 2 is processed for the DataGrid which is holding data from the PREVIOUS search, so it updates the tabSbjs.label with the count from the previous search, not the current search.  The count of records is always for the previous data set.
                protected function btnGo_clickHandler(event:MouseEvent):void
    1               getSBJsResult.token = baa_data_svc.getSBJs(cmbSrch.text);  // edtSrch.text
    2               tabSbjs.label = 'Subjects: ' + grdSBJs.dataProvider.length;                                                                            
    All I'm trying to do is (which seems like a very difficult thing to do in FB4):
    -Display a DataGrid popluated with data records
    -Display a count of how many records are in the data grid
    If I rely on CF9 functions, which can only return a single value, then I have to make two CF9  functions, with the exact same SQL, one that returns data, and one that returns a count of the records.... which is non-sensicle.
    There must be a simple way to do this, but I'm going around in circles.

  • Standard report which gives Record count of ODS, Cube and Source system.

    Hi-
    Is there any standard report which gives the record count of ODS, Cube and Source system?
    or
    If any one has ABAP program which takes care of record count pls let me know.
    Thanks in advance

    I don't understand. You need to check the data loads. What for do you want a list of ODS, Cubes and sources systems?
    You can use messages from process chains to monitor the data loads.
    You can also use an abap program inside teh process chains to save data into a table and then an abap report to see if everything went OK.
    But, thinking again, you may be able to use BW statistics to get some of the information you need. Check the help for BW statistics, it might give you an idea of what you can do.
    Regards,
    Diego

  • Invalid Leaf Record Count??

    After Software Update installed new versions of QuickTime and iTunes, my computer hung while doing the required restart. It got stuck at the point where the spinning clock thing appears. I had to force a shutdown by pressing and holding the power button. Now when I run Disk Utility (from an OS X install CD) to repair the disk, I get the following error message:
    Invalid leaf record count.
    It should be 7, instead of 66.
    The repair ends with a message that the disk could not be repaired. However, when I start-up in single-user mode and do a disk repair by typing in “fsck –yf”, I get no error messages, and it says the hard disk appears to be OK. I also ran DiskWarrior, but that did not fix the “invalid leaf record count” problem.
    I would be interested to know what “invalid leaf record count” means and if I should be concerned.
    Thanks.
    Lou

    You can get this error if you use an older Panther CD instead of the Tiger DVD on your 10.4 as per this article.
    http://docs.info.apple.com/article.html?artnum=301266

  • How to Display Record Count on Search page?

    Hi
    I am new to OAF and one of the requirement is to display record count on Search page . I followed the same steps in Emp Search page as an example and created my search page.
    I followed the following steps
    1) I created a transietn Attribute in VO by name RecordCount
    2) I had written a method in AMImpl
    public void getRecordCount() {
    OAViewObject vo = getXXG2SourceAcctSearchVO1();
    int fetchedRowCount = vo.getFetchedRowCount();
    String msg = fetchedRowCount + " are retrived by query ";
    System.out.println(msg);
    String xfetchedRowCount = Integer.toString(fetchedRowCount);
    System.out.println("xfetchedRowCount : " + xfetchedRowCount);
    OARow reportRow = (OARow)vo.createRow();
    System.out.println("in set attribute");
    reportRow.setAttribute("RecordCount",xfetchedRowCount); // I am using this way and trying to display record count into RecordCount view Attribute
    }//getRecordCount
    3) on the SearchPG, I created a new messageStyledtext by name RecordCount and assinged VO and viewAttribute accordingly
    I am not able to see record count when i run the page ?
    Am i missing any steps ?
    I see the messages in the log file but not in Record count box ?
    Any suggestions?
    Thanks
    Ravi

    Hi Anoop
    i made the code change according to you and because of the following condition, it is createing a" new row" in the search page
    Row row = vo.createRow();
    vo.insertRow(row);
    For every search it is creating a new blank row in search page .
    I did some more research and modified my code as
    public void getRecordCount() {
    OAViewObject vo = getXXG2SourceAcctSearchVO1();
    int fetchedRowCount = 0;
    fetchedRowCount = vo.getFetchedRowCount();
    String msg = fetchedRowCount + " are retrived by query ";
    System.out.println(msg);
    //vo.setMaxFetchSize(0);
    //vo.executeQuery();
    if (fetchedRowCount == 0 )
    Row row = vo.createRow();
    //row = (OARow)vo.first();
    row.setAttribute("RecordCount", "0");
    else
    String xfetchedRowCount = Integer.toString(fetchedRowCount);
    System.out.println("xfetchedRowCount : " + xfetchedRowCount);
    Row row = vo.createRow();
    //vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    // Set the primary key value for this single-row VO.
    row = (OARow)vo.first();
    row.setAttribute("RecordCount", xfetchedRowCount);
    and in AM , I am calling this method in PFR as follows
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am1 =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    am1.invokeMethod("getRecordCount");
    now i see the record count on the search page . but after 2-3 searches, the record count value is not populating the correct value. its weird
    Any suggestions
    Thanks
    Ravi

  • Leaf Record Count???

    Hi
    I've never had any probs with my powerbook g4 until last week when it started to operate at a very very very slow pace and sometimes not connecting to my desktop (grey screen only after the apple logo). After running the disk repair from disk utility everything repaired apart from the leaf record count - which said:
    "Invalid leaf record count
    (It should be 6 instead of 53)"
    Does anyone know what this means? My mac started working ok again after repairing it despite this,but on Friday my mac wouldn't connect to anything on my desktop and the mouse arrow just kept turning into the spinning disk as if it was loading something but to no avail. Today it's working ok again but at a slow pace and when running the repair disk again in disk utility it says everything is fine apart from this leaf record count again - is this whats causing the problems? And if so, how do I repair it?

    Keelyb24:
    Joeuu is correct. Here is documentaton: Mac OS X 10.3: Disk Utility reports inaccurate "Volume needs to be repaired" message when checking Mac OS X 10.4 volume. If you used a Panther install disk for running DU, i suggest you try it from the Tiger install disk.
    In terms of your slow computer, that is another issue. Take a look at Dr. Smoke's FAQ Tuning Mac OS X Performance and see if you find anything there that helps. If the problem persists, please post back with further questions or comments.
    Good luck.
    cornelius

  • Invalid leaf record count, keys out of order?

    Yesterday I returned home from a month long trip which I did not bring my 13 inch 2011MacBook Pro on.
    I plugged it in and turned it on, and connected my phone to it so i could retrieve some photos. I looked away and looked back to see the grey  "You must hard shut down your computer" error message. Possibly because i think the phone may have been disconnected without being properly ejected? So i turned it off and then later the next day, when I try to turn it on it is stuck on the white apple loading screen forever. When I startup with Command+R and enter disk utility, it tells me:
    Invalid Leaf record count, keys out of order, volume could not be repaired. When I startup in single user mode and use fsck -fy it tells me the same.
    I got it used less than a year ago. I have some pretty heavy applications like MS Office, Photoshop and a few other adobe applications, and The Sims 3.
    Help!

    When Disk Utility can't repair a hard drive, with an error like that, many buy Disk Warrior to do the repair. You can see an answer on the Disk Warrior site here.
    Or, if you have a system backup, erase the hard drive (I would probably do a secure erase and write zero's to the hard drive) and restore it.

  • Interleaf record count - does anyone know what it is or how to fix it?

    After running verify and repair disc utility I am getting a message saying the "Interleaf Record Count should be 0 instead of 1397." The repair utility cannot fix it. I do not have any other disc repair software. Does anyone know what it is, how important it is (probably is important), and how I can fix it? Do I need Tech Tools or equivalent? Probably!! Tx!!
    Many thanks! Dwight
    This is on my old iMac G4, 700Mhz running 10.3.9.

    The only way to fix the problem is with Disk Warrior. If left alone you will likely incur data loss or more directory damage. If you don't want to buy repair software, then you could erase the hard drive, reinstall OS X, and reinstall your third-party software.
    Be sure to back up your personal data files beforehand.

  • Invalid leaf record count (it should be 175 of 5069)

    Hi guys,
    Long time Mac user and desperately wanting to bring my old Sunflower IMac back to full life.
    I was having a few problems with it, sometimes had the question mark on boot up, lots of crashing.  Decided to do an archive and reinstall.  I had been running Snow Leopard.
    Seemed to go okay, but then it would accept my password.  (I chose to reinstall importing old usernames/settings.  Hope that wasn't a bit of time save that caused this.)
    Managed to google around and reset the password.  But then it booted into Darwin when it accepted my new password. 
    More googling, and checking these boards, and I ran disk utility repair and the "Invalid leaf record count (it should be 175 of 5069)" came up.  Ram repairs and so on, and it seemed to clear, but the disc wouldn't mount when I tried to verify again.
    Booted with S-command and tried fsck -fy which I'd come across earlier in the day.  (Logged in with my username and new password.)  At **Checking Extended Attributes file the same error came up as I found with disk utility.  Then I had,
    **Checking volume bitmap
    **Checking volume information
    **Repairing volume
    *++++ FILE SYSTEM WAS MODIFIED *****
    sh-2.05a# 0
    I've been reinstalling and trying things all day but I know I've gone as far as I can without your help now.  Hope there's some way to fix this.
    Thanks for reading all that.

    Thank you, baltwo.  I've done that a few times and it shows the same message.  But I'll keep at it for a while.
    I'm thinking maybe I'll need Diskwarrior which I saw mentioned in some threads here.
    *In my OP I meant 'it wouldn't accept my password' in the third paragraph.

  • Data Load : Number of records count

    Hi Experts,
              I want to document number of records transferred to BW during an infopackage execution.
              I want to automate the process by running a report in background which will fetch a data from SAP tables about number of records been transfered by all my InfoPackage .
    I would like to know how should I proceed with.
             I want to know some System tables which contains same data as that of RSMO transaction displays to us.
    Kindly help with valuable replies.

    HI,
    inorder to get the record counts report you need to create a report based on below tables
    rsseldone, rsreqdone, rsldpiot, rsmonfact
    Check the below link which explain in detail with the report code as well.
    [Data load Quick Stats|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90215bba-9a46-2a10-07a7-c14e97bdb764]
    This doc also explains how to trigger a mail with the details to all.
    Regards
    KP

  • Record count per page , total record count per report in BI Publisher

    hi,
    In Oracle BI Publisher tool , can you please tell me how to display total record count of a report ? as well as how to display record count per page ?
    Thanks for your help
    Regards
    Gayathri

    check inbox. forwarded the updated template

  • Record Count Issue in Search page ?

    Hi Friends
    I am trying to display record count on Search page and I have the following code in
    The table has total of 62 Rows
    AM : for testing purpose, i am printing in log
    public void getISAGRecordCount()
    OAViewObject vo = (OAViewObject)getXXG2_ELIM_ISAGSView1(); //getXXG2ISAGSearchVO1();
    int fetchedRowCount = 0;
    vo.setMaxFetchSize(-1);
    vo.executeQuery();
    fetchedRowCount = vo.getRowCount();
    System.out.println("RowCount: "+ fetchedRowCount);
    IN PFR of CO: I am calling by this way
    am.invokeMethod("getISAGRecordCount");
    the Issue is
    for the first time, when i search  Based on search criteria, I know it should dispaly 10 records  but in the Log file i see the total Record Count of the Table     Ex; 62
    When i do the serach for the second time, based on search criteria, I know it should display 20 records, but the log file has 10 records ( previous search results)
    If I do the search for 3rd time, I see 2nd search results in log
    Any help in this issue, how to fix this?
    Thanks
    Ravi

    Hi,
    Please donot use getRowCount(), use getFetchedRowCount() and remove setMaxFetchSize(-1).
    Hope it will resolve your issue.
    Just for understanding of the concept:
    getFetchedRowCount() returns the number of rows cached in the view object -- including programmatically inserted rows.
    The getRowCount() implicitly execute a query against the database (if a query has not been executed yet)
    Regards,
    Reetesh Sharma

  • Invalid record count - grey screen- Target Mode Cures

    Hi there,
    I have a common problem: I was doing nothing particular that I remember: No fancy file uploads, doanloads, creation, erasing - nothing special:
    Anyway after a customary week, or few days of leaving the macbook permanently on, I think "let's give it a rest".
    Then switch back on:
    - Grey screen, spinning grey progress wheel fine.
    - Takes a while. Strange. After say a minute - it just switches off wordlessly.
    - Reset PRAM: No solution. Take a look with single-user startup in console: Files are all there, OK. Disk not dead.
    - Start up from OS X 10.5 disk:
    Permissions repair fine. Good.
    Verify disk: FAIL! +*Invalid Record Count.Volume check failed.*+
    Next: *Try target disk mode to back up essentials* - that works fine: I now have Time Machine AND a smaller important essentials backup.
    But finally, here's the surprise: Just for kicks, I *shut the macbook down, try a reboot - and it works!*
    But I note that root system files are unchanged since the problem occurred: ".hotfiles.btree" for example (I don't know what that is but suspect it's relevant).
    Then: I tried restarting again - and back to square one, it won't boot.
    Do the "Target disk" firewire mode trick again, and browse a few folders: And it boots (slowly).
    If I just leave the Macbook on permanently - everything seems fine. Not even sluggish.
    So:
    - Why can connecting a disk with an incorrect file system in target disk make the system forget about these problems when booting?
    - Why does the problem return on a successive reboot?
    - Is it related to some system files being ignored if booting straight after a target mode session?
    - What is ".hotfiles.btree", and should it not exist ?
    And the big one:
    - +Can extended Applecare, wot cost me loads of money, help me?+

    Hi Cornelius:
    Having been a faithful Apple-groupie for a while, and despite some problems over the years (hard drive failing, screen going, etc.) this is the first time I'm disappointed with them, because theor Micromat Applecare deal is a ripoff:
    You fork out for Applecare extension: All you get is something that say "Yep, you've got a problem. Now go and buy techtoolpro".
    That is, the TechTool Deluxe is practically useless. Argh.
    Worse: They keep that rather quiet. If you run TechTool deluxe, and it fails: It points you to the Techtool site to
    "download the TechTool Deluxe software with diagnostic and repair capabilities".
    You think "Aha, right, I need an update, or a DMG rather than just the executable".
    Download another 1.25Gb.
    So you try again: Same thing.
    The chiselling little crooks, to quote Ken Livingstone, won't even come out and say "Buy TechTool Pro to fix it". The website as reported above is wrong.
    Result: I'm not happy with them. And I'll never buy anything off Micromat.
    In the meantime, I've got a bootable backup thanks to CC-Cloner (excellent, I'll send him some money), and I'm waiting until I don't have any critical deadlines to allow myself time to restore a daily bootable backup.
    The dodgy files seem to be the Sun Developper Java suite according to CC Cloner.

Maybe you are looking for

  • ITunes or iPhoto wont recognise my iPad

    Whenever i plug my iPhone 4s or iPad2 into the USB and connect it to my iMAc, the iMac won't recognise it. Nothing at all happens - it will only charge. Usually iTunes or iPhoto will open up and recognise my device, but not now. I am running the late

  • Pagination with pl/sql region.

    Hi all, I have created one more sample page with pl/sql region workspace: srijaks login:[email protected] password:srijakutty Application: 49471 - Sample Field Display page 16 Initially it will display the first two records of the concerned departmen

  • Photoshop CS3 10.0.1 - Launch hangs on Registration Screen, All menu items grayed out

    I'm using Adobe Photoshop CS3 10.0.1. When launching, the window labeled "Adobe Design Suite Premium CS3" opens - it's only filled with white, and no text or graphics (I think it's usually the window asking me if I want to register, which always come

  • Trade-In Rebates for new iPods???

    Im a bit angry the new iPods are out so soon and I just got mine not even a year ago. The big thing for me is the battery power - _(Even the new Nano) 3X 's what Ive got in the 30gb._ Does anyone know if Apple will be offering any trade in rebates of

  • How long before i can use coin to war bucks on gun bros after i buy the package

    i bought the package and it wont let me do it whys this