First Populated Record
Hi All,
is it possible to loop through a field until it finds the first populated record and display it. The section that i'm using is Report Header.
Thanks,
Dave.
In order to determine the first populated record you'll need a date field to measure when the transaction was recorded.
If that is the case, you can insert a group on record field and then on date field. Ensure the date field is set for each day in ascending order. The first record would be the first on your list.
I hope that works.
Regards,
Zack H.
Similar Messages
-
How to get first 10 records from the database using JSP
i want ot get first 10 records from the database and then after clicking the next button in the page,it must show the next precceding 10 records from the database.i am getting the first 10 records .but how to post to the same page to get another preceeding 10 record.
Search the forums - this has been asked a lot. I usually recommend experimenting with tops and order bys until you're satisfied.
Kind regards,
Levi -
Need Help in Inserting first ever record
I need help in inserting my first ever record from an OAF page.
I've created an AM 'MasterAM', added 'MasterVO' to it. Created a Page CreatePG which has a submit button, id = Apply
Below is processRequest of CreateCo
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (!pageContext.isFormSubmission()) {
am.invokeMethod("createRecord", null);
and below is processFormRequest
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (pageContext.getParameter("Apply") != null)
OAViewObject vo = (OAViewObject)am.findViewObject("MasterVO1");
am.invokeMethod("apply");
pageContext.forwardImmediately("OA.jsp?page=/abcd/oracle/apps/per/selfservice/xxdemo/webui/CreatePG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
Below are 'createRecord' and 'apply' in MasterAMImpl
public void createRecord(){
OAViewObject vo = (OAViewObject)getMasterVO1();
if (!vo.isPreparedForExecution()) {
vo.executeQuery();
Row row = vo.createRow();
vo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
public void apply() {
getTransaction().commit();
When I run the page, it opens and I try to enter some data and press Apply. it does not insert into the table.
Could anyone help me out.
My jdeveloper version is 10.1.3.3.0.3I am facing the same issue.
rows get inserted into the tbale, but only whol columns have the data.
all the attributes are correctly mapped to view instance and view attribute.
My VO has 1 EO and , i have joined another table to get desctriptions of the field.
could that be the problem ?
ex :
select item , desc
from t , master
where t.cola=master.colb
table t is the custom table I want the data to go in. but only who columns appear after commiting.
any clues ? -
First Row Record is not inserted from CSV file while bulk insert in sql server
Hi Everyone,
I have a csv file that needs to be inserted in sql server. The csv file will be format will be like below.
1,Mr,"x,y",4
2,Mr,"a,b",5
3,Ms,"v,b",6
While Bulk insert it coniders the 2nd column as two values (comma separte) and makes two entries .So i used filelterminator.xml.
Now, the fields are entered into the column correctly. But now the problem is, the first row of the csv file is not reading in sql server. when i removed the terminator, i can get the all records. But i must use the above code terminator. If
am using means, am not getting the first row record.
Please suggests me some solution.
Thanks,
SelvamHi,
I have a csv file (comma(,) delimited) like this which is to be insert to sql server. The format of the file when open in notepad like below:
Id,FirstName,LastName,FullName,Gender
1,xx,yy,"xx,yy",M
2,zz,cc,"zz,cc",F
3,aa,vv,"aa,vv",F
The below is the bulk insert query which is used for insert above records,
EXEC(BULK INSERT EmployeeData FROM '''+@FilePath+'''WITH
(formatfile=''d:\FieldTerminator.xml'',
ROWTERMINATOR=''\n'',
FIRSTROW=2)'
Here, I have used format file for the "Fullname" which has comma(,) within the field. The format file is:
The problem is , it skip the first record (1,xx,yy,"xx,yy",M) when i use the format file. When i remove the format file from the query, it takes all the records but the "fullName" field makes the problem because of comma(,) within the
field. So i must use the format file to handle this. So please suggest me , why the first record skipped always when i use the above format file.
If i give the "FirstRow=1" in bulk insert, it shows the "String or binary data would be truncated.
The statement has been terminated." error. I have checked the datatype length.
Please update me the solution.
Regards,
Selvam. M -
Dynamic load Advance Datagrid for First 10 Record
Hi
I have a Advance Datagrid and i have to display the datas of first 10 records in the Grid and then to display the next 10 Records when i scroll the Datagrid
Can Any one help me in this to Complete the task
With Regards
Gopinath.A
Software Engineer,
First Internet Systems Pvt Ltd.,
Chennai.
IndiaHi danny,
Thanks for Your Reply...
I have implemented the same.But i cant get the result..Can u Please send me any Example Regarding it
With Regards.
Gopinath.A
Software Engineer.
First Intenet Systems.
Chennai. -
I got all wbs record from P6 for specific project except
first wbs record
I found in Primavera
Integraation API that for WBSObject of project it does not
allow to load that wbs record? How to get first wbs record
for Project in P6?I am tried load it may way like using
Primavera Integration API classes like Enterprise laod
manager,Project contains method LoadAllWBS which are not
loading WBS record. How should I get First Wbs record for
specific project?Hello,
Your question would be
answered best by our Support Team. Support can be
accessed at
http://primavera.com/customer/support.asp<br
/>
Have a great day,
Justin -
Display lines first 10 records field1 next 10 records field2
HI
i have an issue in oracle reports.
i need to display the first 10 records in field1 next 10 record field2
please give me a idea my mail id is [email protected]
Regards,
KamarajIn OBIEE 10g, within the 'table view properties' options (second icon from left in the edit table screen) you will see an option for rows per page. Set this to 10 and the arrows should appear.
It can be quite hard to find the screen in question. From the pivot table builder screen, click the big round icon to the left of 'compound layout' drop down. Then you need to click the 'Edit View' icon in the header of the table. Finally you can then click the 'table view properties' icon, second left.
Good luck,
Paul -
Retrieve first 3 records for each id
Hi there,
I am having trouble solving this problem. Appreciate for any help.
tableA
pidm
1125
0034
tableB
pidm term
1125 2006
1125 2007
1125 2009
1125 2010
0034 2004
0034 2006
0034 2007
0034 2008
I want to retrieve only the first 3 records from tableB order by term for each pidm that match to pidm of tableA
select pidm, term from tableB where pidm in (select pidm from tableA) and rownum < 4
This only return 3 records instead of 6:
it should return:
pidm: term:
1125 2006
1125 2007
1125 2009
0034 2004
0034 2006
0034 2007
Thankssql>select pidm, term
2 from (select a.pidm, b.term, row_number() over (partition by a.pidm order by b.term) rn
3 from tablea a, tableb b
4 where b.pidm = a.pidm)
5 where rn <= 3;
PIDM TERM
0034 2004
0034 2006
0034 2007
1125 2006
1125 2007
1125 2009
6 rows selected. -
Want to get sum/avg first 90% records in each grouped record set.
Hi Gurus,
Need your help or example query which help me to achieve sum/avg first 90% records in each grouped record set. Let me show you the basic query and output and proposed output.
select Pid, Sum(SalesAmt) TotalSaleAmt, Avg(SalesAmt) AvgSaleAmt, count(*) NoOfSales from ProductSales group by Pid;
PID TotalSaleAmt AvgSaleAmt NoOfSales
1 12000 100 120
2 24000 50 480
Now I need for PID =1 TotalSaleAmt of first 90% of NoOfSale i.e.120(this is basically nuber of rows found in PrdocutSales Table).
I hope I am clear enough explain my requirement... I would appreciate if we have some Analytical function available..
Gurus Pls help me asap..
Thanks In adavance...
Srichan.Now I need for PID =1 TotalSaleAmt of first 90% of NoOfSale i.e.120(this is basically nuber of rows found in PrdocutSales Table).
first 90% should mean first 90% by some order, so in this case, which 108 rows (of the 120) do you want to take into consideration?
with
the_sample as
(select 1 the_pid,10 the_sale,1 the_order from dual union all
select 1 the_pid,20 the_sale,2 the_order from dual union all
select 1 the_pid,15 the_sale,3 the_order from dual union all
select 1 the_pid,12 the_sale,4 the_order from dual union all
select 1 the_pid,12 the_sale,5 the_order from dual union all
select 1 the_pid,13 the_sale,6 the_order from dual union all
select 1 the_pid,19 the_sale,7 the_order from dual union all
select 1 the_pid,11 the_sale,8 the_order from dual union all
select 1 the_pid,15 the_sale,9 the_order from dual union all
select 1 the_pid,12 the_sale,10 the_order from dual union all
select 2 the_pid,25 the_sale,1 the_order from dual union all
select 2 the_pid,22 the_sale,2 the_order from dual union all
select 2 the_pid,22 the_sale,3 the_order from dual union all
select 2 the_pid,23 the_sale,4 the_order from dual union all
select 2 the_pid,29 the_sale,5 the_order from dual union all
select 2 the_pid,21 the_sale,6 the_order from dual union all
select 2 the_pid,25 the_sale,7 the_order from dual union all
select 2 the_pid,22 the_sale,8 the_order from dual
select the_pid,the_sum,the_avg
from (select the_pid,
sum(the_sale) over (partition by the_pid order by the_order) the_sum,
round(avg(the_sale) over (partition by the_pid order by the_order),2) the_avg,
the_order,
floor((0.9 * max(the_order) over (partition by the_pid))) to_pick
from the_sample
where the_order = to_pickRegards
Etbin -
How to select first several records from a database table by using select?
Hi,
I want to select first 100 records from a database table by using select clause. How to write it?
Thanks a lot!hai long!
well select statement is used to retrive
records from the database.
following is the syntax to be used.
1) select * into corresponding fields of itab from basetable where condition.
endselect.
ex: select * into corresponding fields of itab from mara
where matnr >= '1' and matnr <= '100'.
append itab.
endselect.
select * is a loop statement.it will execute till matnr is less than or equal to 100.
note: you can also mention the required field names in the select statement otherwise it will select all the field from table mara.
note: itab means your internal table name.
hope you got the required thing.if it really solved u r problem then award me the suitable points.<b></b> -
Reg : first inserted record in a table
Hello all,
Could any of you help me in writing a query to get the first
inserted record into a table.
Suppose I've the following table :
my_table : structure
Name Null? Type
ID NOT NULL NUMBER
Ive inserted value 20 into the table first, and then inserted
value 10. I want to retrieve the first inserted record with
value 20. How do I write the query for that ??????
Awaiting for the reply,
Thanks in Advance...
SriniOne small disagreement with Andrew's posting, but
rownum is assigned to rows after they have been identified
as part of the result set, but before the ORDER BY is
applied. Hence the two queries ...
select * from my_table
where rownum = 1
order by id ASC
... and ...
select * from my_table
where rownum = 1
order by id DESC
... will probably return the same result.
However in neither case is the result guaranteed to be the
first inserted row.
If you had created a table very recently, and it had only a
single extent, you could get the first row of the first block of
that extent with ...
select * from my_table where rowid =
(select min(rowid) from my_table)
... but as Andrew says, the only way to do the job properly is
to timestamp the rows as they are inserted. Anything else
would only be of theoretical interest. -
How to display first three records of an internal table
hi,
I have a requirement, in which i want to display the first 3 records of an internal table.
Pls help me.
Regards,
VipinHi,
data: count type sy-tabix.
count = 1.
if count < 4.
loop at itab.
write: / Field.
endloop.
endif.
Reward if helpful.
Regards. -
Error while editing an automaticlly populated record of a custom infotype
hi,
a query in HR ABAP.
i have created a custom Infotype to store the CTC details of an employee. this custom IT needs to get the records auto populated, when they are created in Infotype 0008.
i have used the exit. EXIT_SAPFP50M_002 inside which an include program is written :ZXPADU02
using this, the records made to get create automatically in the custom IT.
but when we try to modify or delete those records thru the tcode PA30,
it does not allow to do so and throws a standard error message. as below.
Specified subtype is invalid
Message no. PG088
please help me out to fix this issue.the exact point of the std error is,
i do the folowing steps.
1)_ for auto creating a record in custom IT Pa**** , i goto transaction, PA30, create record in IT 0008 with a basic Pay., click on save.
on saving , the EXIT_SAPFP50M_002 is called where i ve written a Z inlcude Program, which inserts the record in custom IT PA****. this is successful.
2) when i try to change or delete the same record which i ve created as above, through the Tcode PA30 for custom IT, PA
****, i get the error.
hope the problem is clearly mentioned -
Hi,
This is my first post to this forum. I need some help in writting a bit complex query. there are two tables. which have 1-m relationship. for each record in table a i want to extract the first matching row from table b.in table b there are many matches but i want to extract the first match and ignore the rest for each value of the primary key in table A.
Table A
field1 field2
1 one
2 two
3 three
Table B
fieldb1 fieldb2 fieldb3
1 one 55
1 one 66
1 two 77
I want join on field1 and fieldb1 than check for condition where fieldb2 = one and fieldb3>0.so in this case it will return 2 records. but i want only the first match that is one 55.
Thanks in advance.
Raj.Hi,
The query you posted:
SELECT ll1.ln_id,min(princ_apld_amt), ll1.crtlamt_apld_amt, ll1.actl_1001pct_upb_amt
FROM ll_ln_actvy00_1 ll1, ll_ln_actvy00_2 ll2
WHERE ll1.ln_id = ll2.ln_id
AND ll2.princ_apld_amt < ll1.crtlamt_apld_amt
group by ll1.ln_idis not what you're actually running.
The query above will cause the error "ORA-00979: not a GROUP BY" expression because there are columns in the SELECT clause ( ll1.crtlamt_apld_amt and ll1.actl_1001pct_upb_amt) that are not in the GROUP BY clause.
What is the data in your tables that is producing the output you posted? Forgive me if you already posted it, but the only sample data I found is in your very first message, and I don't see how this output comes from that data. (Though it is a long thread, and I may have missed something.) -
Pull Current and First Previous Record
Hello, I am not having any luck on how to do this...
I am doing a salary history report. I want to pull the current salary and the first previous salary only to compare the difference of the last two pay rates in the history.
The salary history records contain more than 2 records. Some have up to 10 records in salary history. How can I pull only the last two records? Is this possible?
Any help would be appreciated. Thank you!Yes I tried that but it did not work like I wanted it to right now. Maybe i need to set up my report differently.
Right now, I have selected only the records with a 10/31/09 date. I wanted to pull all the employees who got a pay change on 10/31/09 and see how much of an increase they got. When I use the previous forumula it pulls from the employees pay rate in the report instead of from the database.
For example:
Current Previous
Employee A: $12
Employee B: $10 $12
Employee C: $11 $10
Employee D: $9 $11
Should I remove the selection criteria for the 10/31/09? I only want to view the employees who have a pay record on the 10/31/09 though.
Maybe you are looking for
-
DOWNLOADING FROM iPHONE 3GS TO PHOTOSHOP ELEMENTS 8 (PC)
HI, Please Please Please can anybody help me? I am ABSOLUTELY desperate for an answer!!! I have an iPhone 3Gs and Photoshop Elements 8 and work on a PC running Windows Vista (32). I used to run all the same but with Photoshop Elements Version 5. Ever
-
Jumpy playback from image sequences rendered in Apple Prores and then exported to h264
I will start by saying I have been using FCP since 1.0 and am in no way new to this software, but this issue has me going crazy. First the Specs: MacPro 2 x 2.66 Quad cor Intel Xeon 16 gig Ram OS 10.9.2 FCP 7.0.3 (sorry but I am not a fan of FCP10 at
-
Leopard's Spotlight doesn't search...
Hi there! I've got a problem with Leopard Server... It's the first time that I run a server version. Everything works great! But... Spotlight... Spotlight doesn't search anything on my internal HD. On my external HD (connected with FireWire) it works
-
Fails when create oracle internet directory in oracle identity management
Dear All, I try to configure oracle identity management and always getting error when try to create oracle internet directory. Running on windows 2008 server, oracle weblogic 10.3.4, oim 11.1.1.2.0. This is the log file as follow ... AdminServer port
-
How does the S_NQ_AACT table gets written when working with Usage Tracking?
Hi, We want to monitor the performance of each subject area so we have implemented the Usage Tracking. We have followed the steps mentioned on the link http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/usage_tracking/usage_tracking.htm But now t