Decimal Point Validation in Oracle Forms 6i

One of my table has a column named interest. Data type of this column is number (4,1) so it can hold 99.9 and 100 both.
If user enters 9.99, oracle form accepts the values and rounds it to 10. When scale defined for this data type is 1 so user shouldn’t be allowed entering 2 digits after decimal.
I would like oracle to give error stating that user can enter upto 1 decimal place only so 9.99 is invalid input. Is there any function in oracle form (D2k)that let you know how many digits user has entered after decimal?
Is there any function in oracle form (D2k) that let you know the length of input ?

Hi
Why don't u use Format mask property for the same,so it will not allow user for wrong i/p
alternatively use forms message to display pop-up .
Rgds
NP

Similar Messages

  • Regarding validation in oracle forms

    I have a requirement that in oracle forms i need to validate that i enter the data in one record and the same data in next record also with the checkbox checked for both rows . And when i enter the same data in next record i.e 3rd record it should not allow to checkbox for 3rd record.This should be the frond end validation in oracle forms .
    My requirment looks like this
    A B C --> columns in oracle forms
    1 ab ab --> checkbox checked
    1 ab ab --> checkbox checked
    1 ab ab ---> when i check the checkbox it should not allow as only any of the two rows only should be checked
    Please help me out?
    Regards
    Prasad

    hello
    Change/ modify the properties of the check box item;
    for the check boxes :
    1. Make the data type of the check box as number;
    2. fill the functional a.)value when check = 1 b.) value when uncheck = 0;
    3. add new item to summarize the value of the checkbox;
    change properties of the new added item
    datatype number;
    calculation summary
    summary function :- sum
    summarize block :- your block
    summarize item :- your check box item.
    used :----> when checkbox change trigger
    if nvl(:item_summry,0 > 2 and //double entry of data then
    your code......
    .... message..
    raise..
    else
    your code.....
    end if;
    For Duplicate Item data entry :-
    see this for the duplicate entry for item :-
    duplicate records in  a multi record block
    modify my given code & modify the said link information to satisfied your requirement.
    charles

  • Validations in Oracle Forms 6i

    Hi,
    Can anybody please let me know how do we use phone and email validators in Oracle Forms 6i for textitem.
    and what is the format for phone and email and how do we create.

    hi
    you can validate the format of an email in the WHEN-VALIDATE-ITEM trigger
    by using a function stored in the db that checks if the format of the email is correct
    for example :
    FUNCTION is_valid_email(i_email IN VARCHAR2) RETURN BOOLEAN
    IS
    v_dummy NUMBER := 0;
    BEGIN
    SELECT 1 INTO v_dummy
    FROM dual
    WHERE regexp_like(i_email,'^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{2,4})$');
    RETURN TRUE;
    EXCEPTION
    WHEN no_data_found THEN
    RETURN FALSE;
    WHEN others THEN
    RETURN FALSE;
    END is_valid_email;
    you can also use regexp for the validation of a tel number
    I hope that helps you.
    Frane

  • Text Item Validation in Oracle Forms 6i

    Dear All Seniors
    Please guide that how to do validation on text fileds in oracle FORMS 6i.
    I have form like that
    table name= emp
    columns:
    Code, Name
    Code is auto generationg and Name field manually data typed.
    now if
    code, Name
    1 Asim
    2 Asim // it should not take .
    please help.

    Hi,
    You mean it should not take dupliate names or it should not take "//"
    If you have a set of character that should not be there for this field try using instr function. You can check if the field contains any character you don't want to be included in the name field.
    If instr(:name,'A') > 0 then
    message('xxxxxxx');
    Regards
    Yoonas

  • Is LOV able to do real validation like Oracle Forms LOV?

    Dear JHeadstart Team,
    I am using JDeveloper 10.1.3.3 and JHeadstart 10.1.3.2.52.
    To simplify the situation, I explain the problem using scott schema.
    I created a page on the emp table and used a LOV on the deptno and check the lov for validation for the lov. I changed the query of DeptLookupView (which lov uses) and added a where deptno <= 30 to that, so lov just showed the department with deptno <= 30.
    Then, When I entered number 40 in the deptno field and pressed tab, the lov poped up with No rows found in that.I pressed the cancel button and the amount of deptno remained 40. I pressed Save and data successfully commited to database.
    It seems to me a little strange. This capability exists in the Oracle form and when we use lov for validation in the Oracle form it does not permit us to enter a value which does not exist in the lov. I expected to see that functionality here too. Am I wrong or Is it a bug in JHeadstart?
    If it is not a bug and this functionality is not supported in the JHeadstart, is there any way to achieve this functionality.
    Any help would be highly appreciated.
    Thanks in advance,
    Navid

    Navid,
    It is not a bug in JHeadstart, it is intended behavior of ADF Faces. The ADF Faces valueChangesListener that we use to validate and display the LOV window only fires when the user-entered value changed, since the last time the listener fired. When you cancel the LOV and click the Save button the listener no longer fires.
    Note however that you are implementing a business rule (deptno must be <- 30) in the view layer only, which is a bad practice. I suggest that you implement the same rule in Business Components and/or in the database.
    This way, the user will get an error message when he tries to save a value > 30.
    Steven Davelaar,
    JHeadstart Team.

  • Issue for Amount From_amt and to_amt  Overlapping validation On oracle Form

    Hi Expert's
    i need Help on Oracle Form side .
    PROBLEM :-
    i want to put Overlapping check On Fr_amt - To_amt in Oracle Tabular form in Modify MODE after execute query.
    for example : If suppose User key in 1st line Amout range is 10 -100 ,the after 1st line if user key in second line like amount range is 50 -80 or 10-50 then i want to ristrict them and popup the message :- Sales Amount should not Overlap ...
    --Here is my  code  which works only current record
    declare
    fr_amt number(10);
    l_curr number;
    begin
    fr_amt := :blk_name.from_amt;
    l_curr := :system.cursor_record;
    first_record;
    loop
    exit when :system.last_record ='true'
    if :system.cursor_record <> l_curr then
    if fr_amt between :blk_name.from_amt and :bl_name.to_amount then
    message('Sales amount should not be overlap');
    raise form_trigger_failuier;
    go_reccord(l_curr);
    go_item('blk_name.from_amt');
    end if;
    next record;
    end if
    end loop;
    go_record(l_curr);
    first_record;
    end;
    Note : Can anybody correct my code if you come across same problem.
    Thanks
    Abhishek

    Hi Dora ,
    Note : My form is in modify mode and execute query ,mean to every time after open form record always on screen
    so i want to check overlap value in form level only ..
    can u please check my code which i wrote same like you but its not working :
    PROCEDURE TEST IS
    m_loop1_rec number:=1;
    m_loop2_rec number;
    m_exit number :=0;
    m_last_Rec number :=0;
    m_loop_rec NUMBER :=0;
    m_from_amt NUMBER;
    m_to_Amt NUMBER;
    Begin
    go_block('CG$CTRL01');
    last_record;
    m_last_rec := :system.cursor_Record;
    first_record;
    Loop
    go_record(m_loop1_rec);
    m_from_amt := :CG$CTRL01.FR_SLS_AMT ;
    m_to_Amt := :CG$CTRL01.TO_SLS_AMT ;
    m_loop2_rec := m_loop1_rec+1;
    Loop
    go_record(m_loop2_rec);
    If (m_from_Amt between :CG$CTRL01.FR_SLS_AMT and :CG$CTRL01.TO_SLS_AMT) or (m_to_Amt between :CG$CTRL01.FR_SLS_AMT and :CG$CTRL01.TO_SLS_AMT ) then
    m_exit := m_loop2_rec;
    end if;
    exit when m_exit > 0;-- or m_loop_rec >= m_last_Rec;
    m_loop2_rec := m_loop2_rec +1;
    End loop;
    exit when m_exit > 0 or m_loop1_rec = m_last_Rec -1;
    m_loop1_Rec := m_loop1_rec + 1;
    end loop;
    If m_exit > 0 then
    go_record(m_exit);
    message(' This range overlaps with previously entered ranges');
    RAISE form_trigger_failure;
    end if;
    --END IF;
    END ;
    Thanks
    Abhishek

  • Test box validations in oracle forms

    hai friends,
    i want to validate my text box. my text box should accept only alphabets neither the numbers nor the special charcters. if we press any number key or special character key, it should not accept or display in the text box. i want solution for this. please help.
    --ajay.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hello,
    What is your version (should be indicated on each post...)
    If web version, there is a PJC available ont the Forms Page on OTN that do the job
    http://www.oracle.com/technology/sample_code/products/forms/index.html
    Watch the KEY FILTER solution.
    Francois

  • How to enforce position after decimal point

    Hi,
    i need to enforce a position after the decimal point in an SAPScript Form.
    The Form is MEDRUCK_RV and the field ist RM06P-PRMG1.
    I tried to enforce it with RM06P-PRMG1(Z9.1) but it doesn't work.
    I need to cut the left-hand zeros and display one position after the decimal point.
    Can someone help?

    Hi,
    Try this.
    DATA : DFORMAT TYPE XUDCPFM,
           L TYPE I.
    SHIFT RM06P-PRMG1 LEFT  DELETING LEADING  '0'.
    SELECT SINGLE DCPFM FROM USR01
    INTO DFORMAT WHERE BNAME = SY-UNAME.
    IF SY-SUBRC EQ 0.
    IF DFORMAT EQ 'X'.
    SEARCH RM06P-PRMG1 FOR '...'.
    ELSE.
    SEARCH RM06P-PRMG1 FOR ','.
    ENDIF.
    ENDIF.
    IF SY-FDPOS NE 0.
    L = SY-FDPOS + 2.
    RM06P-PRMG1 = RM06P-PRMG1+0(L).
    ENDIF.
    Thank You,
    Saritha

  • Opening a secure web page from oracle forms for credit card validation

    Hi All,
    I searched for the topic in the forms forum but couldn't find a solution.
    Requirement: As per some compliance, our application cannot do a credit card validation from our forms application, instead we need to use a java code which a third party will provide ,it's an iframe (they say, i am layman when it comes to Java, don't know what is it), but they say that, within your forms application you call our iframe do the credit card validation over there get a token of response back from us and use this token as a confirmation in your application.
    Problem: I could not find a solution anywhere wherein i can call a web page from forms. Now, this web page should be modal, i.e. unless i close this page i cannot access my forms application. Please guide me if anyone has done that.
    Secondly if i could make it work, how will i communicate with this external web page, like getting back some token value and use it back in my forms application. I am completely clueless.
    As we are using Oracle designer for generating forms, we cannot use a bean type thing as designer does not have the bean-item type defined!
    Appreciate if anyone could provide me pointers for a solution to this problem statement.
    We are on forms 9i -- Version 9.0.2.11.0
    Edited by: the_wing_rider on Jul 8, 2011 5:10 AM

    The simple way to do it is to use a PJC (java bean) + apache httpclient library..
    If you have a webservice than you can use Axis library and wsdl2java to create java classes from wsdl.
    also you can use httpclient library to simulate http protocol (request/response actions)..
    (for example.. you have a credit card number.. you post this number to specified URL and then you parse the response from credit card validation server)..
    Post here some documentation (specification) on how to call the credit card validation .. (maybe it's a secure webservice?)
    Here you have a httpclient library documentation:
    http://hc.apache.org/httpcomponents-client-ga/tutorial/html/index.html
    Also you can implement bean area in designer.. If you need help I can post here how we do it in our project..
    also look here: Call webservice from PJC over https protocol
    regards
    Peter
    Edited by: Peterv6i on Jul 8, 2011 3:35 PM

  • Validation on unsaved records of block on oracle form.

    In my oracle apps standard form i've approx 8 blocks. i want to write validation on first block(T1) on base of unsaved or saved records on second block(T2).
    Data are only on oracle forms not in data base so i cannot use table.
    Whenever user moved from T2 to T1 then i've check how many unsaved record are there on base need to write validation.
    Its very urgent. Your immediate help would be appreciated.
    Thanks

    Thanks for replying.
    I've checked with GET_RECORD_PROPERTY but i'm getting status like NEW,CHANGED,QUERY.
    My questions is i wanna to make validation on T2 block un saved data.
    i want data values in T1 block.
    Regards,

  • Oracle Forms Recognition - non-Accounts Payable application

    Hi
    I've done a couple of projects using Oracle Forms Recognition (OFR) to process invoice images for Invoice Automation. Recently, I was asked to configure OFR to process some images for another purpose, as a proof of concept. Put simply, I just need to grab a couple of values from scanned images. No validation required.
    Here's what I have done so far:
    - I created a new project in Designer, and have been able to create the new fields that I want to pull off the images.
    - I copied the AP ini file and have configured it as best I can
    - I created a new RTS instance and pointed it at the new ini file.
    However, when I try to start the RTS instance, it starts and then stops straight away. I checked the OFR logs, and there are no errors that I can see.
    Does anyone have any suggestions about possible culprits for the RTS issue? Also, any suggestions on how to configure the ini file would be appreciated. For exaple, there are a lot of sections in the ini file that relate directly to AP. For instance, the PON_ sectionrelates directly to the PO Number field in Designer. Where is that relationship defined?
    Finally, regarding the Learnset - obviously, with AP with have the supplied Learnset. With my custom solution, I will have an empty Learnset. Any suggestions how to get the process moving with an empty Learnset?
    Thanks for any thoughts,
    A

    Just in case, I have to ask if you've set the RTS batch scanning delay mode to something other than the default of 0 which scans once and stops?

  • Oracle Forms 11g / frmall.jar or frm90all.jar installation

    I need to import Oracle.Forms.properties.ID in one of my JDeveloper application.
    I am using JDeveloper 10.1.3.5. I need frmall.jar/frm90all.jar to make the above import statement work in JDeveloper if i am not mistaking.Basically i need to add either of the .jar in Jdeveloper.
    For that I came accross Oracle Forms 11g. For Oracle Forms 11g I have installed wlserver_10.3. and i have ofm_pfrd_win_11.1.1.3.0_32_disk1_1of1\Disk1 with Oracle Fusion Middleware forms 11g setup. When I click on that setup getting a Oracle screen asking me for Oracle Middleware Home and Oracle Home Directory. My Oracle 11g db is installed in C:\new\Oracle11g.
    And setting up ORACLE_HOME pointing t that directory. clicking on next on that screen is giving errors like Oracle Home location is not specified , The specified MiddleWare Home is not valid and Oracle.classicwsl.top could not be located etc.
    Can Anyone help me solving this issue so I can use Oracle Forms ID in JDeveloper.?

    Let me tell you what exactly i am doing :
    I have set the below environment variables:
    Path=C:\new\Oracle11g\bin;D:\app\veeralakshmi_v01\product\11.1.0\client_1\bin;C:\Program Files\ZeroC\Ice-3.4.1\bin;C:\Program Files\Java\jdk1.5.0_16\bin;
    ORACLE_HOME=C:\new\Oracle11g\BIN;
    I have C:\Oracle\Middleware in this path i have folders and sub folders like C:\Oracle\Middleware\jrockit_160_17_R28.0.0-679
    C:\Oracle\Middleware\oepe_11gR1PS2
    C:\Oracle\Middleware\wlserver_10.3
    C:\Oracle\Middleware\modules
    C:\Oracle\Middleware\coherence_3.5
    C:\Oracle\Middleware\jdk160_18
    and other folders and files.
    Now when i click on \\myshecsccm01\PackageSource\ofm_pfrd_win_11.1.1.3.0_32_disk1_1of1\Disk1\setup it takes me to Oracle 11g fm . On step 2 of 6
    for Oracle Middleware Home :C:\Oracle\Middleware
    and Oracle Home Directory: ORACLE_HOME
    i m giving.
    Here the Middleware folder contains the above folders/sub folders listings.
    and clicking on next I am getting the below errors:
    INST-07010: Validation of Oracle Home location failed. The location specified does not exist.
    Enter a valid existing directory
    INST-07100: The Oracle home provided does not contain Oracle Portal 11.1.1.2.0.
    In order to patch your existing version please provide an Oracle home that contains the product mentioned above. If you choose to continue, only the oracle_common directory and any components that both products have in common will be patched.
    INST-07293: Middleware home location specified does not have the required Oracle homes installed in it. The Oracle homes for the following components is not installed oracle.classicwls.top.
    Provide a different Middleware home location or install the required Oracle Products and try the install again
    So as per your suggestion My middleware folder is not empty.
    what should I do?
    And after doing all these installtions will i be able to get the frmall.jar file which i really required to use it for importing Oracle.forms.properties.ID?
    Edited by: 874822 on Jul 25, 2011 9:40 PM

  • Oracle forms alignment - Oracle adf page aligment.

    hi experts,
    - jdev 11.1.1.5.0 - adfbc.
    i would like to began topic on ADF jsff/jspx pages utilising component alignment time consumption . and then lesser time consumption on oracle forms alignments.
    if an Oracle Forms.report devlopers know about align top,left,right center... just select compoent one time hitting get aligned in a way good looking
    am not comparing to about different stack tech.
    my question is :
    is there any other components in jdev will reduce my design time make my smarter and faster. good looking in alignments with small amount time.
    so far,
    may be some other way. i dnt know i putting lot of time in desgining than my business logic.
    if i ready to prepare a adf page means
    design time take 5 hr a day.
    business logic & validations & bla bla sometime preety hard. but it will went less than three hours.
    am feel free to using compoents in adf. but sometmies ran into trouble(not errors) some ugly degins made by me.
    not bad i learned some tricks here(for desgins adf pages) and some blogs. eventhough some times i made some mistakes in designs.
    could any one show me way. how to do quick in desgins.?

    I recommend that you play around with the possible combinations and layout componentsyes i do.
    You can't assume that we have answers for every question, some stuff you have to find out yourself.people who are all gather here for suggesting some best way.
    i expect some kind of suggestions. that's all.
    play layout make little bit fishy?
    P.S.: What the name change again? Why not giving us your real name?Name History:
    ERP>ADF>user707.. soon i'll update my real name.
    ADF is not Forms so you can'T expect that both look the same or behave the sameyes i know.
    but i speaking about time consumption of adf is too longer. so this is my point. at the bottom of the line why time taken too longer.
    to design a page.

  • How to get updated value at run time in oracle forms

    How to get updated value form oracle database on a field in oracle forms 6.0 at run time if the same form is opened by multiple users and both have get the same maximum value if one commit the record then how other would get that maximum value with out exiting that form...

    This issue is fairly common and Forms handles the situation by displaying the error, "Record has been updated by another user. Requery to see changes." if a user tries to update a record that was updated by another user.
    If your data is in a base table block, you can check before you save by checking the value in the form against the database using the Get_Item_Property('<BLOCK.ITEM>',DATABASE_VALUE). You can compare the value returned by the built-in against the value in the field to see if they have changed. This could be a lot of work and a lot of network traffic if you are checking numerous items in your data block. Forms has a standard locking mechanism that will lock the queried record as soon as a user makes any changes. If another user queries and attempts to change the record locked by another user - they will receive a "Record Locked" message.
    Francois brings up a valid point. Perhaps you should review the link Francios provided as well as this one: How to ask questions the smart way
    It is always a good idea to review your thread before you post it and ask yourself, "Could I answer this question given the information I've provided and the way I've asked the question?"
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Comparison between Oracle Forms and HTML DB

    Something that has always puzzled me...
    What is the difference between Oracle Forms 10g and HTML DB from a functionality perspective?
    http://www.oracle.com/technology/products/forms/index.html
    The underlying architecture, technology used, etc might be different, but from the user's point of view, dont they both do pretty much the same thing?
    Why did Oracle take the time & effort to invest in building HTML DB from the ground up (with its mod_plsql, webdb, etc earlier pedigree) instead of just investing in Oracle Forms which has a well-established history, customer base?
    Thanks

    This is purely a layman's perspective, but after using Developer Forms 10g intensively for about 9 months, and now just recently getting into HTML DB, my opinion is this:
    HTML DB is really really great for 'quick and dirty' forms and reports deployment when there's not a lot of validation to be done. Not to say you can't do any kind of validation, I just personally don't find it intuitively easy to implement after using Developer forms so much. So far doing the layout has been hard for me, as I'm used to the 'drag and drop' aspect of Oracle Forms, but once you have your layout set, it pretty much takes care of resizing itself when your application is viewed on various screen sizes and resolutions.
    Developer forms has been, for me, way easier to use to accomplish all the validations I need using PL/SQL (you can use java, too, but I haven't learned enough java yet to do that). However, it's more demanding to deploy. You have your application server to maintain, you have to copy over your forms modules, your menu modules, your library modules, make sure everything is compiled properly so your form doesn't crash when someone navigates from one field to another, etc. Also, from a dynamic layout perspective, it's a little harder to design for various screen sizes, resolutions, etc. The html in HTML DB takes care of that for you.
    So basically I'm finding that each technology fills a certain niche better than the other. The fun is in trying which technology fits with which niche.

Maybe you are looking for

  • Junk values in Excel for ALV output

    Hello I have developed a FM based (not OOPS) ALV and its giving output/report, fine. But, when user want to get it into excel, then, 1) If user selects the CntrlShiftF7 - Microsoft Excle icon - I am getting just blank excel opened on my SAP GUI, i di

  • ONE-to-MANY relationship between tables and forms in APEX

    I recently started using APEX and I have run into an issue. I have a ONE-TO-MANY relationship between two tables, A1 and A2, respectively. A1: A1_ID Item A2: A2_ID SubItem A1_ID I have 2 forms (lets call it F1 and F2) that I use to capture data for A

  • I upgraded to Yosemite and now I can't see ProRes files

    Final Cut Pro 7, FCP X, QuickTime, etc. no longer see prores movies after installing Yosemite.  Anyone else experiencing this? I have reinstalled the standalone codec pack to no avail. Install of FCP X did not help either. JimmyG

  • Visa security verification fails with Firefox, but ok with Internet Explorer.

    When I use either Visa or Mastercard for online shopping on Firefox, when I submit the security verification (Verified by Visa) the screen freezes. I tested it by using the wrong security info and I got a response to say that it was wrong, but when I

  • CS6 not recognizing plugins

    I installed plugins for CS6(64bit) in Program Files/Adobe/Adobe Photoshop CS6 (64 Bit)/Additional Plug-ins  and nothing!  CS6 doesn't recognize it, namely "dofpro.8bf" and it's companion file "convert.exe".  I have verified that the above path is in