Oracle Forms 9 Problem

I am learning forms with Oracle 9i and have run into a problem.
The following code runs just fine in a Save Button with a WHEN
-BUTTON-PRESSED trigger that inserts a record from a stacked single
record block (does not allow updates or deletes from it).
DECLARE
edit_alert alert;
show boolean := false;
message varchar2(150) := 'You Must Fill the Following Fields:';
choice number;
BEGIN
IF :add_region.region_id IS NULL THEN
show := true;
message := message || CHR(10) || '----- Region Id';
END IF;
IF show = true THEN
edit_alert := Find_Alert('EDIT');
set_alert_property(edit_alert, ALERT_MESSAGE_TEXT, message);
choice := show_alert(edit_alert);
ELSE
insert_record;
commit;
clear_block;
go_block('regions');
END IF;
END;
But when I try to use the following trigger on a Save button which is
almost identical on a table canvas with a multi-line block that allows
queries, updates and deletes...it basically skips the IF....IS NULL
section because the show never turns true and the alert never fires so
it automatically trys to update the record, but fails because of the
null value. It works perfect if the item is not null and gets inserted.
I figure that it has something to do with :regions.region_id within a
multi-line block and the if statement not knowing the current record.
I have searched and searched for a solution with no luck. Can anyone
help?
DECLARE
edit_alert alert;
show boolean := false;
message varchar2(150) := 'You Must Fill the Following Fields:';
choice number;
BEGIN
IF :regions.region_id IS NULL THEN
show := true;
message := message || CHR(10) || '----- Region Id';
END IF;
IF show = true THEN
edit_alert := Find_Alert('EDIT');
set_alert_property(edit_alert, ALERT_MESSAGE_TEXT, message);
choice := show_alert(edit_alert);
ELSE
update_record;
commit;
END IF;
END;
I appreciate any time and help....
Michael

You say the forms don't work that waySteve said standard forms don't work that way. Your teacher may want to see working programs but (s)he might put more emphasis on your understanding of the forms environment, in which case using standard practices would be best. It's better to be standard in the real world too, although sometimes you really do just have to get something to work before a deadline.
As an example of non-standard practices being bad, consider your idea of having validation/committing in a button. This is Ok as long as the user always presses the button but there are other ways to commit the data, such as closing the form, executing a query or navigating to a new record in a master block. That validation code will not run in those circumstances. Always use a when-validate-* trigger or the property pallette for validation.
Your on-error trigger is also bad. Firstly, do you know why it is firing? Is it because there's a not-null restriction on the region_id item and a null value in the field? If it's firing for any other reason, such as because there is a duplicate record or the database has shut down, then the user will never know because you're overriding standard functionality. If it is firing because of the not-null restriction then a user who does put a value in there will not have their country_id checked at all.
There may be other reasons as well but the on-error trigger is certainly firing because you're calling the update_record procedure in a button. That built-in is only allowed in an on-update trigger (it's annoying that forms will compile with errors like this but that's just the way it is). This will only cause it to fire once, so only the current record will be validated.
Your foreign key integrity check is wrong. You're usingWHERE UPPER(country_id) = UPPER(:locations.country_id);so if I enter FranCe and FRANCE is on the database the program will not see a problem. That's Ok as long as throughout the system you refer to upper(country_id), but this will negate an index on that column so should be avoided. The standard method is to use an LOV and to set the item to 'Validate from List = true' (property pallette). Also, it's very rare to validate an item other than in its own when-validate-item trigger. The exception is paired items such as the start/end of a date range, where one date must precede the other and it's more user-friendly to validate both fields together.
I can't see why the "if...is null" won't work in the WVR trigger, but if you use standard practices throughout the form and that is the only problem then you're much better off than now.
For the path, use "get_form_property(<module_name>,file_name)" and strip off the <module_name>.fmx part. It seems you have a valid reason for not being standard here (using environment variables) so that's Ok ;-). Good luck with the assignment.

Similar Messages

  • 1.4.2_13 Oracle Forms - Problem after change of JAR, JRE does not respond

    Hi,
    We use JRE version 1.4.2_13 as this was the certified version for Oracle Forms 10g.
    We recently implemented a new module that uses a Java Bean. We use Java Beans already but this one allows the user to save from an Oracle Form to there PC. Because of this we had to re-sign the JAR we use. When the user tries to go back in the system it freezes and does not allow the user to Allow permission again.
    We then have to proceed to either uninstall the JRE and reinstall it (This then allows us to grant permission)
    OR
    We need to clear cache, remove all original certificates
    Then this allows us to allow (grant always) access.
    I am after a slicker way to put this new bean in place without asking everyone of our users to mess around doing the above.
    Is there anyway to invoke an auto uninstall or an auto clear cache, clear certificates
    Is there a way to stop it freezing up when first entering?
    Thanks in advance..

    anyone?

  • Hierarchy tree in oracle forms problem

    Hello Experts,
                         I am new in oracle forms.I am using oracle forms 11g with weblogic server 10.3.5 at windows 7.I have two table as tbl_country and tbl_state.I have to make a hierarchy tree in oracle forms.My table structure as:
    tbl_country
    CREATE TABLE "SCOTT"."TBL_COUNTRY"
       (    "CNTRY_CODE" NUMBER NOT NULL ENABLE,
        "NAME" VARCHAR2(80 BYTE),
         CONSTRAINT "TBL_COUNTRY_PK" PRIMARY KEY ("CNTRY_CODE")  
    tbl_state:
    CREATE TABLE "SCOTT"."TBL_STATE"
       (    "SATE_CODE" NUMBER NOT NULL ENABLE,
        "COUNTRY_CODE" NUMBER NOT NULL ENABLE,
        "STATE_NM" VARCHAR2(80 BYTE),
         CONSTRAINT "TBL_STATE_PK" PRIMARY KEY ("SATE_CODE")
         CONSTRAINT "FK_CNTRY_STATE" FOREIGN KEY ("COUNTRY_CODE")
    Table Date as:
    insert into tbl_COUNTRY values(0,'country ');
    insert into tbl_COUNTRY values(91,'HHH');
    insert into tbl_COUNTRY values(72,'III');
    insert into tbl_COUNTRY values(83,'JJJ');
    insert into tbl_state values(1,'state',0);
    insert into tbl_state values(2,'BH',91);
    insert into tbl_state values(3,'CI',72);
    insert into tbl_state values(4,'DI',72);
    insert into tbl_state values(5,'EH',91);
    insert into tbl_state values(6,'FI',72);
    insert into tbl_state values(7,'GJ',83);
    insert into tbl_state values(8,'HJ',83);
    insert into tbl_state values(9,'IH',91);
    Desired Output in oracle forms tree:
    |__Country
             |____HHH
                       |____BH
                       |____EH
                       |____IH
             |____III
                      |__CI
                      |__DI
                      |__FI
             |____JJJ
                       |__GJ
                       |__HJ
    I Have tried but got no output
    select
    1 ,level, esm.name,NULL,to_char(esm.CNTRY_CODE)
    from   (SELECT c.name,c.cntry_code from TBL_COUNTRY c union all select s.STATE_NM,s.COUNTRY_CODE from tbl_state s) esm
    connect by prior esm.CNTRY_CODE = esm.CNTRY_CODE
    start   with esm.code=0
    what is going wrong here.
    thank you
    regards
    aaditya

    If you have never worked with a Forms Tree control, I recommend you look at this tutorial: How To Create a Hierachical Tree form.
    Craig...

  • Oracle forms problem-can't be run in mozilla 3.6.12  windows vista business

    Dear all,
    I have oracle developer 10g and oracle 10g database in my machine.
    I installed the developer suite 10g in my machine successfully.[vista-business edition]
    I saw Steve Cosner's thread.I installed as per the thread.
    Forms 10g installed and running on Windows VistaBut I cant succeed to run the forms in mozilla. it shows error "connection was reset". what can I do?
    Please help me.
    Regards,
    SB

    Be aware that if you are running on Vista, your Forms version must be 10.1.2.3 (meaning 10.1.2.0.2 patched to 10.1.2.3)
    If the browser is crashing it generally means one of the following is occurring:
    1. There is a JRE version conflict. This most often occurs when a plugin uses a different java version than the JRE you are trying to launch. Try disabling all the browser plugins except the JRE
    2. The JRE installation is corrupt. Uninstall ALL JRE versions which have been installed. Reboot the machine. Then, with ALL browsers closed, installed just the version you want to use.
    3. Windows DEP or UAC settings are preventing the JRE from starting correctly. Relax the UAC settings and ensure that DEP is not blocking the javaw.exe or java.exe processes. Changes to either of these settings will require reboot.
    UAC
    (Win-Vista) http://windows.microsoft.com/en-US/windows-vista/Turn-User-Account-Control-on-or-off
    (Win7) http://support.microsoft.com/kb/975787
    DEP
    http://windows.microsoft.com/en-US/windows-vista/Change-Data-Execution-Prevention-settings

  • Oracle forms problem

    When i try running my form it gives me the following error:
    FRM-10142: THE HTTP listener is not running on admin-vast5oc0q at port 8888. Please start the listener or check ure runtime preferences.
    I managed to fix this error by starting the OC4J instance but then i get an invalid syntax error and it says page cannot be displayed. PLEASE HELP

    I suggest you try the appropriate forum: Forums Home » Oracle Technology Network (OTN) » Products » Developer Suite » Forms
    Regards, APC

  • List Item problem in oracle forms

    Hi,
    I am using list item in oracle forms 6i and facing one problem. I am populating list using following built-in.
    Clear_list()
    Create_Group_From_Query( )
    Populate_list()
    The problem I am facing is when list gets populate it keep the cursor at last element of list with null value. I want cursor to go at first item in the list. Is this thing is possible. The list item I am using is pop-list. In combo its showing list perfectly but I have to use pop-list only. Please help to come out of this problem.
    Thanks in advance
    Shweta.

    Hi Shweta,
    Please post your query in Oracle Forms discussion forum.
    Thanks,
    Wilson.

  • Oracle Forms Designer has encountered a problem and needs to close

    Dear All,
    I got the following error when I compile the form,
    Oracle Forms Designer has encountered a problem and needs to close
    I am using Oracle 10g Developer suite(Forms 32 Bit Version 10.1.2.0.2)
    and Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    and Window Xp Professional 32 Bit Operating system
    Now I can't do any changes in the form.
    I searched lot of oracle forums .but i can't solve it.
    Please give me one solution
    I am strugling this issue.
    Please help me........
    a lot of thanks in advance.
    Thanks and Regards,
    Fazil

    Hi,
    I am doing the bug fixing in the existing form.Its size is 4.07 MB.when i will get the mentioned error.then i will take previos fmb.then again doing the changes after some time agin will come the mention error.I added some if else condtion code.Its a small code.I think its not a reason for the mentioned error.I think something is happended.I don't know what happened?
    Please help me..
    Thanks and Regards,
    Fazil

  • Problem with inserting new records in Oracle Forms

    Hi Friends,
    I am a new user to Oracle Forms and I need a help from you people. The problem is as follows:
    I have a data block in which I can display a number of records. In this data block the user will be able to edit the fields if no child records are found in another table. I have used when-new-record-instance to attain this scenario. All are text items. One item licensee_id which is made invisible by setting the property in property palette and required=no ( as this is the primary key of the table). Also the audit columns are made invisible.
    The code for it is as follows:
    DECLARE
         v_alert_button NUMBER;
         v_cnt                          NUMBER;
    BEGIN
         SELECT COUNT (*)
    INTO v_cnt
    FROM id_rev_contracts
    WHERE licensee_id = :ID_REV_LICENSEES.licensee_id;
    IF v_cnt > 0 THEN
    set_item_property('ID_REV_LICENSEES.LICENSEE_NAME', UPDATE_ALLOWED, PROPERTY_FALSE);
    ELSE
         set_item_property('ID_REV_LICENSEES.LICENSEE_NAME', UPDATE_ALLOWED, PROPERTY_TRUE);
         -- set_item_property('ID_REV_LICENSEES.LICENSEE_NAME', INSERT_ALLOWED, PROPERTY_TRUE);
    END IF;
    END;
    Now in this data block I should also be able to insert new records and for the same I have used PRE-INSERT trigger and the code for it is as follows:
    DECLARE
         v_alert_button NUMBER;
    CURSOR v_licensee_id IS SELECT id_rev_licensees_s.NEXTVAL FROM dual;
    BEGIN
    OPEN v_licensee_id;
    FETCH v_licensee_id INTO :id_rev_licensees.licensee_id;
    CLOSE v_licensee_id;
    IF :id_rev_licensees.licensee_id IS NULL THEN
    Message('Error Generating Next v_licensee_id');
    RAISE Form_Trigger_Failure;
    END IF;
    :ID_REV_LICENSEES.created_by := :GLOBAL.g_login_name;
    :ID_REV_LICENSEES.last_updated_by := :GLOBAL.g_login_name;
    :ID_REV_LICENSEES.create_date := SYSDATE;
    :ID_REV_LICENSEES.last_update_date := SYSDATE;
    EXCEPTION
    WHEN form_trigger_failure
    THEN
    RAISE form_trigger_failure;
    WHEN OTHERS
    THEN
    v_alert_button :=
    msgbox ('ERROR in Pre-Insert - ' || SQLERRM, 'STOP', 'Contact IST');
    RAISE form_trigger_failure;
    END;
    Every thing is compiling fine but at the run time when I am trying to insert a new record I am receiving the following error:
    FRM-40508:ORACLE error:unable to insert record
    I also think the pre-insert record is not firing at the time of inserting a new record and saving it. So I request you to please delve into this problem and suggest me how to overcome this problem. Code snippets would do more help for me. If you need any other things from me please let me know. I will see if I could be of any help in that concern because I may not be able to send the entire form as it is.
    Thanks and regards,
    Vamsi K Gummadi.

    first of all
    pre-insert fires after the implicit/explicit commit/commit_form is issued and before the real insert is submitted to the db.
    i would suggest to remove the error handling part for the moment
    because i believe you might be getting "ora-xxxx cannot insert null"
    and also make visible the primary column to check if the pre-insert is executed.
    it would be better to make visible for a while the not null columns of the table/block
    i suppose that the block is insert allowed and you are using table as the source of the block and not any procedures or something...

  • Problem inputting Chinese characters in oracle forms

    Hi,
    We have a Chinese character: UCS2=7A4F (UTF8=E7A98F) If we try to input it to a control in a Forms application using chanjie (key sequence h-d-b-s-p) input method, it becomes "?", but if we input it using same method in word or notepad, it shows correctly and can then be copy-and-paste to oracle forms.
    Is there some sort of implicit conversion of Chinese character input done by Oracle Forms controls such that it is unable to decode this character properly? Or is there some sort of setup that can be done to bypass this problem?
    Any help would be greatly appreciated, hopefully as soon as possible.
    Thank you very much.

    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.

  • Problem installing Oracle forms and report in windows 7

    I have a problem while installing Oracle forms and reports in windows 7 64 bit
    The error is : [as] [ERROR] [] [oracle.as.provisioning] [tid: 20] [ecid: 0000IY5_e_EApIRMyYAhMG1BuDGr00000B,0] [[
    oracle.as.provisioning.exception.ASProvWorkflowException: Error Executing workflow.
    at oracle.as.provisioning.engine.WorkFlowExecutor._createDomain(WorkFlowExecutor.java:688)
    at oracle.as.provisioning.engine.WorkFlowExecutor.executeWLSWorkFlow(WorkFlowExecutor.java:393)
    at oracle.as.provisioning.engine.Config.executeConfigWorkflow_WLS(Config.java:866)
    at oracle.as.install.classic.ca.standard.StandardWorkFlowExecutor.execute(StandardWorkFlowExecutor.java:65)
    at oracle.as.install.classic.ca.standard.AbstractProvisioningTask.execute(AbstractProvisioningTask.java:26)
    at oracle.as.install.classic.ca.standard.StandardProvisionTaskList.execute(StandardProvisionTaskList.java:61)
    at oracle.as.install.classic.ca.ClassicConfigMain.doExecute(ClassicConfigMain.java:124)
    at oracle.as.install.engine.modules.configuration.client.ConfigAction.execute(ConfigAction.java:335)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.run(TaskPerformer.java:87)
    at oracle.as.install.engine.modules.configuration.action.TaskPerformer.startConfigAction(TaskPerformer.java:104)
    at oracle.as.install.engine.modules.configuration.action.ActionRequest.perform(ActionRequest.java:15)
    at oracle.as.install.engine.modules.configuration.action.RequestQueue.perform(RequestQueue.java:63)
    at oracle.as.install.engine.modules.configuration.standard.StandardConfigActionManager.start(StandardConfigActionManager.java:158)
    at oracle.as.install.engine.modules.configuration.boot.ConfigurationExtension.kickstart(ConfigurationExtension.java:81)
    at oracle.as.install.engine.modules.configuration.ConfigurationModule.run(ConfigurationModule.java:83)
    at java.lang.Thread.run(Thread.java:619)
    So I Google for it and found that this is version mismatch (May be I am wrong) and it tells that I have to install WLS - 10.3.2 with ofm_pfrd_win_11.1.1.2.0_64 (1 to 4)
    But I am unable to get wls version 10.3.2.
    For better understanding I am listing my installers :
    (I) Windows 7 Ultimate 64 Bit
    (II) (Oracle 11g) win64_11gR2_database (1 & 2)
    (III) ofm_pfrd_win_11.1.1.2.0_64 (1 to 4)
    (IV)wls1033_generic.jar , wls1033p_generic.jar , wls1035_generic.jar
    (V)accessbridge-2_0_2-fcs-bin-b06
    (VI)ofm_rcu_win32_11.1.1.2.1_disk1_1of1,ofm_rcu_win_11.1.1.3.1_disk1_1of1
    (VII) ofm_wc_generic_11.1.1.5.0_disk1_1of1
    (VIII)jdk-6u38-nb-7_2_1-windows-i586-ml , jdk-6u38-windows-x64
    (IX) oepe-wls-indigo-installer-11.1.1.8.0.201110211138-10.3.6-win32
    (X)wls1033_oepe111150_win32.exe
    (XI)wls1035_win32.exe
    (XII)wls1035_oepe111172_win64
    (XIII)oepe-indigo-installer-12.1.1.0.1.201203120349-12.1.1-win64
    After the installation while configure the forms reports, I am stuck while creating domain.
    steps I follow is :
    (i) Install Windows 7 Ultimate 64 Bit
    (ii) (Oracle 11g) win64_11gR2_database (1 & 2)
    (iii) wls1033_generic.jar
    (iv) accessbridge-2_0_2-fcs-bin-b06
    (v)ofm_rcu_win32_11.1.1.2.1_disk1_1of1
    (vi) ofm_pfrd_win_11.1.1.2.0_64 (1 to 4)
    Please any body help, for the installation of oracle forms and reports.
    I have a formatted Windows 7 Ultimate
    Where I have installed Adobe Acrobat Reader
    IIS server from windows installer
    Now I want to know the exact procedure so that i can run the forms and report in my machine.
    This is my first installation of Oracle forms & Reports, so please do not pre assume about my understanding (Like "to install this he surely did this environment settings" )
    Please specify all the steps
    Furthermore if Another software I have to download then please tell me.
    And I will be grateful if you specify the mistakes in my side.
    Looking forward with anticipation.

    Solved, Thank you

  • Creating timer problem in oracle forms

    Hello,
            I am using oracle weblogic 10.3.5 with oracle forms 11g at windows 7.I am trying to make a trigger but getting frm 40738 argument 1 to builtin GET_APPLICATION_PROPERTY cant be null error. I am using code at when-new-form-Instance trigger:
    declare
        timer_id TIMER;
        one_second number:=1000;
        st varchar2(100);
    begin
        timer_id :=find_timer('CLOCK_TIMER');
        If not id_null(timer_id) then
            delete_timer('timer_id');
        else
            timer_id := CREATE_TIMER('CLOCK_TIMER',one_second,REPEAT);
            --timer_id:=create_timer('CLOCK_TIMER',one_second,repeat);
            st:=Get_application_property(TIMER_NAME);
            message(st);
            end if;
            select to_char(sysdate,'HH24:MI:SS') into :EVENTS.CURRENT_TIME from dual;
            exception when others then
            message(TO_CHAR(SQLCODE)||''||SQLERRM);       
        end;
    and at  When-Timer-Expired trigger:
    declare
        timer_name varchar2(30);
    BEGIN
       timer_name := GET_APPLICATION_PROPERTY(TIMER_NAME);
    IF  timer_name = 'CLOCK_TIMER' THEN
          SELECT  TO_CHAR(SYSDATE,'HH24:MI:SS')
          INTO   :EVENTS.CURRENT_TIME
          FROM   DUAL;
    END IF;
       EXCEPTION WHEN OTHERS THEN
          MESSAGE(TO_CHAR(SQLCODE)||''||SQLERRM);
    END;
            Thank You
    regards
    aaditya.

    The problem is that you have a local variable with the same name as the CONSTANT "TIMER_NAME".  Therefore, your call to GET_APPLICATION_NAME is passing the value of your Local Variable to the built-in instead of the value of the CONSTANT 'TIMER_NAME."
    declare
        timer_name varchar2(30);
    BEGIN
       timer_name := GET_APPLICATION_PROPERTY(TIMER_NAME);
    IF  timer_name = 'CLOCK_TIMER' THEN
    Change your code so your variable TIMER_NAME is unique (different) from the constant TIMER_NAME variable. A common programming standard prefix your variable names with the data time.  Following this concept, rename your variable to V_TIMER_NAME.
    Craig...

  • Field selection problem in Oracle Forms

    I am using an application created in Oracle 6i Forms (patch 11).
    Mouse navigation in the forms do not work properly.
    Since a field is selected and some string is typed then first character is always ignored hence it is necessary to press a key like before typing required string.
    I'm using Java VM 1.4.1 on client-side,
    The same application works well when I'm using Oracle JInitiator.
    does anybody know how to work around the problem ?
    thanks

    Hi, again and thanks for the patience. I am using the oracle plugin all the time and it works. But I need to use the application on different computer where the oracle JInitiator could not be installed. There I am trying to use the Sun Java Plugin Version 1.4.2_06 (build 1.4.2_06-b03) which shall be compatible. Since last time I asked again the provider and I found that the application is pure Oracle Forms 9i application which doesn't need Java when it is run on the computer where the application is instaled. The Java plugin is then used to show the forms and to provide the comunication between clients and application server. Probably it is clear to you however I am not a developer but poor user only. I have also tried to play with the application to find how it works (or doesn't works). It seems that the problem is exactly with mouse navigation. When tab or enter is used then it works fine. But when a form field is selected by mouse then a character is typed and i can see it. But when I continue with the writing the first character is overwrite. Sometimes when there is a list of records row by row and I try to get to next row using the mouse the application tells me that some bloody key is not valid but using the key down I can easily go ti next row. To tell the truth I don't like mouses at all so it is no problem to me but other users do not know how Tab works :-)

  • Problem with dblink in Oracle Forms 6i

    I hava a problem and i try to compile a form that use a dblink when i start to compile the form the IDE is close and no errors are shown. That someone know what can i do for it ??...
    The Dblink is defined like this way:
    sqlstr := 'SELECT ' ||
    The_Columns ||
    ' FROM STITXS.CSI_0_DAY_ONE_GROUP@IMM DOG, CSI_0_AREA_TAX ATA ' ||CHR(10)||
    wFilter || The_Grp_Columns;
    this part of code is generating the query dinamically, but i can't compile the form, i just need to change the schema for STWBMS.CSI_0_DAY_ONE_GROUP@IMM and also if i remove this part of code that use the dblink the form compile without problem.
    The version of mi Bada base is Oracle 9i, but the system (Oracle Form) in my enviroment use Oracle DataBase 8i.
    I hope someone can help me.
    Thanks

    You could try to "hide" the db-link by creating a local view above the dblink-table.

  • List items problems in oracle forms 6i

    Hello friends,
    I am using list item in oracle forms 6i and facing one problem. I am populating list using following built-in.
    Clear_list()
    Create_Group_From_Query( )
    Populate_list()
    The problem I am facing is when list gets populate it keep the cursor at last element of list with null value. I want cursor to go at first item in the list. Is this thing is possible. The list item I am using is pop-list. In combo its showing list perfectly but I have to use pop-list only. Please help to come out of this problem.
    Thanks in advance
    Shweta.

    I have a question related to this post...what if you want the first item on the list to be the null record - but have it at the top of the list - like all other drop downs I've seen? I'm running on forms 9i
    Edited by: saburo on Mar 2, 2010 7:58 AM

  • Post query trigger problem in master detail oracle forms

    Hello experts,
                        I am new in oracle forms n using Fission middleware 10g with oracle forms 11g at windows 7 platform.
    I have made a master detail form using a tab canvas.There is a database column STUDENTID and it is in my student tab with a TBL_STUDENTENTRY data block.Now I Have an another tab named previous_education with TBL_STUDENT_PREVIOU_EDU datablock here there is also a database column STUDENTID and corresponding field in my  previous_education TAB under TBL_STUDENT_PREVIOU_EDU  datablock.Now i want to add a display item to show  student name corresponding to STUDENTID.For this I have tried to make a select query in TBL_STUDENT_PREVIOU_EDU data block POPST_QUERY TRIGGER.
    begin
    select STUDENTNAME into :TBL_STUDENT_PREVIOU_EDU.STD_NM   from TBL_STUDENTENTRY where STUDENTID=:TBL_STUDENTENTRY.STUDENTID;
    end;
    But, This trigger is not fired at runtime,Please suggest me what is going wrong and give me the solution.
    Thank You
    AADITYA.

    http://www.club-oracle.com/forums/post_query-problem-in-oracle-forms-t9751/#post23794 ,  This is the link at where  I have tried to show my problem with the help of an image,Please get the link:
    thanx
    regards Aaditya.

  • 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

Maybe you are looking for