Exiting the form when a text item has focus

I am a beginner, beginner using developer/2000.
I made a form with some text items that are linked to the
database.
When one of the text items has focus and I click the push button
that i created to exit the form, I get the message FIELD MUST BE
ENTERED.
I want to exit the form regardless of whether the cursor is
currently in any text items.
I hope this makes sense.
Thanks, fred

What you probably want to do as well is set mouse navigate to
FALSE on the text field.
Regards
Grant Ronald
Forms Product Management

Similar Messages

  • Help: Exit the FORM when user makes failed attempt to logon

    Hi,
    In this application, I added a on-logon trigger with a line:
    logon(' ','@DB-CONN');
    DB-CONN is the default database connection string.
    What I really want to add is every failed logon attempt will be given and the 3rd failed attempt will kick the user out.
    Right now, I have the problem that even user clicks CANCEL button, the form will be started without DB connection. Any suggestions will be greatly appreciated.
    Thanks.
    Jimmy

    hi
    Login button code.
    when-button-pressed trigger.
    if :LOGIN_BLOCK.USERNAME is null then
    message('User must be entered !');
    go_item('LOGIN_BLOCK.USERNAME');
    return;
    end if;
    if :LOGIN_BLOCK.PASS_WORD is null then
    MESSAGE('Password must be entered !');
    go_item('LOGIN_BLOCK.PASS_WORD');
    return;
    end if;
    set_application_property(CURSOR_STYLE,'normal');
    :global.bad  := 0;
    if :LOGIN_BLOCK.CONNECT_STRING is null then
    logon(:LOGIN_BLOCK.USERNAME,:LOGIN_BLOCK.PASS_WORD, FALSE);
    else
    logon(:LOGIN_BLOCK.USERNAME,:LOGIN_BLOCK.PASS_WORD||'@'||:LOGIN_BLOCK.CONNECT_STRING, FALSE);
    end if;
    if :global.bad = 0 and form_success then
    set_application_property(CURSOR_STYLE,'normal');
    open_form('TREE',no_hide,no_replace);
    exit_form;
    ELSE
    :global.v_attempt  := :global.v_attempt  + 3;
    set_application_property(CURSOR_STYLE,'normal');
    if :global.v_attempt  < 2 then
       MESSAGE('Username/Password was invalid. Please re-enter !');
       go_item('LOGIN_BLOCK.USERNAME');
    else
       MESSAGE('Invalid Login Attempts.Please contact Admin');
       exit_form(no_validate);
    end if;
    end if;On-Logon trigger.(Form Level)
    logon(get_application_property(USERNAME),
         get_application_property(PASSWORD)||'@'||get_application_property(CONNECT_STRING), FALSE);
    if not form_success then
    :global.bad := 1;
    raise form_trigger_failure;
    end if;create a Procedure.
    PROCEDURE Log_on IS
    BEGIN
    :global.quit := 'TRUE';
    exit_form(no_validate);
    END;the following code for Pre-Form trigger(Form Level).
    BEGIN
    :global.quit := 'FALSE';
    :global.v_attempt := 0;
    END;I hope it will help u.
    Sarah

  • My mac keeps highlighting different boxes all the time and a text box has appeared on the screen that says what box is highlighted if the sound is turned up when you press a key or click on a box you are informed of the action any ideas what i can do?

    Hi my Mac keeps highlighting different action boxes (on its own) all the time a strange text box has appeared on the screen that informs you if you press a key or click on a item. if the sound is turned up you are informed when a item is highlighted or a you click on a item HELP!

    Hi Thanks for your help fixed the problem
    Kind Regards
    Nannedee

  • Closing the Applet when I exit the form

    I am deploying an application on web plataform using Forms Server 6i. I have created my own base.html with a logo and a menu as appropiate. I am using Oracle JInitiator to run the forms. When I run a form, the applet is loaded in a frame created in my base.html. All is working fine, but, when I exit the form, I supposse the applet it's still there, because in the page a gray rectangle still remains. I would like to have a background image in the page, and when I close the form, the applet was unloaded, so I can view the background again. How can I get that.
    Thanks.
    P.D.: Sorry but my english it's not so good.

    Make a new project and import old one into this new one.
    See if you can find a up to date Auto Save.
    Also make a habit of 'Save A Copy' to a different drive after each edit session. Save A Copy does not overwrite after so many times as Auto Save does.

  • Change item value when a specific item has changed... how can i do that?

    Hi guys, i need to ask something...
    Is it possible to have a process or a computation, that gives value to an item, only when one specific item has changed.
    I have other items on my page too, but this two are related, and i need to give a specific value to the first one, only when the value of the second has changed...
    Help please
    tsveti:)

    Hey Farhan, i guess i need some help on that easy javascript...
    i havent done much thing with it so i have almost none experience with js....
    So in 'HTML Form Element Attributes' for the second item I m trying this :
    onchange="javascript:{document.getElementById('P1_SUBPROJECT').value = '-1';}"
    but when i change the value of this second item, the first one (P1_SUBPROJECT) dont get -1
    what am i doing wrong?

  • How to Unload the form when the user presses Escape Key

    Hi all
    I have tried several triggers for unloading the form when the user presses escape key,but none of them worked. Could any body give the trigger name and the code that unloads or closes the form when the user presses escape key.

    Hello,
    Change the EXIT entry of you ressource file:
    27   : 0 : "F4"             : 32 : "Exit"Francois

  • Setting the cursor at the end of a text item Forms 10g

    Is there a way in 10g forms to set the cursor at the end of the text item without highlighting the text.
    I have a text item field when I query it and tab to the field, it highlights the whole text inside the block item. Users sometimes type without thinking so, we made it set the cursor at the end.
    I know in 6i forms there was a client package (d2kwutil) that accomplished this and if I have too, I'll use it via the WebUtil. I just was not sure if there was anything in 10g forms that accomplished the same task.
    Any help is appreciated.
    Chris

    Hello,
    You can also use the good old win_api_shell.sendkeys() d2kwutil function, that works also fine with Web versions.
    For instance, in a When-New-Item-Instance trigger:
    win_api_shell.sendkeys(get_window_property('WINDOW1',window_handle),'{End}',TRUE); Francois

  • How to change the commands from a Form when a certain item is selected???

    Hello,
    I'm developing a J2ME application and I'm having some problems. I have more items on a form and I when i"m moving from an item to another I want that the commands of the form to change. Is that possible? How can it be done? I've tried some ways but without success. Please help.
    Thanks

    There is no focusListener and there ain't any focus events in j2me,
    if you want to have this effect you need to have only one command per item
    so that it won't appear in 'options' menu

  • Display Hint Text in Oracle Forms 6i at Text Item

    Dear all seniors
    I want to show Hint text at Text Item in Oracle Forms 6i.
    when my cursor Focus goes at that item. I mean when I go with Tab key or Enter button then it show display text.
    even though my mouse is not on that item.
    please how it would be possible
    thanks.
    G.Y

    Please create a display_item(for eg. Disp_Mess) just below the text field (For eg:-MyField) where you want to show hint. And then assighn Hint text to "DISP_MESS" in NEW-FORM-INSTANCE or at Initial value. Then create a PRE-TEXT-ITEM and POST-TEXT-ITEM trigger for MyField.
    -- PRE-TEXT-ITEM trigger write following code.
    SET_ITEM_PROPERTY('DISP_MESS',VISIBLE,PROPERTY_TRUE);
    --POST-TEXT-ITEM write following code.
    SET_ITEM_PROPERTY('DISP_MESS',VISIBLE,PROPERTY_FALSE);
    It will work for you.
    Regards
    Ahamed Rafeeque Cherkala

  • How do I see the TOC when I "View Item"

    Hello,
    I know this is simple, but I am a total Robo newb.
    I have created the TOC and pages and then linked those pages to the TOC.
    When I click "View Item", all I see is the page without any TOC.
    What preview option should I use that will show me the TOC along with the pages that are linked to it?
    Thanks!
    Jeff

    Hello again
    Wow... lots of questions! I'll do the best I can to respond to these.
    I don't know what we are publishing to yet.  I think we are going to design our FAQ with Robo and then place that HTML on one of our web pages.  Is that possible and which view option is best for this purpose?
    Certainly a FAQ is possible. However, that would sound more like a single page. RoboHelp can certainly create a single page that you could copy and splice into a larger web site, but I'm not sure why one would want to do that. Tools like RoboHelp come into their own when creating a large body of information that needs to be organized using a Table of Contents and information easily found via an Index and by searching.
    Unfortunately I'm unclear on what is meant by asking which view option is best. Perhaps you aren't 100% sure about why folks use RoboHelp and what it does. Apologies in advance if you knew any of this, but here goes.
    You use RoboHelp to combine many ingredients (HTML Topic pages, Images, etc) into a "dish" that is served to users. That "dish" may be in the form of a system known as WebHelp, FlashHelp, Microsoft HTML Help, Multiscreen HTML 5 or other. What you create depends on what your audience needs or wants. If most are using iPads or Android tablets, you likely want Multiscreen HTML 5. If most are using Desktop or Laptop PCs, you may want WebHelp. But again, if all you are wanting is a single HTML page that presents a list of FAQs, RoboHelp is definitely overkill.
    Frankly, I prefer the look of the WebHelp view because the Multiscreen HTML 5 view has strange colors.  I don't see any color or skin options for Multiscreen.  How can I change colors in Multiscreen HTML 5?
    Well, that one is a bit tricksy not only to answer, but to pull off once you know how! To begin making changes to the Multiscreen HTML 5 layout, you need to click View > Pods > Project Set-up. Then expand the Screen Layouts folder. Then expand the layout of interest. You should see a layout for the Table of Contents, the Index, the Glossary, etc. Right-click and choose Edit. And that's where the REAL fun begins. (cough)
    Bottom line is that this area is most definitely NOT for the faint of heart or for folks unfamiliar with CSS and whatnot. In other words, editing is a wee bit on the daunting side. I'm so so hoping that it will be easier in the next version!
    I have a few test projects open for testing purposes.  For one project, under "Single Source Layouts", when I right click Multiscreen HTML 5, it shows a "View with Browser" option, but when I do the same thing on another project, I do NOT see "View with Browser" option under Multiscreen HTML 5.   Why is this happening?
    Well, it's unfortunately difficult to say what may be going on without seeing the projects first hand. As I indicated earlier, Multiscreen HTML 5 is the new kid on the block and as such, is a bit convoluted. For example, let's say you managed to sort all the colors and icons and whatnot for one layout. Before you generate your output, you must now ensure you edit the properties of the Multiscreen HTML 5 layout and map the layouts to the profiles. So possibly this bit is missing. I'm not sure.
    Lastly, when I view view the project the first book is always open by default.  How can I make all books closed by default when viewing?
    In any given project, there is a topic that is known as your Default Topic. It's quite simply the first topic presented to the user when the help system is opened. Typically, topics presented in the Topic pane also synchronize to the Table of Contents. So if your Default Topic is inside a book of the TOC, POOF! The book will be expanded showing where the matching topic is. One way to ensure the books are closed is to nominate a topic that isn't in the TOC structure as the Default Topic. You do this by manipulating the properties of the Single Source Layout.
    Hopefully that was both understandable and helpful... Rick

  • Forms (V10G) - RunTime Text  Item -- Editor

    Hello:
    What are the available options to enhance forms runtime SYSTEM/DEFAULT editor for Text Items? We like to add spell checker, text format features in to field editor.
    I am sure there are Java based editors out there that Forms could invoke. I am hoping I am not the fist one with this requirement and someone may have done this. Perhaps could provide some input.
    Forms V 10G. (This posting is NOT about PL/SQL editor in Developer)
    Thanks

    Hello,
    You can use Webutil.You can call MS Word checkspell function.
    Check this:
    http://sheikyerbouti.developpez.com/webutil-docs/fichiers/Webutil_store_edit_docs.pdf
    Cheers,
    Suresh

  • How to change the background of the StackPanel control when any child element has focus?

    Hello folks!
    I need to change the background of the StackPanel control when any element within the StackPanel has focus. I am executing the code snippet below. The code works fine with elements within the Grid control named "main". It doesn't work when I focus
    an element within the Grid control named "header".
    <StackPanel x:Name="techReportStackPanel" Width="250" Background="{Binding ColorBrush}" >
    <StackPanel.Style>
    <Style TargetType="{x:Type StackPanel}">
    <Style.Triggers>
    <DataTrigger Binding="{Binding ElementName=techReportStackPanel, Path=IsKeyboardFocusWithin}" Value="True">
    <Setter Property="Background" Value="Gray" />
    <Setter Property="Opacity" Value=".5" />
    </DataTrigger>
    </Style.Triggers>
    </Style>
    </StackPanel.Style>
    <Grid x:Name="header">
    <TextBlock x:Name="headerColumn" Text="{Binding Name}" Style="{StaticResource ColumHeader}"/>
    <Button Visibility="{Binding ElementName=headerColumn, Path=Text, Converter={StaticResource delButtonVisibilityConverter}}" Command="{Binding DelCommand}" Content="x" ToolTip="{l:Translate TechReportDeleteToolTip}"/>
    </Grid>
    <Grid x:Name="main">
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="*" />
    <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <wpftoolkit:WatermarkTextBox Grid.Column="0" Style="{StaticResource OrdinaryTextbox}" Watermark="{l:Translate LengthLabel}" ToolTip="{l:Translate BoreholeSpacingInRow}" Text="{Binding BoreholeSpacingInRow, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat=F2, Converter={StaticResource zeroToEmptyDoubleConverter}}" />
    <wpftoolkit:WatermarkTextBox Grid.Column="1" Style="{StaticResource OrdinaryTextbox}" Watermark="{l:Translate WidthLabel}" ToolTip="{l:Translate BoreholeSpacingBetweenRow}" Text="{Binding BoreholeSpacingBetweenRow, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat=F2, Converter={StaticResource zeroToEmptyDoubleConverter}}" />
    </Grid>
    </StackPanel>
    Any advice and suggestions will be greatly appreciated!

    >>It doesn't work when I focus an element within the Grid control named "header".
    You mean when the Button in the "header" Grid is focused? A TextBlock is not focusable so when the Button is not visible no element in the "header" Grid will be focused since you only have two elements in the "header" Grid.
    But when the Button is visible it should work. Please refer to the following code:
    <StackPanel x:Name="techReportStackPanel" Width="250" Background="{Binding ColorBrush}" >
    <StackPanel.Style>
    <Style TargetType="{x:Type StackPanel}">
    <Style.Triggers>
    <DataTrigger Binding="{Binding ElementName=techReportStackPanel, Path=IsKeyboardFocusWithin}" Value="True">
    <Setter Property="Background" Value="Gray" />
    <Setter Property="Opacity" Value=".5" />
    </DataTrigger>
    </Style.Triggers>
    </Style>
    </StackPanel.Style>
    <Grid x:Name="header">
    <TextBlock Text="text..."/>
    <Button Visibility="Visible" Content="Button" />
    </Grid>
    <Grid x:Name="main">
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="*" />
    <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <TextBox Grid.Column="0">main grid...</TextBox>
    <TextBox Grid.Column="1">main grid...</TextBox>
    </Grid>
    </StackPanel>
    When the Button is focused the Background colour of the StackPanel is set to Gray as expected.
    If you want to be able to focus the TextBlock you should set its Focusable property to true:
    <Grid x:Name="header">
    <TextBlock Focusable="True" x:Name="headerColumn" Text="{Binding Name}" Style="{StaticResource ColumHeader}"/>
    <Button Visibility="{Binding ElementName=headerColumn, Path=Text, Converter={StaticResource delButtonVisibilityConverter}}" Command="{Binding DelCommand}" Content="x" ToolTip="{l:Translate TechReportDeleteToolTip}"/>
    </Grid>
    Hpoe that helps.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • Sortingtable clears the forms when the column is clicked for the first time

    Hi All,
    I have text fields which will take the conditions for search and result will be displayed in the sorting table of the same form,
    When the search is done for the first time the result is shown in the sortingTable, but when we click any of the column to get it sorted it clears out the whole screen and shows only the search text fields.But when we do a search again in the same form there after the sort works.it does not clear out.
    This happens for the first search after the form is loaded for the first time from the workflow
    appreciate any solution or suggestion
    Thanks
    Pratheep

    Thanks for your reply, it did not work even after setting the sortEnable,
    The issue i find is when the any column is clixked for sorting for the first time all the form variables even if it is under Expansion is lost, but when we do the search again (even with different criteria) the same page and hit the sort column again the form variables are retained

  • Updating the contents of a text item only if ......

    Hi ,
    Suppose that we have a text item which can host up to 500 characters. On double-clicking on this item an lov is activated and a description of a parameter table appears in it....
    I want this item's content not to be updated .... but simultaneously the end-user can add (only add) more characters on it......
    To be more specific.... assume that:
    the words "sample data" appear in this item -as its contents , when the user select a record in an activated lov- but the user cannot alter these words....-sample_data- or deleted them...
    He can only put a period ('.') and add more info/notes e.t.c......
    Is it achievable somehow...???
    Note: I use Dev10g....
    Many thanks,
    Sim

    Yes... i was aware of 'indirect' solutions...-i mean solutions which use of additional variables or non-db based item.....
    Is it possible , anyway, to achieve my requirement without using an 'indirect' solution.... I mean that the user cannot update the value returned by an lov , but he can add - only add some characters , as notes to this particular text item.....
    Thanks.....anyway,
    Sim

  • Dynamically adding fields to the form when button pressed

    Hi all,
    In my application, there is a form from which I need to be able to insert data into 7 to 8 tables...
    Creating a view and inserting data into 5 table sis fine but there are 2 table whose structure is as follows.
    server_app_rel : server_id, app_id
    server_jack_rel : server_id, jack_id
    Here each server can have any number of applications and any number of jacks...
    I am not able to create a view ( to create a form on this view).. since the number of appllication and jack columns are not fixed. The user should be able to associate all the applications and jacks to the server in the same form...How can I insert multiple rows into tables from a single form when I dont know how many application and jacks(app/jack columns) the user will associate to the server..
    Also, How can we add fields dynamically to the form?
    Our requirement is by default we have to show only one application field and one jack field in the form..And when the user clicks on 'Add more Jacks' or 'Add more Apps' button, respective fields should appear on the form to add data..( this is like 'Add column' button when we create table)..
    Can someone please give me inputs on how to proceed..Am stuck with this from 2 days..It would be really very helpful if someone can give me atleast the links where i can find this info..
    Thanks,
    Nehal

    Here is what I mean
    http://www.drinknation.com/barbook.php?op=multi

Maybe you are looking for

  • Itunes wont uninstall on windows 10

    I'm on windows 10 preview and I would like to reinstall iTunes, but when I got to repair or uninstall it, it gives a option to find itunes64.msi, and idk what that is, so I got to my iTunes folder, iTunes isn't even in the folder its like its uninsta

  • Detailed Aging Report from SAP B1 v2007A

    Hello all, I have SAP Business One v 2007 A in my company. The auditors are coming in next week and I was trying to get the Aging report for both vendor and customer. The default summary looks good. To get the details, I have to go into each customer

  • Clipping using Firewire Interface Presonus Firebox

    Hello, I'm new to this forum and recently just getting acquainted with using GB 2 and my new Presonus Firebox interface, which I acctually bought from reading the recommendations on this forum. So thanks for the suggestions! My issue is I'm recording

  • Sales PGI error

    Hi All, I am facing error while sales PGI. This error is of validation of FI with name ZCOMM. In given scenario first i created sales order and delivery document. But while doing PGI with VL02N its giving error of ZCOMM. Plz help me for above error.

  • Why I can't sync my iPhone with iPhoto?

    My iPhone can't sync with my iPhoto, it worked before... but I don't know why, now I can't