Urgent:Time Entry Rule Creating Issue on Hitting Back Button

Hello,
We have created a Time Entry Rule to see if one of the Field either a Department or Project on the TimeCard is entered. The validation works fine for the first time when hitting the continue button.
However on hitting the back button the validation fires again although department is there. Here is the snippet of the code.
Can somebody please tell me what is the additional check that i need to perform so as to ensure that it doesnt fir again on hitting the back button.
i NUMBER := 0;
j NUMBER := 0;
l_status NUMBER := 0;
tc_blocks                Hxc_Self_Service_Time_Deposit.timecard_info;
tc_attribs                Hxc_Self_Service_Time_Deposit.building_block_attribute_info;
pragma autonomous_transaction;
BEGIN
tc_blocks := Hxc_Self_Service_Time_Deposit.get_building_blocks;
tc_attribs := Hxc_Self_Service_Time_Deposit.get_block_attributes;
hr_utility.set_location ('Prior Loop',1);
i := tc_blocks.FIRST;
--hr_utility.trace_on(null,'ORACLE');
hr_utility.set_location ('Entering ff_formulas_pkg.OGER_CHK_TIMECARD_FIELDS', 1);
WHILE i IS NOT NULL
LOOP
IF(tc_blocks(i).scope = 'TIMECARD') THEN
j:=tc_attribs.FIRST;
WHILE j IS NOT NULL
LOOP
BEGIN
INSERT INTO LOG VALUES(UPPER(tc_attribs(j).attribute_category)||' '||tc_attribs(j).attribute6);
commit;
IF (UPPER(tc_attribs(j).attribute_category) = 'ELEMENT - 176' and (tc_attribs(j).attribute6 IS NOT NULL OR tc_attribs(j).ATTRIBUTE3 IS NOT NULL)) THEN
l_status := 1;
EXIT;
END IF;
END;
j:=tc_attribs.NEXT(j);
END LOOP;
END IF;
i:=tc_blocks.NEXT(i);
END LOOP;
RETURN l_status;
Regards,
Gayatri

Hello Tim,
Thanks for the response. The TER is set to Submission/Resubmission.
Can you please suggest me if this is correct? Also could you pls take a look at the code pasted above and let me know if that is correct.
Regards,
Gayatri

Similar Messages

  • Custom Fast formula for Time Entry Rule in OTL

    Hi,
    i have created custom validation for time entry rules. I need to validate where Project and task fields are null or not? If Yes, it has to fire the custom message that i have mentioned in function. Please check the below code and help me whether i am on right path:
    CREATE OR REPLACE FUNCTION NON_pto_against_projects (
    p_time_category_id NUMBER,
    p_person_id NUMBER
    RETURN VARCHAR2
    IS
    --Variables used for retrieving timecard id and ovn
    l_db_pre_period_start DATE;
    l_db_pre_period_stop DATE;
    l_time_building_block_id hxc_time_building_blocks.time_building_block_id%TYPE;
    l_object_version_number hxc_time_building_blocks.object_version_number%TYPE;
    --Variables used for loading timecard tables
    l_time_building_blocks hxc_self_service_time_deposit.timecard_info;
    l_time_app_attributes hxc_self_service_time_deposit.app_attributes_info;
    l_attributes hxc_self_service_time_deposit.building_block_attribute_info;
    --Variables used for getting exploded time details
    v_blocks_tab hxc_block_table_type;
    v_attr_tab hxc_attribute_table_type;
    l_messages_tab hxc_message_table_type;
    l_detail_blocks hxc_self_service_time_deposit.timecard_info;
    l_detail_messages hxc_self_service_time_deposit.message_table;
    CURSOR csr_category_elements (p_category_id NUMBER)
    IS
    SELECT 'ELEMENT - ' || TO_CHAR (value_id) element_type_string
    FROM hxc_time_category_comps_v
    WHERE time_category_id = p_category_id;
    l_cat_elements_string VARCHAR2 (2000);
    l_temp VARCHAR2 (1000); --Trace message
    l_success_flag CHAR (1); --Return values
    BEGIN
    --Initialize variables
    l_success_flag := 'S';
    l_time_building_blocks := hxc_self_service_time_deposit.get_building_blocks;
    l_attributes := hxc_self_service_time_deposit.get_block_attributes;
    v_blocks_tab :=
    hxc_deposit_wrapper_utilities.blocks_to_array (l_time_building_blocks);
    v_attr_tab :=
    hxc_deposit_wrapper_utilities.attributes_to_array (l_attributes);
    IF v_blocks_tab.FIRST IS NOT NULL
    THEN
    Take each ELEMENT type attribute, and search whether PROJECTS type attribute exists for the SAME BLOCK-START
    FOR index1 IN v_attr_tab.FIRST .. v_attr_tab.LAST
    LOOP
    IF v_attr_tab (index1).attribute_category = 'ELEMENT - %'
    THEN --Element attr
    FOR element_rec IN csr_category_elements (p_time_category_id)
    LOOP
    If Element Attribute matches any of the NON-TOP elements in the Time Category-START
    IF v_attr_tab (index1).attribute_category =
    element_rec.element_type_string
    THEN
    Check PROJECTS Attributes project and task belonging to ELEMENT attribute's owner block-START
    l_success_flag := 'E';
    FOR index2 IN v_attr_tab.FIRST .. v_attr_tab.LAST
    LOOP
    IF v_attr_tab (index2).attribute_category LIKE
    'PROJECT - %'
    AND v_attr_tab (index2).building_block_id =
    v_attr_tab (index1).building_block_id
    AND v_attr_tab (index2).attribute1 IS NOT NULL
    AND v_attr_tab (index2).attribute2 IS NOT NULL
    THEN
    l_success_flag := 'S';
    EXIT;
    END IF;
    END LOOP;
    IF l_success_flag = 'E'
    THEN
    RETURN 'E';
    END IF;
    Check PROJECTS Attributes project and task belonging to ELEMENT attribute's owner block-END
    END IF;
    If Element Attribute matches any of the NON-TOP elements in the Time Category-END
    END LOOP;
    END IF; --Element attr
    END LOOP;
    Take each ELEMENT type attribute, and search whether PROJECTS type attribute exists for the SAME BLOCK-END
    END IF;
    RETURN l_success_flag;
    EXCEPTION
    WHEN OTHERS
    THEN
    RAISE;
    END NON_pto_against_projects;

    INPUTS ARE resource_id (number)
    , submission_date (text)these inputs are passed in PLSQL Code and some of them in formula context
    2. While we define a new context for a time entry rule. How is the data that we enter in the time entry rule passed to the fast formula?See the time Rule entry screen and you will find the parameters window there.

  • How a time entry rules based on mapping works?

    Thanks a lot in advance for your help. I need to understand a seeded time entry rule Overlapping Time Entries. it looks like this:
    Name: Overlapping Time Entries
    Description: Seeded Overlapping Time Entries
    Usage: Submission / Resubmission / Delete
    Formula: NA
    Mapping: OTL Deposit Process Mapping
    I have done several time entry rule based on fast formula, but I don't understand this one that based on Mapping, could someone help me understand how it works?
    Thanks!
    -Bill

    Hello All,
    We are also having a Similar Issue , where Employees can enter work Hours on Holidays also.
    Eg:
    Sunday
    Regular: 08:00 to 10:00
    2hrs
    Holiday: 08:00 to 17:00
    8hrs
    Total 10 Hrs
    Iam getting the Overlapping Error when trying to save/continue.
    Can anyone Please help on this ?
    Hi Bill,
    were u able to resolve the issue.
    thanks,
    Rams
    Apps Consultant

  • OTL Custom Formula not visible in Time Entry Rule window

    Hi Friends,
    I have created a custom Fast Formula of type 'OTL Time Entry Rules'. Created a context with segments for the OTL Formulas Flex Field with formula name same as of the context. But the formula is not visible in the in the time entry rule window.
    Can any one please suggest what is the reason for this?
    Many many thanks in advance.

    Hi,
    Check whether you have given the description for your custom Fast formula while defining the FF in the Write Formula screen.
    Coz, In the Time Entry rules window you will see the description of the fast formula .
    Though the description iss not a mandatory field while defining the FF in the Write Formula screen the time entry rule will take only the description of the FF instead of the FF Name.
    Get beack to me if you need further info.
    Thanks,
    Anuradha

  • Otl time entry rule

    how can i remove validation(time entry rules)?
    thanks

    The time entry rules for your user are defined by the preferences.
    These can be attached at a number of different levels.
    Kind regards,
    Andrew

  • Hello, i have one issue when i hit back button of F Fox than it will show me " Document Expired " alert message.. i need to avoid this alert.

    Hello, i have one issue when i hit back button of F Fox than it will show me " Document Expired " alert message.. i need to avoid this alert.
    because my site is based on ajax so i need same page with my all activity i perform before i go next page when i hit back button..
    Please give me solutions of this problem if possible.
    Thank you

    Are you sending HTTP response headers that instruct Firefox not to cache the pages?
    You can get a "document expired" message if you use the back button to return to a specific page and the web site has instructed Firefox not to cache the page.<br />
    Firefox tries to retrieve the page from the server, possibly by sending POST data.

  • Keep getting "Document Expired" when hitting back button! Very annoying

    Document Expired when hitting back button! Very annoying This has been ongoing intermittently for years Why cant this be fixed? Is anything being done about it?

    Locking since you have a duplicate thread at [https://support.mozilla.org/en-US/questions/922734 https://support.mozilla.org/en-US/questions/922734] .

  • Cannot save open tabs when closing, instructions on "help", don't; FF4 has crashed/locked several times also. Frequently have to hit link button (or back button) twice for it to work. Had MUCH better performance from previous version (Windows 7 user)

    previous version asked if I wanted to save tabs when closing, not version 4. "Help" suggested checking setting but does NOT indicate what to check! (I cannot find any options/settings related to saving tabs upon closing). Second option was to rename two files, did so, did not allow saving tabs (just erased history). I liked saving tabs and am very frustrated by this.
    FF has crashed a couple of times, locked a couple of times (most recently I could not even stop with windows task manager, had to reboot)
    Frequently links (or "back" button) gives no response until pressed twice

    forgot to add that pages are generally much SLOWER to load with version 4 than previous version. NOT progress!

  • Mailto links open google (desired) but load in current tab, moving away from website, and cannot hit "back" button to return.

    I have firefox set to open "mailto" links, which is desired. However, when clicking the link, the gmail compose window opens in the current tab/window, and therefore leaves the website. Most of the time, the "back" button is not active, so I cannot get back to the website. The back button issue does not happen 100% for some reason.
    To further explain, this is a website I am creating, so I am not sure if the fault lies with my code or in the google mailto option in firefox. (Code shown below)
    >>>>>
    <a class="email" href="mailto:[email protected]">email: [email protected]</a>
    >>>>>
    I tried using a target in the mailto link, but they seem not to work with mailto links like they do for links to other webpages. (Code shown below)
    >>>>>
    <a class="email" href="mailto:[email protected]" target="_blank">email: [email protected]</a>
    ---or---
    <a class="email" href="mailto:[email protected]" target="_new">email: [email protected]</a>
    >>>>>
    Any pointers will help. Is my code bad? Or if the problem is with firefox's way of handling mailto links, is there a way to code to get around this?

    I don't wanna claim total credit for it. I remember seeing someone mentioned a Back button problem with McAfee Add-on in the forum. I dismissed it initially because it seems far-fetched...

  • Youtube audio keeps playing after I hit back button.

    Hi,
    I've been having this issue on youtube when I hit the back button the audio from the video keeps playing, I've also noticed that it only seems to happen when the comment section gets stuck loading which is frequent even though I have a fast internet connection.

    why do repliers keep suggesting to disable protected mode and harfware acceleration when that clearlyisnt a solution to this problem. are you robots?

  • Stop Firefox reloading webpages when hitting back button

    Is there any way to make hitting the back button not reload pages? It's become a bit of annoyance to me within the past few days because it sorta messed with my flow.
    For example, let's say I'm looking at a phpBB forum. There's a unread posts button next to each topic. I click on the one next to a topic, this topic has 3 pages. The last post I read was halfway down the first page, it takes me to it (and adds "&view=unread#unread" to the URL). I finish reading the page, and move on to page 2. Partway down page two, I decide to go back to page 1 to re-read something that got quoted, and click the back button. But because of what seems like a recent change, Firefox attempts to reload the page instead of its old functionality... and thanks to the unread bit at the end of the URL, phpBB serves up page *3*. Now instead of going back, I've gone forward.

    This is irritating. This should not be necessary. In every previous version, clicking the back arrow re-displays the page from cache; clicking the reload button reloads the page.
    The back button has essentially become a reload button. It's just wrong. and it fouls up my work-flow. Also,
    browser.cache.check_doc_frequency user set integer 2
    did nothing to alleviate the issue.

  • Aviod page reload when user hits back button

    Hi
    I got 2 coldfusion pages A and B. When i click a link from
    page A it goes to page B. When i click the back button of the
    browser from page B the page A refreshes and shows. I dont want the
    page A to reload when the user hits the back button of the browser
    (so that all data remains as it was) from page B.
    is there any method to cache the page and show? Or are there
    any other methods? Pls help. I am running this project in Model
    Glue architecture (i dont know whether that makes any difference)

    Normal behaviour is that going back does not cause a page to
    reload. You might be doing something to make that happen. If you
    can figure out what it is, then you can stop doing it.

  • OTL: Time Entry Rules

    Hello ,
    Iam working on a requirement, in OTL time card entry from the oracle self service page.
    If Employees work on Holidays then they are allowed to enter work Hours .
    Eg:
    Mon, 25 dec
    Regular: start 08:00
    stop 12:00
    hrs 04
    Holiday: start 08:00
    stop 17:00
    Hrs 8
    Iam getting the Overlapping Error as 'This time overlaps another entry.' when trying to save the timecard.
    Is there any way, I can override this Error.
    Can anyone Please help on this ?
    thanks,
    Babu

    Ramesh,
    OTL doesn't allow the over lapping entries, its one of the basic validations. But at the same time you can define OTL rules to configure this requirement which will automatically generate the holiday premium hours as per your requirement. There are many scenarios which you can configure to define the calculation of premium hours worked on holidays.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Bapi Service entry sheet create-Issue

    Hi MM gurus,
    I tried to create a service entry sheet using this bapi.
    The entry sheet got created but there was no data that was passed on to the entry sheet.Can anyone please tell me why this happened?

    Thanx EDIT,
                          i refered this note and followed the steps given, now  the system is throwing a new error maintain service "Line 0000000010: please specify a service".
    These are the fields that i've maintained:
    EntrysheetHeader:
    PCKG_NO :   0000000001
    SHORT_TEXT   :BAPI FOR ENTRY SHEET UPLOAD
    PO_NUMBER     :2009200084
    PO_ITEM            : 00010
    DOC_DATE                09/22/2010
    POST_DATE               09/22/2010..
    ACCEPTANCE :        X
    ENTRYSHEETSERVICES:
    For the service package:
    PCKG_NO       : 0000000001
    LINE_NO         : 0000000001
    EXT_LINE         :0000000000
    OUTL_LEVEL 0
    OUTL_IND:          X
    SUBPCKG_NO    :0000000002
    For planned service:
    PCKG_NO    0000000002
    LINE_NO    0000000002
    EXT_LINE     0000000010
    SUBPCKG_NO     0000000000
    SERVICE      5002
    QUANTITY   8.00
    GR_PRICE    120 ...
    PLN_PCKG 0000003065(ESLL-PACKNO)
    PLN_LINE 0000000001(ESLL-INTROW)
    Do i need to maintain any other fields ?

  • URGENT! Help with creating more than one linked button

    Hi!
    Could someone help a newbie with trying to figure out this.
    I work in Flash CS3, AS3.
    I've created a button that links to another webpage by using this code (the code is added to a separate layer):
    import flash.events.MouseEvent;
    steud.addEventListener(MouseEvent.CLICK, onMouseClick);
    function onMouseClick(e:MouseEvent):void
      var request:URLRequest = new URLRequest("http://www.xx.html");
      navigateToURL(request, "_blank");
    It works just fine, but the problem is that I want to add more buttons (and links) to it, and thats where I get stuck. When I try just adding a new layer and adding the code there, everything stops working. I've also tried copy/pasting the code beneath the first one, with no results.
    Does anyone know?
    /J

    I will try
    I've modified this tutorial http://www.tutcity.com/view/create-a-sliding-content-with-back-and-forward-navigation.2394 7.html and the intent is to make a sliding menue that contains images of plants that link to the url of the plant. I've got buttons (with a mouse over effect that shows the name of the plant), and in AS2 I could use GetURL to link an invisible button to the URL, but to create the sliding effect, I had to use AS3. I've understood that GetURL doesn't work in AS3.
    In scene 1 I have three layers; content, arrows and actions.
    The actionscript looks like this:
    // File downloaded from www.riacodes.com
    import com.greensock.*;
    var arrayX :Array = [0,-800,-1600,-2400,-3200,-4000,-4800];
    var currentIndex : Number = 0;
    left_mc.addEventListener(MouseEvent.CLICK,navigate);
    right_mc.addEventListener(MouseEvent.CLICK,navigate);
    left_mc.buttonMode = true;
    right_mc.buttonMode = true;
    checkArrows();
    function navigate(e:MouseEvent):void{
    if(e.currentTarget == left_mc) currentIndex --;
    else currentIndex ++;
    checkArrows();
    TweenLite.to(content_mc,.5 ,{x:arrayX[currentIndex]});
    function checkArrows():void{
    if(currentIndex == 0) left_mc.visible = false;
    else if (currentIndex == arrayX.length - 1) right_mc.visible = false;
    else{
    left_mc.visible = true;
    right_mc.visible= true;
    On the content layer I have the backgroundimages that slides as a movieclip.
    If I doubleclick on the movieclip I have two layers, one with the bakground images and the invisible buttons, and one layer where I've put the script:
    import flash.events.MouseEvent;
    JC.addEventListener(MouseEvent.CLICK, onMouseClick);
    function onMouseClick(e:MouseEvent):void
      var request:URLRequest = new URLRequest("http://www.blomsterbolaget.se/vaxtsidor/Dracaena_fragrans_JC.html");
      navigateToURL(request, "_blank");
    JC is the instance name of one of my buttons. So far everything works, but I want to add linking to another button, and I'm not sure how to do this correctly. When I've created the invisible buttons, I've drawn a square, converted it to a button, named it, and named the instance name. Changed the Alpha to 0. I've also added an On mouse over effect, but I don't think that has anything to do with this.
    Hope you can help med!
    /J

Maybe you are looking for

  • Create RSA keys based on p and q

    Is there a way to create a KeyPair based on p and q (BigIntegers or byte[]) The reason i need this is because i need to encrypt files that need to be decrypted in a c# program (and vice versa). The encryption needs to be RSA (so no DES or....) althou

  • Handeling more than 1000 columns in where clause

    Hi, I am using oracle 9i. We are creating a select query and adding where clause at runtime. The no of clolumns in where clause depends on the results from another enterprise app. There may be any no of columns from 0-N. Till 1000 columns every thing

  • Aperture won't open in OS 10.5.5

    Hi people. Ok. I'm using an Intel Mac, with 3gb RAM. I've just taken some photo's with my Canon EOS 400D in RAW format. I plugged my camera in and flicked it on just so i could drop the images in iPhoto for some simple adjustments. The camera screen

  • Extract duplicate rows and append them in single column

    hi, my requirement is i have the data in a table like below GIVEN DATA req_id res_id 100 200 100 201 101 300 102 200 102 400 102 null THE OUTPUT SHOULD BE req_id res_id 100 200,201 101 300 102 200,400 can anybody please help me out in writing the que

  • Authorization for cost centers in KSV8  allocation T-code

    Hi all, I know it is possible to set an authorization in allocation T-code KSV8 based on the cost center. In the KSV8 transaction, there is a sender, a receiver and obviously in my case the sender is different to the receiver. The following step for