Focus when an item is not valid

Hi,
This is the procedure called from trigger WHEN-VALIDATE-ITEM
PROCEDURE Validate_item IS
  LC$Value   Varchar2(512) := :System.Cursor_Item ;
  FL$Value   Varchar2(2)   := :System.Cursor_Value ;
  LC$Code   Varchar2(2)   := '';
BEGIN
  If LC$Value IS NULL Then
         goto the_end ;
  End if ;
  If FL$Value IS NULL Then
         goto the_end ;
  End if ;
  -- For code validation --
  Begin
     Select MYTABLE.T_CODE
     Into LC$Code
     From   MYTABLE
     Where  T_CODE = FL$Value;     
  Exception
        When NO_DATA_FOUND Then
          Disp_Alert(3); -- Call the alert procedure
  End ;
<<the_end>>
Null ;
END; When the code is not valid, a message is displayed with disp_alert, but the cursor go to next item.
How can I keep the focus in the invalid field ?
I have tried with Go_Item(:system.cursor_item) but error FRM-40737 occur.
Best Regards
Gaetano

Read the following:
Timer / Go_Item workaround - replacement for web?
Greetings...
Sim

Similar Messages

  • HT204266 I live in China, have Dutch nationality, and no US address or Credit Card; how can I have access to products from the US iTunes store, in particular music, when such items are not available from the China iTunes store? In general, what are the di

    I live in China, have Dutch nationality, and no US address or Credit Card; how can I have access to products from the US iTunes store, in particular music, when such items are not available from the China iTunes store? In general, what are the differences between countries' iTunes offerings? Does one really need an address and a credit card for any country to be able to access that countries iTunes store? Why these restrictions?

    You cannot.
    You cannot use another countrys itunes store.
    You must be physically locates inside the borders of a country to use that countrys itunes store and a credit card issued in that country with a valid billing address in that country.
    The owners of the distribution rights of movies/music/etc differ by country.  These distributors decide who can sell their content in that country.
    Buy from another source if your countrys itunes store does not carry somehting that you want.

  • WHEN-CUSTOM-ITEM-EVENT - not firing. Please Help

    Hi Grant,
    WHEN-CUSTOM-ITEM-EVENT - not firing. Please Help..
    I need a help from you.
    1) I have developed an form to browse the client machine and upload the file on server / table
    2) Registered the form in Oracle Apps 11.5.10.
    3) Currently i am able to open the File_Dialog and browse throught the clients machine
    But when ever user selects any file and says Open, i am not able to retrieve the file name. wHEN-CUSTOM-ITEM-EVENT is not
    firing. I am sure how we can invoke this CUSTOM-ITEM-EVENT.
    To devlop the form i have referred PERWSIMG.fmb - of Oracle (Apps) HRMS which uploads the employee photo in the Database.
    Hence i have used the same java code / Implementaion Class.
    Please help...
    Regards
    Sameer

    Hi Francois,
    You were right. I re-loaded the zip file and the original version works. Odd, as I don't remember ever modifying those files.
    But my original issue still remains.
    The only code I've added is this:
    Color mycolor = this.getBackground() ;
    setBackground(mycolor);to the CalendarFrame constructor. How could this be causing the trigger to not fire?
    Could it be the way I created the bean? I copied all the java files to my project, attached the libraries, created a deployment profile. Everything compiles without errors or warnings, and the jar is created without issues. The java console doesn't give any errors either.
    Thanks for all your help,
    A
    Edited by: Abigail Parmar on Mar 26, 2009 1:01 PM

  • How do I import a home movie into I movies from a video camera when it says format not valid

    How do you import a home movie straight from your video camera to i movies when it advises format not recognised.

    iMovie
    http://www.apple.com/support/imovie
    http://www.apple.com/support/ilife

  • Incorrect Focus when Changing Item with Mouse

    Dear Colleague,
    Quite often, when the user navigates to a new item with the mouse and not with the keyboard (e.g. Tab key) or explicitly via the toolbar item (next item), then the cursor ends up in the item of interest, but when the user proceeds to, for example, activate the associated LOV, then the cursor focus switches back to the original, i.e. previous item.
    Is this a known bug? I would appreciate any tips here.
    My forms are running within Oracle AS 10g.
    Best regards,
    Randy

    Dear Wilfred,
    In the meantime, I did in fact find something in MetaLink, namely:
    Note: 292045.1
    Subject: Cursor Focus Is Lost After Using Alt+W To Switch Between Windows in Oracle Forms
    Cause: The problem is caused by a forms bug:
    The bug is fixed in OracleAS 10g / Oracle Developer Suite 10g Rel 2 (not due for release until March / April 2005)
    There is no backport one off fixes available for Forms 6i, 9i or 10g (Rel 1). For these releases, the user must work-around by manually clicking in the window / field in order for cursor focus to be returned, and keyboard input to be accepted again.
    References: Bug 3788158 - Cursor Focus Lost When Moving Between Forms Using Window Menu
    Wilfred,
    Does this mean that no bugfix is planned for Releases prior to 10g (Rel 2)? Which ultimately requires an upgrade to this release, if one wants to avoid this?
    I would appreciate your interpretation on this.
    Thanks,
    Randy

  • New computer and install of didgital editions need adobe ID which when I enter indicates not valid of not unique what do i do

    what do I do now as I have updated password and also created second ID which also does not work.

    <moved from Downloading, Installing, Setting Up to Adobe Digital Editions>

  • LOV not validating from the list when tabbed out

    Hi,
    I have an item attached to an LOV generated dynamically based on another LOV. When I change the value in the parent LOV, and just click on the child item(which still has old value) and tab out, it does not validate from the list which has new values. The old value in the field is actually wrong one. However, it shows new values when I click on list of values for the child item.
    I am also setting the property VALIDATE_FROM_LIST to PROPERTY_TRUE. The code to set_lov_property to the dynamic query is generic and is used by both key-listval and when-new-item-instance triggers. Except in key-listval I added list_values.
    I am using forms 6i version.
    Can any one tell me where I am doing wrong?
    Thanks,

    Neeraja,
    Its because the item is not validating again, as there is no change in its contents. So you have to tell oracle to validate that item. For that in the WHEN_VALIDATE_ITEM trigger of the parent item, write,
    SET_ITEM_PROPERTY('<block_name>.<child_item_name>', ITEM_IS_VALID, PROPERTY_FALSE);So when you tab out from the child item, the oracle will validate that item even if there is no change in the data.
    Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • When-validate-item at form level do not fire

    Hi, I wrote a when-validate-item at form level to do same check in all items of a screen and note that this trigger do not fire when executing the form. does someone know why this form-level when-validate item do not fire. Are there some conditions i probably forgot to have? Thnaks very much.

    Hi, if you also have a validate-item trigger on the item itself, this may be overriding the form-level validate item.
    At the ITEM-LEVEL:
    if a when-validate-item trigger exists and the Execution Hierarchy property of the trigger is set to override then the item-level trigger will fire instead of any trigger by the same name at any higher scope.
    So make sure you do not have validate-item triggers at the item or block level that may be overriding the form-level when-validate-item.
    To see the properties of a trigger, highlight the trigger and press F4
    Hope this helps!

  • How to use when-validate-item in the form personalization?

    Dear all,
    I want to use when-validate-item trigger in the form personalization on a specific item. while in the same time the when-validate-item is not included in the trigger event list.
    Please advice & Thanks in advance
    Ashraf Ashour

    Use condition. If you are validating a record, just out the desired check in the condition field for that specific item.
    Thanks
    Nagamohan

  • Appleworks crashes when "recent items" is selected

    After upgrading to 10.5 recently, Appleworks (v. 6.2.9--yeah, upgrade it) when I select the "recent items" tab, I will hear the drive accessing for 13 seconds then the app disappears. After another 12 seconds I get the "quit unexpectedly" alert box.
    Files will open if clicked on. Appleworks that is on a 10.4.11 partition still works as expected.
    PROBLEM RESOLVED
    While checking on behavior for details while making this post, I found the cause of the problem. When I added an external drive and moved most of my data files to a new location, none of the aliases of "recent items" could link to the new location. When I deleted all of the recent aliases in the AppleWorks folder there is no longer a crash. Previously, when a link couldn't be found, it was greyed out. Guess when none of the links worked, Works had a nervous breakdown.

    This is a very old bug described for years.
    It strikes also when "Recent items" is not selected!
    You may look at:
    http://discussions.apple.com/thread.jspa?threadID=121796
    http://discussions.apple.com/thread.jspa?threadID=121997
    http://discussions.apple.com/thread.jspa?threadID=122003
    Yvan KOENIG (from FRANCE vendredi 26 septembre 2008 18:09:51)

  • Does the new ipad(3rd gen) focus when taking video?

    Im wondering if my new ipad focusses when taking video.....does it do it automatically...because i have to manually touch to focus when taking video , but not when taking pictures.....im just wondering if it even focusses automaticly in video mode....sorry for my grammer, English isn't my first language......  P.s hope the question makes sense...

    Well it doesnt focus in bright nor in low light i have to touch the screen for it to focus in video mode.....but for me that really isint a big deal....it focusses automaticly in picture mode, and thats what i really care about....but i have just returned two ipads for having wifi issues and yellow screen issues......the one that i have now has a perfect screen its whiter than my ipad 2 its just perfect and i really dont want to risk taking it back and getting a new one that may have some sort of yellow on the screen....i was just courious about the whole video focusing deal.....but ill be fine and it really isnt a big deal ....but i will take it to the apple store when ever i have a chance thoo....and see what they say about it....

  • Why QUAN_PO_E field in BBP_PDIGP tabl is not reset when PO item is deleted?

    Hi Gurus,
    For some reason, after an item is deleted at PO, its corresponding QUAN_PO_E field in BBP_PDIGP table of SC has the same quantity ( for example, 3 pieces ).
    When the buyer access the SOCO, the item is not displayed because previously the system make a validation: if quantity is equal to quan_po_e ( the difference is zero ), eliminates the item to display and reset the SOURCE_REL_IND to space.
    Somebody knows the reason for which the field QUAN_PO_E is not updated with the value of zero after deleting the items of the purchase order?
    How can I update the QUAN_PO_E field on safe way maintaining the data consistency?
    I have posted new message in order to try separately from thread Re: SOURCE_REL_IND : shopping cart not appearing in the sourcing cockpit

    Hi,
    Could you please check if note  1326380 is implemented ?
    The implementation of this note will not affect the older SC which
    didn't return to sourcing after PO deletion. But the issue should not
    happen for the POs that are deleted after the implementation of the
    note.
    Please, check if field QUAN_PO_E (table BBP_PDIGP) was not cleared after
    PO deletion.
    If not, you can clear this field for the SC item (for which the PO has
    been deleted), then clean_reqreq_up should send the SC to sourcing.
    So a work around would be to manually delete this field, and run
    clean_reqreq_up again.
    Summer

  • How to commit data when item is being validated

    the problem is, that I have an input field on the form. when
    ever I make changes in it I need to validate the change first.
    and if its validated then I need to make certain changes in the
    database and commit.
    I have written code in when-validate-item, which is called when
    ever I make change in the input field. In this trigger I first
    check data entry is correct and then make certain changes in the
    database and finally when I try to commit the changes I made it
    gives me error message of illegal restriction cannot use commit
    procedure in when-validate-item.
    can anyone help me as how can I validate an input field first
    and then make transactions in the database and commit.
    thanks

    Hi
    I do not know exactly what you want to
    do, so use this with care.
    If you want to commit only the database
    (not forms itself), you can use:
    forms_ddl('commit');
    If you need to commit the form itself,
    in the when-validate-item you can
    create a timer, and in the when-timer-expired
    trigger do a commit.
    Luis Cabral

  • Need code for this Small validation on when-validate-item

    Hi All,
    I have a text item(date datatype) in forms 4.5 I need to do a small validation want to write on when-validate-item. When I enter a date in that text item (Ex 10-JUN-2005) it has to check
    1) It Cannot be "blank"
    2) It cannot be "Not older than today"
    can you please put me code for this small validation. I am new to Forms.
    Thanks in Advance,
    Reddy

    I always put code in the when-validate-RECORD trigger to ensure fields are entered, rather than setting the property. That way, the user can enter other fields within the record, and then gets a message that the field is required only when leaving the record.
    ...of course, if the date item is the only field in the block, then the when-validate triggers will not run unless the user at least types a space in the date. In that case, you need to check in the key-commit trigger.

  • Lov is not validating when i open a form for first time

    hi all,
    i am using form6i.
    i have one multi record block. in which lov is attached to it.
    but when i open the form for first time the item corresponding the above said is not showing and if i enter the value then also its not validating against. its showing error frm-40210
    but when i click on other item and come to this item Lov is showing.
    what could be the reason for this strange behaviour.
    i have checked set_item_properties too(there is properties have been set)
    Please advice.
    Thanks..

    FRM-40210: Search string not found.
    what could be the reason for this strange behaviour.Do you have an "Initial Value" set for the item? Do you have the "Validate from list" property set to yes or are you setting the initial value through code?
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for