Who's Online
0 registered (), 3 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Recent Posts
Update EIT in SSHR
by Sahir
03:45 PM
End of Year Legislation Patch for 11i
by delboy
01:35 PM
Interfacing iRec and external sites
by DanC
11:42 PM
Capturing, Storing, & Paying Banked Overtime
by Paul
08:51 PM
Time and Labour & Oracle Projects
by Paul
07:34 PM
Search Engine Optimizers
by delboy
01:30 PM
Abseces in oracle hrms, super user: how to do I:
by JayTee
07:26 AM
Function for getting retropay-maintained balances
by CT
08/02/12 12:21 PM
Grade End Date
by Chris
03/02/12 10:46 AM
OLM Mandatory Enrolments
by bcooper
01/02/12 12:23 PM
Top Posters (30 Days)
CT 26
delboy 25
bcooper 15
Sahir 5
Gus 5
tovia123 4
Tim Bailey 3
christm 3
SBi 3
Simon_Mc 3
(Views)Popular Topics
Family Pack K issues thread 18216
CREATE_GRADE api returns:PLS-00306: wrong number o 13757
Still trying to locate... 12193
Creating hr jobs ORA-20001: HR_289477_JOB_GROUP_ID 10646
Viewing Output of another user 9131
HR_PF.K RUP4 8841
Review of my Release 12 laptop 8494
Adding a taskflow button to a form 7855
Enhanced Retro & Release 12 7679
Family Pack K 7116
Topic Options
Rate This Topic
#4332 - 27/03/09 12:57 PM Using Views in PL/SQL Cursors
MAL Offline
regular

Registered: 02/11/07
Posts: 25
Loc: Manchester
Hi,

I have created a Cursor that uses the per_assignments_v5 view, when running the query in Toad it returns the correct data.

When I try and put this into a cursor (I have run in both the application and in TOAD) it returns no rows.

Can anyone help me with this issue?

Many thanks

Martin

Top
#4339 - 28/03/09 10:18 AM Re: Using Views in PL/SQL Cursors [Re: MAL]
Gus Offline
nothin' better to do

Registered: 16/03/05
Posts: 132
Loc: Lapenne
You do not specify how you are running the cursor, but I would guess the issue is that you are not effectively 'in the app'

Many of the views particularly in HR/Payroll need to be linked to FND_sessions in which a row is created when you sign in. You need to mimic this

Out of interest why are you using the view and not the base tables ?


Top
#4345 - 30/03/09 10:36 AM Re: Using Views in PL/SQL Cursors [Re: Gus]
bcooper Offline

Guru
*****

Registered: 11/03/05
Posts: 1095
Loc: Earth, Europe, England, here
Martin
As Gus mentions, how are you using this view in the cursor (show us your code..)?

A quick look at the view source shows that its an applicant assignment view, and does indeed join to FND_SESSIONS.
_________________________
HCM Aces is for sale! Please contact me if you are interested.
Also my random musings courtesy of Twitter

Top
#4355 - 02/04/09 11:53 AM Re: Using Views in PL/SQL Cursors [Re: bcooper]
MAL Offline
regular

Registered: 02/11/07
Posts: 25
Loc: Manchester
Hi,

I have managed to fix this issue, it was an issue regarding the FND_SESSIONS.

I have amended the code to include this and the cursor is now completing.

Many thanks

Martin

Top



Moderator:  bcooper, CT 
Forum Stats
756 Members
48 Forums
1517 Topics
7286 Posts

Max Online: 63 @ 24/11/10 07:21 AM
Today's Birthdays
No Birthdays
Recent vacancies
Tea boy available 4 basic chores & some! services
by Simon_Mc
19/01/12 03:59 PM
Top Posters
bcooper 1095
CT 1080
delboy 500
Geoff Dixon 369
SBi 344
vkumar 223
kp_rapolu 213
cbrookes 197
Gavin Harris 160
Gus 132
February
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29