FND_FLEX_PLSQL.VALIDATE - Need more clarification

Hi,
I want to use the package FND_FLEX_PLSQL.VALIDATE to validate the SSHR SIT.
As per metalink note 295208.1 the parameters that can be passed are
1. Application_id, ID_FLEX_CODE, id_flex_num, number of segments, the user segments etc.
This will be helpful if I need to validate a segment such as to enter only values between a certain range etc.
however I want to verify the value of say segment1 against another table say per_absence_attendances table's field.
Since the person_id does not exist we are not in a position to do the validation.
Is there a way to handle this problem.
Note: We cannot use the user hook since when the validation is called from the below package it fires only at the time of final approval and not at the time of submission for approval.
hook package = 'HR_SIT_BK1'
Hook procedure = CREATE_SIT_B
regards

Hi,
We have implemented the validation in FND_FLEX_PLSQL.VALIDATE.
I have set the 'Flexfields: Validate on Server' profile option to "Yes" at the responsibility level.
It is working fine. But I am facing a strange error.
For a particular combination of dates the validation is not firing.
It does not execute the first error_message itself (I had uncommented it while testing it.)
The value for vdate is null.
Did anybody face such a situation. eg. when I entered the dates as 01-Jan-2012, 10-Jan-2012 the validation is not firing. For all the other combination this is firing.
Did anyone face such a similar situation?
BEGIN
--error_message :=  fnd_profile.value('PER_PERSON_ID')||to_char(vdate,'DD-MON-YYYY');
--return FALSE;
if id_flex_num = <xxxx> and APPLICATION_ID = 800 then
begin
select count(1) into l_cnt from per_absence_attendances where
person_id = fnd_profile.value('PER_PERSON_ID') and absence_attendance_type_id = user_segment1
and date_start = TO_DATE (user_segment2, 'YYYY/MM/DD HH24:MI:SS')
and date_end = TO_DATE (user_segment3, 'YYYY/MM/DD HH24:MI:SS');
exception when others then
error_message := 'Exception Error while selecting the Leave record. Contact System Administrator.!!!';
return FALSE;
end;
if l_cnt not equal to 1 then
error_message := 'There is no Leave record found matching your criteria. Enter correct leave type, start date and end date.';
return FALSE;
end if;
return TRUE;
end if;
return TRUE;
end;
regards
Edited by: Maya on Jun 30, 2012 10:23 PM

Similar Messages

  • Need more clarification on Page navigation in Oracle ADF Mobile and How to add add a AMX page in feature (beginner)

    Hi
    i am an android app developer and new to ADF Mobile , so there are some doubts on Navigation through pages and mapping the new AMX page to features.
    Steps i have followed
    1. i have created an  project using Mobile Application (ADF)
    2. right clicking on ViewController , i have added  AMX page and added some componets
    Now i just want to show this page while executing this application in mobile. i have added this page path in to feature also but i am getting a blank screen.
    please give me solution or give me a good example or any link which will help out.
    i have added a button in the first screen and i want to go to next screen if the user press it. i know that task flow will help to achieve this but how i will add this with page. i am bit confused on those topics.
    Thanks in advance

    Hi Ansh
    Thanks for the reply
    I have followed the same link and created a sample app and i am facing some error, error given below.
    jdeveloper 11.1.1.6.0  Warning 'http://xmlns.oracle.com/oracleas/schema/11/
    if you have any solution for this , pls revert.
    Thanks in advance

  • I need a clarification : Can I use EJBs instead of helper classes for better performance and less network traffic?

    My application was designed based on MVC Architecture. But I made some changes to HMV base on my requirements. Servlet invoke helper classes, helper class uses EJBs to communicate with the database. Jsps also uses EJBs to backtrack the results.
    I have two EJBs(Stateless), one Servlet, nearly 70 helperclasses, and nearly 800 jsps. Servlet acts as Controler and all database transactions done through EJBs only. Helper classes are having business logic. Based on the request relevant helper classed is invoked by the Servlet, and all database transactions are done through EJBs. Session scope is 'Page' only.
    Now I am planning to use EJBs(for business logic) instead on Helper Classes. But before going to do that I need some clarification regarding Network traffic and for better usage of Container resources.
    Please suggest me which method (is Helper classes or Using EJBs) is perferable
    1) to get better performance and.
    2) for less network traffic
    3) for better container resource utilization
    I thought if I use EJBs, then the network traffic will increase. Because every time it make a remote call to EJBs.
    Please give detailed explanation.
    thank you,
    sudheer

    <i>Please suggest me which method (is Helper classes or Using EJBs) is perferable :
    1) to get better performance</i>
    EJB's have quite a lot of overhead associated with them to support transactions and remoteability. A non-EJB helper class will almost always outperform an EJB. Often considerably. If you plan on making your 70 helper classes EJB's you should expect to see a dramatic decrease in maximum throughput.
    <i>2) for less network traffic</i>
    There should be no difference. Both architectures will probably make the exact same JDBC calls from the RDBMS's perspective. And since the EJB's and JSP's are co-located there won't be any other additional overhead there either. (You are co-locating your JSP's and EJB's, aren't you?)
    <i>3) for better container resource utilization</i>
    Again, the EJB version will consume a lot more container resources.

  • Needed urgent clarification on FILE TO IDOC scenario

    Hi Experts,
                      I need urgent clarification on FILE TO IDOC scenario plz clarify it
    1.In FILE TO IDOC scenario after creation of RFC dest ,performing steps in IDX1&IDX2
    what configurations to be done on target system?
    2.In some blogs it is given that steps should be done in RFC dest,we21,we20  .
    But is it mandatory to do so RFC dest and WE21 steps [OR] directly can we configure partner profile in WE20?
    3.on integ server IDX2 has to be done (or) is it optional for FILE TO IDOC scenario?
    Too many to answer plz clarify good explanations will be rewarded.
                                                                                    Regards,
                                                                                    Vinod.

    Hi,
    Please follow the below process for configuration:
    Pre-requisites for Inbound IDoc to R/3 from PI:
    Configuration required at Xi side:
    Go to IDX1: configure the port.
    Go to IDX2: load the DOC metadata.
    Go to SM59: Create RFC destination which points to R3 system this is require in the case where your IDOC is sent to R 3 system,
    Configiration required at R3 side:
    Maintain Logical System for PI (SALE transaction):
    Maintain Partner Profile for XI system(WE20):
    Pre-requisites for Outbound IDoc from R/3 to PI:
    Configurations required in R/3:
    Maintain Logical System (SALE)
    Define RFC Destination (SM59) which points to PI system
    Maintain Port (WE21)
    Maintain partner profile. (WE20):
    Maintain Distribution Model (BD64):
    DO let me know if you need more information
    Thanks and Regards,
    Chirag Gohil.

  • Need more info on adding user than is in UserGuide

    Before I send an invitation to someone to be a user and access one of my computers, I need more information on how that works that is provided in the LMI Pro User Guide.  Would really like to actually have RTV conversation with someone familiar with it (having done it), but it that's impossible, here goes. 1Do I have to give him the PW for my entire account, do I specify a separate PW for him, or does he set it when accepting the invitation ? 2
    Will he have to know the UN & PW of the target computer or will he just be "in" by virtue of the LMI Pro account ? 3Will he have all the remote functionality I have - Remote Control, File Manager, etc ? May have more questions later so I would really appreciate a contact who has used this before.  

     
    Hello  ,
    Thanks for posting your query here! 
    1 - When you invit a secondary user with a Pro account, this person will click on the link invitation and be prompted to login/create and account with his own username (email address) and own password - so you will not share yours
    2 - As for the target computer, the username/password of the session  or the acccess code (according to the settings) need to be known indeed.
    3-  The remote functionalities are set on target computers , therefore secondary users would have the ability to do File Transfer and remote printing. 
    Let me know if that clarifies the situation for you and feel free to get back to me if you have further questions!
    Thanks, 
    Best
    Julie

  • How large of a hard drive can I install on dual G5, and do I need more RAM?

    I recently had a situation in which my dual-processor 2.0 G5 was completely refurbished by Apple repair-new logic board, both processors, video card, thermistor, all new. Finally it has been working well after a month of trips back and forth from the Apple store. I have two internal hard drives installed on my G5, both 300GB, one for OS applications, and one for audio. I am running out of space on my main hard drive, and so I recently purchased a Maxtor 1TB hard drive, now manufactured by Seagate, from Fry's. After having my G5 refurbished, I was having an issue with my Samsung 930B monitor going into sleep mode when I boot-up from a CD, but other than that G5 was working fine. I removed the main 300GB hard drive from slot #1 and put it into slot #2, from which I had removed my audio hard drive. I installed the Maxtor drive in slot #1 and reformatted it for Mac using my laptop with ATA/USB cables previously purchased for data transfer. This took about 14 hours as I used the "zeros" option. After that I hooked up the internal cables to both drives and tried to boot up from Leopard in order to install it on the Maxtor drive, but again my monitor went into to sleep mode. We went to the Apple store to try to see if there was an issue with the computer, but everything worked fine with their monitors and CD's, as well as my CD. So there is some kind of issue with my monitor, probably software as it works fine when booting up from the main hard drive, and also was fine when I did its self-test function. While at the Apple store, they installed Leopard from their hard drive which took about 30 minutes.
    My problem is this: When I arrived home, I turned on my G5, which had been set to boot from my new Maxtor drive and complete the Leopard setup process, which we had decided to do at home as it would have taken another 20 minutes in the Apple store. The G5 turned on, chimed, I got the Apple screen with the wheel, but then after that my monitor goes into sleep mode. I can hear Leopard's setup intro playing through the speakers, but the screen is in sleep mode. So I reboot holding down the option key so I can boot up from my old (300GB) main hard drive, now in slot #2. This works and the monitor screen does not go to sleep. However, as I am browsing on the web to check for issues concerning this monitor, the G5 freezes, and I get a screen with black bars with writing in them and various technical language across the screen. This happened several times after rebooting. Finally I shut the computer down. I am going to try removing the new hard drive and putting both old ones back in and see if the G5 stops crashing. I think the monitor issue is a separate issue, and I am more concerned with the crashing, as previous to the new hard drive installation the G5 was working fine, monitor fine, other than the issue when booting up from a CD. Do I need more memory? Is the 1TB hard drive too large for my dual-processor 2.0 G5 and overloading it? Would I be better off with a 500GB drive? Would appreciate advice from persons with experience in this area. Thank you.

    I have replaced my 5 year old G5 with a Mac Pro, as the G5 just had too many issues, even after replacing all major components (logic board, both processors, video card, etc.) Once I took out the 1 TB hard drive from my old G5, it stopped having the kernel panic issue. Nonetheless I had been through a lengthy repair process previous to this issue, so I didn't care to trust an older machine any longer, especially since being told by an Apple tech that the "new" parts were really just older parts stockpiled from a central location. Could be new, could be refurbished. Apple was kind enough to credit the money we had spent on the G5 repairs towards the purchase of my Mac Pro.

  • My ipad currently only has 18% charge, i want to download ios6 but it wont let me click on the button, could this be because it needs more charge

    my ipad 3 currently has only 18% charge, ive just gone to click on the download button to download new ios 6 but its not highlighted so therfore i cant do it, is this because ipad needs more charge?

    Yes, the update takes quite a bit of time (> 1 hr for my iPad2) and will not initiate unless you have enough juice in your battery or are plugged in.

  • I am getting a warning need more space on my disk. I have checked the Console and there have been 4000 thousand messages in my system log in the last 2 days. I have emptied as many files as possible.

    Hi
    I am getting a warning on opening my mac saying I need more space as my setup disk is full.  I have emptied many files as well as my Trash.  I am planning to get an external drive for my photos, but it has been suggested that I check Console and under the system log the following message (of which they say 4000 messages have been logged in 2 days) '06/06/2014 16:08:23.341 com.apple.dynamic_pager: dynamic_pager: Need more space on the disk to enable swapping'.  This is a copy of one of the items.  It is from the system log.  I really do not think I have enough files to warrant this warning, with the exception of photos.  My storage shows 143 MB free out of 120.47. Thanks for any help.

    First off, no MacBook Air can run 10.3 or earlier.
    Secondly, are you sure you only have 143MB of storage free?  That's seriously low.  With MacBook Airs of 120 GB hard drives, or even 140 GB which is often the case when it says out of 120, you shouldn't allow your free space to go down below 20 GB.  MB is 1024 fold less than a GB.  So if you really have 143MB free on a MacBook Air, you are long past the minimum space you should be keeping it at, and need to start clearing a lot of space now*:
    http://www.macmaps.com/diskfull.html
    I'm asking this thread be moved to the MacBook Air forum,a as we can't say for certain what you have when you post in the 10.3 or earlier forum.

  • PS CC Says I need more than 512 Vram ...

    I was using Photoshop last night just to prep a couple of photos for class submission (3 pictures, just reducing their size for web consumption), and I got the message stating that I needed more than 512 Megs of Vram, which was odd to me, as I have 1024 Dedicated available on my video card. I don't run a dual monitor setup any longer, but I do have an ASUS PBs278 that's running at 2560 X 1440. My current graphics card is an ATI Radeon 6800 HD, and my windows 7 system is running on 8 gigs of ram. Up till within the last week, CC has worked just fine, but the other day on boot, it took an unusually long time to get into the software. It eventually did, and I'm wondering if that was an update or some such that's now made the software decree that if it doesn't have the 512 it thinks it should have, the 3d functions won't happen. I don't know if it's a consequence of the larger quantity of pixels being pushed, or if it's the video card getting too old to support CC at such a high resolution now, but some help would be amazing.

    Windows 7, 64 bit. I haven't been able to replicate the error, but I have the new drivers as well. I hope this just ends up being a fluke.

  • How, using Adobe Connect can increase the number of participants in the meeting? I need more than 25 people.

    Hi, I use licensed Adobe Connect. Earlier in the meeting could involve up to 100 people. Now only 25. How, using Adobe Connect can increase the number of participants in the meeting? I need more than 25 people.
    Thanks for your help.

    The purchasing option through adobe.com only allows up to 25 attendees. If you need more than that, you will need to purchase through a reseller. You can find one that is able to sell in your part of the world, here: Adobe Connect Partners. Just reach out to one of the Global Partners.

  • I need more than the maximum allowed 30 profiles - how do I change this?

    I need more than the maximum allowed 30 profiles - how do I change this? Once I reach 30 profiles and I try to add one - it just deletes one automatically thus only allowing a maximum of 30. Please help.

    You are talking about 30 Firefox Profiles on the same Windows Logon User Account?
    I never saw that as a limit myself. I had 53 Profiles at one time, although I haven't done that since Firefox 3.0. It was causing an extended launch time and I started using "remote" Profiles that weren't controlled by the Profile Manager and weren't in the '''profiles.ini''' file; launched by command line. Like this in the Target line for the desktop shortcut: <br />
    ''' "C:\Program Files\Firefox_4.0_zip\firefox.exe" -Profile D:\Mozilla\Active-Profiles\4.0_10-15-10-N '''

  • NEED more than 15 menu item in Context Menu ????

    Hi,
    I really need to have more than 15 menu item displayed on Context Menu. I desperately need some workaround or ideas to achieve this
    My client has invested thousands of dollar in Flex Project, he definitely need more than 15 menu item.If this project failed , client will NEVER think to invest in flex.
    Had I been  aware of this limitation before I would have thought some solution by now.This comes as a surprise to me at the last moment ,just fews days before Prod Date.
    I cant also user java Scrip heck  as my Flex application is running inside Dot net Container , I do not access to the luxury of java script
    Pls gents help me get rid of this ...PLEASE provide some ideas.
    Thanks in advance.
    Thanks,
    Dharmendra

    Thanks Natasha,
    I got your point  but as for as I  know grouping like Quality is not possibel in Flax Context menu. I also cant go for window style menu(file,edit) because I need them to be displyed on DataGrid right clk . I am designing a trade datagrid where in trader can see all trades and he can approve/reject etc by just right clk and  selcting proper menu item form Context Menu.
    In case of window style (acrobat.com) menu trader will have to reach to  menu instead of  getting all options on mouse right clk
    I will have to think other alternative wich provides same ease as cotext menu.(God knows what is that )
    Once again thanks for suggestion.
    Regards,
    Dharmendra

  • I have my own icloud account separate from my family's apple ID for itunes. I need more storage for icloud...do I have to pay a separate $20/ month to get more storage or does the $20 include all members of the plan?

    I have my own icloud account separate from my family's apple ID for itunes. I need more storage for icloud...do I have to pay a separate $20/ month to get more storage or does the $20 include all members of the plan?

    Welcome to Apple Support Communities
    If your iCloud account uses your family's Apple ID, you will pay $20/year for all your family members. If your iCloud account uses a different Apple ID than your family's Apple ID, you will pay only for you

  • I have an imac OS 10.4.11 and am using Safari 2.0.4. I would like to update this. I have 1 Gb memory. Do I need more memory to update my computer? I would also like to add an airport system and something where I could read word applications.

    I have an iMac OS 10.4.11 and am using Safari 2.0.4 I would like to update. I have only original 1 GB memory-do I need more to update?I would also like to add an airport or router and would like to add something where I could open word applications. Is it hopeless?

    Thanks. That's a Mid-2007 model with an Intel Core 2 Duo processor. You can run any version of Mac OS X on it up to and including Mac OS X Lion, though for Lion you'd need to increase the memory to at least 2GB, something I'd recommend doing anyway; it's inexpensive and often can increase performance. Your iMac can take up to 6GB if RAM; 4GB is probably a good compromise between cost and performance with a 4GB kit costing about $50.00 US from a reliable vendor such as Crucial.
    Your system already should have included the Airport wireless networking capability, so all you'd need would be a wireless (WiFi) access point (aka "router" or "base station") and an appropriate Internet connection. Apple's Airport Express and Airport Extreme, and the Time Capsule if you'd like to have a built-in hard drive for backups and extra storage, are good choices for a WiFi access point, but there are a number of other manufacturers.
    As to upgrading the operating system, as I said, you can upgrade to Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, or Mac OSX  10.7 Lion (the most recent release).  Apple no longer lists Mac OS X 10.5 on their web site, but if you call the Apple Store you may still be able to purchase a copy. Mac OS X 10.6 Snow Leopard is easily available as is Lion though with Lion you'd need the $69.00 USB flash drive installer or you'd need to purchase and install Snow Leopard first (other than on the flash drive, Lion is only available from the Mac App Store which can only be accessed from Mac OS X 10.6.6. or later). Before you decide, I'd strongly suggest you find out what versions of Mac OS X your applications and perpherals will support, either as they or with a free or affordable update. I'd suspect most of your applications and peripheral drivers would need to be upgraded, at least to support Snow Leopard or Lion. If you consider Lion, make sure of your applications; Lion will no longer run PowerPC-only applications, so many older appliations will not run under Lion.
    Finally, as to Microsoft Word documents which is what I presume you mean, you can of course just purchase Microsoft Office. There are other ways to work with Word documents, though. If you just need to view Word documents, TextEdit in MOSX 10.6 and 10.7 (and perhaps 10.5; I can't remember) can open and view many Word Documents. For something a bit more capable, you can purchase Apple's Pages, part of the iWork suite and now available separately for Mac OS X 10.6 and 10.7, or try one of the open-source solutions such as LibreOffice.
    Regards.

  • Need some clarification on Replacement Path with Variable

    Hello Experts,
    Need some clarification on Replacement Path with Variable.
    We have 2 options with replacement path for characteristic variables i.e.
    1) Replace with query
    2) Replace with variable.
    Now, when we use  "Replace with variable" we give the variable name. Then we get a list for "Replace with" as follows:
    1) Key
    2) External Characteristic Value Key
    3)Label
    4)Attribute value.
    I need detailed explanation for the above mentioned 4 options with scenarios.
    Thanks in advance.
    Regards
    Lavanya

    Hi Lavanya,
    Please go through the below link.
    http://help.sap.com/saphelp_nw70/helpdata/EN/a4/1be541f321c717e10000000a155106/frameset.htm
    Hope this gives you complete and detailed explaination.
    Regards,
    Reddy

Maybe you are looking for