Re: Enabling User Hooks in HRMS 11.5.10.2?

I am also facing the same problem that hook not fire but my application is 12.1.2 while the status is valid after register the hook I am capturing the record in a table and process some event after assignment changes

Ok, thanks. I had realized that the "Enter and Maintain" form does not use APIs, however the template forms do use APIs and it was these that I was using for my tests. I have proved that the API is being used but I still cannot see why the hook is not being executed despite the fact that I appear to have completed the required steps to enable them.
What I am looking for here are really some troubleshooting tips :-)
Thanks
Graham

Similar Messages

  • Enabling User Hooks in HRMS 11.5.10.2?

    I'm trying to capture an update to PER_ALL_ASSIGNMENTS_F, using the row handler "After Update" User Hook, however the hook is not being called.
    I’ve created a custom package with a procedure that is called by the User Hook, having the parameters as listed when I run the script hrahkpar.sql. For testing purposes this custom procedure just adds a record to a debug table to show it has been called.
    CREATE OR REPLACE PACKAGE body APPS.CPW_UK_STAR_INT_PKG AS
    PROCEDURE log_text (p_text IN VARCHAR2)
    AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    INSERT INTO CPW_TEST_HOOK (time_stamp
    , text )
    VALUES (SYSDATE
    , p_text);
    COMMIT;
    END;
    PROCEDURE PER_ALL_ASSIGNMENTS_F_AU (
    P_EFFECTIVE_DATE IN DATE
    ) IS
    BEGIN
    log_text (p_text => 'PER_ALL_ASSIGNMENTS_F_AU');
    EXCEPTION
    WHEN OTHERS THEN
    NULL;
    END PER_ALL_ASSIGNMENTS_F_AU;
    END CPW_UK_STAR_INT_PKG;
    I’ve registered the package procedure using this call:
    Hr_Api_Hook_Call_Api.create_api_hook_call
    (p_validate => TRUE,
    p_effective_date => SYSDATE,
    p_api_hook_id => 2670, --per_all_assignments_f AU
    p_api_hook_call_type => 'PP', --Packaged Procedure
    p_sequence => l_sequence,
    p_enabled_flag => 'Y',
    p_call_package => 'CPW_UK_STAR_INT_PKG', -- Custom Package
    p_call_procedure => 'PER_ALL_ASSIGNMENTS_F_AU', -- Custom procedure
    p_api_hook_call_id => l_api_hook_call_id,
    p_object_version_number => l_object_version_number);
    I’ve executed the User Hook pre-processor program for the 'PER_ALL_ASSIGNMENTS_F' module.
    All these steps completed without error.
    To test this I used the template form PERWSQHM and changed the start_date of an assignment, and confirmed that the change was committed to the table. However no evidence of the hook firing!
    I’m guessing I’ve made a schoolboy error here; please can someone advise which steps I have missed or done wrongly? Alternatively is there a better way to debug and test this?
    Thanks
    Graham

    Ok, thanks. I had realized that the "Enter and Maintain" form does not use APIs, however the template forms do use APIs and it was these that I was using for my tests. I have proved that the API is being used but I still cannot see why the hook is not being executed despite the fact that I appear to have completed the required steps to enable them.
    What I am looking for here are really some troubleshooting tips :-)
    Thanks
    Graham

  • Creating API User Hooks for Saudi HRMS

    Dear All,
    I want to create API User hooks for Person Extra Information Type,Any one could help me.
    Thanks and regards,

    If you want to learn how a user hook works, you can check the metalink note 73170.1. Or you can visit the following link.This guy has given the whole content in his blog.
    http://shrigupta.blogspot.com/2010/06/understanding-and-using-api-user-hooks.html
    Hope this helps.

  • HR API User Hooks - Can I use to change a value in the table the API for?

    I am trying to initialize a descriptive flexfield on per_all_people_f. I originally tried doing the initialization using a “before row insert” database trigger directly on the table per_all_people_f. Seems to work great in the People form (PERWSHRG), but does not seem to work consistently when a new employee is entered through a template like Enter Employees (PERWSQHM).
    Does anyone know if you can use an API User Hook to initialize a value on one o the tables the API is inserting? For example, could I put a "Before Process" user hook on the "Create_ Employee" API to change the value of a descriptive flexfield?
    Any other good ideas?
    Currently I have a concurrent request that runs once every 30 minutes to default the descriptive flexfield. The delay is causing issues.

    In such cases you should write the code to default the values in the front end PUIs. As one person pointed out, User hooks are provided either to validate the already entered values, or to insert/update data in some custom tables but not for updating values in the same table where data is being inserted/updated.
    BTW for your information:-
    Person form (People Enter and Maintain) does not use APIs so anything written inside the user hook would be ignored by the application when this form is used. (The reason is this is one of the oldest form in HRMS, was created even before the concept of user hook came).
    Template form PERWSQHM uses APIs, so user hook is called when this form is used to create/update the data.
    Hope this is useful.

  • How to enable user sets from tools in sales order

    Hi,
    How to enable user sets from tools in sales order..it is greyed out..
    and is there anyway we can do to add shipsets from other place?
    Thanks

    Hi Ruchi
    I hope u had gone to the screen fields which u want them not to be editable. So there u select all the fields contents which u do not want to to be changed and check the boxes with W.content and Display and save it. Once evrything is done u have to activate the particular transcation going in to the standard variants and put the name and click the activate button.
    Hope its clear
    Reward if help ful
    Sri

  • Unable to Enable User Profile Disks in RDP server 2012R2

    I am setting up a new Windows server that will act as an RDP server. The server has been built with Windows Server 2012R2. 
    I have the following roles and services working on the server: RD Web Access, RD Gateway, RD Licencing (with 30 user cal licences), the RD Connection broker, and the RD session host. 
    I have a SSL certificate configured and installed on the site, and both external and internal DNS are configured and working. 
    I have created and published an application collection and this is working. That is, when you go to https://remote.<servername>.org you are presented with a log in screen, users can log in with their domain accounts and then can connect to the published
    applications, this is working both on our internal network and from the general internet. 
    So all the roles on the server are working and the collection itself is also working. However, what I cannot do is set it up so that we can use user profile disks with that collection. When I go through the Session Collection Wizard and I get to "User
    Profile Disks" I can click on "Enable user profile disks" and then you can enter the options below. 
    I am entering the share location under location \\<servername>\<sharename> 
    I am using the default "store all user settings and data on the user profile disk" 
    Then I go to create the profile disks and I get the following error: 
    "Could not create the template VHD. Error Message: -2147024809
    This has happened multiple times, I have done the following: 
    - installed all windows updates and rebooted the server, same error 
    - checked the share permissions AND the folder permission for that share, for testing purposes I have set permissions on both the folder and the share to allow full control to "everyone" (I also tried it with only "domain users") but
    same error message. 
    - I have checked to see that no quotas are imposed on the disk where I am attempting to create the profile disks  - this was because this was the closest thing I could find on Technet was this post:
    https://social.technet.microsoft.com/Forums/windowsserver/ru-RU/aec30527-d742-42b9-950e-85c709c4cb45/vdi-problem-creating-user-profile-disks?forum=winserverhyperv
    And that was a quota issue that I am not having. 
    The UPD wizard says the following "the servers in the collection must have full control permission on the user profile disk share and the current user must be a member of the local Administrators group on that server" 
    Both of those things are true. 
    I have attempted to search for that specific error message (-2147024809) and have found nothing on Technet or any other site. 
    I am hoping someone here has some thoughts.  Thanks in advance. 

    I was looking at both the technet article for setting up UPD as well as this walk-through:
    http://thewolfblog.com/2014/02/24/user-profile-disks-for-rds-2012-2012-r2/
    The step after the creation of the disk in this walk-through is to look at who has permission on the .vhdx file, now obviously I am not at that step, but that is what led me down the trail of looking at user permissions, hence my attempts to set up shares
    where 'everyone' has full permissions on both the share and the folder.
    I have tried to set up multiple shares for the collection, I have tried on two different disks (volumes) on the RDP server itself, I also tried setting up a share on our fileserver (which has all kinds of shares working fine) and the same error occurred
    in all cases. 
    I also found this Technet article: 
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/d6469d31-6540-4075-a85f-a6e8f7c11e89/user-profile-disk-template-cannot-be-created-when-setting-up-session-collection?forum=winserverTS
    So that seems close to what I am looking for, but I have checked and the exact group policy that was causing the above linked issue is not defined in our group policies, but maybe there are other group policies that are causing the issue? 

  • Upgrading to Acrobat Pro XI / Adobe Reader XI and enabling user rights

    My company is a little behind on software updates and I'm going to ask for Adobe Reader XI  to pushed out company wide since allows the user to save a filled-in PDF form.
    Right now I'm using Acrobat Pro X, and suspect I will need to upgrade as well.
    My questions are:
    With the new-found ability of Reader to finally be able to save a filled in form, how does this effect the "enabling user rights" scenario?
    Is it needed if the entire company is using Adobe Reader XI?
    I did a test in Adobe Reader XI, and sure enough, I was able to save a filled-in form...BUT, I could not digitally sign the form.
    Is this where the enabling user rights is still mandatory?
    Or is this because the form was designed in Acrobat Pro X?
    Does Acrobat Pro XI work around this?
    I know I don't need to upgrade to Acrobat Pro XI to continue making forms, but should I?
    Thanks for your feed back, and I look forward to reading your replies

    Thank you, George, for the prompt reply!
    I suspected as much, but couldn't find a clear cut answer in my searches.
    The tab order update alone has convinced me its worth pushing for the new Acrobat Pro XI.
    The update to Adobe Reader XI will make many of our forms easier to get into the digital workflow, and I'm looking forward to getting use further away from a paper-based system

  • OIM 11g - User Not enabled After the job "enable user after start date"

    Hi,
    I have a future hired user in OIM whose start date is set in OIM. The status of the user in OIM is 'Disabled Until Start Date'.
    After the start date has passed and the scheduled job 'enable user after start date' is run, I see that the user is still in the status 'Disabled Until Start Date'. I re-run the scheduled job 'enable user after start date', this time manually, still the state of the user remains unchanged.
    Please help in troubleshooting as to find out the root cause of the issue and a workaround/solution, if possible.
    This issue is intermittent and has happened with quite a number of user. Any pointer would be helpful.
    Regards,
    Sudipto S.

    I agree with Nayan.
    One alternative approach can be to write your own custom scheduler which can overcome the limitation of OOTB scheduled job 'enable user after start date'. Let the OOTB job get executed first. After it, your custom scheduler should fire a simple SQL Query:
    SELECT USR_KEY, USR_STATUS FROM USR WHERE (USR_START_DATE > SYSDATE -1) AND USR_STATUS='Disabled Until Start Date';
    //Means those users who are supposed to get enabled today and are still not yet enabled and are in 'Disabled Until Start Date'. May be 2-3 user keys at max will come...
    As you said it happens only intermittently and not for all users... So, let the OOTB scheduled job take care of most of such users... And after it has finished, if any user still remains in 'Disabled Until Start Date', your custom scheduler should enable it via using tcUserOperationsIntf.enableUser(userKey);
    Using API is always better than database update... Because APIs trigger downstream provisioning workflows as well and not just updates OIM Database...
    Keeping your constraints in mind, I think it is the correct answer.

  • On and iPad how to Allow User To Enter Custom Text  (Dropdown only) Enables users to enter a value other than the ones in the list.

    On an iPad, how do I :
    Allow User To Enter Custom Text
    (Dropdown only) Enables users to enter a value other than the ones in the list.'?

    Are you using the built-in Currency option under the Format tab? If so,
    what you're describing should not happen.

  • Enable User task is not getting triggered

    Hi All
    We have a provisioning workflow configured. "Enable User" task is not getting triggered while the user is enabled in OIM. Can anyone give a clue as to how to get it triggerd? Rest all the tasks are fine (Create, Disable, Delete, and other custom tasks)
    Thanks,
    Vinay

    There is a OOTB scheduled Task "Enable After Start Date". once the user get enabled in OIM user profile. You have to run this task manually to have effect on corresponding RO for enablement. Else it will execute automatically as per scheduled time.
    if the version of OIM is 11.1.1.5. There is an issue. update patch BP02. for same
    --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Enable User Rights In Adobe Reader using Acrobat X

    Hello,
    I just upgraded to Acrobat X Pro from Acrobat Pro 9 and I'm still getting familiar with it. I need to Enable User Rights In Adobe Reader but I noticed that the tool bar does not have the "Advanced" option where Acrobat Pro 9 has it.
    Can you please tell me how to go about it.
    Thank you much!!!

    How do you remove User Rights from a documnet in Acrobat X? I can't edit my Javascript in Acrobat X and I believe thi is the reason why. Thanks

  • Acrobat 8 Form - "This Operation Not Permitted" error when enable user rights and open Reader X

    I have a form which is causing me fits.  It was created from an existing PDF form to which I added data fields using LifeCyele Designer.
    When I enable user rights to the document and try to open it in either Adobe Reader X or Acrobat 8 Pro I get the message "This operation is not permitted" twice.  Once I get rid of the messages the form works fine.
    Is there a way to upload the form to this forum for someone to look at it?
    With my limited knowledge, I did try to investigate embeded font issues and hidden object issues.  But after much work I've not gotten much closer to a resolution.
    Best,
    David

    You cannot upload the file to the forum, but you can use Acrobat.com or Dropbox if you have an account. If you ha e no other options I'd be happy to take a look: acroscript at gmail dot com

  • Getting Lync enable users who are modified after specified time

    Getting Lync enable users who are modified after specified time
    Hi,
    I need to get all the Lync enabled users from Lync 2010 server who are modified after specified time.
    I have written a client with this below code for my purpose
    string
    dateString = "11/4/2014 11:19:10 PM";
    DateTime
    lastModifiedTime = DateTime.Parse(dateString, System.Globalization.CultureInfo.InvariantCulture);
    PSCommand command = new PSCommand();
    command.AddCommand("Get-CsUser");
    command.AddParameter("Filter",
    "WhenChanged -gt " + lastModifiedTime.ToString());
    powershell.Commands
    = command;
    Collection<PSObject> outPut = powershell.Invoke();
    But on calling Invoke method I am getting the below exception,
    Cannot bind parameter 'Filter' to the target. Exception setting "Filter": "Invalid cast problem for value: "11" type: "System.Nullable`1[System.DateTime]" query: "WhenChanged -gt 11/4/2014 11:19:10 PM" "17""
    Can anyone please point me what am I doing wrong.
    This command
    Get-CsUser -filter {whenchanged -gt
    "11/4/2014 11:19:10 PM"}
    when run directly on Windows Powershell works fine.
    Thanks in advance.
    Sandeep

    It appears you may be casting the date variable wrong. 
    If you have
    command.AddParameter("Filter",
    "WhenChanged -gt 11/4/2014 11:19:10 PM"
    And avoid the lastModifiedTime.ToString() addition, does it work?
    If so, it's just the way you're doing your date manipulation.
    Also, why convert from a string to a datetype and back for the datestring?  Are you trying to correct a timezone issue?
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to enable users change password in obiee 11g?

    Is there anyone know how to enable users change password in obiee 11g?
    And I have tried the method in obiee 10g, bu it didn't work.
    Any help would be appreciate.

    As per I understand your requirement,
    In your Dashboard create a Presentation variable which receives the value of year you select.
    Now in your analysis, select the year column along with all the measures you want (Actual, plan, Forecast, and what-if, etc).
    Create a filter on Year column and convert it into SQL. Put the condition as:
    "Year" BETWEEN @{Presentaion_Variable} - 1 AND @{Presentation_Variable}
    You will get the result for selected year and the previous year.
    Hope it helps..
    Regards,
    A.K.

  • Enable user to change date at runtime

    Hi,
    My requirement is to enable users to change date ( expiration date in  my case) in bex report.
    Can anyone suggest an approach for the same.
    Regards,
    Suchitra

    changing any data after the report is executed will not have any effect since if you are running the report again all the data will be refreshed.
    in your case the date field cannot be changed in the report,
    else let me know if you are asking if the user will be able to change the date value in the variable screen of the report.
    rgds, Ghuru

Maybe you are looking for