Parameter prob when in called form.

Hi,
I am facing a peculiar prob in Forms 10g/ back end oracle 10g on Windows. I have two forms abc.fmb and def.fmb. from one menu option I can execute def.fmb directly OR from another menu option I can execute abc.fmb which in turn calls def.fmb. When the form def.fmb is called directly it is working fine but when it is called thru' abc.fmb problem creeps in.
def.fmb has some statement:
Display_Block(NAME_IN('work.MAIN_BLOCK'));
whenever def.fmb is executed directly it is taking the return value of NAME_IN(work.MAIN_BLOCK) properly and runs fine but whenever it is called from abc.fmb it is showing the value of NAME_IN('work.MAIN_BLOCK') as NULL and giving error.
Any suggestion to rectify the problem?
Thanks in advance,
Pragati.

what ever parameters are the in the parameter list should be present in the called form.
you don't have to do any thing you can directly use them.
eg :
If :parameter.value = <some thing> then
end if;

Similar Messages

  • Passing a parameter list from a web form to a report

    I am using FORMS6 and REPORTS6, with OAS 4.07 on NT4 (SP3).
    In client server mode all works well - i am able to pass parameter lists from my calling form to the relevant reports and view them (using RUN_PRODUCT).
    However, when i try and do the same by deploying the web Form I come up against several obstacles.
    1. How do you pass a parameter list over without using "Paramform=Yes" - a waste of time seeing a html version of the reports parameter form when all the necessary parameters have been selected in the form.
    2. if i use web.show_document, with paramform=no, the report runs but with it's default settings.
    Any light you can shed would be greatly appreciated.

    Hi Tony ,
    Launcher form is just a simple form(Non database form) which will be having all fields that is required for the report and button to run the report .
    When button pressed trigger
    Pass all the parameters which are required using Run_product tool & Call the report by Web.Show_document
    Best way to see the report is in .pdf format in adobe acrobat reader
    I hope it will help you
    Bye
    Rao guduru

  • Commit during Call form,open form?

    If i open another form using call/open form command and exit out of the form which is over the base form with some code, what will happen to the data in the base form.
    How can i commit from the call /open form the base form.
    is there any property that needs to set up.
    What is the default behaviour in case of New form, open form , call form.

    Call form:
    Runs an indicated form while keeping the parent form active. Form Builder runs the called form with the same Runform preferences as the parent form. When the called form is exited Form Builder processing resumes in the calling form at the point from which you initiated the call to CALL_FORM.
    New Form:
    Runs an indicated form while keeping the parent form active. Form Builder runs the called form with the same Runform preferences as the parent form. When the called form is exited Form Builder processing resumes in the calling form at the point from which you initiated the call to CALL_FORM.
    Open Form:
    Opens the indicated form. Use OPEN_FORM to create multiple-form applications, that is, applications that open more than one form at the same time.

  • Calling form error

    Hi all...
    iam facing a problem while calling a form.
    iam opening a form,inserting data in empty columns of an existing record and with out saving iam calling another form.Inserting and updating data
    in the called form and again coming back to old form and then saving the form.
    while doing this, when i am trying to save on the called form its giving an error FRM-40403 CALLING FORM HAS UNAPPLIED CHANGES,SAVE NOT ALLOWED.
    please help
    thanks in advance.

    Really thank you very much Mr. Now after adding post; before call_form has solved the problem of inserting and committing the called form.
    but before moving on to called form its showing message FRM-40404:DATABASE APPLY COMPLETE:2 records applied.
    when the called form is saved and when the calling form is saved,it is not updating the existing record but inserting new record.
    how to avoid this message and insertion of new record..
    thanks a lot again.

  • Can I add my parameter in address bar when calling form?

    Hi,
    I need to call form with parameter.
    I'm calling reports with parameters. For example: [http://server:7778/reports/rwservlet?report=/home/oracle/report.rdf&userid=usr/pass@db&P_PARAMETER1=value&P_PARAMETER2=value]
    I need to do the same with form.
    I tried but couldnot success. How can I do that?
    I tried with: [http://server:7778/forms/frmservlet?form=/home/oracle/form.fmx&userid=usr/pass@db&P_PARAMETER1=value&P_PARAMETER2=value]
    I added WHEN-NEW-FORM-INSTANCE in form:
    declare
    pl_id paramList;
    parameter_type number;
    parameter_value varchar2 (200);
    begin
    pl_id := get_parameter_list ('default');
    if not id_null (pl_id) then
    get_parameter_attr (pl_id, 'P_PARAMETER1', parameter_type, parameter_value);
    destroy_parameter_list (pl_id);
    if parameter_value is not null then
    USING PARAMETER...
    end if;
    end if;
    end;
    Edited by: Fitibaldi on Nov 25, 2008 1:30 AM

    Hello,
    In the url, the private parameters must be placved after the otherparams key word:
    http://server.../frmservelt?config=MY_CONFIG&otherparams=the_param=the_value&...
    The parameter list is not used in this case.
    These parameters must exist in your Forms module in order to be used via the :PARAMETER object:
    Declare
      value varchar2(100);
    Begin
      value := :PARAMETER.the_param ;
    End;Francois

  • How to call form and pass parameter from OA Page

    Hi,
    I have one requirement to call a custom form from OA page by clicking the button and the same time i need to pass one parameter from this
    oa page to that form.
    how to do this by personalization?
    i surfed lot and i got some idea, some one said "pass the value as global variable and receive the global parameter when the new form instance trigger" .
    Can anyone please give about about this ?
    Thanks in advance,
    SAN

    This seems to be related to EBS and since this forum is dedicated to Fusion you might want to post the question to E-Business Suite forums and
    Support forum for EBS customizations.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Passing parameter to Called form through Web.Show_document.

    i am calling a form say 'form2.fmx' from 'form1.fmx' using web.show_document. the parameter is concatenated with the URL string properly but this parameter is not accessible in the called form.
    Please Help
    thanks

    i am running forms Of 10G developer suit. i want to call and pass a parameter
    'emp_no'(employee no) to a form say 'form2.fmx' from the form say 'form1.fmx' on button
    click. so i have created a parameter named "emp_no" in the object navigator of "form2.fmx".
    in form1.fmx, i am using web.show_document(URL) function as given below.
    web.show_document('http://111.111.111.11:8889/forms90/f90servlet?form=form2.fmx&emp_no=7156&userid=scott/tiger@mysid','_blank');
    This function successfully call the "form2.fmx" but in this form the value of parameter
    "emp_no" is null even when i have passed it in the URL (as shown in the above code line)
    i.e; the value of emp_no is null.
    Note :
    7156 is the value of emp_no parameter.
    111.111.111.11 is the supposed ip address. etc.

  • ORA-04062 occurs when executing a form that contains a call to a DB package

    We have an application that is written in Forms 6i. We just recently deployed
    this to a test server. When trying to run forms that have calls to database
    packages that have a PL/SQL table as a parameter, we are getting an ORA-04062
    error. This does not occur on our development server. I did some research on
    Metalink and found lots of information about this error. One of which was NOTE
    73506.1. I thought this was our problem. I added the initialization parameter
    REMOTE_DEPENDENCIES_MODE = SIGNATURE to the init.ora file for the test server.
    This did not seem to help. I am at a loss as to what to do next. We actually
    have 3 servers that we are working with right now. Here is a summary of some
    tests that we did.
    Compiled Form against Database on Server 1. The form worked on Server 1 and
    Server 2. It did not work on Server 3.
    Compiled Form against Database on Server 2. The form worked on Server 1 and
    Server 2. It did not work on Server 3.
    Compiled Form against Database on Server 3. The form worked on Server 3. It did
    not work on Server 1 or Server 2.
    We had changed the init.ora file on Servers 2 & 3 to have the
    remote_dependencies_mode = signature. So I expected the form to work on those
    two servers (2 & 3) and not on server 1.
    We never had this problem when we were Forms 4.5, but we didn't have the PL/SQL
    table functionality then either.
    It appears to work on any schema on the Server that the form was compiled
    against regardless of the timestamp for the package on that schema.
    Has anyone else had this problem? Any help would be greatly appreciated. Thanks.

    After many long and frustrating days, I have finally figured out what the problem is.
    In the package that was failing, it was creating a pl/sql table that had 3 columns. Two of those columns were using a %TYPE as the declaration. The problem one was compounds.name%TYPE.
    It turned out that the server that was having the problem had this column's definition being VARCHAR2(50) on all of its schemas. The form was being compiled against a database that had this column set to VARCHAR2(30). The 30 length is the correct definition. We aren't sure how all the schema's on that server got messed up, but that is the problem. Once we dropped the table and recreated it with the correct definitons, the form that called the package worked as it should.
    I am a little confused as to why the %TYPE didn't work at runtime. I thougth that the purpose of using a %TYPE was so that if the column defintion changed after the code was compiled, that it would use whatever the definiton is at runtime. Is this not true?
    null

  • Long parameter list in report call crashes forms

    Hi,
    I'm using Forms6i (client server) to call a report. The report has 15 parameters. I concat all the parameter into a string l_parameter_string, then call SET_REPORT_OBJECT_PROPERTY(l_report_object, REPORT_OTHER,l_other_parameters);
    The report runs successfully, but when I close the report,forms crashes. This error seems to occur when the lenght of l_parameter_string > 160 chars, if the length of l_parameter_string < 160, the problem does not occur.
    Has anyone come across a limitation on the length of a parameter string for calling a report,
    thanks in advance

    Parameter List pl_id cannot be sent in url as you are saying,
    rather
    you have to sent each parameter separately, with parameter name that must be defined at report.
    e.g.
    http://testserver:9002/reports/rwservlet?destype=cache&desformat=html&paramform=yes&report=\\testserver\forms\L00000001.rdf&userid=globe/oracle@globe&repserver=RptSvr_globe_asinst_1&p_val1=1243&p_val2=8987
    In above url
    p_val1 and p_val2 must be defined in your report to capture the data coming from Calling Form or Report.
    Hope this will resolve your problem.

  • File Not found error when calling Form Post Method to a JSP from JSP Portlet

    I have built a set of JSP forms using post method to call other JSPs. Normally, the code looks like
    <form name="MyForm" action="MyJsp.jsp" method="post">
    I migrated the calling form containing this code to a portlet, but not the MyJsp.jsp. When I submit the form, I get a file not found in Jserv.log
    Exception:javax.servlet.ServletException: java.io.FileNotFoundException: D:\servlet\RegisterCompany.jsp (The system cannot find the file specified)
    [14/06/2001 13:59:59:679 PDT] JspServlet: unable to dispatch to requested page: Exception:javax.servlet.ServletException: java.io.FileNotFoundException: d:\oracle\isuites\apache\apache\MyJsp.jsp (The system cannot find the file specified)
    I notice that launching the calling jsp from a portlet, my opriginal context that uses ../Apache/Apache/htdocs is not being searched for the JSp. Why is this? Moreover, I try to set up an Alias in httpd.conf file to the this director and use it with the jsp in the action tag, but still get an error that my jsp servlets/Myjsp can't be found. Why is it insiting on looking at servlets context instead of htdocs.
    I have none of these issues outside of Portal30 using IAS.
    regard

    Initially, I couldn't do this unless I moved tghe jsp's up to the root directory of IAS, i.e ../Apache/Apache. Nomrally, htdocs is my doc directory for IAS. I could not do http:\\myUrl\htdocs\myJsp. If I tgried this, I got an error in Apache error logg that said can't find file ..\htdocs\htdocs\MyJsp.jsp.
    If I just tried the the URL http:\\myUrl\MyJsp.jsp with Jsp file in htdocs, I would get an error in the Jserve log that file d:\oracle\isuites\apache\apache\MyJsp.jsp could not be found. Once I moved the file MyJsp to Apache/Apache directory, it could be found using http:\\myUrl\MyJsp.jsp. Later, I delted these files and kept the ones in htdocs and they continued to work.
    I'm confused why launching pages through portal isn't consistant with Apache Standards. Where is the documentation that tells me how to configure context and aliases for pages launched from portal pages?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sue Vickers ([email protected]):
    David,
    Passing information using Portal is different than just using Apache/Jserv. Does it work in portal if you use the absolute path?
    <form name="MyForm" action="http://host.domain/MyJSP.jsp" method="post">
    Portal will not be on the same relative path as your Apache, so you may need to adjust your action somehow.
    Thanks,
    Sue<HR></BLOCKQUOTE>
    null

  • Error when exit by 'X' from called form

    I am in a form and I call another form. I delete something on the called form then click the 'X' in the right hand corner of the form without saving my change first - a message is displayed QMS-00158: Do you want to save your changes? When I click on 'Yes' a window appears with a title that says 'Errors and Warnings in this transaction' with no other information - when I select 'OK' the window remains displayed and a message at the bottom of the screen says "FRM-40738 Argument 1 to builtin GO_BLOCK cannot be null" - the only way to close the window is to click on the called form and exit it then everything is OK.
    If I save my changes first everything is fine - it is only when I try to exit the called form before saving that this happens.
    Any ideas of why?

    Hi Pradeep,
    I am facing the same issue, Can you please give me some inputs on this..
    Thanks in Advance.
    Thanks,
    Amita

  • Oracle Forms in R11i apps Q how to requery when called form is closed

    Scenario:
    I have formA. I am calling another formB from FormA. When I do update on Form B and close the control needs to come back to formA and requery (so I can see changes to the updates done in formB).
    Issue:
    I’m successfully launching formB (using fnd_function.execute) and able to update but when I close formB, I’m not able to requery as the control is not coming back to formA.
    Which event should i use when i close the FormB so i can navigate back to called FormA and Requery. ( i tried exit_form, key-exit, the formB is only closing but unable to go to formA)
    Thank you.

    I'm not 100% sure, but I believe ZOOM should work in your case. A slightly dated but valid explanation is here - http://download.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/zoom05.htm#codezoom
    Pl see the Application Developer Guide for your release of EBS at http://www.oracle.com/technetwork/documentation/applications-167706.html
    HTH
    Srini

  • Alternatives to long parameter lists when calling methods

    I've heard you shouldn't have more than 3 parameters when calling methods. What are the alternatives to long parameter lists when calling methods? Compounding parameters into new inner classes, declaring them as member fields? Which one is preferable?

    Okay, I get it. But since it's late in the day, I'll share my additional wandering thoughts. And I'll just go ahead and preemptively slap myself for doing so. Ouch! There. So the rules are more like this:
    1) Only use setters if the values in question are meant to be part of the state of an object.
    2) In general, don't let external entities directly set the state of an object.
    Which can be combined into:
    1) In general, never use setters.
    Which could be reworded to:
    1) Only use setters in non-general situations.
    Or:
    1) Only use setters when setters are a good solution...which isn't very often...generally speaking...
    Or if I were to infer when it's a good solution:
    1) Only use a setter when it is useful to the caller and has no significant negative effects on the operation of the object nor the maintainability, size, or performance of the class...generally speaking...
    Actually, you might just infer from here forward that the "generally speaking" is implicit to every rule, and is essentially the "There is an exception to every rule" rule. Which is an interesting rule because it can be applied to itself, resulting in a paradox...generally speaking...but I digress.
    And then translated back to the original topic:
    1) You can use a setter instead of a constructor argument so long as the value isn't needed at time of construction (or a default value will suffice) and it is useful for the caller to be able to use the setter and using the setter has no significant negative effects on the operation of the object nor the maintainability, size, or performance of the class.
    But this won't quite cut it either. With the input of others, we could eventually devise a very concise rule, but it will end up being so long that on one will ever read it...making it an ideal candidate to be included in a legal document. Which will eventually find it's way into a very long scroll pane with a check box at the end exclaiming that you read the document, at which you will not be able to continue unless you check the check box...at which point, what do you do? After all, you are not a liar...generally speaking...
    In summary, you could potentially use setters in some limited cases, but in the general sense, that's more of an option than a recommendation. :-)

  • Called form crashes, when called with default option

    Here is the problem statement.
    My problem is regarding the called_form built-in function of Oracle forms.
    I am calling call_form within a loop.
    call_form('schdule_task');
    In first iteration it opens the called form and when the user clicks on exit button it comes back to the calling form and starts next iteration.But in next iteration the called form comes up and crashes immediately, causing the application to crash.
    The calling form does not get a chance to become visible because by default call_form executes with 'HIDE'(hide the calling form) option.
    Now if I execute the above mentioned call_form statement with "NO_HIDE" option then the called form does not crash in any of the iteration and the loop runs fine till the end.
    call_form('schdule_task',NO_HIDE);
    What can be the problem? Is it related to call_form call or something else?

    Here is the problem statement.
    My problem is regarding the called_form built-in function of Oracle forms.
    I am calling call_form within a loop.
    call_form('schdule_task');
    In first iteration it opens the called form and when the user clicks on exit button it comes back to the calling form and starts next iteration.But in next iteration the called form comes up and crashes immediately, causing the application to crash.
    The calling form does not get a chance to become visible because by default call_form executes with 'HIDE'(hide the calling form) option.
    Now if I execute the above mentioned call_form statement with "NO_HIDE" option then the called form does not crash in any of the iteration and the loop runs fine till the end.
    call_form('schdule_task',NO_HIDE);
    What can be the problem? Is it related to call_form call or something else?

  • FRM-41045 when returning to calling form

    I'm using Designer 1.3.2 with Headstart 3.4.3 and Forms 4.5.
    The situation is as follows:
    I'm using the call_form functionality to call another form when using a form. This goes well. When I leave the called form to return into the calling form I get the error message 'FRM-41045 Cannot find item: Invalid ID'. The functionality of the form stays in tact, so my question is how can I solve this error or how can I suppress this message?

    Linda,
    My suggestion would be to try to drill down on the cause of the problem in form builder. What causes the FRM message?
    If you cannot track down to the cause and want to suppress this message, you could try to capture the event in the on-error trigger and continue without an error when this error occurs (maybe encapsuled by a helping global variable construction so that the message is not always suppressed)
    In designer/forms 6.0 or 6i you could suppress the message in two ways:
    1. By adding it to the suppress message stack (see hsdapp65.pll for an example).
    2. Add the message to the qms_message_properties table and set the suppr_always_ind to Y.
    The headstart 3.4 qms_messages table does not yet contain this column, but you might take a look at the headstart 2.1.2 procedure qms$forms_errors.add_suppress_message(<message number>); to code your own solution for it in headstart 3.4.
    Regards, Marc

Maybe you are looking for

  • Updated to 10.7.2 and sound is no longer working.

    Running a 2010 11 inch Macbook Air. I updated to 10.7.2 and now the sound doesn't work. Annoying! Anyone experiencing the same issue or know how to fix it?

  • Power Mac G5 Dual Core freezing

    Hi, Everything works fine with my G5 with 4GB RAM, except one thing: Sometimes when I work for a long time, my mouse justs freeze, The red light near the RAM slots appears and the fans start being noisy ! (LED 7-Checkstop: red-contact Apple or an App

  • Random users getting "no connection" with shared calendars

    We recently made changes to autodiscover and a new SSL cert. Although this issue has been happening before hand. It seems to be random users. Outlook 2013 and 2010. OWA works great The olkdisc.log from an affected user shows errors: 4692 0xDDECFB5C 0

  • IPhone 4 case program limitations?

    Are the the terms and conditions made to fix antena issues with At&t, or a hardware issue? Is the case program designed for helping iPhone hardware owners or At&t customers? I have doubts, because i can't get a case for my iPhone, and at least 4 Appl

  • HT1688 trying to update phone saying its 3g when i pay for 4g

    i want to fix iphone, says its in 3g mode, I pay for 4g