Key-entqry issue

Hi,
I have a form with 2 tabs. After querying some data, If I press ent_qry button, nothing happens. So I wrote the following code in the form_level key-entqry trigger.
BEGIN
   SET_MENU_ITEM_PROPERTY ('QUERY.CANCEL_QUERY', enabled, property_true);
   SET_MENU_ITEM_PROPERTY ('ACTION.SAVE', enabled, property_false);
   clear_form(ask_commit);
   enter_query;
   enable_button('exceptional_events.screening_group_num_btn');
END;
PROCEDURE enable_button(p_field IN VARCHAR2) IS
BEGIN
     IF GET_ITEM_PROPERTY (p_field, enabled) = 'FALSE' THEN
         SET_ITEM_PROPERTY (p_field, enabled, property_true);
   END IF;
   IF GET_ITEM_PROPERTY (p_field, navigable) = 'FALSE' THEN
         SET_ITEM_PROPERTY (p_field, navigable, property_true);
   END IF;
END;the form goes in enter_query mode, but the screening_group_num button is not enabled. Therefore I added the call to enable_button routine. But it does not help.
I tried using call_form('form_name') to see if that enabled the buttons (because when u initially enter the form ( u are in enter_query mode) the button should be enabled. It is disabled in block-level Post-query trigger if data is found, as the user should not be able to modify the key items. The field to which is button is attached is also disabled in post-query trigger, but surprisingly only the button is disabled when u press ent-qry and the field is enabled. )
Any suggestions!!
PS:- Should I just put a DB side constraint that the key-items shoud not be changed (then I would not need to disable and enable the buttons)?
the block is a DB block. but the items which should not be modified are not part of primary key but unique key, therefore we do not have any constraint on DB side.

Magoo wrote:
Hi!
Change to:
BEGIN
SET_MENU_ITEM_PROPERTY ('QUERY.CANCEL_QUERY', enabled, property_true);
SET_MENU_ITEM_PROPERTY ('ACTION.SAVE', enabled, property_false);
clear_form(ask_commit);
enable_button('exceptional_events.screening_group_num_btn');
enter_query;
END;because with the call to enter_query the forms stops to execute the code in the trigger.
RegardsThanks Magoo
Its works now. I found out that there was anothe key-entqry trigger on a datablock which had a call to
enter_query;
enable_button('exceptional_events.screening_group_num_btn'); in that sequence..
now it works fine!
thanks

Similar Messages

  • Key shortcut, issue, typing something in editing code and changing language going directly to snippets.

    Key shortcut, issue, typing something in editing code and changing language going directly to snippets.
    So the problem is that I have to click in the editing code again to write in different language, which it didn't happened before.
    Just in case of shortcut keys collision I completly removed the shortcut of snippets from shift+F9, nothing changed. I really can't understand why when I press Alt+Shift to change language it goes straight to the snippets.
    If anyone can help would save me from nervous breakdown! 
    Thanks,
    GKD

    Since this appears to be a "just started happening" issue, have you tried clearing the program cache?
    Deleting a corrupted cache file
    That tends to catch a lot of weird behaviors and straighten them out.

  • KEY-ENTQRY raised unhandled Exception

    Hi,
    In master details form, I try to filter record through pre-query and the condition is as follows
    v_sql_string := '( select K.CLIENT_ID, K.VISIT_ID,K.SERVICE_CD, k.Visit_Dt, k.Visit_type,k.Consultant,k.service_descr '||
                   ' from ( select m.*, row_number() over(partition by m.Visit_Dt '||
                   ' order by m.Visit_Dt) rn from clans_visit_summary_V m where client_id = ' || v_client_id ||
                        ' ) k ';
    v_def_where := 'where k.rn = 1 '||') ';
    Actual query is
    select client_id,Visit_Dt, Visit_type,Consultant,service_descr
    from
    ( select m.*, row_number() over(partition by m.Visit_Dt order by m.Visit_Dt) rn
    from clans_visit_summary_V m where client_id = 21503
    ) k
    where k.rn = 1 order by visit_Dt ;
    The query is working fine for the first time.. But, If i would like to query again, oracle returned the error as follows
    FRM-40735 KEY-ENTQRY Trigger raised unhandled exception ORA-06502.
    Will you give your suggesion to fix it.
    Regards,
    Murali

    Murali,
    Can you take your query in the Pre-Query trigger and run it in SQL*Plus? Looking at your code, it looks like the cause of the 6502 error is your ONETIME_WHERE.
    v_sql_string := '( select K.CLIENT_ID, K.VISIT_ID, K.SERVICE_CD, '
                  ||'         k.Visit_Dt, k.Visit_type,k.Consultant,k.service_descr '
                  ||'   from ( select m.*, row_number() over(partition by m.Visit_Dt '
                  ||'           order by m.Visit_Dt) rn '
                  ||'           from clans_visit_summary_V m where client_id = ' || v_client_id
                  ||' ) k ';
    v_def_where := 'where k.rn = 1 '||') ';
    Set_block_property(v_trigger_block,QUERY_DATA_SOURCE_NAME, v_sql_string);
    Set_block_property(v_trigger_block, ONETIME_WHERE, v_def_where);You change the WHERE clause of the block to k.rn = 1, but referencing "*k.rn*" doesn't look like valid SQL to me because you are selecting multiple values from your RN Alias (in-line view) therefore, I don't see how you could compare k.rn to the value of 1.
    Also, what version of Oracle Forms are you using? You may be running into a limitation of Forms where it does not support the Analytical Functions you have in your query. From what I could quickly find, Analytical Functions are only supported in Forms 10.1.2 or higher and the Database must be 10.1 or higher. If this is the case, perhaps you could create a view on the database and base your block on the view.
    Hope this helps.
    Craig...
    If my response or the response of another was helpful, please mark it accordingly

  • Latitude e7450 - Repeating Keys/Debouncing Issue is present in this model too

    Not sure how to get attention to this, as I do not think Dell is aware of this problem since this model was only released a month ago.  The repeating keys/debouncing issue described here  , is present in this new model Latitude e7450 in both bios A00 and A01.  Please make this bug known, so that Dell is able to fix it in a bios update!

    So, I also found and posted in this thread  about the issue with the E7450
    and basically that is the aggregation of all the posts on this repeating keys/debouncing issue on ALL affected models.  Honestly as a developer, I'm pretty shocked at how bad Dell support really is.  I've been lucky enough to never have any hardware issues until now...
    They chose to have a forum for their customer service, fine; that works with many other companies. But they should have at least split the forums into laptop series,by model number, have a bug tracker and paid more than 1 guy to relay issues to the engineering team.. This is ridiculous and utter chaos reading through these threads and it is enough to make me question buying a high priced Dell ever again.  Like many people I went with Dell Latitude after Lenovo created that awful macbook-like clickable touchpad, but it looks like their 2015 models are bringing back hardware left/right click buttons again so that might be my next purchase.

  • Serious Keyboard Key Mapping Issue

    Hi there everyone...
    Yesterday evening, while i was watching a movie on my Macbook, i accidentally pressed the command button, and all of a sudden the movie stopped playing.
    After some research on the internet, I activated the keyboard palette, and found out that several keys had issues
    1. The left command button behaved as if i was pressing command + . (period key)
    2. The right command button behaved like command + up arrow key
    3. The up arrow key like issue 2 above
    4. The period key like issue 1 above
    p.s. the up arrow and period keys arent working at all, they just behave as i explained above
    Since it had to do with a modifier key, i tried to change the modifier key settings, but even though i tried accessing the modifier key settings through preferences, no pop-up window opened and no change could be made.
    Even though i tried a PRAM zapping, nothing happened because as i understand it, the system doesnt recognise the shortcut, since together with command,option,p,r, the period key is seen pressed as well.
    If anyone can help please do!
    Thanks for your time everyone,

    So I booted from the install disk.... Didnt now what exactly to do, so i use the terminal to see if the problem with the keys persisted... And unfortunately it did.... Didnt know what to do next so i quit and booted again...
    But i restarted my macbook, only to boot into hardware test mode, to see if the problem really is on hardware side.
    I am running an extended test, but poking around a bit, i noticed that the up arrow key worked fine...
    Waiting now to see the results from the test, which i will post after it's finished.

  • KEY PRESS ISSUES

    I own a Pre Plus on Verizon. I have read the numerous posts describing issues with keyboard key press difficulties. What I haven't seen, is any resolution to the problem. Personally, The keyboard size is OK. The unreliable key press issues are driving me nuts. The worst key on my Pre+ is the "e" key and some others, mostly on the top row of keys. I first press, nothing, press again, maybe nothing or multiple entries of "e", The "y" is second worst. Same issues. Is ANYBODY doing anything to resolve this problem?
    Post relates to: Pre Plus p101vzw (Verizon)
    This question was solved.
    View Solution.

    The last software update 1.4.11 addressed this issue on the Verizon Palm Pre Plus. If you are on earlier software version you need to update your device to the latest SW version. If you are on the latest SW version you may have a hardware problem with the device. You should go to Device Info from your launcher, tap the drop-down menu, choose Tests, then Interactive Tests, then test your keypad for problems. If this test fails then you should get a replacement device from Verizon.

  • FV11 key combination issue - Materials - Services

    Hi MM experts,
    I am having problem while making the PO - Services.
    We are separate POs for material & services.
    FV11 key combination maintained for Materials : Plant/Vendor/Material
    FV11 key combination maintained for services : Plant/Vendor/Materail Group
    While making PO- Material, If select V1- Taxes conditions are coming - which is required & right
                                               If select V0 - Taxes conditions are not flowing
    While making PO- Services, If select V1- Taxes conditions are coming & taxes are flowing in PO - which is required & right
                                               if select VO - then also same conditions are coming & taxes are flowing in PO
    here my requirement is why services PO the V0 - taxes & tax conditions are flowing as maintained in FV11 key combination
    pl help in arresting the Services-PO - Taxes & Tax conditions should not flow when we select V0.
    thanks & regards
    Srihari

    hi
    I think my query is not clear, i repeat the same.
    1. I am maitaining Fv11 for Vat i.,e JVRD conditions, this will be triggered when i use V1 in while making PO- Materials, all the tax values ie., Vat amount is flowing in PO,
    If I select V0, then the tax conditions are not flowing and values are nil. PO- Materials, all the tax values Nil, and the po value is without any Vat amount.
    2. Similarly, I am maintaining FV11 for service tax ie., JSRT -10%, JEC1-2% & JSEC-1%, this will be triggered when I use S1 in while making PO-services, all the tax values ie., service, ec, sec cess amounts are flowing in PO.
    If is select V0, then also the tax conditions are flowing in PO- services, all the tax values ie., service tax, ec, sec cess
    I want the PO-Service, without any taxes, when I select standard Tax condition V0.
    Pl suggest, do we have separate tax conditions for materials & services,  meaning
    V1 - taxes to flow in PO- Materials
    V0 - Taxes not to flow in PO- Materials
    S1 - Services taxes to flow in PO- Services
    S0 - Services not to flow in PO- Services   -
    > this is to be created new??????????
    pl advise, how i over come the issue of services taxes flow in PO-Services.
    pl help
    thanks & regards
    Srihari

  • Key date issue

    hello,
         I am having a scenario where I am having two Info objects 0VALIDFROM and 0VALIDTO date info objetcs. requirement is that if i give a key date. It should check both the dates in record and if it lies in between of 0VALIDFROM and 0VALIDTO date then it is displayed in Bex output.
    Can you suggest how to achieve that.

    Hello Vineet,
                 I am pasting the code for your refernce. But i am getting while executing I am getting the  error.
    ATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: l_t_var_range LIKE RRRANGEEXIT.
    Case I_VNAM .
    WHEN 'ZVLFRSLR'. " Valid From
    IF I_STEP = 2.
    READ TABLE i_t_var_range INTO l_t_var_range
    WITH KEY
    vnam = 'ZEDT1SIR'. " Key date Var
    IF sy-subrc = 0.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'LE'.
    SHIFT l_t_var_range-low LEFT DELETING LEADING space.
    l_s_range-low = l_t_var_range-low. " user entered value
    " for End Date
    APPEND l_s_range TO e_t_range.
    ENDIF.
    ENDif.
    Valid To is set to >= Key Date formula variable ZEDT1SIR
    WHEN 'ZVLTOSLR'. " Valid To
    IF I_STEP = 2.
    READ TABLE i_t_var_range INTO l_t_var_range
    WITH KEY
    vnam = 'ZEDT1SIR'. " Key Date Var
    IF sy-subrc = 0.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'GE'.
    SHIFT l_t_var_range-low LEFT DELETING LEADING space.
    l_s_range-low = l_t_var_range-low. " user entered value
    " for End Date
    APPEND l_s_range TO e_t_range.
    ENDIF.
    ENDIF.
    Can you please suggest what is the issue. It is saying that no value can be derieved for variable ZVLFRSLR. Then it is disconnecting from BW. I have created key date varaiable with input from user entry with the same technical name.

  • Curious key binding issue with Openbox

    I'm learning about setting up key bindings for actions in Openbox. One of things that I wanted to do is to have the root-menu and client-list-combined-menu set to keyboard shortcuts. This part I borrowed from a post in the forums and it does exactly what it's supposed to do:
    <!-- Keybindings for root menus -->
    <keybind key="W-z">
    <action name="ShowMenu">
    <menu>client-list-combined-menu</menu>
    </action>
    </keybind>
    <keybind key="W-x">
    <action name="ShowMenu">
    <menu>root-menu</menu>
    </action>
    </keybind>
    The issue comes when I don't want to select something in the menu. Esc will clear it just like it should. But, The Caps Lock key on my system which is remapped to Esc won't. It works like an escape key everywhere except here. Any ideas on why?

    Inxsible wrote:Does this happen only in the vim window ? ...
    No, it happens all the time. It can be the first thing that I do when the computer boots, and it still doesn't work the way that I'd expect.
    If it helps, this is what xev is reporting for Escape:
    KeyPress event, serial 35, synthetic NO, window 0x1200001,
    root 0x13b, subw 0x0, time 23124448, (89,89), root:(1163,782),
    state 0x10, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
    XLookupString gives 1 bytes: (1b) "
    XmbLookupString gives 1 bytes: (1b) "
    XFilterEvent returns: False
    KeyRelease event, serial 35, synthetic NO, window 0x1200001,
    root 0x13b, subw 0x0, time 23124600, (89,89), root:(1163,782),
    state 0x10, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
    XLookupString gives 1 bytes: (1b) "
    XFilterEvent returns: False
    And for Caps_Lock:
    KeyPress event, serial 35, synthetic NO, window 0x1200001,
    root 0x13b, subw 0x0, time 23132024, (89,89), root:(1163,782),
    state 0x10, keycode 66 (keysym 0xff1b, Escape), same_screen YES,
    XKeysymToKeycode returns keycode: 9
    XLookupString gives 1 bytes: (1b) "
    XmbLookupString gives 1 bytes: (1b) "
    XFilterEvent returns: False
    KeyRelease event, serial 35, synthetic NO, window 0x1200001,
    root 0x13b, subw 0x0, time 23132144, (89,89), root:(1163,782),
    state 0x10, keycode 66 (keysym 0xff1b, Escape), same_screen YES,
    XKeysymToKeycode returns keycode: 9
    XLookupString gives 1 bytes: (1b) "
    XFilterEvent returns: False

  • IOS6 Faces Key Photo Issue. Key Photos not working

    Hi, I recently bought a new iPhone 5 and when I did my update and went to Photos/Faces/ I noticed that my Key Photos for my Faces were not showing and it chose random images. This used to work with iOS6 and my iPhone 4. Please provide a timeframe for when this issue will be fixed. Thanks.

    Amitshree,
    In firefox 3.6.10,i am not able to find the reset Firefox button.Copy all to clipboard button is their and Open containing Folder button is their.Please see my screen shot.

  • Key Sensitivity Issue

    My "s" became very sensitive. It reacts immediately even with a slight touch, before the actual "click" of the key......
    So when I press the "s", I get most of the time "ds", “ws” and “as”………any help would be appreciated!

    Restart your phone to see if that corrects the issue. Press and hold your power button for about 15 seconds until you see BlackBerry on the screen, ignoring anything that appears before that.
    Do that and post back with your results. Cheers.  
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • MBAM Agent Key Escrow Issue After Pre-Provisioning Bitlocker in SCCM TS

    Hello, I'm having an issue with MBAM key escrow now that we have moved to using pre-provisioned Bitlocker. After imaging completes the initial key escrow works properly (the MBAM Agent transmits the Numerical Password key protector to the MBAM server) however
    the MBAM Agent no longer automatically changes the Numerical Password when the recovery code is revealed in the
    MBAM Drive Recovery console. As far as I can tell MBAM is supposed to change this on the user's computer within 90 minutes by default and this behavior cannot be changed.
    I have tested this using a previously-imaged computer that didn't use pre-provisioned Bitlocker. After revealing the recovery code in the MBAM console, the computer's Numerical Password protector was automatically changed as is expected. However
    on the computers imaged with the pre-provisioned Bitlocker this does not happen.
    Here are the versions of the software we're using:
    SCCM 2012 R2
    Windows 7 Enterprise SP1 x64
    MBAM Agent v2.0.5301.1
    The task sequence steps we are using consist of:
    Ensure TPM is activated
    Format and partition drive 
    Pre-provision Bitlocker, Encrypt Used Space Only mode
    Apply Windows 7 image, install drivers and software, etc
    Use manage-bde to set key protectors (-TPM and -RecoveryPassword)
    Run the MBAM activation script
    Use manage-bde to turn on Bitlocker on the drive
    There are no error messages displayed and I can't see anything in the Event Viewer which would point to the root cause. The MBAM logs in Event Viewer are all Operational logs which simply state that the
    'MBAM policies were applied successfully'.
    Is this a known issue with pre-provisioned Bitlocker and MBAM? I haven't been able to find any information regarding this issue so any help would be greatly appreciated.
    Thanks,
    Justin.

    According to the
    MBAM TechNet documentation the client should log in the Microsoft-Windows-MBAM/Operational
    section of Event Viewer. However:
    The test computers do not show any error messages in the MBAM Operational log section. The only entries present are Information events
    that state "The MBAM policies were applied successfully"
    The test computers also don't seem to show any general Security or System Error logs related to Bitlocker or MBAM
    According to the TechNet documentation listed above, when a machine has its Numerical Password reset there should be a
    'RecoveryKeyReset' event logged. However on the laptop where MBAM is changing the Numerical Password I do NOT see this event (though I have confirmed with manage-bde that the recovery password was changed successfully). The only events I see
    are, again, Operational logs for Information events that state "The
    MBAM policies were applied successfully".
    I'm not sure why there aren't any errors logged, or why that laptop isn't generating that RecoveryKeyReset event like it should. As far as I can tell there isn't any way to change what the MBAM client logs, right? I didn't see any logs in AppData or Program
    Data so I have to assume everything is supposed to be logged in Event Viewer.

  • Flexfield: Open Key Window issue

    Hi All,
    ebs 11.5.10.2
    We have an issue with the profile Flexfield : Open key Window where when we try to query for an items (form: INVIDMPN):
    Navigation path: PO Superuser -> Items -> manufacturer's Part Numbers -> By Items
    We then have a form pop-up asking the Organizations. After choosing, another form pop-up asking Group, SubGroup and Number. After providing these 3 numbers and clicking on 'OK' there's another popup "Find Manufacturer Part Number (xx)" forms with the information I provided previously. When I click on "Find", I have the following:
    My form session crash, application close and I have to relog. Here's the error message from the form:
    FRM-92100: Your connection to the server was interrupted. This may be the result of a network error or a failure on the Server. You will need to reestablish your session.
    Detail...
    Java Exception:
    java.lang.NullPointerException
    at oracle.forms.engine.Runform.onUpdateHandler(Unknown Source)
    I can see the same error in Console Java. I have the same behaviour with US and FRC language.
    If I then change the profile Flexfield: Open Key Window from Yes to No at user level and do the same thing, everything works perfectly. I query for the same item and when I click on Query, it returns the item.
    I couldn't find document on Metalink. I was curious to check with the community before opening an SR, in case someone hit that problem before?
    Thanks!

    Which particular registry key is being mentioned in the message?

  • Lenovo G570 essential - One Key Recovery issue

    Hello to everybody and congratulations for the forum. I have a Lenovo G570 notebook which is running the original version of Windows 7 that came installed with. Before I mention the problem I have to state that I have restructured the hard drive by using the program Acronis Disk Director. When I click the One Key Recovery application and choose the RECOVERY option I receive the follwing message.
    "The program cannot find the service partition. The service is currently unavalaible."
    After checking, I noticed a change in the Default recovery partition (the factory one) and the Windows installation partition. These partitions are not ACTIVE as before. What can I do in order to overcome this problem and achieve to restore my notebook to the factory default installation?
    Regards,
    LENOVO G570-20079
    INTEL CORE i3-2310M/4GB ram DDR3-1066MHz/HDD Toshiba 640GB MK6465GSX/VGA AMD Mobile Radeon HD 6370M/Atheros Wireless 9285/Atheros Ethernet Controller 8152/

    Hello Oust_alex,
    First the simple procedure to bring the system to factory setting by using the recovery disc if you have created before altering the partitions.
    If the recovery disc is not created then you must restore the partitions as previous and then check.
    Last option is to purchase the recovery disc from the service center.
    Best Regards,
    Tanuj
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution".! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Strange Key Commands Issue - Please Help

    I understand how to make/delete and export key commands.
    I made a key command preference that I like that doesn't involve the screen set key commands ... herein lies the issue.
    I delete the commands (1,2,3,4,5,6,7,8,9) that are assigned to screen sets because I want to use them for other things. I save the preset. If I keep logic open everything is hunky dory, but if I close logic and re-open it the screen set key commands are suddenly part of my preset again.
    I'm running Logic 8 btw.
    I thought Logic might automatically be initializing it's key commands from their provided key commands list, but after removing them I found that was not the case.
    I also tried deleting my com.apple.logic.pro.plist file but still the screen set key commands keep showing up.
    Does anyone know a way to keep Logic from adding them back into the key commands everytime I start it up?
    -Stephan

    swunderboy wrote:
    WAIT!!!
    I found a way around it:
    instead of using "learn by key label" I used "learn by key position" and then the numbers on the number pad can be whatever I want!
    YESSSSSS.
    thanks again for your help!
    LOL, OK, you never mentioned the keypad... I just assumed you were after the top row number keys... but those on the numpad are indeed available (or set in limestone). Good persistance! And thanks for reporting your solution.
    regards, Erik.

Maybe you are looking for

  • I am done with Verizon after 13 years.

    When my husband started his new job it required him to provide his own cell phone with no allowance from his company.  I had our usage reviewed and all the plans were explained to me.  When I realized we were cutting it close I inquired about upping

  • Ipod 5th gen, video 30bg, will sync/restore, won't play

    I am running Windows 7, with all updates (as of 3/14/2014) have itunes 11.1.5.5 showing no available updates. When I plug into the USB port, the ipod gets recognized, Itunes starts. I can see the files on the ipod. I have reset the ipod and restored.

  • Uploading a file using input type=file

    Hi, I'm not sure if I'm in the right place or not. If not can you please let me know where to find and answer for my question. I'm trying to upload a file in oracle self-service (online page) and I found that the input type=file will let me select th

  • DVD's sources for SAP R/3

    Hi! In order to upgrade the existing SAP R/3 system (release 4.6c) to SAP ERP 2005 we need the DVD's sources of SAP R/3. Unfortunately I could not detect those on the SAP marcetplace URL: http://service.sap.com/installations. Can some one tell how to

  • How do you increase the font size to bigger than 24, using the typewriter tool in Adobe Acrobat Pro 9 for Mac?

    How do you increase the font size to bigger than 24, using the typewriter tool in Adobe Acrobat Pro 9 for Mac?   Often I just want to label an item on a map that is in PDF and want to use a simple label rather than a Text Box for labeling, but have y