Force user to enter positive/negative values on certain GL Accounts

Hi
If I want to force the user to be only able to enter positive values for certain GL Accounts and only negative values for other accounts, how can I do this?
Thanks
Johan

Hello Johan,
I think you have posted your question to the wrong forum.
This forum is specifically regarding the OnDemand applications like https://bi.ondemand.com
Cheers
Steve

Similar Messages

  • How to "force" user to enter a valid value in a TextBox

    How can one create a TextBox in which the user is not able to leave (commit the value, change focus, or perform the action of another control) unless a valid value (the value to be committed) is displayed?
    The following is the best I've come up with so far.
    Good: It doesn't permit a value to be committed unless it is valid.
    Good: It doesn't permit the focus to be changed when TAB is pressed unless it is valid.
    Bad: It permits the user to perform the action associated with a button at any time.
    In the following code pressing on the button prints "I've been pushed", no matter the value of the TextBoxes. Can I stop this (in general, not for specific buttons)?
    class ValidTextBox extends TextBox {
      public-init var validValue:String = "";
      function isValid():Boolean {
        return (rawText == validValue);
      var isFocused = bind focused on replace {
        if (not focused and not isValid()) {
          requestFocus();
      override function commit():Void {
        if (isValid()) { super.commit(); }
        else {};
    var string1:String = "" on replace { println ("String1 = '{string1}'") };
    var string2:String = "" on replace { println ("String2 = '{string2}'") };
    def textbox1 = ValidTextBox { text: bind string1 with inverse; promptText: "String1: enter abc"; columns: 20; validValue: "abc"; }
    def textbox2 = ValidTextBox { text: bind string2 with inverse; promptText: "String2: enter def"; columns: 20; validValue: "def"; }
    def aButton = Button {
      text: "Push me";
      action: function():Void { println("I've been pushed!"); }
    Stage {
      scene: Scene {
        width: 250
        height: 300
        content: [ VBox { spacing: 10; content: [ textbox1, textbox2, aButton ] } ]
    }

    It sounds like you are looking for a concept of validation that groups items together. In days long gone Oracle used to have a product called Oracle Forms - that had field validation, record validation and block validation. So in your example if string1 and string2 were in the same persistable data object then the equivalent concept would be 'record validation'. The code in your button would say "if the record is valid print". A record is only valid if all its fields are valid.
    JavaFX really provides a 'GUI toolkit'. I think you are looking for a fairly advanced binding framework - a framework that builds on the concept of field level validation. You can approximate such a thing by creating a 'validation group' class. This class would be able to have nodes added to it and have an 'isValid()' function which only returns true if all the node items are valid.

  • Forcing user to enter values at table level

    Hi,
    I have created a table ztest. How to force user to enter the values for certain fields in the table which are not keys, similar to not null in RDBMS. selecting the initial values filed in SE11 populates with some default value, but it doesnt force the user to enter the value.
    Regards,
    Raghu

    Hi,
    Just check out transaction code SE54 for events.
    Go in SE54.
    Give your table name.
    Go in Environment --> Events.
    Here add the Event '01' i.e. Before saving the data.
    Give the name for event eg 'BEFORE_SAVE'.
    Click on Editor to create an include program.
    In the include program write
    form before_save.
      data: f_index like sy-tabix. "Index to note the lines
      loop at total.
        if <action> = 'N' or <action> = 'U'.
          read table extract with key <vim_xtotal_key>.
          if sy-subrc eq 0.
            f_index = sy-tabix.
          else.
            clear f_index.
          endif.
          "(make desired changes to the line TOTAL)
          "End of Modification.
          modify total.
          check f_index gt 0.
          extract = total.
          modify extract index f_index.
        endif.
      endloop.
      sy-subrc = 0.
    endform.
    Note here in field symbol 'Total' your workarea will be their. You can make necessary checks here.
    Or else you can go for making a custom transaction for your requirement.
    Regards,
    Nitin
    *Mark all helpful answers

  • How to restrict the user to enter only numeric values in a input field

    How to restrict the user to enter only numeric values in a input field.
    For example,
    i have an input field in that i would like to enter
    only numeric values. no special characters,alphabets .
    reply ASAP

    Hi Venuthurupalli,
    As valery has said once you select the value to be of type integer,once you perform an action it will be validated and error message that non numeric characters are there will be shown. If you want to set additional constraints like max value, min value etc you can use simple types for it.
    On the project structure on left hand side under local dictionary ->datatypes->simple types create a simple type of type integer
    The attribute which you are binding to value property ;make its type as simple type which you made
    Hope this helps you
    Regards
    Rohit

  • How to force user to enter supplier/customer name in captial letters in R12

    Dear all,
    Could anyone pls advise how to force user to enter supplier/customer name in captial letters in R12? Can I do it using OA framework personalization?
    HY

    Pl post exact versions of OS and EBS.
    The ability to do this exists in forms (professional user interface) using forms personalization, but does not exist in the OAF (self-service) interface, AFAIK. See related MOS Doc 399892.1 (Is It Possible To Restrict Employee Name Entry To All Upper Case in the PUI And SSHR ?) for some details.
    Pl confirm by opening an SR with Support.
    HTH
    Srini

  • Force user to enter text if checks YES check box

    I have created a form with YES and NO check boxes.  If user checks YES, they need to provide written reason.  Is there a way to "force" user to enter text into text box if they check the YES check box?
    Thanks,
    Toyro

    Hi Jodi,
    Yes, it has to be saved as a dynamic PDF.
    Additionally, there are some name mismatches in your form so the script was failing. My script defined page 1 as 'page1' while your form defined page 1 as 'Page1'. I renamed your form page 1 to 'page1' and the script worked fine.
    I would recommend enabling the debugger in Acrobat for form developement. See Edit > Preferences and enable the following:
    I added an additional button with some script on the button 'click' event.
    The purpose is to intervene in the submission process, in your case submitting by email. With a single submit button the email dialogue fires regardless of failed form validation. By introducing a second button you can do form validation before enabling submission. The attached form has a visible button called 'submitBtn' and your original 'Submit By Email' button which is declared as 'invisible'. My 'submitBtn' is labelled 'Submit By Email'. When the button is clicked is does form validation. If validation succeeds, I call form1.page1.Button1.execEvent("click"); to submit to the email address attached to 'Button1'.
    Take a look and see if it fits your requirements.
    Steve

  • How to force users to enter their ID and password ?

    I am considering installing AirPort Extreme at our office. We don't want guests connecting to our network. is there any option/software that will force the guest to enter an ID and password to connect to our network ? This is similar to what happens at the hotels when we try to connect to hotel's network.

    How to force users to enter their ID and password?
    is there any option/software that will force the guest to enter an ID and password to connect to our network ? This is similar to what happens at the hotels when we try to connect to hotel's network.
    The AirPort Extreme does not have the features necessary to create a "splash page" that provides basic information about the company and asks users for their identity and password....like you see at most hotels.
    Basically, with an AirPort Extreme, users would have to scan to look for the name of the wireless network to join, and then enter the password to connect.
    The best that you might be able to achieve with the AirPort Extreme is create a "hidden" network, which would require that users know both the name of the wireless network and password to connect.  However, based on experience, this might be more of a hassle than anything else.
    The bottom line.....Apple really designed the AirPort routers for home use, so that might be the best place for them in most cases.

  • Force User to enter new password

    Hi all,
    I would like to know if there is a way to force some of our users to enter a new password when they logon to SAP the next time?
    The only way I would know is to give them a new password in SU01 and email it to them. But this would be a lot of work. We do not want to change the password settings in general, as most of our users should not be affected by this.
    Does anyone know a differerent way? Maybe to set a flag in the user or a table?
    Thanks for any help.
    Tobi

    you could change parameter
    login/password_expiration_time
    to - let's say 1 and restart all of the instances of that special system. after one day all users would have to change their passwort.
    you could then reset the parameter to 0 (or to whatever value you think adequate) on all instances of the system and restart them ...
    thus having forced all your users to change the password at least once.
    Edited by: Mylene Euridice Dorias on Mar 11, 2008 4:23 PM
    for some users you have to use SU01 ...

  • Force user to enter a social security number

    How do I force a user to enter their social security number. The form I'm working on is connected to a system that won't allow the SS# to be left blank. I need to add something that will not allow a blank SS# field on my from. Any help is greatly appreciated.

    In the Object palette, make your field required:

  • Restricting User to Enter Only Date Value

    Dear Expertsl,
    Can we restrict users to insert only date value (in RRMMDD format ) in a column whose data type is number,
    Note that i cannot modify the column because there are already values entered in the column and cannot delete it.
    Regards

    Try to convert it to a date in the WHEN-VALIDATE-ITEM-trigger, if it works, its a date, like
    DECLARE
      dt DATE;
    BEGIN
      dt:=TO_DATE(:THEITEM, 'MMYYYY');
    EXCEPTION
      WHEN OTHERS THEN
        -- Show error message
        -- then raise error
        RAISE FORM_TRIGGER_FAILURE;
    END;

  • Prompting the user to enter a valid value in an applet

    hi everyone!
    i have this code and i want to prompt the user to set a value<1000.
    this doesnt work.if i enter a value <1000 the input dialog appears again.
    whats wrong?
    public void init()
       String j = JOptionPane.showInputDialog(null, "Enter a number less than 1000 but greater than 0");
       int i = Integer.parseInt(j);
       while(i>1000||i<1)
          String k = JOptionPane.showInputDialog(null, "Enter a number less than 1000 but greater than 0");
          int y = Integer.parseInt(k);
    ....code executed while i<1000 or i>0

    Your while is looping on i, but inside you're setting
    y not i. This should work:
    do {
    String k = get input from option pane
    int i = Integer.parseInt(k);
    } while (i > 1000 || i < 1);
    In BinaryDigit's code, you won't have access to "i" after the loop. Declare it outside the loop (as you had it).
    int i = 0;
    do {
    String k = get input from option pane
    i = Integer.parseInt(k);
    } while (i > 1000 || i < 1);

  • How can I force users to enter specifc format?

    I'm using Livecycle Designer ES2 provided with Acrobat X Pro. 
    I have a form where the age field is calculated from the date of birth field.  The date of birth field (DOB) is a date/time field.  The age field (Age) is a numeric field.
    Problem is: when user enters 01/01/01 shows age as 101.  When user enters 01/01/2001 age shows 1.  All patterns are set to mm/dd/yyyy.  Is there a way to prohibit the user from continuing to the next field until the proper format is entered?  I'm open to any ideas which will acheive the desrired outcome.  I'm new to livecycle and javascript.  I suspect an easy solution but I can't seem to find it when searching the forums or LD help menu.
    I've attached the script for the Age field in case it helps.
    Age::calculate - (JavaScript, client)
    var ageInYears = 0;
        var birthDate = new Date();
        if ( DOB.rawValue != null )
            // Get current date, and convert user-entered date to a Date object.
            var curDate = new Date();
            birthDate.setTime(Date.parse(DOB.editValue));
            // Set initial age, current year - birth year
            ageInYears = curDate.getFullYear() - birthDate.getFullYear();
            // If we haven't reached the birth month yet, not yet 1 year older...
            if ( curDate.getMonth() < birthDate.getMonth() )
                ageInYears--;
            // If this month is same as birth month but we haven't reached the
            // birth date yet, not yet 1 year older...
            if ( curDate.getMonth() == birthDate.getMonth() )
                if ( curDate.getDate() < birthDate.getDate() )
                    ageInYears--;
            // Set age in result field.
            this.rawValue = ageInYears;

    Radzmar,
    Thanks for the great advice at: http://thelivecycle.blogspot.de/2011/10/date-patterns.html
    However I can't get this method to work. I would like the date to display as MM-DD-YYYY regardless of what the user enters. 2 problems show up. First I get this annoying dialog box
    and then second the date box doesn't even display the date in the MM-DD-YYYY format I would like. For instance if I enter 10/15/1994 the dialogue box above appears but doesn't display 10-15-1994, it just displays it as 10/15/1994. There seems to be a difference between pressing enter or return on keyboard after typing the date, versus just clicking out of the date box. I can't get a sample date in the "Sample" line like you had. Any ideas?

  • In iPlanet Web Proxy Server 3.6 on Win2000, how do I turn on authentication?  I want to force users to enter an id and pw when they go thru the proxy to websites out on the net. Thanks

     

    Mal,
    You'll need to point to some user database, either the local db on Proxy or an ldap server. The ldap server is the best choice as the local db just stores users in a flat file and becomes unreliable after 1000 entries.
    To enable authentication, manage the proxy server instance and navigate to Restrict Access.
    From there, turn on access control, and click on the Permissions button. This will open up a new window to allow you to setup your access control rules and restrictions. When you're done, click on Done, apply your changes and restart the proxy server and you should be on your way.

  • Restricting User to enter only specified value in DB

    HI ,
    I am using Oracle Database 10g Express Edition. I have created a table named 'employee' which contain the column 'flag'. How i can restrict the values for that column to have either 'yes' or 'no' ?
    thanks,
    -Siva Balan V

    Hi,
    Use a CHECK cponstraint.
    You can specify a constraint when creating the table:
    CREATE TABLE     table_x
    (     x_id     NUMBER (10)     PRIMARY KEY
    ,     flag     VARCHAR2 (3)     CONSTRAINT x_flag_chk
                        CHECK (flag IN ('yes', 'no'))
    ;or, after the table is created, by using ALTER TABLE.
    The constraint above will allow NULLs. If you don't NULLs, you could include that into the CHECK constraint, but it's better to add a separate NOT NULL constraint.

  • What is the best way to prompt a Form user to enter a value

    Hi,
    I apologize in advance if this topic has already been raised on the forum - I've done a search but couldn't find anything.
    Basically I would be interested in finding out if there is a 'best way' to prompt and accept an entered value from a user. I am just experimenting at the moment with asking a user to enter a date value which will then be used in code. I am running Form 9.0.4.
    Any suggestions or links would be gratefully accepted,
    regards,
    Kevin.

    I am rather puzzled by the question. Forms primary use is to accept user input, and then respond to that input. It is no wonder a search does not turn anything up.
    So there are a number of ways to accept input. The first that comes to mind is a simple input field on the canvas with some prompt text next to it.
    I don't think there really is a "best practice". It really depends on what your form is doing.
    If you explained what you mean by "which will then be used in code", or described what your form needs to do, then you would get some good suggestions.

Maybe you are looking for

  • Commercial distributed application with SQL Server 2008 back-end

    Hi All, I am suffering some confusion and wondered if anyone could clear up a few questions for me. I am currently developing an application to be sold commercially, to be deployed locally on a customer's site. It is a client-server application and t

  • All newly installed CC apps crash on launch, CS6 are fine

    I installed the new CC versions of Illustrator, Photoshop, and InDesign, and they all crash immediately after launching (no splash graphic). Unfortunately I uninstalled Illustrator CS6 before noticing that none of the newly installed versions will la

  • Generating Supplier Liability Account based on the Supplier Classification

    Hi , In R12 I have a custom requirement like follows. Need to generate the Supplier Liability Account based on the Supplier Classification. When we select supplier type then by default liabilty account value will be the value from supplier--> setup -

  • New 3g nano... will only show apple...

    I have an ipod classic that works fine. i just purchased an ipod 3g nano for my sister. we tried hooking it up to my mac to load songs on it, but all it will do is flash an apple on the screen (and it will only do that when it is plugged in to the co

  • Capture stuck at one archive file

    I have set up a 1-to-1 one-way streams replication in Oracle 10.2. (schema level capture). Source DB (SRC)& destination DB (DEST) on : SUSE Linux Enterprise Server 10 SP2 (ia64) The capture, propagation and apply did run okay for few hours. Now I fin