Passing Parameters via a button to a form

I have a form on a page based on a simple table with with the following fields
Code, Name and Address
I would like to put a button on this form which will then open a separate page which contains a form based on a different table which has the following fields
Code, Notes
When I click on the button I would like it to open the second form in edit mode if a record already exists.
So I need to pass the value of the code field in form 1 to query in the record in form 2.
I am very new to Apex and not sure how to do help much appreciated.

Hi,
As far as I know the default behavior is that if you pass the primary key to another form the record is opened in 'edit' mode, if you pass other fields than the PK to another form the form is opened in 'add new record' mode and the PK is generated when you save the record.
So if you can do a lookup of the PK before you go to the second form and call the form with this PK you should be able to edit.
Not sure if that answered your question though... :)
Ciao
Bas

Similar Messages

  • Pass parameters via POST in WDPortalNavigation.navigateAbsolute method

    Hi,
    how can i pass parameters via POST method from WD Application using WDPortalNavigation.navigateAbsolute method
    Should i pass the parameters as part of the NavigationTarget URL or they should be passed via different parameter?
    Thanks,
    Yuly Roberman

    What is the procedure to pass parameters via POST using WebDynpro ?
    I am required to pass XML Data via POST.
    I have gone through the following :
    a) http://help.sap.com/saphelp_nw04/helpdata/en/9e/a073001903c9419592b14c2aa63669/content.htm
    b) Inter Navigation Application in Web Dynpro
    However, I could not find any reference to do the same via POST.
    Can anyone throw light on the same ?
    Best Regards,
    Subramanian V.

  • Passing Parameters via Post Method from Webdynpro Java to a web application

    Hello Experts,
    I want to pass few parameters from a web dynpro application to an external web application.
    In order to achieve this, I am referring to the below thread:
    HTTP Post
    As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
    But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
    Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
    I am using SAP NetWeaver Developer Studio Version: 7.01.00
    Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
    Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
    Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
    Thanks & Regards,
    Anurag

    Hi,
    This is purely a java approach, even you can try this for your requirement.
    There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
    if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
    If it is Asynchronous  means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
    here you go and find the way to implement Asynchronous  scenario,
    http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
    http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
    http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
    Thanks & Regards
    Rajesh A

  • How to pass parameters to concurrent program report from Forms Personalizn

    Hi All,
    I am trying to run a report from a menu entry in the AP Invoice entry form. For this I have done the necessary steps of creating the menu entry and am assigning the values for the 2 parameters to a global variable and then launching SRS form.
    In SRS form created an action to assign the global variable value to work_order.parameters. I can invoke the SRS OK except that my 2 parameter values appear concatenated in the first parameter itself and are not getting assigned to each of them seperately.
    my global variable assignment is as follows :
    =${item.inv_sum_folder.vendor_name.value}||'.'||${item.inv_sum_folder.vendor_site_code.value}
    and my work_order.parameters value assignment is as follows :
    =select nvl(${global.kmg_invalid_po_gv.value}, ${item.work_order.parameters.value}) from dual
    It passes parameters OK if i replace custom report with standard AP report. I also made my parameters to be free text (17 character value set) to not validate input, but still no joy.
    Any ideas why this is not working ?
    Thanks in advance.
    Shankar

    As Francois said in his answer:
    e.g.:Form A call FORM B
    In form A (Button's or menu's Trigger code)
    DECLARE
    param_list_id  ParamList;     
    BEGIN
    param_list_id := GET_PARAMETER_LIST('EMPNO');
    IF NOT ID_NULL(param_list_id) THEN 
    DESTROY_PARAMETER_LIST(param_list_id);
    END IF;
    param_list_id := CREATE_PARAMETER_LIST('empno');
    ADD_PARAMETER(param_list_id, 'EMPNO', TEXT_PARAMETER, EMPNO);
    CALL_FORM ( 'FORM B.FMX',HIDE,DO_replace,NO_QUERY_ONLY,param_list_id);and in FORM B create a parameter EMPNO (e.g.: varchar2) in node tree(parameter) and at Form level (e.g. WHEN NEW FORM INSTANCE read parameter-
    or you could create a GLOBAL variables
    or, still,Global procedure in LIB
    Regards

  • Passing parameters to oracle rports from oracle forms

    Dear all,
    Can anyone tell me how to pass parameters from oracle forms 10g to oracle reports 10g ,i want to hide my connection string and parameteres while open the report through web
    can anyone plese help me out to solve this problem.

    Hi,
    I had trail as advised, but anticipated results were not observed.
    Here is the named configuration in formsweb.cfg
    [NMPT]
    form=D:\NMPT\FORMS\FHOPENFORM.fmx
    userid=hmsprod/hmsprod@hindalco
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    imageBase=CodeBase
    separateFrame=True
    lookandfeel=oracle
    logo=none
    splashScreen=no
    pageTitle =Test Application
    background=no
    colorScheme=blue
    archive_jini=f90all_jinit.jar,icons.jar,frmwebutil.jar,jacob.jar
    archive=f90all.jar
    height=768
    width=1024
    envFile=nmpt.env
    otherparams=useSDI=yesLOCATIONID=NMPT # new parameter which I want to access in my form
    the URL is as follows:
    http://MyPC:8888/forms90/f90servlet?config=NMPT
    But I am unable to open the login page

  • Passing parameters from portlet reports to portlet forms

    Hi,
    I'm tring to pass parameters between a Report displayed as a portlet in a page ( page 1) and a form displayed in other page ( page 2).
    The problem is i can't do this.
    I only can pass parameters from a report ( running as normal or in a portlet displayed in a page) to a form running "normal" by using application links. Can i do this between a report that show's me every employees of scott.emp table. Then when i click on each employee, it open's me another page with the portlet form of the specified employee.
    I'm not sure i made myself clear. Please send me some feedback.
    Pedro

    I have the same problem. Please let me know if this could be done.
    In particular my form is a type of "Form on Table/View."
    Thanks
    Henry

  • Passing Parameters via OpenDocument URL to OLAP Analysis .amw

    Hello together,
    did anyone ever manage to successfully create an OpenDocument URL which passes parameters to an existing analysis workspace .amw?
    We already linked to other .crp and BEx reports, but maybe .amw needs some special syntax..
    I appreciate every hint
    Thanks
    CR Enterprise 4.0 SP2 in usage

    Hi,
    I can confirm: The situation for A-OLAP is the same as it was for Voyager.
    Analysis, like voyager, supports outbound opendoc params (ie pass context to WebI/CR) but not inbound params. The only exception is that you can specify which Voyager workspace to open.
    Voyager/analysis supports SAP connection parameters on opendoc, but this is a manual selection in prompts. You cannot programmatically set connection variables.
    Today we also support "Jumplinks"... a feature in both Voyager and A-OLAP that allows contextual information to be passed to a pre-defined Crystal Report.
    For BI4.1 (end 2012) SAP plans to make A-OLAP more open. This includes supporting SAP's Report-Report-Interface (RRI) and extending the OpenDocument parameters beyond just the workspace name that is supported today.
    Regards,
    H

  • Calling a function and passing parameters via Variables

    I've got an XML file that is loading in data and is calling functions.
    I've figured out how to call the methods from classes with variables set from the XML file:
    var functionToCall:String = xml.functions.func[0].to_fire.toString();
    myClass[functionToCall]();
    This calls the function perfectly.
    I was wondering if there is anyway to pass parameters into the function as well through variables.  Some functions may have no parameters, some functions could have 5... so the xml could be like this:
    <functions>
       <func>
        <to_fire>function1</to_fire>
        <param>
         <value>true</value>
         <type>Boolean</type> <!-- Must be set to Boolean, String or Number -->
        </param>
       </func>
       <func>
        <to_fire>function2</to_fire>
        <param/>
       </func>
       <func>
        <to_fire>function3</to_fire>
        <param>
         <value>false</value>
         <type>Boolean</type> <!-- Must be set to Boolean, String or Number -->
        </param>
        <param>
         <value>My String Value</value>
         <type>String</type> <!-- Must be set to Boolean, String or Number -->
        </param>
        <param>
         <value>10</value>
         <type>Number</type> <!-- Must be set to Boolean, String or Number -->
        </param>
       </func>
    </functions>
    whats the best way to set something like this up?

    how would I set something like that up?
    in the class:
    public function myFunction(_param1:String, _param2:Number):void {
    then to call it, would ParamTypes be cast as an array or object or something?
    var functionVariable:String = "myFunction";
    myClass[functionVariable](??);
    Or do I structure the XML file in some way to pass in the information?

  • Passing Parameters to Discoverer report from ORacle Forms

    Hi All,
    Can I pass a value to a parameter defined in the discoverer page from a D2k form? I want to call a discovere page from fmb while passing a parameter.
    This is extremely urgent for me. Pl help .
    Thank you and Regards,
    Vaibhav M. Shah.

    Hi ,
    Are you saying I should create a new workbook that is not based on my custom folder for setting and showing the context value? You don't need to create a new workbook, you can just create a new worksheet in your report workbook, but you will need two sheets to use contexts. The sheet that sets the contexts should not be based on your custom folder, but on a folder that returns a single row. You cannot set and check contexts in a single SQL statement, so you have to have 2 worksheets.
    You can default the contexts using a trigger or initialisation SQL so that the user only has to set the contexts if they are not using the defaults.
    Rod West

  • Passing parameters from report portlet to a forms portlet

    Hello All,
    I am trying to link data in a report to a form. Here's the gist: I click on a record in the report and the data is passed to a form in update mode. The problem is that when I click on the record the data is not passed right away to the form. Only after clicking the record again or refreshing the page does the data get passed. Any ideas? I'm sure it's something very simple that I'm missing. Here's the code below:
    report code:
    select ''||empno||'' empno_link, empno, ename, job, mgr, hiredate, sal, comm, deptno
    from scott.emp
    set_context_refresh procedure:
    procedure set_context_refresh
    p_context in varchar2,
    p_context_value in varchar2,
    p_page in varchar2)
    is
    v_Session portal30.wwsto_api_session;
    begin
    v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
    v_Session.set_attribute(p_context, p_context_value);
    v_Session.save_session;
    owa_util.redirect_url('http://jvic9/pls/portal30/url/page/'||p_page);
    end set_context_refresh;
    form code:
    /* ... before displaying the page section */
    portal30.empcust.autoquery_emp_form(p_session);
    autoquery_emp_form procedure:
    procedure autoquery_emp_form
    p_session in out portal30.wwa_api_module_session
    is
    v_RowID varchar2(100);
    v_Session portal30.wwsto_api_session;
    v_empno varchar2(40);
    begin
    v_Session := portal30.wwsto_api_session.load_session('CONTEXT','SESS_EMP');
    v_empno := v_Session.get_attribute_as_varchar2('EMPNO');
    begin
    select rowidtochar(rowid) into v_rowid
    from scott.emp
    where empno = v_empno;
    end;
    p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_CALLED_FROM_LINK',p_value=>'ROWID');
    p_session.set_value(p_block_name=>'DEFAULT',p_attribute_name=>'_ROWID',p_value=>v_rowid);
    portal30.wwa_api_module_event.do_event('DEFAULT','QUERY_BOTTOM',1,'ON_CLICK',True,'',p_session);
    p_session.save_session;
    end autoquery_emp_form;

    Hi John,
                  If Not CRRpt.ParameterFields("AgeType") Is Nothing Then
                        CRRpt.ParameterFields("AgeType").CurrentValues.Clear()
                        Dim ParamValue As new CrystalDecisions.Shared.ParameterDiscreteValue
                        ParamValue.Value = AgeType.ToString 
                        CRRpt.ParameterFields("AgeType").CurrentValues.Add(ParamValue)
                    End If
    Note that the ParamValue.Value should be assigned with exact same data type as you declared it in CR.
    If it is string, Convert your Variable to string first.
    If it is date, make sure you are passing a date variable.
    and so on...
    Regards
    Edy

  • Passing Parameters via HREF link

    Hello All,
    I would like to pass a parameter to
    a portlet using an:
    <a href="portlet ?id=somevalue"></a>
    I have searched the support groups and
    found no answer except the often repeated
    "Look at the Parameter passing Guidelines".
    I have read the guidelines, looked through
    the sample code and it still makes no
    sense.
    Seems like this would be an easy method
    in the JPDK but I cannot get anything to
    work that I have tried.
    Thanks in advance for any help!

    Could you install the sample portlets?
    Besides the Parameter Passing Guidilenes article there's another one that might help you: "Understanding the Parameter Passing JSP Sample".
    In the Training Center on the Community Home tab on Portal Studio, you find several online eClasses. The Building Java Portlets covers among others the parameter passing services. You can also download the example portlet.
    If you're more specific what your problem is, we could provide you more help.
    Regards,
    Peter

  • Passing parameters via command line

    I've been asked to write a routine in LabVIEW that will control an
    instrument. The only problem is that this routine will be called by a
    different piece of software (3rd party software that we've bought)and
    we need to pass a parameter. The source application will allow
    switches in the command line, but that is the only way. Is there a way
    Labview can accept this ??

    Hi,
    I'll mail you a vi to do this. Note that it will only work if you have an
    application. (If not, you'll get the command line from labview...)
    Regards,
    Wiebe.
    "Robert Barker" wrote in message
    news:[email protected]..
    > I've been asked to write a routine in LabVIEW that will control an
    > instrument. The only problem is that this routine will be called by a
    > different piece of software (3rd party software that we've bought)and
    > we need to pass a parameter. The source application will allow
    > switches in the command line, but that is the only way. Is there a way
    > Labview can accept this ??

  • Unable to pass parameters from APEX to Oracle EBusiness suite R12 forms

    Hi
    We are trying to access a standard Oracle EBusiness form i.e. service request and are invoking this Form through a link from APEX.
    We are trying to pass parameters via this URL
    http://abc.oneapps.com:8010/OA_HTML/RF.jsp?function_id=2037&resp_id=50952&resp_appl_id=170&security_group_id=0&lang_code=US&otherparams=INCIDENT_ATTRIBUTE_15=5206
    The EBusiness suite form is launched correctly but we are not able to read the parameter value through custom.pll code.
    if (event_name = 'WHEN-NEW-BLOCK-INSTANCE') then
         IF form_name='CSXSRISR' and block_name='SR_BSC_QUERY' then
              FND_MESSAGE.DEBUG('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG(' ');
              --FND_MESSAGE.DEBUG(:PARAMETER.INCIDENT_ATTRIBUTE_15);
              lC_incident_number :=name_in('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG('Incident Number'||lC_incident_number);
              IF lC_incident_number IS NOT NULL THEN
                   copy(lc_incident_number,'SR_BSC_QUERY.INCIDENT_NUMBER');
              END IF;     
              FND_MESSAGE.DEBUG(' ');
         END IF;
    END IF;
    Is this the right way of passing the parameters?
    all technical inputs are welcome.
    Regards
    Sam

    Hi
    We are trying to access a standard Oracle EBusiness form i.e. service request and are invoking this Form through a link from APEX.
    We are trying to pass parameters via this URL
    http://abc.oneapps.com:8010/OA_HTML/RF.jsp?function_id=2037&resp_id=50952&resp_appl_id=170&security_group_id=0&lang_code=US&otherparams=INCIDENT_ATTRIBUTE_15=5206
    The EBusiness suite form is launched correctly but we are not able to read the parameter value through custom.pll code.
    if (event_name = 'WHEN-NEW-BLOCK-INSTANCE') then
         IF form_name='CSXSRISR' and block_name='SR_BSC_QUERY' then
              FND_MESSAGE.DEBUG('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG(' ');
              --FND_MESSAGE.DEBUG(:PARAMETER.INCIDENT_ATTRIBUTE_15);
              lC_incident_number :=name_in('PARAMETER.INCIDENT_ATTRIBUTE_15');
              FND_MESSAGE.DEBUG('Incident Number'||lC_incident_number);
              IF lC_incident_number IS NOT NULL THEN
                   copy(lc_incident_number,'SR_BSC_QUERY.INCIDENT_NUMBER');
              END IF;     
              FND_MESSAGE.DEBUG(' ');
         END IF;
    END IF;
    Is this the right way of passing the parameters?
    all technical inputs are welcome.
    Regards
    Sam

  • How does customization form pass parameters?

    I need to create my own customization form so it can include linked LOVs and was wondering how the default customization form passed the LOV values back to the calling component.
    I put two copies of the same report on a page and called the customization form for each report selecting different LOV values. Since each report displays the correct results based on the LOV, I assume page parameters are not being used and neither is p_arg_values/p_arg_values.
    Can anyone tell me how this information is being passed to the individual reports?
    Thanks, Larry

    Sharmila,
    I guess I'm confused, the parameters that are selected on the Customization screen are persistent across different login sessions.
    Is is my understanding that passing parameters via p_arg_names/p_arg_values on the URL would not carry over from one logon to another or even allow me to navigate to another page and then back to the "customized" screen and still have the customizated values applicable?
    Are you saying that once I call a page and pass a name/value parameter pair to the page, that the paramter values remain in affect for subsequent calls to the same page where the name/value pair isn't being passed?
    Doesn't the customization screen use the wwpre_api_name and wwpre_api_value methods to pass parameters to components located on a page via the user preference storage?
    When I look at the URL associated with the customization link on my portlets I see the preference_path being passed to the customization form.
    Larry

  • Passing parameters to web based oracle forms

    Hi,
    How can I pass parameters from web page to oracle form applet? OR is there anyway i can know (within a form) if that form is run from a client/server or from web. This is just to set some parameters depending on the condition: client/server or web application.
    thank you

    To know if you are on the Web use the get_application_property built-in, check out the online help for it.
    To pass parameters - if you are using the forms servlet you can pass parameters on the URL that calls your Forms application.

Maybe you are looking for