How to open a page from a Form and pass parameters to the form on that page

I found a similar example on this forum, but it did not work for me:
declare
l_names owa.vc_arr;
l_values owa.vc_arr;
i number;
begin
PORTAL.wwpro_api_parameters.retrieve(l_names, l_values);
FOR i in 1..l_names.count
LOOP
htp.p(l_names(i) || ' ' || l_values(i));
END LOOP;
end;
By using this method i get the parameters for the Form, like the session ID, but not the parameters for the Page that the form is displayed in.
Another method I tried:
To open a Form from a Form and pass parameters works fine like this:
--In the After processing page PL/SQL event.
declare
v_id number;
blk varchar2(10):='DEFAULT';
Begin
v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
if v_id > 0 then
htp.formOpen('PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=2649500412&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=ID&p_arg_values='||to_char(v_id),'post');
htp.formSubmit(NULL,'Upload Files');
htp.formClose;
end if;
End;
But I want to open a Page containing the Form instead of just opening the Form. Is this possible to open a Page and pass paramters to the page, and then let the form inside the Page access the passed paramters. The reason for this is that a Form cannot be based on a page template, or can it? When opening the form i want to keep the left menu, which I can if it is a page based on my template with the left menu.
Best regards
Halvor

Hi,
You can do this by calling the url of the page with the form. You can then use p_arg_names and p_arg_values to pass parameters. In the called form you can get the value from p_arg_names and p_arg_values and assign it to the form field.
You can call this code in the success procedure of the calling form.
declare
v_id number;
blk varchar2(10):='DEFAULT';
v_url varchar2(2000);
Begin
v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
v_url := <page_url>;
if v_id > 0 then
call(v_url||'&p_arg_names=id&p_arg_values='||v_id);
end if;
End;
In the called form in "Before displaying form" plsql section write this code.
for i in 1..p_arg_names.count loop
if p_arg_names(i) = 'id' then
p_session.set_value(
p_block_name => blk,
p_attribute_name => 'A_ID',
p_value => p_arg_values(i)
end if;
end loop;
This code picks up the value from p_arg_values and assigns it to the form field.
Hope that helps.
Thanks,
Sharmila

Similar Messages

  • Wesite Login and navigate to reports page and pass parameters to the forms page and download file

    Hello,
    New to C# scripting in SSIS. Everyday I download data file from a website. I need to schedule a page to include a script to auto download from the website everyday by navigation to reports page and submenu for a particular report. After I click it opens
    a webpage where I need to select my criteria and download the file to a table. This is what so far I got
    Object mySSISConnection = Dts.Connections["websiteConnectionManager"].AcquireConnection(null);
    MessageBox.Show("Success")
    I got the success message. After login, I need to navigate to select reports and then from submenu select the everyday report and pass the input parameters to the webpage and download the file and export to a tables. Any help. Not much coding I know. Learning!!
    Any help really appreciate it.
    Thanks
    Jagan

    Whoever instructed you to so is not prudent, once the report definition changed the package will break.
    This is not the proper data interexchange.
    Here is though an example on how to generate a SSRS report and download as a file: http://sandeep-aparajit.blogspot.ca/2010/02/how-to-execute-and-save-ssrs-report.html
    And then to load the file into OLEDB destination http://www.daimto.com/ssis-lesson-2-first-package/
    Arthur
    MyBlog
    Twitter

  • How to call a BW WEB template from R/3 and pass parameters to the report

    Is it possible to call a BW web template from an R/3 system, through an abap program?
    I have a BW WEB report template. This works very good, and i have 3 variables in the query.
    Now, i need to invoke the BW web template from inside of an abap in R/3..
    And i want to pass 3 variables from the R/3 ABAP to the BW WEB TEMPLATE.....
    Is possible to call BW web templates from R/3??
    PLEASE!!! HELP ME..
    Carlos E. España
    ADATSA
    [email protected]

    Thank you very much for your valuable help, i checked your suggestion and looks great. But i need to pass 3 parameters from an ABAP to the wad query report.
    How can i pass the parameters to the web template???
    another issue: My WAS (Web Application Server 6.20) is not public, is currently working for a local area network.
    The access to this report is from outside of the office, so we need to access this through the PORTAL.

  • How do i take pictures from my Voyager and put them on the pc????

    How do i take pictures from my Voyager and put them on my pc with a USB Cable????

    christinafam5 wrote:
    How do i take pictures from my Voyager and put them on my pc with a USB Cable????
    You'll need a MicroSD Card in the Voyager's Card slot.  Copy the photos from the internal memory of your phone to the SD Card.  Now you're ready to install the USB Drivers on your PC so you can connect your phone.  Download the Drivers from Verizon's web site or go to http://www.lgforum.com/resources and under the Verizon section, download the "LG_USB_Drivers.." file and install the drivers on your PC.  Next plug the Voyager into the USB port and from the "Tools" menu on the phone go to USB Connection and choose Mass Storage Mode and the SD cad in your phone will show up on your PC.  You can now copy files to and from the Voyager.

  • Urgent!! How to publish a session Info Object once and pass it to sevaral forms

    Hi , I am using JDev 3.1. I have this problem when i create several forms in Jdev, where the wizard adds a sessionInfo object for each form. It also publishes them on the Infobus every time the form is called.I tried to use 1 marster sessionInfo Object from a marster form publish it there and then pass it to the other forms, but then the rowsets don't work propally. I f any one has any ideas please post as soon as possible.

    We do have a FAQ, and the topic is part of the FAQ. Unfortunately, it seems that the FAQ is not yet available on OTN. In the meantime, I'll post some of the content here which may be useful:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    Q
    How do I share database information across multiple Frames?
    A
    This describes using a SDI with multiple frames that share common database information (for example, a master-detail application
    based on Dept-Emp where Dept information is dispayed in one frame, and Emp in another). For help in constructing an MDI
    application, please refer to the JDeveloper documentation.
    1.Create an empty project
    2.Add a class to this project (this class will contain the SessionInfo, RowSetInfo, AttributeInfo)
    3.Switch to Design mode for this class, and create the SessionInfo and RowSetInfos for your application by selecting the
    appropriate object from the Component Palette, then clicking in the Structure Pane.
    4.Set the properties of these objects as normal.
    5.Create an Application with an empty Frame
    6.In design mode, drop the desired controls into the Frame.
    7.You can set all the properties for these controls as usual except for the properties that bind the control to a datasource. To bind
    the controls to a datasource, switch to Source mode and add the appropriate code, for example:
    textFieldControl1.setDataItemName("infobus:/oracle/sessionInfo1/rowSetInfo1/Deptno");
    8.Repeat steps 6 and 7 for the second Frame.
    9.Modify the Application to instantiate the class that contains the database information, and optionally to display the second
    Frame (you may want to use a button on Frame1 that shows Frame2 instead).
    Note that if you wish to access the methods of the database information objects programmatically, you may need to make the objects
    public static.
    <HR></BLOCKQUOTE>
    Also in regards to Ali's comment that executing all these queries when the app starts, you may be interested in the following:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    Q
    How do I delay the execution of one or more queries?
    A
    By default, all queries being used by RowSetInfos in your application are executed when SessionInfo.PublishSession() is invoked.
    There are two methods to potentially improve the performance of your DAC application if your queries return a large number of
    rows.
    1) As a workaround, you can dynamically alter the Where clause of your queries so that fewer rows (or no rows) are retrieved
    initially. For example, include the condition 1=2 in the Where clause. Then, based on some interaction from the user, you can set a
    "real" where clause condition. For information on dynamically altering the Where clause, see the appropriate FAQ.
    2) A slighter cleaner method is to delay the association and subsequent publishing of the RowSetInfo until AFTER
    SessionInfo.publishSession() is invoked. The following illustrates the order in which the key steps would be performed:
    1.define the all RowSetInfo objects and their attributes
    2.parent any RowSetInfo whose queries should be executed immediately to the SessionInfo object
    3.publish the SessionInfo
    4.parent any RowSetInfo objects whose queries should be delayed to the SessionInfo object
    5.when appropriate, publish the RowSetInfo using RowSetInfo.publishRowSet(true)
    <HR></BLOCKQUOTE>
    And, finally, the above makes reference to a FAQ for how to dynamically set the where clause:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    Q
    How do I dynamically alter the Where clause of a RowSet?
    A
    There are two ways to accomplish this task. You can either call the setWhereClauseCondition on the RowSet, or you can use bind
    variables. Both of the samples below assume a TextField named textSearch in which the user has entered a search value.
    void buttonSearch_actionPerformed(ActionEvent e) {
    // Two ways of "refreshing" the RowSet with condition specified by user
    // Note that both samples use AttributeInfo.getColumnName() to get the appropriate
    // format of the column name which differs depending on whether the VO uses "Expert mode"
    // Example using dynamically created condition
    rowSetInfo1.setQueryCondition(NamerowSetInfo1.getColumnName() + " LIKE '" + textSearch.getText() + "%'");
    // Example using bind variable in condition (Note that the VO and its associated views must use ? style parameters)
    rowSetInfo1.setQueryCondition(NamerowSetInfo1.getColumnName() + " LIKE ?");
    rowSetInfo1.setQueryConditionParams(new Object[] {textSearch.getText() + "%"});
    // Execute the query in either case...
    rowSetInfo1.executeQuery();
    <HR></BLOCKQUOTE>
    I hope this helps!!!
    -- Brian
    null

  • How can I take music from an USB and transfer it to the iPod? It tells me use use itunes to sync but the music is on an USB drive. It had worked in the past. Tks

    How can I transfer music from an USB drive to the iPod. I can see the music and play it on the computer, but the iPod tells me to use iTunes to sync. The music is not on iTunes. It has worked in the past.....tks

    These are just playlists. The songs there are really not duplicates of the songs. They are just a different location for accessing them. Some playlists can be deleted, some cannot. Ones that are created by iTunes cannot be deleted. Ones that you create can be. The Recently Added and the 90's cannot.

  • How do I "Unload" music from my phone and keep it in the cloud

    I currently have 13.9 gb of music on my Iphone. How do I "unload" it from my I phone and still keep it in the cloud for future downloads to the phone. I travel alot where there is no service so need to have the flexibity to have it in the cloud and on my phone when needed.

    Welcome to the Apple Community.
    Take a look at iTunes Match

  • How to completely uninstall labview from one computer and avoid to occupy the licence

    Hi,
    Usually one labview can be installed into three computers. Now i have already installed all and am going to install one into another computer. So I have to uninstall one of three and want to know how i can completely uninstall the labview. Thanks so much for your help.
    Solved!
    Go to Solution.

    use NI License Manager to de-activate the license.  That will free up the NI database entry so that you are OK to activate the same license on a new machine (you really don't need to uninstall LabVIEW- the lack of activated license will prevent use.)  As I remember reading the License Agreement, you can do this up to 4 times per year.
    If you do not have access to the old machine (say, because it fell off the roof or something like that) call NI service and they can manually delete the activation.
    Jeff

  • Can a output from one location and pass it as the input of another location

    I encount a challenging mapping, which invloves many "cross dimensional mappings" and "logic account".
    For maintenance purpose, it is better to converse the data souce twice instead of writing line by line scripts in maploader.
    Can I take the validated reuslt from LocationA as an input for LocationB without user knowing. That's means user only need to import the file once , then click validation, and click export as usual.

    Hi,
    How do you want to import data in Location B... transparent to user? or do you want the user to import it manually?
    Option A: you can create a batch file with file exported from Location A and run batch loader
    Option B: you can copy export file to inbox folder of Location B and then the user can find the file
    HTH
    Regards

  • How to open Raw files from Canon 1100D and 650D in CS5?

    I need assistance please. I have a Canon 1100D and 650D. On Photoshop CS5 it does not recognise the 2 Cameras Raw files. What is my course of action. Help will be highly appreciated

    evjems, As per the below article, Canon EOS 1100D needs minimum Adobe Camera Raw(ACR) version 6.4 and Canon EOS 650D needs minimum ACR version 7.1
    Camera Raw plug-in | Supported cameras
    So, you should be able to open raw files of 1100D, if you upgrade your PS ( Help > Updates), but not of 650D as it needs PS CS6 and above.
    Let me know in case you still have any doubts.
    Hope that Helps!
    ~ Arpit

  • I have Windows 7, 64 bit, and I am using iTunes 11.0.1.12. I have been all through the threads and internet..how do I delete songs from my iTunes and hard drive at the same time? I have my music in the correct iTunes folder. Nothing works.

    Windows 7 64 bit
    iTunes 11.0.1.12
    I have my music in the correct iTunes folder
    In iTunes, I select songs, click "delete", then "move to recycle bin", finally, empty my recycle bin that shows the file is there
    File is still on my hard drive.
    I just want to be able to delete files out of my library and off of my hard drive at the same time. I have tried everything I have read, and there really seems to be no real answer. Somebody please help!

    Tarantulaman wrote:
    i do, but like i said it fell once and since then it hasn't been able to connect to my laptop. it acts like nothing's connected. i believe if i call the company the HDD is from they'll be able to transfer it to a new one but who knows how much they'd charge. looks like i have no choice now.
    If it were truly a backup, then the media would play on the laptop as it would be on the laptop.
    Sounds like you actually do not have a backup, instead you chose to keep your media on an external drive.
    Regardless of where the media is stored, it's always a good idea to have a backup for instances like this.

  • How do i remove MYWEBSEARCH from my PC and block it at the same time

    some how i have downloaded something that brought MYWEBSEARCH page and can not find out how to
    remove it permanently and also block.

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Question on Setting up Form and Passing Parameters

    I created a JSP custom porlet as a form. My question is how do I pass parameter between portlets? What URL should I use for the portlet?
    I can only find a jsp file example in the PDK, but there isn't any good explanation.
    Thanks.
    MC

    To pass a parameter to a portlet you create a link using the PAGE_URL and append the parameter to the link using PortletRendererUtils.parameterizeLink()
    Your parameter will be sent to all portlets on the page since it is part of the page URL.
    To prevent parameters from one portlet interfering with another instance of the same portlet, you can scope your parameter to the portlet (before adding it to the URL) using PortletRendererUtils.portletParameter().
    There is also an article in the PDK (along with samples) that describes how to do this. The article is called: "Understanding the Parameter Passing JSP samples"

  • Passing parameters accross multiple forms

    I want to call formB from formA and pass parameters while doing it.
    BLOCK2 in formA contains a textitem named EMPID and I wand to pass the value in it to textitem named EMPID in BLOCK4 of formB.
    I created a parameter list and added items and values to it.
    I use call_form with the required entries to call formB.
    ---- Code used by me for creating parameter in formA and calling formB starts here ------
    DECLARE
         PLID PARAMLIST;
    BEGIN
         PLID := GET_PARAMETER_LIST('PL');
         IF NOT ID_NULL (PLID) THEN
              DELETE_PARAMETER ('PL','P_EMPID');
         ELSE
              PLID := CREATE_PARAMETER_LIST('PL');
         END IF;
         ADD_PARAMETER('PL', 'P_EMPID', TEXT_PARAMETER, :BLOCK2.EMPID);
         CALL_FORM('C:\Project\formB', HIDE, NO_REPLACE, NO_QUERY_ONLY, 'PL');
    END;
    ----------------------- Code ends here ---------------------------------
    I added a parameter in object navigator/parameters and named it P_EMPID of type Char and length 11 (b'coz, :BLOCK2.EMPID is Varchar2(11))
    Also, I have written the following code in formB:
    :BLOCK4.EMPID := :PARAMETER.P_EMPID;
    I have written this code in the following three places of formB:
    1) WHEN-NEW-FORM-INSTANCE --> form-level trigger
    2) PRE-FORM --> form-level trigger
    3) PRE-QUERY --> block-level(BLOCK4) trigger
    Additionally, I also tried using GET_PARAMETER_ATTR to get the parameter value in WHEN-NEW-FORM-INSTANCE of formB. It is as follows:
    -------- Code for retreiving parameter in WHEN-NEW-FORM-INSTANCE of formB starts here ---------
    :BLOCK4.EMPID := :PARAMETER.P_EMPID;
    DECLARE
         P_EMPID VARCHAR2(11);
         PLID PARAMLIST;
         PARAM_TYPE NUMBER;
         CURRENT_VALUE VARCHAR2(11);
    BEGIN
         PLID := GET_PARAMETER_LIST('PL');
         IF NOT ID_NULL (PLID) THEN
              GET_PARAMETER_ATTR('PLID','P_EMPID',PARAM_TYPE,CURRENT_VALUE);
              :BLOCK4.EMPID := CURRENT_VALUE;
         END IF;
    END;
    ----------------------- Code ends here ---------------------------------
    In spite of all the above, when formB tries to start, I get FRM-47023 No such parameter named P_EMPID exists in form formB
    What do I need to do?
    Thanks,
    Preethi

    I suppose you shouldn't try to extract parameter value from parameter list in WHEN-NEW-FORM-INSTANCE as Forms do it for you. Just use :parameter.P_EMPID. Of course, you may also use global variable or some package variable (if sharing library datf), or record group, created with GLOBAL_SCOPE.

  • How to open "All Tabs" from previously shown pages history?

    Hi,
    How to open "All Tabs" from previously shown pages history. I am not asking about "Reopen from last session". I am asking about how to open all tabs from previous webpage links from a past date from history, currently its allowing me to select each page link manually by clicking it.
    Thank you!

    Select the first item you wish to open, scroll down to the last, Shift-click that one & all those between should be selected too. Double-click on them & they should all start to open... or you can copy & then drag/paste into a new or existing bookmarks folder.

Maybe you are looking for

  • X1 Carbon Won't start - with bonus flashing lights !!

    Hi everyone. Had my X1 Carbon (2014) for about 3 days now. All of a sudden it has a special moment. The display starts to show  hundreds of horizontal black lines each about 1.5cm in length. The very helpful windows message shows a Sad Face and the m

  • MainStage 2.1 release (64-bit)

    MainStage 2.1 Update This update delivers improved compatibility and numerous fixes. Issues addressed include: Support for 64-bit native mode Compatibility with 64-bit Audio Unit plug-ins Improved compatibility with MainStage 1.x documents Multiple P

  • Send FYI notification after workflow is approved

    I need to configure the system to trigger an FYI notification after a termination workflow has been approved by all approvers. This notification is based on checking the terminated employee's record for a credit card indicator. The recipient of the e

  • BrowserLab is showing a different layout than my computer

    I have Firefox 3.6 on my computer, testing the page in BrowserLab is showing a different layout than it shows on my computer. I'm wondering now, what is the real look of the web page. If you send me an email, I will send you a link.

  • Photo could not be found Problems - can anybody help

    On opening iPhoto I get  an error message saying 'The photo .... could not be opened because the original could not be found'. When I cancel another pops up and there appears to be hundreds of them. iPhoto is frozen and the only way to get out is For