Pass parameters to a dynamic page with MULTIPART

Hello everybody,
I'm facing with a problem that I still can't resolve...
For some reasons I need to use a Dynamic Page as a form, so I create an html form (which contains also an <input type="file" name="file_test">) that call the same page with enctype="multipart/form-data".
When I call the page to save the data, I can read all the parameters with :parameter_name, but I can't read the content of the file. If I try to get :file_test it contains only a file name.
How I can get:
1) the mime format
2) the content of the file (binary)
and then save it in a blob?
Thank you in advance for your help...

You can use sessions to pass values from one page to another.
In page A you can add a value:
v_user_session portal.wwsto_api_session;
v_user_session := portal.wwsto_api_session.load_session(
p_domain => 'yourDomain',
p_sub_domain => 'sub');
v_user_session.set_attribute(
p_name =>'name',
p_value => 'YourValue'
v_user_session.save_session;
The p_domain and p_sub_domain can be choosen freely but you must know that they have to be the same if you want the retrieve the value from page2:
v_user_session portal.wwsto_api_session;
v_user_session := portal.wwsto_api_session.load_session(
p_domain => 'yourDomain',
p_sub_domain => 'sub');
yourValue := v_user_session.get_attribute_as_varchar2('name');
This is how you can pass values without posting or without adding them to the URL.

Similar Messages

  • Passing parameter to a dynamic page portlet

    We need to create a drill-down report using pl/sql, but it's not working when we passed a parameter. We did the following:
    1. Create a package and a store procedure.
    2. The store procedure creates the report and the look-and-feel of the report.
    3. Create a dynamic page with the following code:
    <ORACLE>DECLARE
    BEGIN
    mvdata.interbay_ops_rpts_pkg.ops_detail_procssr_rpt(p_processor);
    END;
    </ORACLE>
    4. Set the parameter to "public" in the "customization form display option".
    5. Create a page group and a page.
    6. Clicked on properties of page and then clicked on the parameter tab.
    7. Added a parameter named "p_processor_code"
    8. We also added the portlet parameter under the "portlet parameter values" and set the parameter to be a page parameter and select the name of the parameter and click OK.
    9. Launch the URL: ttp://iasdev01.bftg.com:7782/pls/portal/url/page/PG_GRP_DEVELOPMENT/PG_OPS_DETAIL_PROCESSOR?p_processor_code=DUBOIS.
    10. When we tried to launch the application we get an empty report(doesn't execute the parameter).
    11. Edit the page and went into layout mode.
    12. Click on the "edit default" of the dynamic page portlet and put the value of the parameter and it works without any problems.
    I don't understand why it doesn't take the parameter with the page url. Any help is greatly appreciated.

    I had more luck with PL/SQL items. Try something like this:
    declare
    zip varchar2(10);
    begin
    zip := portal.wwpro_api_parameters.get_value('zip', 'a');
    if zip='94065' then
       ... do something ...
    end if;
    end;Peter

  • Dynamic Page with Multiple Checkboxes

    I am trying to get a dynamic page to pass the checked value of multiple checkboxes to the submit proceedure. Can anyone tell me what I am doing wrong?
    Thanks in advance,
    Pam -------------------------------------------------------------------------
    Dynamic Page:
    <HTML>
    <FORM action="scott.brsubmit" method="POST">
    <TABLE border CELLPADDING=0 CELLSPACING=0>
    <ORACLE>begin
    for c1 in (SELECT rowid,ename, job, bonus from scott.bonus_approval where approved is null)
    loop
    htp.p('<tr><td><FONT FACE= ARIAL SIZE=1>');
    htp.p(c1.ename);
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1>');
    htp.p(c1.job);
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1>');
    htp.p(c1.bonus);
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1><B>');
    htp.p('<input type="hidden" name="p_ename" value='||c1.ename||'>');
    htp.p('<input type="checkbox" name="p_cb" value="Y">');
    htp.p('</TD><td><FONT FACE= ARIAL SIZE=1><B>');
    htp.p('<input type="checkbox" name="p_cb2" value="N">');
    htp.p('</td></tr>');
    htp.p('<br>');
    htp.p('
    end loop;
    HTP.P('</table>');
    htp.p('<p>');
    htp.p('<input type=submit value="Save" name="p_action" >');
    end;
    </ORACLE>
    </form>
    </BODY>
    </HTML>
    Procedure:
    (p_ename in portal.wwv_utl_api_types.vc_arr, p_cb in portal.wwv_utl_api_types.vc_arr, p_cb2 in portal.wwv_utl_api_types.vc_arr, p_action varchar2)
    as
    begin
    if p_action = 'Save' then
    for i in 1..p_ename.count loop
    if (p_cb(i) = 'Y') then
    update scott.bonus_approval set approved = p_cb(i) where ename = p_ename(i);
    COMMIT;
    else
    if (p_cb2(i) = 'N') then
    update scott.bonus_approval set approved = p_cb2(i) where ename = p_ename(i);
    COMMIT;
    END IF;
    end if;
    end loop;
    end if;
    htp.print('<script language="JavaScript">');
    htp.print('function display() {
    var msg = "\nRecord Saved Successfully\n";
    alert(msg)');          
    htp.print('}');
    htp.print('display()');
    htp.print('</script>');
    exception
    when others then
    htp.print('<script language="JavaScript">');
    htp.print('function display2() {
    var msg = "\nRecord Not Saved.\n";
    alert(msg)');          
    htp.print('}');
    htp.print('display2()');
    htp.p('Not saved');
    htp.print('</script>');
    end;

    Hi.
    I have a dynamic page, with a bind variable :v_day. On the customization screen the user can select one or more days of the week, or all days. I use this also in a report and then it works ok. In the where clause i use:
    and rtrim((to_char(date_time,'DAY'))) IN :v_day
    Date_time is a tablecolumn (date).
    When i add this line in the select script from the dynamic page, i get error:
    : ORA-06550: line 1, column 2443:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 2606:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & - + / at mod rem <an exponent (**)> and or ||
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 3236:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Thanks.

  • Pass parameters from JSP Dyn Page to WDJ Application

    Hi,
    I am trying to pass parameters from my JSPDyn Page to WDJ Application.
    I am using NWDS 7.1 EHP1
    My code is :
    function to_WEBDYNHK()
          EPCM.relaxDocumentDomain();
          EPCM.doNavigate
        ('ROLES://pcd:portal_content/Himanshu.Himanshu/TestDynUIApp?DynamicParameter="hkparam%3Dqwertyuio"');
    This method is being called on click of a button.
    hkparam is the parameter in question.
    The JSPDyn page is an iView and the WDJ application is a page and both have been assigned to a role.
    In the properties of the WDJ Page, I have removed DymanicParameter from "Do not Forward These Parameters To Web Dynpro" property.
    However I am getting null as the value of hkparam in my WDJ application.
    The code used is :
    IWDRequest request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
           String param1= request.getParameter("hkparam");
    What seems to be missing here.
    Please help.
    I went through the documentation on SDN but it does not seem to help.
    TIA,
    Himanshu

    Hi Himanshu,
    Try this code.
    EPCM.doNavigate("ROLES:portal_content/Himanshu.Himanshu/TestDynUIApp?hkparam=Dmypass1123")
    if the parameter is hkparam and the value to be passed is Dmypass1123. You need not change any design time property of the WD page, and WDProtocolAdapter should retrive the parameter.
    Regards,
    Vishweshwara P.K.M.

  • Passing value to a dynamic page from a pdk-java portlet

    Hi everyone.
    I'm quite new to portlets, so I'll try to present my problem as well as I can:
    I have a PDK-java portlet in which I read some information (like name, location) about user.It works ok.Now I want to use that infomation in another portlet, which is build as a Dynamic Page ( with portletbuilder). How can I do this? I was thinck at session variables, but....
    Thanks a lot

    have you ever got any response??
    i'm facing the same problem.
    thanks

  • Dynamic pages with WebCenter Sites CSElements

    We are using the benefits of WebCenter Sites 11g regarding the possibilities of create the templates and the final user be able to compose the the pages. By the other hand, we have the necessity to create dynamic pages with business logic and interaction with database or web-services with WebCenter Sites templates. We expect to be able to embed these dynamic pages inside CSElements. With all of this in mind, what is the best approach? I'd like to know if our solution to use the Spring 2.5 + JPA 2 is a good a approach to reach our necessity/requirement or WebCenter Sites 11g has another better way to do that.

    You can add your own business logic to CSElements, or create your own tag libraries and add your logic there. If you're using a framework like the GSF you can call an action from your element as well. In all cases, you are free to use whatever tools you like to help you implement your business logic (provided that it is compatible, which you've already learned about. :-). Just be careful that you don't use the same database connection pool that Sites uses or you may run out of connections. Also, pay attention to how you are caching your pages and pagelets when you are calling external services or accessing external resources.
    Regards
    Tony

  • Read parameters in a dynamic page portlet?

    Hi,
    Is it possible to read input parameters in a dynamic page portlet?
    Am I missing something if I want to read the input_parameter?
    <oracle>
    ftp.p(:input_paramter)
    </oracle>
    Thanks a lot.

    Hi,
    It is not possible to read the input parameters in the <oracle> tag. You can read it in the additional plsql code. If you have
    to access the parameter deptno then do this in the additional plsql code section.
    for i in 1..p_arg_names.count loop
    if p_arg_names(i) = 'deptno' then
    htp.p(p_arg_names(i));
    end if;
    end loop;
    Thanks,
    Sharmila

  • Dynamic page with multiple select in where clause

    Hi,
    I have a dynamic page and in the where-clause, i have a bind variable. In a report i use for instance
    and rtrim((to_char(date_time5,'DAY'))) IN :v_day
    That works ok in a report. But it does not work in a dynamic page.
    what code is needed to work with a multiple select box on the customize screen for a dynamic page?
    Thanks.

    Hi.
    I have a dynamic page, with a bind variable :v_day. On the customization screen the user can select one or more days of the week, or all days. I use this also in a report and then it works ok. In the where clause i use:
    and rtrim((to_char(date_time,'DAY'))) IN :v_day
    Date_time is a tablecolumn (date).
    When i add this line in the select script from the dynamic page, i get error:
    : ORA-06550: line 1, column 2443:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 2606:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & - + / at mod rem <an exponent (**)> and or ||
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 3236:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Thanks.

  • Cannot create dynamic page with cursor based on linked table

    I get the following error when i try to create a dynamic portal page that uses a pl/sql cursor:
    ORA-06550: line 1, column 24:
    PL/SQL: ORA-00980: synonym translation is no longer valid
    ORA-06550: line 1, column 24:
    PL/SQL: SQL Statement ignored (WWV-11230)
    Failed to parse as REPORTS - DECLARE CURSOR C1 IS SELECT * FROM
    [email protected]; BEGIN FOR R1 IN C1 LOOP HTP.P(','||'<BR>');
    END LOOP; END; (WWV-08300)
    Dynamic page:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    declare
    cursor c1 is
    select * from [email protected];
    begin
    for r1 in c1 loop
    htp.p('hello<br>');
    end loop;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    When i use the sql query from the cursor in the page below, i get no errors:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>select * from [email protected]</ORACLE>
    </BODY>
    </HTML>
    I tried a dynamic page with a cursor on session_roles and had no problems. I assume that there is an issue with the database link or the privileges. The queries seem to get executed under portal_public;
    Oracle Portal Version: 9.0.4.0.99

    I get the following error when i try to create a dynamic portal page that uses a pl/sql cursor:
    ORA-06550: line 1, column 24:
    PL/SQL: ORA-00980: synonym translation is no longer valid
    ORA-06550: line 1, column 24:
    PL/SQL: SQL Statement ignored (WWV-11230)
    Failed to parse as REPORTS - DECLARE CURSOR C1 IS SELECT * FROM
    [email protected]; BEGIN FOR R1 IN C1 LOOP HTP.P(','||'<BR>');
    END LOOP; END; (WWV-08300)
    Dynamic page:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    declare
    cursor c1 is
    select * from [email protected];
    begin
    for r1 in c1 loop
    htp.p('hello<br>');
    end loop;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    When i use the sql query from the cursor in the page below, i get no errors:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>select * from [email protected]</ORACLE>
    </BODY>
    </HTML>
    I tried a dynamic page with a cursor on session_roles and had no problems. I assume that there is an issue with the database link or the privileges. The queries seem to get executed under portal_public;
    Oracle Portal Version: 9.0.4.0.99

  • Passing parameters in a html page using xwd_tmppg.create

    We are in the initial stage of Developing a OLAP Web Application using
    Oracle Express Web Agent 6.3.2,Oracle Express Administrator6.3.2.
    Flow of our screens are:-
    We have a login screen that authenticates user entry to access his assigned role screen.Based on the role the user selects we will be listing out the analysis in a screen that the user could access.
    Express Programs are used to create Role and Analysis screen.
    User logged information is passed from login to role screen and to
    analysis screen using XWD_APPPG.CREATE that accepts parameters.
    Moreover this function can only be used to create html page with out
    data views.
    Now let us come to our problem-
    We need to take the user from analysis screen to detailed data view screen that shows the OLAP cube with a back & exit button.As explained earlier you need to use the function XWD_TMPPG.CREATE to create dataview.It is not possible to pass parameters through this function.This function accepts .html as the only parameter.But we need to pass the userid info to get back to analysis screen for the user to select the next analysis.I need the user logged info available in the template file.
    Is there any solution for this problem or any other approach to capture the user logged info in the template file???

    Hi Aneel,
    Thanks for your informative suggestion on how to receive data from
    previous page on to the template page using LOCATION.SEARCH.SUBSTRING
    function.
    I could very successfully get the userid information by implementing
    this method within the SCRIPT boundary.
    I also want to pass this value to a express program embedded
    within the <!--EXPRESS call foot(userid)--> so that it will enable the
    user to go back to List of analysis page.her my footer program will
    inturn call the Analysis Page with the userid information.That's my
    whole idea.
    I tried the following methods to acieve my end result-
    1)Tried to store the value in a local variable in the template & passed
    it to the express program -- Error thrown was "userid is not attached in
    the database"
    2)Directly specifed location.search.sunstring in the express program..
    Still the same error was thrown
    3)Thought of storing the value in the name of hidden object .Still this
    will not work out because i need to declare the object in the FORM..
    Moreover the value is avialable wihin the JAVA SCRIPT range.Out of this
    range template is not able to identify this value.
    Any idea Aneel form your end.
    Can you let me know how to use hidden object in achieving the result.
    I have been working very hard for quite sometime.
    Advance thanks.
    Nanda Kishore

  • Passing parameters from one OAF page to another OAF PAge

    Hello
    I was wondering, if there is a possibility of passing request parameters from one page to another page in EBS ( E-Business Suite).
    I tried using the following
    a) PageContext.putParamater ( "MyParamater", "ParamaterValue")
    b) I addded the above line of code by extending an page controller of the OAF page and personalized the page
    When I am trying to retrieve the value by getParameter() in the next page. I am also unable to get access to the parameter in the next page.
    I am trying the above code while trying to create expenses in I-Expense module...I would like to pass the ReportHeaderId from one page to another page for customization purposes. I Am not able to get ReportHeaderId in the ReviewPAge...There are no Business Objects in the Review page...hence trying the putParameter idea.
    Any help will be highly appreciated
    Thank You

    What is the source of the parameter? If the source is a VO, you can use the method I have specified in my previous post regarding updating the button properties. For example, you can include the param in the destination URL of the button as such:
    OA.jsp?page=/xyz/oracle/apps/.../myPG&retainAM=Y&addBreadCrumb=Y&myParam={@ParamSource}
    where ParamSource is an attribute from a VO.
    You can get this value via oapagecontext.getParameter()
    Can you please give details as to the source of your params (param-1, param-2, etc.). This will help in providing you suggestions.
    Regards,
    LC

  • Obtaining form parameters in a dynamic page

    Hi
    It is possible of course to create a form on a dynamic page and have a user provide input. But how can the user input be retrieved, if the user input is sent to the same page or to another Portal dynamic page? As a Portal dynamic page can only contain html and pl/sql between the <oracle> tags, it looks like there is no programmatic way (such as with perl or java) to obtain the information from the form and put it in one or more variables.
    Is there a way to obtain the data from forms using pl/sql in a dynamic page? A code example would be most helpful.
    Thanks very much.
    Hugo

    You can do it using two dyns or one dyn.
    Using one dyn:
    Define a parameter :p1 and let a default value for it(e.g. 1).
    Construct a form that submits to the same dyn
    begin
    declare
    v_p1 varchar2(100) := :p1;
    begin
    htp.p('<form name="example" action="" method="post">
    <input type="text" name="p1" value="'||v_p1||'">
    <input type="submit">
    </form>');
    end;
    When you submit it to same page you will be able to see your new parameter value. If you want to use two dyns then submit it to second dyn.

  • Passing parameters from mapping to mapping with in process flows

    I am new to OWB and i would appreciate if any one can suggest me on how to solve the issue i have.
    I am trying to pass a parameter from one mapping to another mapping.
    ex: key need to be passed
    start ----->A--->B--->C----->END
    B needs to pass the key to mapping C
    In B i have mapping Out put parameter and in C i have a mapping input parameter.
    In process flow palatte i could see Key as OUT and in C properties i could bind it to Key .
    but i try to deploy this mapping i am getting error below
    PF_PKG Create Error
    RPE-02040: Internal error: KEY cannot be converted to a constant value. Please correct the value. If the problem persists then please contact Oracle Support with the stack trace and details on how to reproduce it.
    TEST_PFCreate INFORMATIONAL
    RPE-02071: Deployment has been aborted due to a previously reported critial error.
    please suggest me how to pass parameters between mappings with in a process flow.

    Hi
    You have to use process flow variables. So the output of map A, say parameter P would bind to variable V and then the input of map B, say Q would bind to variable V. In this way you can push parameters from one activity to the other. Although the UI lets you bind B.Q to A.P, it should not, I think there is a bug reported on this.
    Cheers
    David

  • Trouble with passing parameters to a dynamic theme

    Hello experts,
    I have been wrestling with this for days now, and can't seem to understand what is going on here. I don't think it's difficult to figure out and I'm sure I'm not the only one who has come across this, I just feel like I am missing something.
    In a nutshell - I have a predefined theme called TEST_DYNAMIC_THEME_NEW2. Its styling rules are as follow:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules caching="NONE">
        <rule>
            <features style="C.RED"> select geom, :1 FROM TRACT_CURRENT_GEO </features>
      </rule>
    </styling_rules>I am obviously trying to pass a parameter to this theme, representing a column name. Perhaps this is not possible, but I don't know why not.
    The error message I'm getting in Firebug is as follows:
    <?xml version="1.0" encoding="UTF-8" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.
    Root cause:SQLException: ORA-01722: invalid number
    </oms_error>On the other hand, when I am in mapbuilder and I Preview the theme it works fine. It asks for a parameter value for :1, I give it a column name, and a big red map displays in the Preview screen (this is what I want to see [at least for now]).
    Any ideas, folks?
    Thank you all very much for your time,
    John

    jpaiva,
    I thought that this might be the case. What I was clearly attempting to do is set up a predefined theme that would reference a specific table, but then the queried column could change based on a bind variable. If I want to continue down this path, perhaps the best solution would be to simply create a dynamic jdbc theme query on the client side.
    Thanks!

  • Passing Parameters between Portlets or pages

    Hi,
    How can we pass the data from a Portlet in one page to another Portlet in a different Page??
    Requirement: I want a portlet which should take some parameters(basically a form),On submit should process the parameters and should forward the result to a Portlet in another page.
    Regards
    Yash

    Yash,
    You could use session variables to save information that can be used during the browser session. Example would be the form asks a user for their nickname. The user types in his nickname and hits the submit button. The form will then save the info in a session variable. Then any other portlet can open that session variable and get the info and use that info. Now if the browser is closed, the info in the session variable is lost. Check out this link:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/PLSQL/DOC/PLDOC_9026/wwsto_api_session.html

Maybe you are looking for

  • Memory Question??? Where's Jocko?

    I have a question on the memory frequencey showing in the bios of my motherboard it states that I have 200ddr is this correct? I have pc3500 mushkin 222. Is there a way to change this or is this just the way it shows? amd 64 3400+ kt8 neo 34 gig wd 1

  • Account determination for LGCA -INS not possible..?

    Hi experts Here i m getting the error "Account determination for LGCA -INS not possible" while doing GOODS receipt for capital items. we have done GR earlier for the same capital item, but now recently i m getting this account determibation error . C

  • RFC - XI - SOAP - XI - IDOC

    Hi All I have to implement an XI system that uses SOAP to call a webservice every 5 to 10 minutes (if possible we would prefer every minute). Data returned from the webservice then needs to be sent to SAP R/3 as an IDoc. Since the SOAP adapter cannot

  • Palmone for windows vista

    been trying to synchronize my palmone, which i bought in 2005, to my pc with windows vista OS but seemingly, the driver is not recognized by vista. been trying to update from palm website to no avail..has anyone have the same concern? i dont wanna do

  • XML, data is empty

    news.php return $Return = "<news>"; $Return .="\n<other><pagecount>$MaxPage</pagecount></other>"; $Return .= "\n</news>"; i using: private function initApp():void { Alert.show(pCount.attribute("pagecount").toString(),"Info"); <mx:HTTPService id="news