Building run-time command in Forms 5

How do I build a command syntax at run-time in Forms 5?
E.g., I want to call a stored procedure from a trigger in a
Form. But the name of the stored procedure has to be selected
from a table at run-time.
null

Use an errorpage which can print the stacktrace to the response.
          Sha Liu wrote:
          > I was annoyed but this weird message of weblogic for two days:
          >
          > From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
          > 10.5.1 500 Internal Server Error
          > The server encountered an unexpected condition which prevented it from
          > fulfilling the request.
          >
          > And there's no exceptions or any error messages in the stack trace of server
          > console.
          > Then I tried to write a simple JSP to test if Weblogic will properly display
          > some run-time exceptions.
          > My JSP is like this:
          >
          > <% Integer i = null; System.out.println(i.toString()); %>
          > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
          > <html>
          > </script>
          > <head>
          > </head>
          > <body>
          > test
          > </body>
          > </html>
          >
          > And I found it fails!
          > Is it a bug of weblogic or I need to configure something to enable the
          > catching the run-time exceptions?
          >
          > My weblogic is 5.1 applied SP5.
          >
          > Sha Liu
          Tom
          | Thomas Preston |
          | Vacation.com, Inc. |
          | Engineering Department |
          | 617.654.8432 |
          | http://www.vacation.com |
          

Similar Messages

  • Running Copy command from Forms 6i

    HI!
    I want to run Copy command through Forms 6i i.e copy from scott/tiger@orcl insert test@msora(ename) using select to_char(ename) ename from emp;
    I can run DDL command through Forms_ddl functions in Forms 6i, But copy command is not working using Forms_ddl.
    thanks in advance.
    Edited by: Kami_Lily on Aug 2, 2009 10:04 PM

    Dear Kami Lily,
    Oracle Forms is able to execute SQL and PL/SQL command only. Additionally it supports Operating System command by HOST built-in.
    Though COPY is a SQL*Plus command, it is not possible to execute this command by HOST built-in.
    Instead, if you hardly want to execute COPY command oracle forms 6i, then you make a batch file in operating system and run that batch file from HOST built-in.
    Thanks.

  • Error at run time of a form

    Hi,
    I am new to Oracle forms and reports. I have created a form, compiled and build successfully. But when I run the form it is showing an error saying "FRM-10142: The HTTP is not running on My Computer at port 7777. Please start the listener or check your run time preferences" . Please let me know the solution for this. I am using Oracle 10g forms and reports.
    Thanks in Advance.

    >
    Hi, and welcome to the forums.
    I am new to Oracle forms and reports. I have created a form, compiled and build successfully. But when I run the form
    it is showing an error saying "FRM-10142: The HTTP is not running on My Computer at port 7777. Please start the
    listener or check your run time preferences" . Please let me know the solution for this. I am using Oracle 10g forms and reports.You want to go here [url https://forums.oracle.com/forums/forum.jspa?forumID=82]here - the forms forum (try saying that
    quickly ten times in a row ;) ) - you'll receive more appropriate help there.
    Please close off this thread and repost your question there.
    Don't forget to read the FAQs for the forums you post to. If you have pure Oracle SQL questions in the future, please
    also read the sticky thread by BluShadow at the top of the list of posts on the home page of this forum.
    HTH,
    Paul...

  • How to change dynamically text label at run time in the forms

    Hi,
    I am having a form in which i want to change the text label dynamically. I mean when a certain condition match then text label should be change and when condition does not match then the text label should reamin as it is in the same form.
    plz help
    thanks in advance
    azhar

    Hi,
    Use this code to change the label at run time.
    set_item_property('deptno',prompt_text,'pagal dept');
    Prompt_text is used for changing label at run time.

  • How to auto-generate a "empno" field at run time in oracle forms 6i

    Hello!
    I have connected to a SCOTT schema. And i am using emp table. At run time mode when i press F8 then the data is displayed in the fields.
    My task is to generate auto "empno" as soon as i run the form. Kindly do the needful.
    Thanks in advance

    Hi Francios,
    I think with your solution our user only able to see the current information in the form.I donot think it will auto generate the empno.
    Dear user,
    I suggest what you can do is to create one sequence in your database and use it to generate automatic
    empno.
    In post query trigger try to implement the idea.
    Suppose in the name of the sequence is empno_seq.
    if emp.empno is null then
    :emp.empno := empno_seq+1;
    end if;
    Try i hope it will work
    Regards
    Rajat

  • Application builder-run time error

    I cannot run my exe file I have always the following message , see attachment.
    What can be the problem?
    Attachments:
    run-time engine error.jpg ‏42 KB

    Is the run-time engine installed? A LV EXE can not run without the RTE.
    When you build an EXE, you have the option to create an installer, which will also install the RTE. If you build an EXE with no VI defined, it should build an installer with only the RTE.
    Alternatively, you can try looking for the RTE installer on your LV CD or on this site.
    Try to take over the world!

  • App Builder/Run Time Install Broke?

    I have full up version of LabView 5.1.1, running on Win98.
    I went through the Application Building Example on page 12 of the
    Application Buidler release notes.
    I then installed the sample app on another Win98 box. The application
    installation went OK until it ran the install for the LabVIEW runtime.
    Then I got the following error:
    "Setup Initialization Error
    Setup requires a different version of Windows. Check to make sure that
    you are running Setup on the Windows platform for which it is intended.
    Error 102."
    I also get this same error if I run the LabVIEW runtime install
    directly.
    As I said, both machines are Win98. I'm stumped. Any ideas?
    Mike T

    I am not sure if this is your exact problem but you might try it . I found
    with the run time in 5.1 would not install properly . On the target machine
    I did a runtime engine install from the APP builder disk , not from the 5.1
    disk . Then things seem to get sorted out after that . I still haven't been
    able to do a stand alone disk that installs the runtime engine and
    application together yet. More for the lack of trying after I got a work
    around (I hope?) . That was with win95 and 5.1 , not sure if the same sort
    of thing will be true for 5.1.1 and win 98.
    Hope that helps
    "Mike T" wrote in message
    news:[email protected]..
    > I have full up version of LabView 5.1.1, running on Win98.
    >
    > I went through the Application B
    uilding Example on page 12 of the
    > Application Buidler release notes.
    >
    > I then installed the sample app on another Win98 box. The application
    > installation went OK until it ran the install for the LabVIEW runtime.
    > Then I got the following error:
    >
    > "Setup Initialization Error
    >
    > Setup requires a different version of Windows. Check to make sure that
    > you are running Setup on the Windows platform for which it is intended.
    >
    > Error 102."
    >
    > I also get this same error if I run the LabVIEW runtime install
    > directly.
    >
    > As I said, both machines are Win98. I'm stumped. Any ideas?
    >
    > --
    > Mike T

  • 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.

  • Create lov at run time in  oracle form 10g

    i want to create a lov and record group dynamically at run time..
    i have the code in when-form-instance..
    Declare
    v_lov lov;
    rg_id recordgroup;
    gc_id groupcolumn;
    tem_num number;
    v_rg_id number;
    begin
    rg_id := find_group('My group');
    if id_null(rg_id) then
    rg_id := Create_group('My_group');
    gc_id := add_group_column(rg_id,'emp_id',number_column);
    gc_id := add_group_column(rg_id,'ename',char_column,15);
    end if;
    v_rg_id := POPULATE_GROUP_WITH_QUERY('My_group','select t.employee_id,t.first_name from employee_mt t where t.employee_id in (103,104,106)');
    --tem_num :=populate_group(rg_id);
    v_lov := find_lov ('LOV_NAME');
    set_lov_property(v_lov,group_name,'My_group');
    set_item_property('VEH_SEARCH.TXT_VEH_CODE',lov_name,'lov');
    End;
    now i have problem...whether i create first a lov and record group at design time or not????
    if i create a lov and have the recordgroup column then what is the benefit of dynamically lov...???
    thanks

    Hi.
    It is possible with some restrictions. Let's say you agree there are max 5 columns in your LOV-s. That way you can easily create LOV to RG colums mapping (what Andreas pointed out).
    For example :
    1. in design time create RG with dummy columns (for example : c1, c2, c3, c4, c5)
    2. in design time create 1 LOV with 5 predefind columns (for example : c1, c2, c3, c4, c5)
    3. populate that record group with select (selecting 5 columns. If you do not have 5 columns in your table on which LOV is based just select dummy columns for the rest of the columns) aliasing them as c1, c2, c3, c4, c5 (same as in LOV from step 2)
    4. asign that RG to the LOV in step 1
    5. in LOV show just "non-dummy" rows form step 3
    The rest you already figured it out.
    The benefit of this approach is questionable as the same can be done creating more RG and LOV-s in design time. So I believe this is the matter of developer preferences. By the way the concept I described we use on daily bases dealing with LOV-s.
    Best regards.

  • How to generate database text items at run time in oracle forms 6i?

    i have a text item with NUMBER OF ITEMS DISPLAYED=3. My requirement is, i need to generate text items at run time under each TEXT ITEM(3 text items will be there since number of items displayed is 3) and the values will be stored in the database based on the primary key combination. pls help me to solve this pblm

    Hi,
    You cannot generate items dynamically at runtime. The only thing you can do is show and hide item on time. Thay seems that they are generated at run time. Second thing you can do is that you can put items on stack canvas and set visible property of stack canvas to no and at run time set it to visible according to ur condition. Otherwise there is no way. If you find any other way, plz do inform here also.

  • Segment Builder - run time error

    Hi  All,
    I am working in sgment buillder  in CRM 6.0, I created TG and when i try to open it in GUI it throws run time error "CREATE_DATA_UNKNOWN _TYPE " . i understood this is ABAP runtnime error.
    Kindly give your valuable suggestions.
    Warm regards,
    Sathish Prabhu.R

    Hello,
    Check The reason for the dump could be because of the custom badi implementation. check your badi implementation for  CRM_MKTTG_SEG_MEM_EX.
    It has  two methodds
    IF_EX_CRM_MKTTG_SEG_MEMBER_EX~GET_TG_MEMBER_STRUCTURE and
    IF_EX_CRM_MKTTG_SEG_MEMBER_EX~GET_TG_MEMBER_STRUCTURE_REL
    For these methods, check whether you are passing the structures.
    Thanks
    Raja Pamireddy
    CRM Marketing Forum Moderator.

  • Template builder - run time error '429'

    Hi all,
    I'm getting a Visual Basic "run-time error '429' ActiveX component can't create object" in two separate environments. One is using Word 2007 the other Word 2003. The error occurs when I try to log into PI Publisher from Word. I can't find any info on this error. They are both 64 bit machines and I have the .NET 2.0 for 64 bit installed. Has anyone seen this?
    Thanks!
    Patrick

    Correct, you do not need Oracle client software installed. But, where does Desktop get installed? Under C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop. One of the folders therein is DotNetInstallFiles. Then, consider this:
    "With OLE DB .NET, applications can access the Oracle database from any .NET programming language.
    The provider now supports 64-bit Windows natively, including Windows x64 and Windows Itanium."
    I would venture to say that older versions of Desktop were probably not tested on 64-bit PCs because who uses Office on 64-bit Windows? Even in the certification guide, it states that all possible combinations of J2EE compliant engines, databases, OS, etc have not been tested. Digging into the BI installed files, you see ADO-related files.

  • How do run dos command from form

    Hi all,
    I need to run a file.bat (dos), someone can help me, please?
    I know the command HOST(..), but when execute the command exit a black window. Are there other command?
    Thank you
    Silvia

    Hello,
    I know the command HOST(..), but when execute the command exit a black window. Are there other command?Version Dependent.
    For less then or equal 6i version
    HOST('CMD /C C:\batch_file_name.bat');For the web based...
    The same above command will work for AS level. If you need on client side then
    CLIENT_HOST('CMD /C C:\batch_file_name.bat');-Ammad

  • Can we store values @run time in Adobe Forms when there are multiple views

    Hi,
    I am new to Web dynpro Java - Adobe Forms. I working on a solution for the following scenario.
    I have 3 Views (each an adobe Form) in a web dynpro component.
    I have to capture the user entered values in View1 and View2 (PDFs) and display them in VIew 3 (another PDF)
    I am able to capture the values in the recent view. (view2) but the values from the view1(Context elements ) are cleared.
    Can I hold or store the values from the first view like we do in java using session variables??
    Also, if there is any other way out, please let me know.
    Version:
    NWDS 7.0.1
    SAP Netweaver SP12
    Adobe Designer - 7.0.1
    Thanks in Advance.
    Vasu

    I got the solution

  • Getting run time value on form field by sql query and function

    Hi All,
    we have below requirement -
    create a form with fields as below -
    KRA_Type Grade Weightage Start Date End date
    Functinal E2 30 1-Jan-2010 1-jan-2011
    Organizational E2 70 1-jan-2010 1-jan-2011
    lov of kra_type has 2 values (Functinal, Organizational). requirement is to validate Weightage field such that for same grade :- Fuctional Weightage + Organizational Weightage = 100.
    please suggest on how to approch this.
    Thanks,
    Sam D

    this is not related to FORMS at all......
    1) create a database function which take grade parameter and return the total weightage.
    2) use it on when-validate-item trigger to validate
    create or replace function get_grade_weightage(p_grade varchar2)
    return number
    is
    v_grade number;
    begin
      select sum(Weightage)
       into v_weightage
      from mytable
    where grade = p_grade;
    exception when no_data_found then
       return 0;
    end;
    select get_grade_weightage(:grade)  into v_weigtage from dual;
    if :current_weigth < v_weightage then
        -- do something
    else
      --do something
    end if;Hope it helps
    plz mark the answer as correct or helpful if it is

Maybe you are looking for