Tab out event for messageInput Text field

Hi All,
Can some of you please help me how to handle validation based on tab out.
I have a field of messageInput text type in OAF standard page where user can enter a number in decimals like 11.19, 21.23 etcetera. I want to raise a message "Please enter an absolute value" the moment user enters a number with decimals and tab out. which means user will only be allowed to enter absolute values like 1,2,3,4,5..............
Looking forward to receiving feedback.
Thanks
-Sunil

Hi Sunil ,
Since its a standard OAF page , you need to handle it through controller extension .
Here are the steps :
1 ) Attach PPR programtically ( In processRequest of your controller class )
2 ) Catch the PPR Event (In processFormRequest of your controller class ) and get the value entered value
3 ) Check if the value has any decimal point exist ( use String function in java ) and through exception accordingly .
Code for handling fire action ( In written in your extended controller class )
Import
import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
In PR :
OAMessageTextInputBean stb1=(OAMessageTextInputBean)oawebbean.findIndexedChildRecursive("BeanID"); // replace the exact bean id
i if (stb1!= null)
FireAction firePartialAction = new FirePartialAction("pprEvent");
stb1.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR, firePartialAction);
stb1.setFireActionForSubmit("pprEvent",null,null,true);
In PFR :
if ("pprEvent".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
OAMessageTextInputBean stb1=(OAMessageTextInputBean)oawebbean.findIndexedChildRecursive("BeanID"); // repalce your exact bean id
String MessageTextValue= stb1.getValue().toString();
if(MessageTextValue != null)
String.parseString(MessageTextValue ).contains("."); // Check if this returns true / false
Throw message here accordingly .
Let me know if its not clear
Keerthi

Similar Messages

  • InDesign CS6 how to set justification for form text field?

    Hi everyone,
    I've been playing with the ability to create form for PDF file but I haven't figure out how to set a center justification for a text field.  By default it's left.  Same thing for font, the one selected in InDesign while creating the form isn't used when editing the form in Acrobat.
    Do I need to create a paragraph style with a specific name to preserve both attributes?
    Thanks.

    InDesign CS6's forms features are great, but you're looking as version 1.0 of the feature. Those features cannot be set in InDesign.
    Furthermore, if you try to pick a font other than the standard ones at the top of the menu, don't expect that your form users will be able to pick those fonts when they open up the form in Reader or Acrobat. I'm pretty sure that custom fonts are not stored in the PDF form.

  • How to set fixed size for inputfile text field

    Hi all,
    I am using inputfile component to test file uploading so I created a simple upload page. When I finished upload the file, the input text field will "shrink" its size and change the size to adjust the file name. Is there any way to set a fix size for input text field?
    Here is some part of the code:
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1">
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>
    FileBean:
    public void fileUpdate(ValueChangeEvent valueChangeEvent) {
    RichInputFile inputFileComponent = (RichInputFile)valueChangeEvent.getComponent();
    UploadedFile newFile = (UploadedFile)valueChangeEvent.getNewValue();
    UploadedFile oldFile = (UploadedFile)valueChangeEvent.getOldValue();
    Thanks,
    Jerry

    you can set columns attribute in af:inputfile. Please see highlighted area i have inserted to you code
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1" columns = "34" >
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>

  • How to give for a text field 'max+1' value instead of sequence .

    HI All,
    I have a requirement like ,
    For my text field i applied sequence by using groovy expression.Now i need to change that to 'max+' value of table Grid and display in the text field. Can please suggest me how can i implement .(JDev 11.1.1.3 v)
    Regards,
    Sindhu.

    hi user,
    if you want perform some increment operation . in auto means. donot prefer these thread given below..
    there is lot thread of for creating sequence. based on the sequence it works perfect.
    if i understud correctly means follow this
    Increment operation // it perfoms some increment operation. not using sequennce.
    button press
    compliation problem // have a look at this
    if cumes under cirumstance for multiple user on that scree or ui . probabaly this idea(max)or (some increment) will fails.
    i i will prefer sequqnecs._
    IN ADDITION INFO TO USER
    JOHN SAYIGN EXACTLY
    Edited by: Erp on Sep 25, 2011 9:46 PM

  • What is the Table name & Field Name for Clearing text field in F-53 Transac

    Hi,
    I need prepare a functional specification for Clearing text field in Check Register.I am not able to find the Table name and Field Name for Clearing text field in F 53 transaction code.Kindly provide me the Table and filed name.so that i can proceed.Kindly help me.
    I will assign points.
    Thanks
    Sunitha

    Hi
    From the payment document you have to link to the clearing document (Number BSEG-AUGBL, same Fiscal year and Company Code) in the clearing document the text entered in the transaction can be found on item text (BSEG-TEXT).
    RF05A is a Structure name
    Ranga
    Edited by: Ranga Swamy on Dec 4, 2008 7:55 PM

  • Where is Hint Box for Validation Text Field widget?

    I want to enter a hint for my form.
    I am following the instructions on the Adobe Using Dreamweaver CS4 page for Insert and edit the Validation Text Field widget page:
    <http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSEB5440BC-453A-4101-928C-302199E7E02F. html#WS8E6EA74E-87AC-4a81-A5CC-2DB6FB451DE0a>
    It says:
    Create a hint for a text field
    Because there are so many different kinds of formats for text fields, it is helpful to give your users a hint as to what format they need to enter. For example, a text field set with the Phone Number validation type will only accept phone numbers in the form (000) 000-0000. You can enter these sample numbers as a hint so that the text field displays the correct format when the user loads the page in a browser.
       1. Select a Validation Text Field widget in the Document window.
       2. In the Property inspector (Window > Properties), enter a hint in the Hint text box.
    However, the is no hint box in my Propeties area.
    How do I get this hint box to show up?
    Dreamweaver CS4, Windows Vista

    Hi David,
    My Property inspector looks different than what you have below.
    I do not have a Hint box and I do not have the Customize this widget.
    I did have a Hint box and the Customize this widget for CS3, howver not for CS4
    Alison

  • How to disable auto-complete for a text field?

    I didn't find any attribute that controls this. Thanks!

    Hi,
    Recently I needed to use this feature, and after some research I found the answer.
    Just sharing the solution.
    I am aware that the auto-complete is a browser setting. But is there a way to let APEX not save the items entered before? Write a javascript?
    Because I have implemented Google suggest for a text field. Every time the suggestions pop up, the auto-complete items will also appear at the same time, which is very annoying.Put on your Page Item > Element > HTML Form Element Attributes : autocomplete="off"
    Bytes

  • Event handler for a text field

    How do I write an event handler that will be triggered when the value of a text field changes? I assume I can place an event in place of SOME EVENT HERE in the example below.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[
                private var newVal:Number=1
                public function doThis():void{
                    newVal+=1
                    goal1.text=String(newVal)
                    //goal1.addEventListener(SOME EVENT HERE, textChange)
                public function textChange():void{
                    trace("text changed")
            ]]>
        </mx:Script>
        <mx:Text id="goal1" color="#57782f" fontSize="30" text="1"  x="106" y="110"/>
        <mx:Button x="88" y="169" label="Button" click="doThis()"/>
    </mx:Application>

    "Text" does not dispathc a change event, so use a TextArea tweaked as follows.
    If this post answered your question or helped, please mark it as such.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
        <mx:Script>
            <![CDATA[           
                private var newVal:Number=1
                public function doThis():void{
                    newVal+=1
                    goal1.text=String(newVal)
                    goal1.addEventListener(Event.CHANGE, textChange)
                public function textChange():void{
                    trace("text changed")
            ]]>
        </mx:Script>
        <mx:TextArea id="goal1" color="#57782f" fontSize="30" text="1"  x="106" y="110"
         focusThickness="0" borderThickness="0" backgroundAlpha="0"/>
        <mx:Button x="88" y="169" label="Button" click="doThis()"/>
    </mx:Application>

  • How do I tab over to a new text field in adobe reader for iPad?

    Currently I have to touch each field to select it but it so much easier to be able to tab from field to field while typing. If I press the tab key currently it unselects the field I was typing in and then if I press a second time the whole app closes. How can I change this?

    It looks like you are using a bluetooth keyboard. This is supposed to work, but I just confirmed that our current release does indeed exhibit the behavior you described. I'll file a bug and hopefully we can get this into our next release. My apologies for the issue!

  • Cant figure out how to add text fields etc. in dreamweaver, layout made in photoshop

    hi all
    ok...  first of all i want to say im sorry for posting such a noob question,  but im new to this, so please take a few minutes to help me out
    so i have kind of an annoying problem.
    ive made an webpage layoout in photoshop. ive made "boxes" i want to  put my content in. i have sliced it and got it in to dreamweaver.
    im gonna use the page for bloging and stuff so i would like go have an  text field where i can edit text and then post it to the site. but the  problem is that everytime i try to insert ext fileds etc, it dosent  place correctly and its white and not big enough at all.... ill show you  a screenshot to explain..
    so yeah... u see the 3 "boxes", in the big one i want to be able to  add text and since its not so big, i want to have a scroll bar in it.  the two small ones are boxes i wud like to use for index or something  (havent really figured out what i wanna have on the site yet)
    ok... now i will show u what happens when i try to add the text area to the page.
    yeah... so u are all able to see that this is not what i wanted to happen......
    i want the textfield to be where the grey"box"is ... but it wont let  me... also it gets all white... it wuld be nice to get it to have the  color the grey box have
    so help would be great
    and btw, i dont have knowlege in html and css coding, so if u could  explain it so i dont have to do coding in text, but only visual, it  would be nice. yea im a naab...
    thanks in advance

    Use graphics apps for images only.  DO NOT export HTML from Photoshop or Fireworks.  The result is table based code that precisely fits the image slices and nothing else.
    When you try to edit graphics app generated code in DW, your page layout will fall apart.
    The following procedure is the workflow you should follow:
    Part 1 - Initial Design
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    Part 2 - Markup preparation
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt2.html
    Part 3 - Layout and CSS
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt3.html
    If you get stuck, post back with specific questions and a link to your test page.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Need a regular expression for the text field

    Hi ,
    I need a regular expression for a text filed.
    if the value is alphanumeric then min 3 char shud be there
    and if the value is numeric then no limit of chars in that field.[0-9].
    Any help is appriciated...
    thanks
    bharathi.

    Try the following in the change event:
    r=/^[a-z]{1,3}$|^\d+$/i;
    if (!r.test(xfa.event.newText))
    xfa.event.change="";
    Kyle

  • ALV Filter : Not working for a text field - Strange problem

    Dear All,
    I have a Z-program where the ALV filter is not working on a particular text field.
    The output on that text field is as below :
    ABCD
    JKLM
    YYZZ
    ABCD
    JKLM
    ABCD
    JKLM
    YYZZ
    YYZZ
    When we try to filter on YYZZ, it gives blank list. But for other options given abobe it works fine.
    I know it is because of the negative sign , but how can we over come this problem ?
    Thanks in advance,
    Sandip.

    Hi Sandip,
    Use 'LOWERCASE' in the fieldcatalog.
    For the particular text field when you are appending the Fieldcatalog structure to the Fieldcatalog Table
    ( Suppose LS_FIELDCAT)
    Then check the LOWERCASE field.
    (LS_FIELDCAT-LOWERCASE = 'X' )
    This will serve the purpose.
    Regards,
    Sourav

  • Reg Query For Multiple Text Fields

    Hi all
    I am New to this forum..
    I am developing an application for generating reports.
    In my application i have multiple text fields.
    The user might enter any of the textfields or even enter all the fields.
    In those cases how to use the query when some fields are empty??

    Welcome to the forum.
    It always helps to post a small, simplified example of what it is you're trying to achieve.
    (When posting examples, put the {noformat}{noformat} tag before and after the example, so it will get posted formatted on this forum.)
    In those cases how to use the query when some fields are empty??If your textfields serve as parameters/bind variables for you query, then you could use NVL.
    Something like:select ...
    from some_table
    where col1 = nvl(p_col1, col1)
    and col2 = nvl(p_col2, col2)
    And how about wildcards (the '%' or '_' sign), by the way? Are they allowed as well?
    You also might want to read about this approach:
    http://www.oracle.com/technology/oramag/oracle/09-jul/o49asktom.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Instance name and Var for Input Text fields

    I have several Input Text fields, as a form, linked to a PHP
    script for which I require Var's for each field.
    But I also need Instance names for each field, so I can fix
    the tabIndex.
    Yet, everytime I test my movie, the text fields have their
    Paths (_level0.fName) written in them.
    They are normally blank, and I've tried putting in some text
    of my own, but the Var name is still displayed in the text fields.
    Is there any way I can stop that from happening, and keep
    both the Instance names and Var's in-place.
    As far as I know, I need both the Instance name (for the
    tabIndex) and the Var (for the PHP script) or is there a way that
    the tabIndex and PHP script will work with either of the two?
    Thanks
    Chaz.

    Can you use a different name for ‘instance name’
    and ‘var’? That seems to solve the problem but I
    don’t know if that helps you in your situation.
    For an example;
    Instance name: test_txt
    Var: test

  • If else conditional statements for dynamic text fields (as 2.0)

    This is about a self assesment quiz.There will be four options and each one has a scale from1-5 ie "option a" has 1mark, "option b" has 2marks,"option c" has 3 marks, "option d" has 4marks and "option e" has 5 marks and we count the answerd and we display the scor for example if there are 20 question in it if they answered "option e" 5 times the score will be
    25 and option d 5 times the score will be 20,anf if "option c" for 5 times the score will be 15,and "option b" for 3 times  the score will be 6 and "option a" two times the score will be 2, and we add up all the score and display in a dynamic text field called "scor" and the total score is 68.And i have another dynamic text field called "tsc" where i have to display the tags like excellent , good, better ......ect.
    Till now every thing is fine but i am unable to compare them it is displaying excellent even if i get 10 marks, i am unable to configure where i am going wrong.
    If the score is greater than 55 "tsc" should display Excellent, if the score is greater than 41 or less than 55 "tsc" should display Best, if the score is greater than 26 or less than 40 "tsc" should display Better,if the score is none of the above "tsc" should display Poor.
    This is my code on the submit button:
    on (release) {
        gotoAndStop("sQ");
        if (scor>=55) {
            tsc = "Excellent";
        } else if (scor == 41 && scor<=55) {
            tsc = "Best";
        } else if (scor == 26 && scor<=40) {
            tsc = "Better";
        } else if (scor == 10 && scor<=25) {
            tsc = "Good";
        } else {
            tsc = "Poor";
    where:
    "sQ" is the frame name where i am displaying the score details
    "scor" is the var name for the dynamic text field for displaying total score
    "tsc" is the var name for the dynamic text field for displaying the tags llike good, Excellent, better, poor.....etc
    Plese help.......

    Use trace commands to make sure that what you think you are processing is what is actually hapenning.
    Your middle conditionals are not written as you described them... any "==" should be ">="
    It is recommended you get away from using the textfield var option... it can be troublesome to work with.  Just assign an instance name to the textfield and assign the values to its text property... for instance, say you name it tscField, then you would use tscField.text = "Excellent";
    Also, realize that the gotoAndStop command will not happen until after all the code executes in case that matters
    on (release) {
        gotoAndStop("sQ");
        trace(scor);
        if (scor>=55) {
            tsc = "Excellent";
        } else if (scor >= 41 && scor<=55) {
            tsc = "Best";
        } else if (scor >= 26 && scor<=40) {
            tsc = "Better";
        } else if (scor >= 10 && scor<=25) {
            tsc = "Good";
        } else {
            tsc = "Poor";

Maybe you are looking for

  • Need to create report query to get latest open and last closed period for given application

    Hi All, I need to create a report query to get below result displayed in report output. 1)   -   Application name 2)   -    Ledger name -o/  -Operating Unit 3)   -  Last Closed Period 4)   -  Current Open Period 5)   -  Date Closed – Last Closed Peri

  • InDesign CS6 Crashing While Converting to PDF

    Trying to convert a file to PDF and it is crashing repeatedly, regardless of the file I open.  I'm running OSX 10.8.2 and InDesign 8.0.1, I've renamed the preference and data files to no avail. Here's the full error output: http://pastebin.com/V5MBhW

  • IPhone 4 Bumper Scratches

    Apple was kind enough to send me a bumper for my new iPhone. I read something online about the bumper scratching the iPhone. Should I ignore these reports? Or is it true?

  • Clearing of invoice with different house bank

    Hi, i have posted 3 invoices to one vendor now i want to clear 2 invoices from one house bank ( citi bank) and 1 invoice from another house bbank (abn amro ) how can i make settings in fbzp ? Thanks shivaji

  • Windows Runtime Engine

    Hi, running a job using Windows Runtime Engine and a script in VBScript will cause no action, in job log and system log no entry. It seems this runtime is not working. The dispatcher is configured and running. All jobs with java runtime engine are ru