On text change trigger in oracle forms 9

I want to simulate on-text-change trigger similar to the one present in java and other programming languages.
I need this trigger to be invoked when ever we change some text in the textfield.
Is there any way to do this?
I used two text fields to compare the last entered and newly typed based on a timer interval of 3secs
But my problem is Oracle trims the spaces present in the textfield and also highlights the text present in textfield when ever I enter a space....
Scenario : I want to use this trigger and refresh the search results based on the text present in the textfield.
Thanks in advance

To do the kind of thing you are talking about you will need to implment a Java Bean in your form listen for the changes. Take a look at KeyEvent Java Bean or the Oracle Forms PJCs-Java Beans web site for more information and examples.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • 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

  • Change protocol adapter (Oracle Forms)

    I am trying to connect the SSL database from Oracle Forms.
    The problem is that the database is configured with a protocol adapter TCPS instead of only TCP.
    In Oracle Forms when connecting the database from the menu
    "File--Connect... " it presents the error
    "ORA-12538: TNS: not such protocol adapter"
    I believe that it is because it uses for default the protocol
    adapter TCP because a database that uses protocol adapter TCP is
    satisfactory.
    I need to know where to change the type of protocol adapter,
    I also believe that I should use the driver OCI because this allows TCPS.
    Please I need URGENT help.
    Please it is really URGENT

    Thank you. What is ASO?, is it about Advanced Security?. Yes, I use AS and Forms 9i.
    The problem is that Forms doesn't allow to specify the protocol. I think that Forms for default uses TCP and I need to use TCPS.
    In JDeveloper I can connect the database through JDBC URL and in this string I specify PROTOCOL=TCPS and it is everything. But in Forms I don't know.
    Please help me.

  • Open pdf document from local disk on button trigger from Oracle form in 6i

    hi all.
    i have an application in oracle forms 6i. The system from where forms are run...has a local folder with pdf documents. the requirement is that when user click on a button in oracle form...the respective pdf from the local folder should open (in browser or in adobe pdf or in any other way).
    I really desperately need this help. had googled. did use the host and client_host commands in the button trigger but am presented with error "host, client_host" not declared.
    bundles of thanks in advance for getting me out of this.

    Hi
         DECLARE
         pl_dept paramlist;
         com_code varchar2(1);
         BEGIN
         pl_dept := Get_Parameter_List('tmpdata');
         IF NOT Id_Null(pl_dept) THEN
              Destroy_Parameter_List( pl_dept );
         END IF;
         pl_dept := Create_Parameter_List('tmpdata');
            ADD_PARAMETER(pl_dept,'p_date_from',TEXT_PARAMETER,:date_from);
            ADD_PARAMETER(pl_dept,'p_date_to',TEXT_PARAMETER,:date_to);
            ADD_PARAMETER(pl_dept,'destype',text_parameter,'file');
            ADD_PARAMETER(pl_dept,'DESFORMAT',TEXT_PARAMETER,'pdf');
         Add_Parameter(pl_dept,'paramform',TEXT_PARAMETER,'NO');
         Run_Product(REPORTS, 'EMP_STATISTIC_REP.rep', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_dept,NULL);
    End;      Not tested hope it works...
    Regards,
    Amatu Allah

  • Form level v/s item level trigger in oracle forms

    Hello Experts,
                  I am new in oracle forms.I am using forms 11g with weblogic server 10.3.5 at windows 7.I am very confused between Form level and item level triggers.What is the sense of use of when-button-pressed trigger at item level & form level.If I have this trigger form level then how could I check that is fired.
    Thank  You
    regards
    aaditya

    979801 wrote:
    Hello Experts,
                  I am new in oracle forms.I am using forms 11g with weblogic server 10.3.5 at windows 7.I am very confused between Form level and item level triggers.What is the sense of use of when-button-pressed trigger at item level & form level.If I have this trigger form level then how could I check that is fired.
    Thank  You
    regards
    aaditya
    You need to clear you concept first..
    Form level Trigger: code applied all respective item within the form
    Item level Trigger: code applies for only the item that has the code.
    try in a form and you will see the difference.
    Hamid

  • Add body text / change subject to dunning form

    Hello,
    We are trying to e-mail the dunning forms we send using transactions FPVA / FPVB / FPCOPARA. At the moment the smartform is attached as PDF file without a body text.
    The PDF file we want to keep but we also want to add a body text to the e-mail. Preferably we would also add a variable text to the subject of the e-mail.
    What I found on SDN was to set the u201CSAP Smart Forms Output Typeu201D to u201CXSF Output + HTMLu201D but then the smartform was still attached as PDF and not as body text.
    Can anyone please help me on how to add a body text to the generated e-mail and how to change the subject of the e-mail.
    Thanks a lot,
    Kind regards,
    Lukas Molenaar

    Hello Prashant,
    Please see post:
    http://scn.sap.com/thread/1316583
    I hope that helps.
    Greetings Lukas

  • Changing Font in Oracle Forms 9i PL/SQL Editor

    Hi,
    My fonts in PL/SQL Editor(Where we write code for triggers and Program Units) got changed some how and now the font is very very small and it is very difficult to read. i want to restore the original font !!! Please mail how i can change the font.
    Kind regards,
    Vincent

    did you change the properties of the desktop/videocard? Like resolution and big/small fonts in advanced settings of the desktop.

  • How to disable copy option for a text item in oracle forms

    Hello experts,
                  I am using oracle forms 11g with weblogic server 10.3.5 at windows7.I have a text item in my oracle form and I have to disable to being copy from a text item in oracle forms.Actually I have to make two text item.First text item to type a password and another text item is also to type password.Here I want that the data from first text item should not be copy through the use of mouse or keyboard shortcut key.
    thank you
    regards
    aaditya

    Thank You To reply, Actually doing so as you said,My problem would not be solved.This would hide data in text item than I will not be able to copy that but in my case the data should not be concealed.Actually I have to make a Form to  User registration and here is a strictly boundation to have a right email address of user.There would two text items for this purpose as: N_User_Email------> to type email address in text item.Here user would not be able to copy text written from N_User_Email R_User_Email  ------> to type email address again as in N_User_Email.

  • Problem with List Item in oracle forms

    Hello Experts,        
                         I am new in oracle forms and i am using oracle forms 11g with weblogic 10.3.5 at windows 7.
    I have 3 database tables say(tbl_city,tbl_state,tbl_address).
    tbl_city
    C_ID
    C_name
    S_ID
    0
    None
    0
    1
    XYZ
    1
    2
    AS
    2
    3
    AXD
    2
      tbl_state
    ID
    s_ID
    S_Name
    0
    None
    1
    XY
    2
    ASD
    tbl_address
    A_ID
    A_Street
    S_ID
    C_ID
    1
    ABC
    1
    1
    Now I have made an oracle form having data block tbl_address with base table name tbl_address. In the form there are two list: one(list_state) for State_Name & State_ID and another(list_city) for City Name & C_ID display.
    Here I want when I set State_name to ASD then List item list_city should be populated with the values having State_NAME=ASD not of State_Name=XY or None.I have tried it to make but not succeeded.I have made a procedure to populate list_city list item as:
    -- here item_nm-->List item Name,  sel_val & sel_val2 for selecting C_ID and C_NAME,   tablNm---->tbl_CITY,  whr for where condition,   mtch--->selected value of list_State(list item in form)
    PROCEDURE list_item(block_nm varchar2,item_nm varchar2,sel_val varchar2,sel_val2 varchar2,tablNm varchar2,whr varchar2,mtch varchar2) IS
    group_id RecordGroup;
    group_name varchar2(10) :='abc';
    status NUMBER;
    query1 varchar2(350);
    item_name varchar2(20);
    match varchar2(50);
    BEGIN
        match:=mtch;
        item_name:=block_nm||'.'||item_nm;
      group_id := find_group(group_name);
    if not id_null(group_id) then
    delete_group(group_id);
    end if;
    --if whr='' then
    --    match:='0';
    --    end if;
    query1:='select '|| sel_val || ',TO_CHAR('|| sel_val2 || ') from '|| tablNm ||' where '||whr||' = '||mtch;
    message(query1);
    group_id := Create_Group_From_Query(group_name,query1);
    /* Select statement must have two column*/
    status := Populate_Group(group_id);
    Populate_List(item_name,group_id);
    exception
        when others then
        message('error');
    END;
    I am not  able to guess what trigger  in oracle forms should be used to populate list item(list_city). Please help by giving useful suggestion.
    Thank You
    regards
    aaditya

    979801 wrote:
    If I use LOV in place of List Item,Then I have to populate a LOV at run time.How could I maintain a record group n attach to LOV at run time?
    On my previous post I have mentioned record group as follows:
    select * from tbl_state where s_id=:tbl_address.s_id;
    If :tbl_adress.s_id chaned during the time of run, then output values of list_city (LOV) is also changed.

  • Post-change trigger alternative

    db and dev 10g rel2 ,
    hi all ,
    i want same functionality of using post-change trigger in 10g ?

    newbi_egy wrote:
    It would be easier to answer, if you would tell us what exactly is your problem. What does not work? What to you want to achieve?i've said before , how to get the same functionality of post-change trigger ?
    and i said that post-change trigger fires under these situations :
    the post-change trigger fires under these situations :
    1- The Validate the Item process determines that an item is marked as Changed and is not NULL.
    2- An operator returns a value into an item by making a selection from a list of values, and the item is not NULL.Above two points also done by When-Validate-Item trigger. so it's an alternative of Post-Change.
    3- Oracle Forms fetches a non-NULL value into an item. In this case, the When-Validate-Item trigger does not fire. If you want to circumvent this situation and effectively get rid of the Post-Change trigger, you must include a Post-Query trigger in addition to your When-Validate-Item trigger. See "Usage Notes" below.
    but when-validate-item trigger does not satisfy all these situations .Only point 3 are not satisfied by When-Validate-Item trigger. for this you need Post-Query trigger.
    It's just another clarification of Andreas answer.
    Hope it's clear now.
    Hamid

  • Problem with Image IO jre on Oracle Form

    I'm using PJC to run my Text Editor program from Oracle Form. The Editor has an Image drag & drop option and I have to upgrade the jre with Image I/O API for this functionality. To upgrade jre the tool 'jai_imageio_1_0_01-lib-windows-i586-jre' needs to be installed. When I upgrade jre with this tool and run my program independently from Oracle Form, it runs well but when I run this right there from Oracle Form it doesn't run and exception is thrown on javax.imageio and other packages that are part of that tool even though the Oracle Developer's jdk is upgraded with this tool. Could anyone help me resolve this problem?

    Hi,
    This is a JDeveloper help forum, the Formsforum can be found at Forms Now you might think that Forms developers don't understand Java well enough, they do however understand teh Forms context and this is important to answr the question.
    a) Which Java version does your ben require?
    b) Are you using JInitiator or JavaPlugin (Jinitiator only supports Java 1.3)
    c) Is your PJC signed? Note that running an app stand alone as a Java app does not require special grants. Running it within a JavaApplet - as Forms is - does execute teh bean in a security sandbox, for which reasons the jar file must be signed and the public key be available in the Forms certdb.txt file (assuming Jinitiator)
    d) An exception stack trace gives more information than "Oracle Form it doesn't run and exception is thrown on javax.imageio and other packages", which is meanlingless to me and others. Teh stack trace canbe copied from teh JInitiator console
    I recommend resending this question to the Forms forum
    Frank

  • Oracle.forms.webutil.clientinfo.getclientinfo bean not found

    Hi,
    oracle.forms.webutil.clientinfo.getclientinfo bean not found
    this is the message iam getting when i implement my forms10g application with WEBUTIL.PLL library to export data form forms10g application to excel

    Hello,
    if you get this message in a WHEN_NEW_FORM_INSTANCE trigger:
    Re: oracle.forms.webutil.file Transfer.File Transfer bean not found
    or
    Re: WebUtil doesn't work when called from WHEN-NEW-FORM-INSTANCE trigger
    Regards
    Franz

  • Insert / Update from Oracle Forms -- URGENT Please thanks

    Hello All,
    I need to create form which can be use for two purposes. i.e insert and update
    I have one table called emp which has 50 columns.
    Only four columns has not null constraint.
    I need to insert values in only these columns.
    From SQLPLUS it can be cone as below:
    insert ito emp values ('333','2222','007','AA','01-JAN-2007','','','','','','','','','',........);
    After that I need to update one of the coulmn with the value as
    update emp
    set zipcode = 'Y'
    where empt# = 007;
    How could I achive this from Oracle form.
    Any help will be appricated.
    D

    Why handle updates in the On-Update trigger? Oracle Forms already handles this for you. You update a data value in a field and click on the SAVE button (assuming you have a Save button) and the Oracle Forms handles the Update. The On-Update trigger is provided so you can perform processing in addition to the default UPDATE.
    Craig...

  • Buttons and text items on oracle forms 6i

    can i create dynamic buttons and text fields on oracle forms 6i.
    i mean when i insert record in database then automatically creat a button on form.
    Regards
    Munawer hussain

    Hi,
    One physical button is enough for a series of "functional buttons" per amount of simultanious visisble buttons. You can change the button prompt at run-time depending on a certain condition. That same condition can also be used when executing the when-button-pressed (wbp) trigger.
    Example:
    suppose you have 2 functions that you want to create buttons for: enter query and execute query. Only 1 button is visible at one time. In design time you create 1 button. In run-time, depending on :system.mode you set the button prompt to "enter query"or "execute query" and in the wbp trigger you write
    begin
    if :system.mode = 'QUERY'
    then
    execute_query;
    else
    enter_query;
    end if;
    end;
    Kind regards
    .

  • 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

Maybe you are looking for