How to use a button in a required field

Hi,
this is my scenario:
1) In a Form I have two Blocks
2) In the first, I use a text Item for the customer code, with the required property set to true and with a trigger WHEN-VALIDATE-ITEM
3) In the second block, I use a button that call the 'show_lov' function in order to display the list of the customers.
If the focus is out of the first block, I can use the button without problems.
If the focus is on the customer code Item and I try to use the serch button, the alert message "Field required" is displayed and I don't be able to use the function in the button.
Exist a method in order to use my button when the focus is in the required customer item?
If Yes, how can perform this ?
I hope...
Best Regards
Gaetano

When you set Required = Yes, you're telling Forms not to allow the user to navigate away from the item until they enter a required value. That's the way Forms is designed.
If you don't like that behavior (and I'm one that doesn't), I rarely use Required = Yes. Instead, I write the code to check for a required value in the PRE-COMMIT trigger. If the item doesn't have a value, I set focus to the item, and then issue a RAISE Form_Trigger_Failure.
I'm sure there are other ways to do this, but that is just one technique.

Similar Messages

  • IPAQ how to use hardware buttons in java

    Hi,
    Does anyone know how to be able to use the iPAQs harware buttons and joystick in Suns Personal Java?
    I moved a Tetris applet i have written for PC's to the iPAQ and it works except for the arrow keys that i use to control it with.
    Any help would be greatly appreciated!

    I have the same problem.
    Does anyone know how to use the buttons of the iPAQ for your java applications?
    Thanks
    Hector

  • How to use Radio Buttons in SAP BI 7 for a set of three fields?

    Dear SAP Gurus,
    We are using SAP BI 7. We need to use Radio button to select one field name (out of a set of three fields) which
    appeared on selection screen.
    The scenario is; we have three fields
    1) Field Name A
    2) Field Name B
    3) Field Name C
    Now, we need to select one field(using Radio button) from the above and later the report related to the above
    selected field should be displayed.
    The three reports will be as follows:
    1) Report A
    2) Report B
    3) Report C
    if Field Name A  is selected then Report A  will be displayed,
    if Field Name B  is selected then Report B  will be displayed and
    if Field Name C  is selected then Report C  will be displayed.
    To display the report we have two cases;
    1) There will be a common selection screen and all the three reports will come in single workbook but in seperate worksheet.
    2) There will be a common selection screen and all the three reports will come in same worksheet, one after the other.
    Is it possible to create the report in this manner, if yes, please suggest the steps.
    Regards,
    DV.

    I think you would just use commands to do the following:
    1. Hide report Analysis Item 2 and Analysis Item 3 if the 1st button was pushed.
    2. Hide report Analysis Item 1 and Analysis Item 3 if the 2nd button was pushed.
    3. Hide report Analysis Item 1 and Analysis Item 2 if the 3rd button was pushed.
    Hope that helps...

  • How to use one button rollover symbol to create 100 graphically different buttons

    I do know how to create a button rollover symbol.
    I don't know how to make that button rollover symbol reuseable. I'd like to put 100 different images in 100 copies of the button. I'd rather not make new symbols for every button, since the rollover animation may change.
    Symbol "Accessibility" allows the title to be changed for copies of the symbol. Does similar functionality exist for bitmaps used in the symbol?
    Could the copied button bring in new graphics from the timeline in another symbol or a xml sheet?
    Any help would be greatly appreciated. I've been following tutorials, except none of them cover this situation.
    Thanks for your help!

    Created in EA version 3:
    I have 2 samples for you that are very similar.
    1- uses the symbol with no image and loads the image as a background-image for the div.
    https://app.box.com/s/co7uki3fm3b11a3o1xjw
    2- uses an image in the symbol and replaces this image with a new one in the img (not div)
    https://app.box.com/s/3ms92f5cv0mylspsi5uo
    Choose what you prefer.
    3. An example with more elements in the symbol directly on the stage instead of a container. use a container if you want to place the symbols in a specific rectangle div for example.
    https://app.box.com/s/y92bpo82kncxnn2w567y

  • How to use single button for different operations

    Hi
    I am using one button with image having 4 controls like left right up and down...
    How to use the single button for 4 different operations??
    Is there any way of defining hotspots on single button to do four different operations...
    Please have a look at the attached image, u can understand my problem better...
    Please let me know ASAP...
    Thanks and Regards
    Aruna.S.N.

    Here ya go:
    http://code.google.com/p/flexlib/wiki/ComponentList
    If this post answers your question or helps, please mark it as such.

  • How to use one button to drive another button click

    I'm trying to figure out a way to fix a bug in my application.  The simple fix would be to have a single button that drives a MouseCLICK event on another button everytime the PlayBar in my application reaches the end of the screen and returns to its origin.
    How would I achieve this?  I have made a lot of headway since I last posted a question in the ActionScript 3 forum, which was only yesterday evening.
    Thanks in advance,
    markerline

    The application is an audio application.  It is like a drum machine sort of.
    Currently there is a grid and whenever active cells get hitTest'ed by the PlayBar they become deactivated, the PlayBar returns to the origin, and when you relaunch the Play functionality the deactivated cells no longer play a sound.
    I have a button which reactivates the sounds.
    I also have a button which has a bug in it that loops the sounds. 
    To go around the looper button that has a bug in it I would like to use a Button "Z" which automatically clicks the "reactivate the sounds" button every time the PlayBar returns to the origin and the PlayBar will then continue to play and return to the origin in a looping fashion.  If the Button Z is in an active state this looping will continue.  To stop looping, click the Button Z until it is no longer in an active state and the PlayBar will then remain at the origin.

  • How do I use 'submit' as complete pdf, and use 'drawn my signature' with required fields?

    I have created a form with required fields, no problem. The form can be completed with adobe reader, and a signature added using Sign > Place signature > Draw my signature, great. But i need the required fields to be checked and then sent by email, so I have add a button and set the action to "Submit a form" and selected "PDF The Complete Document" from the options. I then add the javascript URL - mailto:????@????.com, but now the "Draw my signature" option is greyed out.
    I have asked this question a number of times, and cannot get a proper answer, please can someone help or offer a work around.

    George,
    Thanks for your response, but I am not sure it fully answers my question. I have attached a screenshot to show what I mean - here I have created a simple form, with one required field for some data, using Acrobat XI. If I open the form (I have not reader enabled the form) in Adobe Reader XI, I am able to add a drawn signature, I could save the document then attach to an email to send as you have suggested.
    But, If I now add a Submit button, set the URL to mail it to [email protected] and select "PDF the complete document" as below
    When I open the document in Adobe Reader now, the signature options are all greyed out as you can see.
    Hope this clarifies my predicament

  • How to use Flash buttons/animation in a Swing/Applet?

    Hello,
    I want to use flash button as like as JButton that we use in Swing/ Applet. How can I do So?
    Please help me.
    Thanks-

    [http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html]
    Or maybe just...
    import java.awt.*;
    import java.net.*;
    import javax.swing.*;
    public class Blinky {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    URL url = null;
                    try {
                        url = new URL("http://www.gifanimations.com/GA/image/animations/bodyparts/eyes/eye-01.gif");
                    } catch (MalformedURLException e) {
                        throw new RuntimeException(e);
                    JFrame f = new JFrame("Blinky");
                    f.getContentPane().add(new JButton(new ImageIcon(url)));
                    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    f.pack();
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    }

  • How to use customised buttons in the menus

    Hi John,
    In the forms menus i have seen some customised buttons in some of the wrkforce forms. I would ike to knw how to enable these buttons.
    For example in form to add a TBH in menu there is a button ADD. How can we put those buttons.
    And also, there is button VALIDATE in the form where we have GO button. How to populate it. Even when the validate button is clicked, there is a popup menu saying that the entered amount is more than the budgeted amont. Is this done using the alerts?
    Please help regarding these issues

    Hi,
    I take it you are talking about when you right click and a menu appears.
    This is achieved by menus, Administration > Manage menus
    Or read about it here > http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_hp_admin/menus.html
    I think the example you talking about is menu "WFPMenuNewHires", if you want to know how it works you can edit it.
    It basically runs a business rule when you select an option like "Add To-be-hired" > Salary, you can customize the label on the buttons in the business options section of the menu set up.
    Once you have created a menu you can add it to a form when you design the form, it is part of the "Other Options" tab.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to use Radio buttons in WAD to select different condition in a query

    Hi Guru,
    I am new to WAD, I want to use radio buttons in selection screen of query for different selections based on selection criteria. I am aware of executing different queries using different radio buttons. but i want to use single queries for different radio button selections.
    I have found some relevant topic to it but not got exact solution. Please guide me.

    Hi Avinash,
    Drag a DropDown webitem into your template. Under DropDown webitem properties, Data Binding -> Fixed List of Options.
    Fixed Option -> Action -> Command via Command Wizard, Command -> Commands for Data Providers -> Data Provider Commands for Filter Values -> SET_SELECTION_STATE_SIMPLE. Data Provider Affected -> choose the main DP Query here. Characteristic -> choose Employee Group characteristic here as present in your DP Query. Sign -> INCLUDING, Operator -> EQUAL_SELECTION, Equals -> MEMBER_NAME, Member Name -> specify the value here i.e. Employee1 etc.
    Repeat above Fixed Option step for Employee2, Employee3 etc. selections. For 'All' option choose Command CLEAR_SELECTION_STATE with Data Provider Affected as the main DP Query & Characteristic as Employee Group.
    --Priya

  • Radio buttons created as required fields don't change to yellow when not submitted.

    I am creating an online form with required fields. Some of these fields are radio buttons. This issue is when the form is submitted without the required radio buttons selected the user is given an alert that they need to complete the required fields and those required fields become "highlighted" in yellow. In Mozilla (v16), the radio buttons do not change yellow. This features works in IE. The form works best with radio buttons versus drop-down or text box. Most of our employees use Mozilla, so would like to find a solution. Thanks.

    the syten should always allow you to change except you have set the "Functional authorization for buyers"
    in SPRO-MM-Purchasing-authorizationmanagement-define Function Authorizations: Purchase Order
    if this is set ethn it wont allow
    remove this config or remove the parameter id for EFB from SU01 from parameter tab

  • How to have a button to reset a field and not the whole form?

    Hi,
    Can anyone help me with this dilemma please? All tutorials online demonstrates how to have a button to reset the whole form, but i only want the user to clear 1 field in the form.
    I have a form which has a field representing a persons name who has booked out a piece of equipment. I would like the administrator to be able to clear the field quickly without having to select the whole name and then delete it, ready to insert the name of another booker.
    Any help would be very much appreciated. (If it is using dreamweaver features than that is better.)
    Thank you!

    There's nothing in DW that will do this for you.
    This script from the internet seems to do the trick. Add this to the <head> section of your page...
    <script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script>
    <script type='text/javascript'>//<![CDATA[
    $(window).load(function(){
    function resetForm() {
      $(this.previousSibling).val(function() {
      return this.defaultValue;
    $( "input[type='button']" ).bind( "click", resetForm );
    });//]]> 
    </script>
    Then add your form in the <body>...
    <form>
      <label for="textfield1">Text Field:</label>
      <input type="text" name="textfield1" id="textfield1"><input type="button" value="reset" /><br />
      <label for="textfield2">Text Field:</label>
      <input type="text" name="textfield2" id="textfield2"><input type="button" value="reset" /><br />
      <label for="textfield3">Text Field:</label>
      <input type="text" name="textfield3" id="textfield3"><input type="button" value="reset" /><br />
      <label for="textfield4">Text Field:</label>
      <input type="text" name="textfield4" id="textfield4"><input type="button" value="reset" /><br />
    </form>
    EDIT: Ha! Same script as you found Nancy, posted originally at the exact same time too (I threw a couple modifications in)...
    Good times, good times.

  • Post invoice F-43 use alternative payee, found error require field Tax Jur.

    Hello everyone
    i have some problem
    when i want to post invoice F-43,
    and document need alternative payee.
    in page input alternative payee data , system require field Tax Jurisdiction.  that i donot need it.
    you can see picture at link below.
    http://picturepush.com/public/3913234
    http://picturepush.com/public/3913243
    how can i remove required field Tax jurisdiction for alternative payee data ?
    I try to go to IMG  -> preparation for creating vendor master data-> Define account groups with screen layout (Vendors)
    and choose group 0003 (ALternative payee) but i donot found field Tax Jurisdiction for configure it.
    what shoud i do?
    please help.

    Hi,
    After entering the path : IMG-Financial Accounting-Accounts Receivable and Accounts Payable-Vendor Accounts-Master data-Preparations for creating vendor master data-Define Account Groups with screen layout(Vendors)
    select the 0003 for Alternative payee
    Duble click on it
    D'click on General data and D'click on Control
    You will find the Tax jurisdiction code there you can make changes
    thanks and regards
    ramanuja

  • How to use javascript in a calculated column field in SP2013

    Hi All,
          I'm trying to use the code below in a calculated column but i can't get it to work.
    any time i add it in it strips out all the quotes etc..and it doesn't show the open dialog.
    Any ideas how i can use this in a calculated column field?
    Thanks in Advance
       ="<div><a href='#'
    onclick='openInDialog(500,600,true,true,false,'http://www.SharePoint.com');'>MS
    SharePoint Site</a></div>"

    Your problem is with the single quotes which both open de onclick event and are used for the javascript string variable.
    You want " and need to escape those in a SharePoint string as ""
    So this
    ="<div><a href='#' onclick=""SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');"">MS SharePoint Site</a></div>"
    Evaluates to:
    <div><a href='#' onclick="SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');">MS SharePoint Site</a></div>
    Once SharePoint dumps the HTML code in the Client Browsers
    (provided you have set the Datatype of the Calculated column field to Number!)

  • How to use Read table with out key fields

    Hi Experts,
    I need to retrieve the 2 internal tables data into single table.
    I have 3 common fields between the 2 tables but I don't have the Key fields. Then how to use the read table in this.
    Thanks in Advance.
    Edited by: satish4abap on Mar 10, 2010 9:39 AM

    Hi Satish,
    Key fields are nothing but the common fields with which you can pick the data from the second internal table.
    If you can paste your Internal table fields then we will be able to assit you better.
    However, in genral scenarios you can use it as below :
    In this scenario, we are putting data from 3 internal table to another single internal table.
    LOOP AT T_PRGEN INTO WA_PRGEN.
           WA_FINAL-GUID_PR       = WA_PRGEN-GUID_PR.
           WA_FINAL-ATTR20A       = WA_PRGEN-ATTR20A.
           WA_FINAL-ATTR05A       = WA_PRGEN-ATTR05A.
           WA_FINAL-ATTR05B       = WA_PRGEN-ATTR05B.
           WA_FINAL-ATTR05C       = WA_PRGEN-ATTR05C. " + DG1K902190
           WA_FINAL-ATTR10A       = WA_PRGEN-ATTR10A.
        READ TABLE T_V_TCAV201 INTO WA_V_TCAV201 WITH KEY ATTRV20 = WA_PRGEN-ATTR20A BINARY SEARCH.
        IF SY-SUBRC = 0.
          WA_FINAL-TEXT1   = WA_V_TCAV201-TEXT1.    "SUBID-TEXT1
        ENDIF.
        READ TABLE T_PNTPR INTO WA_PNTPR WITH KEY GUID_PR = WA_PRGEN-GUID_PR BINARY SEARCH.
        IF SY-SUBRC = 0.
           WA_FINAL-PRVSY  = WA_PNTPR-PRVSY.   "PROD NO
           WA_FINAL-GRVSY  = WA_PNTPR-GRVSY.   "LOGICAL SYS GROUP
        ENDIF.
      append wa_final to t_final.
    endloop.

Maybe you are looking for