How to validate a text item/display item in Oracle forms 9i?

Hello Everyone,
I have a form in which we have to type in a product_id as shown below in the screenshot. And when we type in, it has to get validated.
If it is valid then ok, else display a message saying not valid.
How do we achieve it on a text box/diaply item in the form shown below.
Any kind of help would be really appreciated.
Thanks in advance,
Vishal

Just create a when-validate-item trigger for that text item and write the code inside to validate it.
Hope it helps.
Navnit

Similar Messages

  • How to encrypt the text in password field in Oracle Forms version 6i

    Need help!
    How to encrypt the text in password field in Oracle Forms version 6i?
    one way is to change the settings in the property palette. Can somebody provide me some script to be run while the form is running which will enable the password to be encrypted?
    Thanks!

    Hello,
    Do you mean "hidden" (replaced with stars) or encrypted (that needs to be decrypted ?
    Francois

  • How to validate an text field item using javascript for numbers only.

    hi,
    how to validate an text field item using javascript for numbers only.please help me on this urgent
    please mail me solun if posible on [email protected]

    Hi,
    Page HTML header
    <script>
    function onlyNum(evt) {
      // Usage: onKeyPress="return onlyNum(event)"
      evt = (evt) ? evt : window.event;
      var charCode = (evt.which) ? evt.which : evt.keyCode;
      if (charCode > 31 && (charCode < 48 || charCode > 57)) {
        var status = 'This field accepts numbers only!';
        alert(status);
        return false;
      var status = '';
      return true;
    </script>Item HTML Form Element Attributes
    onKeyPress="return onlyNum(event)"Br,Jari

  • Movement of message text in Display item

    Hello Dears,
    How i can blink message text in Display item and movement of message text from right to left and left to right in the Display item please share with me your valuable knowledge it is urgent.
    advance thanks.

    Hi,
    A couple of options. Create a timer and write a pl/sql procedure which will do all those things for you, like changing background/foreground colors of your text/display item and replacing text imitating its movement. Or use image item instead with animated gif or something.
    Regards,
    Andrew Velitchko
    BrainBench MVP for Oracle Developer
    http://www.brainbench.com

  • How do we set "Link That Displays Item In Full Browser Window" property?

    How can we set "Link That Displays Item In Full Browser Window" property? I could not find it. Thanks...

    I assume you're using Portal 3.0 (it always helps to mention which portal version you're using).
    I suggest you search this forum for "new window". You'll find several threads discussing how to implement this feature in Portal 3.0.
    Regards,
    Jerry
    PortalPM

  • How to validate multiple lines which is exist in the form builder at the same session

    Hi All,
    we are working on oracle Forms personalization to trigger the message at the point of saving multiple lines rather than requiring each line to be save individually. Currently the oracle form is allowing to user to enter two distinct lines that have same resource and basis type in BOM.
    Currently the Oracle form is allowing to enter the duplicate combination and not giving any error message even we enter the same combination of data.
    As per the customer requirement, they don’t want to validate the data while creating the records but when they try to save the form, in that case it should validate all the records at a time then need to display the appropriate message.
    Customer don’t want to customize the Oracle standard form. Here we have only option to use form personalization or through custom.pll.
    Any idea on how to validate multiple lines which is exist in the form builder at the same session as before inserting the record itself need to perform the validations for all the records.
    Thanks for your help in this regard.
    Regards,
    Thirupathi

    you can write a post script which will do the necessary tasks.
    I mean, once you are done with inserting records into these tables, exeute another procedure which will insert these "extra" records, based on some logic.
    you may not be able use DB trigger as it may generate mutating error or if you don't write it carefully, it will go into recursive loops as you are refering to same tables.
    HTH

  • How to use stack canvas in tab canvas in oracle forms

    hi all,
    how to use stack canvas in tab canvas in oracle forms. please if any one help out in this.

    Hi
    u can simply create a button in ur tab canvas in this button pls write the following as an example...
    SHOW_VIEW('STACKED_CANVAS');
    GO_ITEM ('SAL'); -- Pls note this item should be navigable and visible in ur stacked canvas form
    HIDE_VIEW('TAB_CANVAS');In order to return back to ur tab_canvas pls create a button in this button pls write the following...
    HIDE_VIEW('STACKED_CANVAS');
    SHOW_VIEW('TAB_CANVAS');
    GO_BLOCK('EMP');
    GO_ITEM ('EMPNO'); -- Pls note this item should be navigable and visible in ur stacked canvas form
    Hope this helps...
    Regards,
    Abdetu...

  • How to make particular text in a item in ital

    Hi..
    I have a function that returns me a varchar value in a display item in a form..
    say it returns...c Ali b John
    i want that when it shows up in the display item the 'c' & 'b' in the above returned value comes in italics while the remining text i.e. Ali & John remain in normal format..
    so my exact requiremnt is
    c Ali b John
    hope any one would help
    Ramis.

    No Froms does not have text fields that are capabe of formatting text in that way. If you needed this then you'd have to write a Pluggable Java component that did allow this.

  • How to make particular text in a item in italics

    Hi..
    I have a function that returns me a varchar value in a display item in a form..
    say it returns...c Ali b John
    i want that when it shows up in the display item the 'c' & 'b' in the above returned value comes in italics while the remining text i.e. Ali & John remain in normal format..
    so my exact requiremnt is
    c Ali b John
    hope any one would help
    Ramis.

    No Froms does not have text fields that are capabe of formatting text in that way. If you needed this then you'd have to write a Pluggable Java component that did allow this.

  • Change the color of the text in Display item

    Hi friends,
    Can I change the color of the text of text item or display item
    Regards,
    Fateh

    on the html form element attributes add for example
    style="color:red;"Edited by: DanielB on Feb 20, 2012 12:33 PM

  • Disappearing text in display item

    Facing a silly problem whereby text in a display item, which is populated automatically through the new form trigger disappears mysteriously when run on the web. The text appears fine in client-server mode. I have tried changing background colors for the display item and text color too.... in vain. But I can see that the display item is present, it is the text in it which is missing.
    Any ideas?

    Hi,
    A couple of options. Create a timer and write a pl/sql procedure which will do all those things for you, like changing background/foreground colors of your text/display item and replacing text imitating its movement. Or use image item instead with animated gif or something.
    Regards,
    Andrew Velitchko
    BrainBench MVP for Oracle Developer
    http://www.brainbench.com

  • Multiple line item display for PAYMENT ADVISE form(script) using F110 tcode

    Dear All,
    I am currently working on PAYMENT ADVISE script ( form ) - for which i have copied the
    form F110_IN_AVIS to zform.
    I am executing the form for output through executing Tcode - F110.
    The output works for single line item entry of vendor line items - but doesnot support
    for muliple line items.
    I have checked the standard program - RFFOUS_C - which has include - RFFORI06 for remittance advice -which supports for single line item display.
    Kindly advise me for the soultion of the same.
    Regards
    HC

    Hi,
    Do you manage to fix it ?
    we experienced the same problems (mass printing smarforms F110), we would like to use one time F110, and generates all the spool, for all the line items.
    Thanks
    Any help would be grateful.
    Thomas

  • How to Validate the Text Field in JSF

    Hi,
    I am facing a issue to validate the text field where the below code accepts (space' ',underscore'_',pipe'|') symbol as a first character and last character.Where by it can accept in the middle.
    It should not accept special characters also. Below code is working properly for special characters.
    <tr>
    <td width="30%" align="right"><b><h:outputText id="aAccrualType" value="Accrual Type" /> </b> <span style="color:red">*</span></td>
    <td width="50%">: <h:inputText id="accrualType" value="#{accrualTypeMast.accrualType}" required="true" >          
    <t:validateRegExpr pattern="^[(a-z)||(A-Z)||(0-9)||(_)||(\s)||(/)]+$" />     
    <f:validateLength minimum="1" maximum="50"/>     
    </h:inputText>
    <h:message for="accrualType" showDetail="true" style="color:red" />
    </td>
    </tr>
    The thing is i dont have much knowledge in regular expression.
    Is there any other way to do this.
    Could anyone help me in this.
    Thanks,
    Ambika&#9786;

    This has nothing to do with JSF.
    I suggest you to read the Pattern API documentation [1]. You can easily create a small Java Application and test the regexp using String#matches() as it uses the same regexp guidelines.
    public static void main(String[] args) {
        String regexp = "^[a-z]+$";
        String value = "foo";
        boolean match = value.matches(regexp);
        System.out.println(value + " matches " + regexp + ": " + match);
    }[1] http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html

  • How to validate VO result and display error message?

    Hi,
    I have created 2 pages:
    Page 1: User to enter employee number and click 'Go' button to search (redirect to Page 2)
    Page 2: To display employee details
    In situation where employee is suspended, employee detail will be display as blank in Page 2.
    At the same time, we would like to display error message which inform user to refer to HR Department for this scenario.
    Need guidance on how to perform the validation and display error message.
    Thanks and Regards,
    Shiau Chin

    Hi Shiau,
    In this case instead of redirecting to next page, throw an exception on the same page.
    If you want redirect it to next page then while redirecting it to next page pass some info that can indicate that employee is suspended, get this value in Process request if it has value then throw exception else query details.
    Regards,
    Reetesh Sharma

  • How to validate a text field??

    Can any one tell me hot to validate a text field??
    I want to create a text field which holds alphabets only..

    You can use simple javascript code in the liveChange function such as the following (for sap.m.Input):
    liveChange: function(evt) {
    var inputValue = evt.getSource().getValue();
    this.setValueState(me.validateTagName(inputValue));
            this.validateTagName = function(inputValue) {
        if (inputValue.trim().length < 1) {
        return "Error";
        } else {
        return "None";
    Ran

Maybe you are looking for

  • How to export a hierarchy or a measure from an aw to another aw ?

    hello , we have 2 environnements test and production . We create a hierarchy on a dimension and we want to export it to the production . In awm , we can only export dimension definition as xml definition but not a hierarchy. We have the same problem

  • No receiver could be determined + MDT Error

    Hello, *1.* I have one scenario for IDoc-XI-Proxy.PI 7.0 When Sending IDoc from SAP1 to XI I am getting below error in SXMB_MONI. Config seems okay. <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Receiver Identification   --> - <SAP

  • Finder and Spaces

    When I am using spaces and I click on a folder, I automatically switch to the space that already has a finder window open. If I have more than one finder window open in multiple spaces, it will automatically switch me back to the last space I was in

  • Help me to start a career in SAP

    Hello everyone, I am very new to SAP and my long term goal is to study SAP and start my carrier right from their can any one please tell me which SAP module will suit me or which one has a carrier growth high compared to other module based on my expe

  • Make a layer - stand alone

    Photoshop cs5 I have a picture with a lot of layers. One of the layers I would like save as a separate layer that is not part of the images, for after that to use the stamp tools to "copy" from the new lay and in my original image. When do I copy a l