How to get the total record count for the report
Hi,
How can I get count of the total records shown in the report. When we set the report attributes, we have an option "Set Pagination from X to Y of Z"
Does anyone know how can I get the Z value from APEX variables.
I know we can use that query and get the count but I just want to know how we can use APEX Variables effectively.
Thanks in advance.
You write a loop, something like this:
Go_block('B1');
If not form_success then
Raise Form_Trigger_failure;
End if;
First_Record;
If not form_success then
Raise Form_Trigger_failure;
End if;
Loop
If :system.record_status in('CHANGED','INSERT') then
-- modify the record here--
End if;
Exit when :System.Last_Record = 'TRUE';
Next_Record;
End Loop;
First_Record;But be very careful-- If your block can fetch a large number of rows, (over 100), this loop can take a long time, and you should not use this method. The loop will continue fetching more rows from the database until all rows satisfying the query are retrieved.
Similar Messages
-
How to get a total record count before grouping?
I need to group a report on a formula that does roughly the following:
[record count] / ( [total record count] / 20 )
What this acheives is to label each record with a number of 1 - 20 which I want to group on. Getting this figure is the easy part, what is not working is the fact that I cannot group from a formula that is calculated after grouping. I overcame a portion of this by using "Whilereadingrecords" (rather than "count", running totals, or while printing records) to acheive a record count.
I can't figure out how to get a total record count done before grouping. Is there a way to do this with "WhileReadingRecords"?? Is this even possible?
Thanks
JohnHi John,
The order of how Crystal does things dictates the order of which features you can use. Crystal has a two pass method. In the first pass it does things like passing the query, grouping, summarizing. In the second pass it does formulas, formatting, etc.
Unfortunately Crystal does the Grouping before summarizing so what you want to do can't be done in Crystal. The best way to get around this to either create a SQL Command or view/stored procedure that will do the summarizing for you. Then in the report you can use it.
Hope this helps,
Brian -
have an ipod and then got the wife an iphone4. all passwords are screwed up. she can not access playstore cuz she doesn't have password. i can not get find any help on how to get or update a password for the ipod. and then get her a separate password for her iphone. we need to save her photos, music, etc to ? icloud and the phone stuff to verizon cloud? so when she gets her new Iphone6 she can have all her "stuff" back on the new phone. hope this makes sense. please offer suggestions here or at [email protected] thanks for your help!
Oh no! I'm sorry to see there's a lot of confusion here and data shared, x-rayDon. We can definitely work to fix. This happens when two devices share the same Apple ID, so she will need to reset hers. She can do so by assessing this link Apple - My Apple ID. You will need to decide who will keep the account if want separate Apple IDs since purchases cannot be shared unless you do Family Sharing.
RobinD_VZW
Follow us on twitter @VZWSupport -
How to Get the Total Page Count in XML Reports?
Hi All,
we have a requirement where we have to print Page X of Y(Total Page Count of the document).
But whenever my header group resets the total count is also reseting.
for e.g.
I m getting the page 1 of 4, page 2 of 4, page 3 of 4, page 4 of 4 for my first record.
same way i am getting page 1 of 3 ,page 2 of 3, page 3 of 3 for my second record.
But the requirement is to display page 1 of 7, page 2 of 7, page 3 of 7, page 4 of 7 for the first header record.
And page 5 of 7, page 6 of 7 and page 7of 7 for the second record.
Is there any way to achieve this?
Thanks,
SachinYou might have better luck getting an answer here:
BI Publisher -
How to get correct opening blance data for the quarterly report in BOFC?
Hi all,
I have a problem with getting the opening balance for the quarterly report.
i would like to keep the beggining balance data for the end of previouse year. (eg: now is 2010, then keep the begginig balance at Dec.2009 for each quarterly reporrt through the year in 2009).
however, for example in the second quarter, if i choose the beggining balance of Dec.2009 in the Consolidation definition, there is a problem that consolidation FS does not include the manual journal entry that ive entered at the first quarter such as goodwill.
Do I need to make manual journal entry at all the quarterly reporting period if I want to set the beggining balance for the previouse year end?
Could somebody please tell me how to remediate to this issue?
Or how do you manage with the opening balance in BOFC?
Thanks & Regards,
HitomiHi Michael,
HRMS appliocation
database 10.2.0.4
windows XP
ebs 11.5.10.2
One of our user using disooverer 4i desktop and administration edition on old windows 2000 machine and connecting to schema.
We are decommision old windows 2000 machine.
I have installed disooverer 4i desktop and administration edition on new windows XP VM box and trying to connect to same schema which was used with old
desktop and asking me to create EUL. What is theat I should be doing to use new one same as old one?
Old box is still there.
Thanks. -
How to rectify "No master record exist for the vendor TEST" in ME41
I created an Vendor TEST in XD01
while creating a RFQ number in ME41 . It showing "No master record exist for the vendor TEST".
Why is this error occurs, what is the mistake how to rectify itHello,
Create the vendor with all details ie) Accounts, Purchase Org. Etc..
If useful reward points.
Vasanth -
How to get the total record count in ODI
Hi
I have the interface the are file to DB.
The format is like this..
HEADER
DETAIL
TRAILER
Now will write the contains of file to DB,
But i have to insert the total count ie numberof record written from file to DB in my Trailer record.
can you tell me how can i get the total count of records in file and write it to trailer?
Also, I want the interface to rollback the data if something fails will loading the data from file., ie. if there are 100 records in file and 50 got transfer and something fails i want to rollabck the 50 records from DB.???
Thanks :)Hi
You can design a flow for Full load flow and incremental flow from flat file to Table.
Create a table at target database like.. (create table with last_execution and palce the V_FULL_LOAD value and LAST_EXECUTION_DT columns in last_execution table)
Add faltfile as table in model, create a variable as V_FULL_LOAD and make sure that the default values is 01-01-1900
Create one more variable like V_LAST_EXECUTION_DATE (in this variable write a case statement that if V_FULL_LOAD value is 'Y" then full load should happen and same time you should check that V_FULL_LOAD column is balnk then write insert statment else write update statement to update last_execution_dt column, similar for 'N')
please provide your *personal mail ID*, i will send a doc file realted to your query.
we have to tables present in work repository (SNP_STEP and STEP_LOG tables) using tables we can get how many records are inserted/updated and we can find how many records are not transfer and gor error.
Thanks
Phani -
How to determine the cursor record count before the "open cursor"?
Is it possible to determine the record count of an explicit cursor without running a count()? Say, my cursor definition is something like this,
CURSOR cur_vehicle
IS
SELECT os.order_id, os.order_item, vs.part_id
vs.part_num,
vs.iso_num,
vs.model_yr
vs.dealer_cde,
vs.cust_cde,
px.plant_cd
FROM parts_source vs,
orders_source os,
plant_tbl_crossref px
wHERE os.order_id = vs.order_id
AND vs.part_id = os.part_id
AND vs.plant_cde = px.plant_cde
ORDER BY os.order_id;
I want to log the count of records returned by the above cursor prior to the first fetch, without running a count(1) for the query in cursor select.
I know adding " Count(1) over(order by null) " in the cursor SELECT will bring it. But that does not help me log the record count to some log file or table before opening the cursor for processing.
To conclude, my objective is to update the record count of cursor in some table before processingsarvan wrote:
Is it possible to determine the record count of an explicit cursor without running a count()?
..snipped..No. The only way to do it correctly is inside that select.
Each select is a consistent read. Which means that if this is done as 2 select statements, the 1st select can see a different version of the data than the 2nd select statement. does. So if you want a count and that to be consistent and on the same version of the data than the select, it has to be done as part of the select.
Also consider what a cursor is. It is not a result set of sorts that is created in memory upfront - with a convenient interface that tells you the size/number of rows of that result set.
A cursor is basically a program that reads database data as input and produce output. A fetch from a cursor is an instruction for this program to execute and output data.
There's no data set that is created by the cursor from which the count can be determined. The cursor program does have state variables - like +%RowCount+ that specifies how many rows the cursor has thus far output. And you need to run that cursor to the end (no more output) in order to determine the total number of rows output by the cursor. -
How to get denomination of Notes ? for the amount paid
Dear Freinds
i have requirement where the total amount obtained by a employee through Cash . They wanted to have denomination
for the amount paid ito that employee
ex : An X employee got RS.5550 rupees as cash. They wanted to know how much money has been paid in Denomination
of 10 Rupee notes,20 Rupee notes,50 Rupee notes,100 Rupee note,500 Rupee note & 1000 Rupee notes.
so the data has to be displayed should be
since the employee is gettign 5550 --> it has to 1000*5 --> Five Thousand rupees notes --- 5 count should come
500 will be paid as ---> 500 * 1 -
Five hudress count is 1
50 is the balance -
it will be paid as fivty note -- Count is 1.
so i have to get 5000------ count 5 , 500 count 1,50 count 1. Can any one go this type of denomination doing code please
let me know how to proceed.
Regards
divya
Edited by: Divya Kumari on Jul 8, 2011 2:18 PMActually
the scenario is that in some employees ( if you go employee subgroup) like daily labour and casual labours will be paid
on daily bais for them they will not be paid to bank . I n that case those type of employees will be paid by CASH. So in teh month end the company wanted to knwo what type and how much money paid .
regards
divya -
How to get th displaye record count through SQL*Plus without result
set lines 155
set pages 100
set autoprint on
variable cv refcursor
set serveroutput on size 1000000
set timing on
set feedback on
set echo on
exec proc_name (input1, input2, :cv);how to get the record count without resultset display in the sql*plus promt ...?
plz help me....This is my earilier code
set lines 155
set pages 100
set autoprint on
variable cv refcursor
set serveroutput on size 1000000
set timing on
set feedback on
set echo on
exec proc_name (input1, input2, :cv);
Then i have tried to execute like this
declare
disp SYS_REFCURSOR;
cv SYS_REFCURSOR;
cnt number :=0;
begin
proc_name (input1, input2, :cv);
FOR disp in cv --here cv is the set of record set
LOOP
--FETCH cv INTO disp;
EXIT WHEN cv%NOTFOUND;
cnt := cnt + 1;
END LOOP;
dbms_output.put_line(cnt);
dbms_output.put_line(cv%rowcount);
CLOSE cv;
end;
getting error...
LOOP
ERROR at line 8:
ORA-06550: line 8, column 2:
PLS-00103: Encountered the symbol "LOOP" when expecting one of the following:
. ( % ; for
The symbol "; was inserted before "LOOP" to continue.
ORA-06550: line 13, column 2:
PLS-00103: Encountered the symbol "DBMS_OUTPUT"
ORA-06550: line 13, column 27:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
. ( , * % & - + / at mod rem <an identifier>
<a double-quoted delimited-identifier> <an exponent (**)> as
from into || bulk
I have set of executable procedure script for exec procedure1(input1, input2 :cv); , exec procedure1(input1, input2 :cv);,.... like that. But i want only the record count, while we execute all these scripts in the sql promt...How to do that one.. ? -
How to get standard view or table for the standard inforsource
Hi all:
According to business reqirement, we are going to use standard inforsource 0CO_OM_CCA_10,
we need to know the standard view or table in order to corresponding DataSource?
could you please tell me how to get the standard view or table or DataSource?
Couldn't thank you more!Hi Sony,
Goto RSA1>BI content installation>goto objects>double click on the Infosource>then a pop-up comes search for that infosource-->select it and click on transfer
Before that in the right side of the tab select the grouping as "Before and afterwards of the dataflow" and collection as automatic.
then you get all the datasource/cubes and all the object related to the infosource.
OR another option is-->
Goto RSA6 in the R/3 and search for the datasource with the name "0CO_OM_CCA_10" (don't forget to expand all the tree structure in RSA6)
then goto that datasource and double click on the datasource then you will get the Extract structure of that datasource.
double click on the extract structure then you may get the View name also.
hope this helps...
Regards,
Ravi Kanth -
How to get rid of error message for the material?
Hi everybody,there is a material which is showing an error message whenevr try to create a sales order, i've checked the material master...there is no check in X-plant Mtrl or X-dist chan or any flag for deletion...but still the red error message comes up while creating a sales order...how to get rid of this error?
this means material is blocked for procurment
three kinds of block can be there
01 Blocked for procment/whse
02 Blocked for task list/BOM
03 Blocked for Purchasing
GOTO MM42 give material n plant data
Select BESIC VIEW
there is a field called as material block remove the blocking reason
Hope this will help
Edited by: WISH on Mar 24, 2008 6:33 AM -
How to get delivery address in STO for the storage location
Hi All,
We have to create STO from the reservation using MRP run. While system is creating the STO we need to populate the storage location address as delivery address (not the plant address ). How we can do that? what are teh settings required for this setup? please hlep in that.
Regrads,
KhanHello...
You can select the storage location in the line item itself which is adjecent to Plant for the line item.
Regards
Suresh -
What is the total checkout cost for the iphone 5 16gb?
I live in CA. i really need to know so I can put the right amount in my card.
Plz help
Cuz I am willing to purchase it right now.
Thanks.Well, the answer has a few variables.
Are you getting a "new contract" price with your carrier? Does your carrier have an activation fee? Do your state, county, or community have sales taxes they charge?
I can tell you that when I purchased my 64GB iPhone 5 near Indianapolis, IN, I paid $427.99 to teh AT&T store that I happened to find with one in stock that I could buy. That was the $399.99 for the iPhone plus 7% ($28) sales taxes (state, county & local). -
Dates in the condition record maintenance for the condition type?
Hi,
Condition type has the following dates when maintaining the condition record,
Valid from date:
Valid on :
Please ellaborate on the above dates?
ThanksDear Rajiv
Valid from date:- The date from which the said condition type is applicable. For example, in VK11, if you changed (let us assume PR00 changed to Rs.250 from 200) a condition with a date as 01-06-08 in the above field, only from 1st of June'08, whatever sale orders you generated, revised value of Rs.250 will flow in the respective sale orders. Whatever created b4 1st June'08 will be having Rs.200.
Valid on :- As in the above case, if you input a date as 30-05-08 for the above condition type, system will populate Rs.200/- and if you input 01-06-08, it will propose Rs.250/-.
Hope this explanation is suffice for you to understand the difference between the two fields.
thanks
G. Lakshmipathi
Maybe you are looking for
-
I have the Bejeweled Blitz app (for Facebooik) on my iPod Touch 4th gen. If I want to find gems (special items used in Bejeweled) I have to use a browser (I'm using Atomic Browser) on my iPod so I can grab gems from Facebook's news feed. What's SUP
-
My old computer on which I set up my itunes account and used for backing up my iPhone 3GS is no longer usable. Can I sync my phone and back up on another computer? How do I go ahead and do this. Thanks
-
What is the importance of Account Currency in GL master
HI, Guru's what is the importance of account currency in GL master Moderator: Please, search before posting
-
Changed jpegs in camera raw but not changed.
Does one have to run a batch on these? When I open them in preview, they are not adjusted or changed, even though they were altered in camera raw. thanks.
-
i went to setting and went to message i clicked login with apple id then i enter the info after a few it crashes. PLZ HELP