Trigger Key clearform

Hi everybody,
I have a form created with Forms 6i where I have a field called user_id, but the user doesn't have to insert a user_id because I bring that value automatically with a consecutive number. I added a bottom to this form where the user click to save all the information and to clear the form to continue with the next register. My problem is that every time the form clears up, I can't make forms to bring my consecutive user_id. How can I make it work after I clear the form?

Okay. Then the following info should work:
Leave WNFI trigger with this logic:
begin
select to_number(max(substr(userid,4))) + 1
into :global.userid
from users where substr(userid,1,2) = to_char(sysdate,'YY');
end;
In your WNBI trigger you could add back in the logic but append the DD-00 info:
:users.userid := to_char(sysdate, 'YY') || '-' || lpad(:GLOBAL.USERID,4,0);
Then you could change you WBP trigger to look like:
COMMIT_FORM;
MESSAGE('NEW RECORD INSERTED');
MESSAGE('NEW RECORD INSERTED');
:global.userid := :global.userid + 1;
CLEAR_FORM;
:USERS.USERID := to_char(sysdate, 'YY') || '-' || lpad(:GLOBAL.USERID,4,0);
The only thing I can think of is that as soon as the form is cleared and the :users.userid is populated in the WBP trigger then the block will be marked as CHANGED and if the user tries to exit the form it is going to ask them if they want to save their changes. In order to avoid this, you may want to display the :USERS.USERID on the canvas as a non-database item which would require you to create another item in your block. Something like :USERS.DISPLAY_USERID. For the properties you would mark this as NO for a database item. Then you would have to modify you WBP trigger to something like:
:USERS.USERID := :USERS.DISPLAY_USERID;
COMMIT_FORM;
MESSAGE('NEW RECORD INSERTED');
MESSAGE('NEW RECORD INSERTED');
:global.userid := :global.userid + 1;
CLEAR_FORM;
:USERS.DISPLAY_USERID := to_char(sysdate, 'YY') || '-' || lpad(:GLOBAL.USERID,4,0);

Similar Messages

  • Key-Others Trigger (Please help!!!)

    Hi everybody,
    We are trying to restrict the end user from pressing some
    'dangerous' keys, i.e clear block, execute query, even the DOWN
    key causes us problems in some (1 record) blocks.
    I know there is a way to do it using Oracle terminal but it
    seems that we need greater degree of flexibility.
    I certainly don't want to go to every <KEY> trigger on every
    form (block) and put null; statements there. I know from Oracle
    Docs that I'm supposed to use the key-others trigger..
    So here are my questions:
    1.Is there any way to find out which key has been pressed?
    2.Can someone post a sample code of a KEY-OTHERS triggers?
    3.Is there another way to achieve what we need?
    Thanks is advance for any help.
    Mike
    null

    You have two options.
    1) Turn off all keys not wanted. This is what you said
    you did not want to do.
    2) Tun on all keys you want to use by creating a trigger for
    each key. i.e.
    trigger KEY-NXTREC trigger KEY-UP
    NEXT_RECORD; UP;
    Then turn off all keys not explicitly turned on.
    trigger KEY-OTHERS
    NULL;
    ET (guest) wrote:
    : Hope that it may be helpful.
    : Answer :
    : 1. In command line, add debug option so that you may know what
    : trigger is executing.
    : e.g. runform module= userid= debug=yes
    : 2. Sample code for Key-others trigger
    : null;
    : Rgds,
    : ET
    : Mike Braude (guest) wrote:
    : : Hi everybody,
    : : We are trying to restrict the end user from pressing some
    : : 'dangerous' keys, i.e clear block, execute query, even the
    : DOWN
    : : key causes us problems in some (1 record) blocks.
    : : I know there is a way to do it using Oracle terminal but it
    : : seems that we need greater degree of flexibility.
    : : I certainly don't want to go to every <KEY> trigger on every
    : : form (block) and put null; statements there. I know from
    : Oracle
    : : Docs that I'm supposed to use the key-others trigger..
    : : So here are my questions:
    : : 1.Is there any way to find out which key has been pressed?
    : : 2.Can someone post a sample code of a KEY-OTHERS triggers?
    : : 3.Is there another way to achieve what we need?
    : : Thanks is advance for any help.
    : : Mike
    null

  • KEY-F5 Trigger

    Hi All !
    I want to clear_form on F5 key press event to do so I have return clear_form(no_validate) on KEY-F5 trigger. But it is not fired when we press F5 key why is it so?
    Thanks
    Neeraj Tyagi

    KEY-F0, ... KEY-F9 are special triggers and don't match to the hotkeys F1-F10 !
    You have to rewrite your terminal file.
    If you need F5 in Windows-C/S, then try the trigger KEY-MENU or KEY-BLOCK-MENU, I believe. F6 for example is KEY-CREATE-RECORD, F10 is KEY-COMMIT.
    Gerd

  • Key triggers in forms

    How at add key triggers in Forms.For example : When users click function key "F2" then it should save the record.
    Thanks
    Saritha

    hi,
    there are two ways to do it,
    one is to re-map function keys using oracle terminal,
    other is to use triggers that are already associated to the operations that
    are performed by pressing these keys e.g.
    F1 ---> Help
    F9 ---> List of values
    F4 ---> Duplicate record
    you can use these triggers to redefine the function/operation of keys
    by their associated triggers, like if you want 'F4' to save the data,
    you will write 'COMMIT_FORM' or any code you want, on trigger
    KEY-DUPLICATE-RECORD which is fired while 'F4' key is pressed,
    since this trigger is associated with 'Duplicate record' event.
    once you write the code on this trigger at form level, it will perform
    the required operation on activation.
    regards,
    aamir.

  • Update value of current field by firing key-f3 is not working

    oracle 8i
    hey,
    I implemented a key-f3 trigger wich should insert the sysdate into the current field.
    :ab.von := sysdate;
    this works perfectly. but when I want to write a standart trigger, wich I could copy in every formfield like the example, it doesnt work and the message frm 41803 is shown, "no prefius datarecord aviable, from wich could be copied
    declare new_date date;
    begin
    if Get_Item_Property(:system.cursor_item, DATATYPE)='DATE' then
    Copy( to_date(sysdate,'DD.MM.JJ'), :System.Cursor_Item);
    end if;
    end;
    could anyone tell me where I have my mistake or if there is a easier way to solve the problem
    mfg
    robert

    ok, it works
    what I dont understand is, what for is then the trigger key-f3, when is it firing? and what is the use?
    how could I make a trigger to use for example strg+d to insert the sysdate or any other key
    where do I find the programm oracle terminal?
    what F-? keys are not used witch I could use?
    thanks anyway, my function is working with your information
    mfg
    robert

  • Escape key "dies" in combobox and JTable

    I have set in my JDialog the default key ESCAPE as this standard code:
              KeyStroke escKey = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0);
              int param = JComponent.WHEN_IN_FOCUSED_WINDOW;
              root.getInputMap(param).put(escKey, "close");
              root.getActionMap().put("close", actionCancel);
         this.btCancel.setAction(actionCancel);
    The problem is when I have JComboBoxs and JTables. All key events seem to be consumed
    In this components (and maybe more components). So, if I press ESCAPE and my focus
    in a combobox, the dialog won't close.
    How could I work around this?
    thank you

    I've got the solution!
    I have a javaBean (JPanel) that has only one JComboBox. I trigger key pressed (don't know
    if should be key released in this case) on comboBox. Then I check if...
    this.comboBox.isPopupVisible().
    Simple. If popup is not visible and dispatch the event to this.
    I just wonder how the event goes to my javaBean, my javabean is in a dialog and this
    dialog of mine ends up to catch the event. ???
    Ok, this stays has a solution for future developers to found - in case they guess that
    right keywords :)

  • URGENT!  Problems with On-Commit and Key-Commit triggers!!

    Hi there,
    We are having a problem with our form actually saving a value to the database after the commit_form is given.
    When we hit the Save Button (which triggers the Key-Commit, and that in turn triggers the On-Commit trigger) we want a populated global variable to save to the database. Now when we hit Save, we can see the field get populated properly with this Global Variable (Global.Last_Tckt_Read), BUT it doesn't save to the database.
    Here is the code from the On-Commit trigger:
    IF :cg$bf_meter.closing_ticket_issued = 'N'
    THEN
    :CG$bf_meter.opening_meter_reading := :GLOBAL.LAST_TCKT_READ;
    :CG$bf_meter.opening_meter_reading_date := :GLOBAL.LAST_TCKT_DATE;
    :CG$bf_meter.closing_meter_reading_date := :CG$bf_meter.last_ticket_date;
    :GLOBAL.PREV_METER_READING := :CG$BF_METER.LAST_TICKET_READING;
    :GLOBAL.WINDOW_ACTIVE_CHECK := 'true';
    :GLOBAL.FTDAYCHM_SAVED := 'true';
    commit_form;
    ELSE
    :GLOBAL.PREV_METER_READING := :CG$BF_METER.LAST_TICKET_READING;
    :GLOBAL.WINDOW_ACTIVE_CHECK := 'true';
    :GLOBAL.FTDAYCHM_SAVED := 'true';
    commit_form;
    END IF;
    The code in the Key-Commit trigger is just commit_form;. Now, the code from the On-Commit seems to work fine if its in the Key-Commit trigger -- BUT we need to use the On-Commit in case the user exits the Form with the Exit Button on the toolbar or "X" on the title bar (Neither the Exit Button and the "X" will call the Key-Commit trigger).
    Any ideas how we can get this data value to actually SAVE in the database??
    Thanks for any help -- please respond, this deadline has already passed!
    Mike

    Well, I can't say I understand what you want, but:
    1) if you have only commit_form in key-commit - then you do not need this trigger. key-commit will fire when F10 (commit) is pressed, but since it is doing the same - there is no need.
    2) why don't you populate your block values to be saved right in SAVE button trigger and issue commit_form in the same trigger?
    Then you can have key-commit to cover the same functionality for F10 with code:
    go_item('save');
    execute_trigger('when-button-pressed');
    3) I cannot get the point of the "close" stuff - on close you want to check for changes or not? and to allow the user to exit with or without saving?

  • Trapping a hot key

    I have set up my fmrusw.res file to have Cntrl-n perform the Insert Record routine. This works great, but in some forms, I want to trap the Cntrl-n because in those forms the user can't Insert, rather I want to call another form for that action.
    How do I do this?
    Thanks.

    Hi
    Try to create form level trigger 'Key-CREREC' for that forms with the only one line:
    NULL;
    Andrew.

  • FRM-40735: illegal restricted procedure COMMIT in POST-CHANGE trigger

    I am using forms6i. I have three text fields FL1 ,*FL2* , FL3 in a form. Cursor passes from FL1 to FL2 and FL2 to FL3. I want when cursor transfers from FL1 to FL2 the form should be saved(commit). On FL1 i put COMMIT; in post-change.
    But when I pressed Enter key on FL1 it gives following error message.
    FRM-40735: illegal restricted procedure COMMIT in POST-CHANGE trigger
    Can you help me doing this.

    Gul wrote:
    I am using forms6i. I have three text fields FL1 ,*FL2* , FL3 in a form. Cursor passes from FL1 to FL2 and FL2 to FL3. I want when cursor transfers from FL1 to FL2 the form should be saved(commit). On FL1 i put COMMIT; in post-change.
    But when I pressed Enter key on FL1 it gives following error message.
    FRM-40735: illegal restricted procedure COMMIT in POST-CHANGE trigger
    Can you help me doing this.You cannot use COMMIT_FORM in post-change trigger. Because post-change only accept UN-restricted procedure. and commit is not.
    try this
    /* Trigger KEY-NEXT-ITEM on every item and write sample code */
    commit_form;
    next_item;Hope this works..
    Hamid
    Mark correct/helpful to help others to get right answer(s).*

  • Accessing tab page with shortcut keys

    How to access different tabs in a tab canvas using shortcut keys?
    dipincha

    e.g. you use your oracle terminal and define:
    KEY-F0 = Ctrl-0
    KEY-F1 = Ctrl-1
    KEY-F2 = Ctrl-2
    After that you can use the forms-trigger KEY-F0 to -F9.
    In the trigger you hardcode e.g.
    KEY-F1 : go_item (<Item of first tab>)
    KEY-F2 : go_item (<Item of second tab>)
    That's it
    Gerd

  • Set LOV to function key F4 to display lov

    Set LOV to function key F4 to display lov.
    i.e. When I presses F4 key, then lov should be displayed.
    How can I do this?
    Thanx
    Regards,
    Vikas

    I have written the following item level trigger KEY-F4 trigger
    DECLARE
         x          BOOLEAN;
    BEGIN
         x := SHOW_LOV('lov_stock');
    END;
    It does not display this lov.
    Another lov is displayed on pressing F9 key which is assigned to this item.
    Now I want that another lov should be displayed when I press F4 and default lov should be displayed when I press F9.
    How should I ......?

  • Problem setting KEY-F7 or KEY-ENTQUERY

    Hi to All,
    In my form I have placed button for more actions, such SAVE, DELETE, ENTQUERY, RUNQUERY etc.
    All work fine, but the default button F7 and F8 are active. I have tried to set this button with trigger key-f7, key-f8 etc., in order to execute the same actions that in my toolbar buttons.
    For example in the trigger KEY-F7 I have this code:
    BEGIN
         SET_ITEM_PROPERTY('TOOLBAR.BTNSAVE', ENABLED, PROPERTY_FALSE);
         SET_ITEM_PROPERTY('TOOLBAR.BTNEXIT', ENABLED, PROPERTY_FALSE);
         SET_ITEM_PROPERTY('TOOLBAR.BTNENTQUERY', ENABLED, PROPERTY_FALSE);
         SET_ITEM_PROPERTY('TOOLBAR.BTNRUNQUERY', ENABLED, PROPERTY_TRUE);
         SET_ITEM_PROPERTY('TOOLBAR.BTNDELQUERY', ENABLED, PROPERTY_TRUE);
         SET_ITEM_PROPERTY('TOOLBAR.BTNNEWREC', ENABLED, PROPERTY_FALSE);
         SET_ITEM_PROPERTY('TOOLBAR.BTNDELREC', ENABLED, PROPERTY_FALSE);
         SET_ITEM_PROPERTY('TOOLBAR.BTNHELPONHELP', ENABLED, PROPERTY_FALSE);
         SET_ITEM_PROPERTY('TOOLBAR.BTNPRINT', ENABLED, PROPERTY_FALSE);
         SET_ITEM_PROPERTY('TOOLBAR.BTNREFRESH', ENABLED, PROPERTY_FALSE);
         DO_KEY('ENTER_QUERY') ;
    END;When I run the form and press F7 button the Form freeze and I must exit with Task manager.
    I have tried also with key-entqry, but the result is the same.
    I hope in Your help in order to resolve my problem.
    Thank You and Best Regards
    Gaetano

    Try using ENTER_QUERY built-in instead of DO_KEY('ENTER_QUERY').
    When you use DO_KEY you are saying to Forms that whenever DO_KEY('ENTER_QUERY') fires execute DO_KEY('ENTER_QUERY'), this is causing the Forms to enter an infinite loop.
    For more information on DO_KEY built-in search the online help in your Forms Builder.
    Tony

  • Xorg 1.6, nvidia brokenness w/ dual monitors [SOLVED]

    Hi,
    I upgraded this past week to xorg-server 1.6.1-1, nvidia 180.44-1, and kernel26 2.6.29.1-4.  When I rebooted today I found a few things are broken:
    I have a laptop and external monitor dual screen setup where each screen is a separate x screen, as setup by nvidia-settings.  After upgrading if I hold down any key for half a second or more (to trigger key repeat), my display on both monitors goes black and my mouse and keyboard stop responding (can't switch terminals, can't kill x...).  Resuming from xscreensaver also triggers this same problem.
    Another oddity is that when I move my mouse cursor from one monitor to the other a lingering "copy" of the cursor stays on the monitor I just move away from at the transition point to the other monitor.
    If I physically disconnect my external monitor (w/o changing xorg.conf) X displays none of the problems listed above.
    My xorg.conf is below.  Most of it is probably not useful, although I should point out that I have input hotplugging disabled w/ AutoAddDevices false:
    # nvidia-settings: X configuration file generated by nvidia-settings
    # nvidia-settings: version 1.0 (buildmeister@builder57) Thu Jul 17 18:40:12 PDT 2008
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 1.0 (buildmeister@builder63) Thu Jun 5 00:10:21 PDT 2008
    # Auto-generated by Archie mkxcfg
    # Auto-generated by Archie mkxcfg
    Section "ServerLayout"
    # PS/2 Mouse not detected
    # Serial Mouse not detected
    Identifier "Xorg Configured"
    Screen 0 "Screen0" 0 0
    Screen 1 "Screen1" RightOf "Screen0"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "USB Mouse" "CorePointer"
    InputDevice "Touchpad" "SendCoreEvents"
    Option "Xinerama" "true"
    EndSection
    Section "Files"
    # Additional fonts: Locale, Gimp, TTF...
    # FontPath "/usr/share/lib/X11/fonts/latin2/75dpi"
    # FontPath "/usr/share/lib/X11/fonts/latin2/100dpi"
    # True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc:unscaled"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/100dpi"
    FontPath "/usr/share/fonts/PEX"
    FontPath "/usr/share/fonts/cyrillic"
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/ttf/western"
    FontPath "/usr/share/fonts/ttf/decoratives"
    FontPath "/usr/share/fonts/truetype"
    FontPath "/usr/share/fonts/truetype/openoffice"
    FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath "/usr/share/fonts/latex-ttf-fonts"
    FontPath "/usr/share/fonts/defoma/CID"
    FontPath "/usr/share/fonts/defoma/TrueType"
    FontPath "/usr/share/fonts/local"
    EndSection
    Section "Module"
    Load "ddc" # ddc probing of monitor
    Load "dbe"
    Load "extmod"
    Load "glx"
    Load "bitmap" # bitmap-fonts
    Load "type1"
    Load "freetype"
    Load "record"
    Load "synaptics"
    EndSection
    Section "ServerFlags"
    Option "AllowMouseOpenFail" "true"
    Option "Xinerama" "1"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "keyboard"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "us"
    Option "XkbVariant" ""
    EndSection
    Section "InputDevice"
    Identifier "Serial Mouse"
    Driver "mouse"
    Option "Protocol" "Microsoft"
    Option "Device" "/dev/ttyS0"
    Option "Emulate3Buttons" "true"
    Option "Emulate3Timeout" "70"
    Option "SendCoreEvents" "true"
    EndSection
    Section "InputDevice"
    Identifier "PS/2 Mouse"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "ZAxisMapping" "4 5"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "true"
    Option "Emulate3Timeout" "70"
    Option "SendCoreEvents" "true"
    EndSection
    Section "InputDevice"
    Identifier "USB Mouse"
    Driver "mouse"
    Option "Device" "/dev/input/mice"
    Option "SendCoreEvents" "true"
    Option "Protocol" "IMPS/2"
    Option "ZAxisMapping" "4 5"
    Option "Buttons" "5"
    EndSection
    Section "InputDevice"
    Identifier "Touchpad"
    Driver "synaptics"
    Option "Device" "/dev/input/mouse0"
    Option "Protocol" "auto-dev"
    Option "LeftEdge" "1700"
    Option "RightEdge" "5300"
    Option "TopEdge" "1700"
    Option "BottomEdge" "4200"
    Option "FingerLow" "25"
    Option "FingerHigh" "30"
    Option "MaxTapTime" "0"
    Option "MaxTapMove" "220"
    Option "VertScrollDelta" "0"
    Option "MinSpeed" "0.06"
    Option "MaxSpeed" "0.12"
    Option "AccelFactor" "0.0010"
    Option "SHMConfig" "on"
    Option "Emulate3Buttons" "on"
    EndSection
    Section "Monitor"
    # Warning: This may fry old Monitors
    # Very conservative. May flicker.
    # VertRefresh 50.0 - 62.0 # Extreme conservative. Will flicker. TFT default.
    # Default modes distilled from
    # "VESA and Industry Standards and Guide for Computer Display Monitor
    # Timing", version 1.0, revision 0.8, adopted September 17, 1998.
    # $XFree86: xc/programs/Xserver/hw/xfree86/etc/vesamodes,v 1.4 1999/11/18 16:52:17 tsi Exp $
    # 640x350 @ 85Hz (VESA) hsync: 37.9kHz
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "LPL"
    HorizSync 30.0 - 75.0
    VertRefresh 60.0
    ModeLine "640x350" 31.5 640 672 736 832 350 382 385 445 +hsync -vsync
    ModeLine "640x400" 31.5 640 672 736 832 400 401 404 445 -hsync +vsync
    ModeLine "720x400" 35.5 720 756 828 936 400 401 404 446 -hsync +vsync
    ModeLine "640x480" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
    ModeLine "640x480" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync
    ModeLine "640x480" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync
    ModeLine "640x480" 36.0 640 696 752 832 480 481 484 509 -hsync -vsync
    ModeLine "800x600" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
    ModeLine "800x600" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
    ModeLine "800x600" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
    ModeLine "800x600" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
    ModeLine "800x600" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
    ModeLine "1024x768" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync +vsync interlace
    ModeLine "1024x768" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
    ModeLine "1024x768" 75.0 1024 1048 1184 1328 768 771 777 806 -hsync -vsync
    ModeLine "1024x768" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
    ModeLine "1024x768" 94.5 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
    ModeLine "1152x864" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
    ModeLine "1280x960" 108.0 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync
    ModeLine "1280x960" 148.5 1280 1344 1504 1728 960 961 964 1011 +hsync +vsync
    ModeLine "1280x1024" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
    ModeLine "1280x1024" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
    ModeLine "1280x1024" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync
    ModeLine "1600x1200" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine "1600x1200" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine "1600x1200" 189.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine "1600x1200" 202.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine "1600x1200" 229.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine "1792x1344" 204.8 1792 1920 2120 2448 1344 1345 1348 1394 -hsync +vsync
    ModeLine "1792x1344" 261.0 1792 1888 2104 2456 1344 1345 1348 1417 -hsync +vsync
    ModeLine "1856x1392" 218.3 1856 1952 2176 2528 1392 1393 1396 1439 -hsync +vsync
    ModeLine "1856x1392" 288.0 1856 1984 2208 2560 1392 1393 1396 1500 -hsync +vsync
    ModeLine "1920x1440" 234.0 1920 2048 2256 2600 1440 1441 1444 1500 -hsync +vsync
    ModeLine "1920x1440" 297.0 1920 2064 2288 2640 1440 1441 1444 1500 -hsync +vsync
    ModeLine "1800x1440" 230 1800 1896 2088 2392 1440 1441 1444 1490 +hsync +vsync
    ModeLine "1800x1440" 250 1800 1896 2088 2392 1440 1441 1444 1490 +hsync +vsync
    ModeLine "640x480" 43.16 640 680 744 848 480 481 484 509 -hsync +vsync
    ModeLine "768x576" 34.96 768 792 872 976 576 577 580 597 -hsync +vsync
    ModeLine "768x576" 42.93 768 800 880 992 576 577 580 601 -hsync +vsync
    ModeLine "768x576" 45.51 768 808 888 1008 576 577 580 602 -hsync +vsync
    ModeLine "768x576" 51.84 768 808 888 1008 576 577 580 605 -hsync +vsync
    ModeLine "768x576" 62.57 768 816 896 1024 576 577 580 611 -hsync +vsync
    ModeLine "800x600" 68.18 800 848 936 1072 600 601 604 636 -hsync +vsync
    ModeLine "1024x768" 113.31 1024 1096 1208 1392 768 769 772 814 -hsync +vsync
    ModeLine "1152x864" 81.62 1152 1216 1336 1520 864 865 868 895 -hsync +vsync
    ModeLine "1152x864" 119.65 1152 1224 1352 1552 864 865 868 907 -hsync +vsync
    ModeLine "1152x864" 143.47 1152 1232 1360 1568 864 865 868 915 -hsync +vsync
    ModeLine "1280x960" 124.54 1280 1368 1504 1728 960 961 964 1001 -hsync +vsync
    ModeLine "1280x960" 129.86 1280 1368 1504 1728 960 961 964 1002 -hsync +vsync
    ModeLine "1280x960" 178.99 1280 1376 1520 1760 960 961 964 1017 -hsync +vsync
    ModeLine "1280x1024" 190.96 1280 1376 1520 1760 1024 1025 1028 1085 -hsync +vsync
    ModeLine "1400x1050" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
    ModeLine "1400x1050" 149.34 1400 1496 1648 1896 1050 1051 1054 1094 -hsync +vsync
    ModeLine "1400x1050" 155.85 1400 1496 1648 1896 1050 1051 1054 1096 -hsync +vsync
    ModeLine "1400x1050" 179.26 1400 1504 1656 1912 1050 1051 1054 1103 -hsync +vsync
    ModeLine "1400x1050" 214.39 1400 1512 1664 1928 1050 1051 1054 1112 -hsync +vsync
    ModeLine "1600x1200" 280.64 1600 1728 1904 2208 1200 1201 1204 1271 -hsync +vsync
    Option "DPMS" "true"
    # HorizSync 28.0 - 78.0 # Warning: This may fry very old Monitors
    EndSection
    Section "Monitor"
    Identifier "Monitor1"
    VendorName "Unknown"
    ModelName "Samsung SyncMaster"
    HorizSync 30.0 - 81.0
    VertRefresh 56.0 - 75.0
    EndSection
    Section "Device"
    Identifier "Card0"
    Driver "nvidia"
    VendorName "All"
    BoardName "All"
    Option "NoLogo" "true"
    EndSection
    Section "Device"
    Identifier "Videocard0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce Go 7300"
    BusID "PCI:1:0:0"
    Screen 0
    Option "NoLogo" "true"
    EndSection
    Section "Device"
    Identifier "Videocard1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce Go 7300"
    BusID "PCI:1:0:0"
    Screen 1
    Option "NoLogo" "true"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Videocard0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "AddARGBGLXVisuals" "True"
    Option "TwinView" "0"
    Option "metamodes" "DFP-0: 1280x800 +0+0; DFP-0: 1024x768 +0+0; DFP-0: 800x600 +0+0; DFP-0: 640x480 +0+0"
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen1"
    Device "Videocard1"
    Monitor "Monitor1"
    DefaultDepth 24
    Option "TwinView" "0"
    Option "metamodes" "DFP-1: nvidia-auto-select +0+0"
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    Section "Extensions"
    Option "Composite" "Enable"
    EndSection
    Section "ServerFlags"
    Option "AutoAddDevices" "False"
    Option "DontZap" "False"
    EndSection
    Any help would be greatly appreciated!
    Last edited by nonexistent (2009-04-23 01:54:18)

    have you looked at /var/log/xorg.0.log for warnings and errors?
    you need to get rid of ..
        Load           "type1"
        Load           "freetype"
    If you want independent X screens you need to get rid of..
        Option         "Xinerama" "1"
    or change "1" to "0" or "false"
    For two screens you should only need two device sections and you have three.
    Alot of people are having good results with a minimal xorg.conf with the new xorg-server. I can't really say too much about it as I still use my xorg.conf, although I could probably cut it down quite a bit.
    It looks like your xorg.conf needs a lot of tweaking. Or you could just delete most everything in it and let autoconfig do it's thing. Then just add little by little till you get everything working.
    Not sure how much it will help because i'm not using a laptop, but rather a desktop, but here's my working xorg.conf set up with nvidia and three seperate X screens.
    # Xorg configuration file altered by Leigh
    # Updated (Dec 2008)
    # Three independent screens
    # Three cards... (GeForce7900 PCI-E, GeForce6800 PCI-E, GeForce4 MX PCI)
    # Monitors... (Two Dell 2005 FPW's, One NEC MultiSync FE1250+ CRT)
    # Note: (Due to GeForce4 MX, I need to use the legacy nvidia drivers, nvidia-96xx.)
    Section "ServerLayout"
    Identifier "Multihead Layout"
    Screen "Screen1" 0 0
    Screen "Screen2" RightOf "Screen1"
    Screen "Screen3" LeftOf "Screen1"
    InputDevice "Keyboard1" "CoreKeyboard"
    InputDevice "Mouse1" "CorePointer"
    EndSection
    Section "ServerFlags"
    Option "Xinerama" "0"
    Option "AutoAddDevices" "false"
    Option "AllowEmptyInput" "false"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/msttf"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Chinese"
    FontPath "/usr/share/fonts/asian-misc"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/artwiz-fonts"
    FontPath "/usr/share/fonts/speedo"
    FontPath "/usr/share/fonts/cyrillic"
    FontPath "/usr/share/fonts/handwritten"
    FontPath "/usr/share/fonts/script"
    FontPath "/usr/share/emacs/fonts"
    EndSection
    Section "Module"
    Load "dbe"
    Load "v4l"
    Load "ddc"
    Load "extmod"
    Load "glx"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard1"
    Driver "keyboard"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc104"
    Option "XkbLayout" "us"
    EndSection
    Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "CorePointer"
    Option "Device" "/dev/input/mice"
    Option "Protocol" "IMPS/2"
    Option "Buttons" "7"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "Monitor"
    Identifier "Monitor1"
    VendorName "DELL"
    ModelName "Dell 2005FPW"
    HorizSync 30.0 - 83.0
    VertRefresh 56.0 - 75.0
    ModeLine "1680x1050" 119.0 1680 1728 1760 1840 1050 1053 1059 1080 -hsync +vsync
    Option "dpms"
    EndSection
    Section "Monitor"
    Identifier "Monitor2"
    VendorName "DELL"
    ModelName "Dell 2005FPW"
    HorizSync 30.0 - 83.0
    VertRefresh 56.0 - 75.0
    ModeLine "1680x1050" 119.0 1680 1728 1760 1840 1050 1053 1059 1080 -hsync +vsync
    Option "dpms"
    EndSection
    Section "Monitor"
    Identifier "Monitor3"
    VendorName "NEC"
    ModelName "NEC MultiSync FE1250"
    HorizSync 31.0 - 110.0
    VertRefresh 50.0 - 160.0
    ModeLine "1280x1024" 80.0 1280 1296 1512 1568 1024 1025 1037 1165 interlace
    ModeLine "1280x1024" 126.5 1280 1312 1472 1696 1024 1032 1040 1068 -hsync -vsync
    ModeLine "1280x1024" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
    ModeLine "1280x1024" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync
    ModeLine "1280x1024" 181.8 1280 1312 1440 1696 1024 1031 1046 1072 -hsync -vsync
    Option "dpms"
    EndSection
    Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "nVidia Corporation"
    BoardName "NVIDIA GeForce7900"
    BusID "PCI:1:0:0"
    EndSection
    Section "Device"
    Identifier "Device2"
    Driver "nvidia"
    VendorName "nVidia Corporation"
    BoardName "NVIDIA GeForce6800"
    BusID "PCI:4:0:0"
    EndSection
    Section "Device"
    Identifier "Device3"
    Driver "nvidia"
    VendorName "nVidia Corporation"
    BoardName "NVIDIA GeForce4 MX 440"
    BusID "PCI:3:4:0"
    EndSection
    Section "Screen"
    Identifier "Screen1"
    Device "Device1"
    Monitor "Monitor1"
    DefaultDepth 24
    Option "UseDisplayDevice" "DFP-0"
    Option "IgnoreDisplayDevices" "TV-0"
    Option "NvAGP" "3"
    Option "RenderAccel" "true"
    Option "AllowDDCCI" "true"
    Option "AllowGLXWithComposite" "true"
    Option "AddARGBGLXVisuals" "true"
    Option "UseEdidFreqs" "true"
    Option "UseEdidDpi" "false"
    Option "DPI" "98 x 97"
    Option "HWCursor" "true"
    SubSection "Display"
    Depth 8
    Modes "1680x1050" "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 15
    Modes "1680x1050" "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 16
    Modes "1680x1050" "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 24
    Modes "1680x1050" "1024x768"
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen2"
    Device "Device2"
    Monitor "Monitor2"
    DefaultDepth 24
    Option "UseDisplayDevice" "DFP-0"
    Option "IgnoreDisplayDevices" "TV-0"
    Option "NvAGP" "3"
    Option "RenderAccel" "true"
    Option "AllowDDCCI" "true"
    Option "AllowGLXWithComposite" "true"
    Option "AddARGBGLXVisuals" "true"
    Option "UseEdidFreqs" "true"
    Option "UseEdidDpi" "false"
    Option "DPI" "98 x 97"
    Option "HWCursor" "true"
    SubSection "Display"
    Depth 8
    Modes "1680x1050" "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 15
    Modes "1680x1050" "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 16
    Modes "1680x1050" "1024x768"
    EndSubSection
    SubSection "Display"
    Depth 24
    Modes "1680x1050" "1024x768"
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen3"
    Device "Device3"
    Monitor "Monitor3"
    DefaultDepth 24
    Option "UseDisplayDevice" "CRT-0"
    Option "IgnoreDisplayDevices" "TV-0"
    Option "NvAGP" "3"
    Option "RenderAccel" "true"
    Option "AllowDDCCI" "true"
    Option "AllowGLXWithComposite" "true"
    Option "AddARGBGLXVisuals" "true"
    Option "UseEdidFreqs" "true"
    Option "UseEdidDpi" "false"
    Option "DPI" "96 x 96"
    Option "HWCursor" "true"
    SubSection "Display"
    Depth 8
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 15
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 16
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
    Depth 24
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    EndSection
    Section "Extensions"
    Option "Composite" "true"
    EndSection
    Last edited by Leigh (2009-04-22 10:04:56)

  • Problem: trying to update all detail rows on pre-commit (MASTER DETAIL FORM

    Hi:
    I got a MASTER DETAIL form... and I need to update every detail row of this form (if the master was updated) before commiting the changes. the problem is that i cannot do that for instance in PRE-COMMIT or ON-COMMIT... it's an "illegal operation". I achieved part of it by coding KEY-COMMIT... but that did not solve the all problem. first take a look of the kind of code i want execute before commiting.
    form trigger key-commit code is is somehow like this:
    DECLARE
    tot_line NUMBER (3);
    line NUMBER (3);
    begin
    IF NAME_IN ('system.form_status') = 'CHANGED'
    THEN
    GO_BLOCK ('DETAIL');
    LAST_RECORD;
    tot_line := GET_BLOCK_PROPERTY ('DETAIL', current_record);
    FIRST_RECORD;
    line:= 1;
    LOOP
    :detail.quant := :detail.quant + 1;
    EXIT WHEN line= tot_line;
    next_record;
    line:= line+ 1;
    END LOOP;
    FIRST_RECORD;
    GO_BLOCK ('MASTER');
    END IF;
    COMMIT;
    end;
    The problem is for instance when the users close form in the "X" button (right top, near minimize form) ... If they do that Forms ask "Do you want to save changes?" ... and with this i do not execute the update of the detail rows...
    But there are other situations when this happens... for instance if EXECUTE_QUERY when i change a record...
    Anyone help?
    Joao Oliveira

    Use PRE-UPDATE trigger (Master block).
    begin
    update <detail_table>
    set quant + 1
    where <detail_table>.<relaition_column1> = :<Master_block>.<relaition_item1>
    and <detail_table>.<relaition_columnN> = :<Master_block>.<relaition_itemN>
    and <detail_block_WHERE>;
    EXCEPTION WHEN OTHERS THEN NULL;
    end;

  • Scroll bar problem...please help !

    I have 2 blocks. The first is master with a SCROLLING BAR, and the other one is detail. I wanna do some validations when the scroll bar of the master is scrolled...and i tried the forms trigger, KEY-SCRDOWN, but in version 4.5 of forms is doesn't fire. I tried with version 6i, but the trigger didn't fire. Could someone tell me how i am suppose to catch a scroll bar move if the KEY-SCRDOWN isn't working ?
    Thank you.

    Than you but i'm now 1 record after or behind the one i need to validate if some changes have been made ! Your answer is not bad, but i want to stop the scroll if the record is "CHANGED". Anybody help me !

Maybe you are looking for

  • Connecting to an LCD HDTV: DVI to HDMI male or female?

    Unwilling to plunk down $40 at Best Buy I bought a cable advertised on eBay for $2 described as HDMI male to DVI male. However, when I got it, it turned out to be DVI male to HDMI FEMALE. I want to be able to use my LCD HDTV (46" Sharp Aquos, 1080p,

  • Sql Loader and a batch id

    Hello I have a loading table which as a primary key. We insert into load_ctl table which has a load_ctl_id and then sql load a csv file into a table called load_table. Now when we have to process the load_table we work with the primary key from the c

  • Why not leave remote app for 4.2.1?

    Hi there, with my family i own 3 ipod touches, 3 shuffles, and two iphones. I own two houses where i have set up a central computer to run itunes with airport expresses all over my houses to control speakers and music through the "remote" app. I am h

  • IPhone Contact Pictures

    Can we end this controversy once and for all.  In general if I use an application on the computer it does indeed make the contact image ring as a thumbnail.  If I set it within the iOS e contact image is full screen when someone calls.  But I am curr

  • Error when workflow created from Function Module

    Hi All, I am trying to implement leave module workflow for one of my requirement. when i create a leave from PTARQ transaction workflow it is being triggered, but when i tried to do the same from a custom function Module using the same FMs used in PT