PLSQL portlets

we have used the PLSQLS Web Toolkit to generate a HTML form which captures data for processing.
currently we are testing out the functionality of this form by calling it thru a DAD which points to the DB schema containing the PLSQL package.
we plan to have this form appear as a portlet. so far the plan is to use URLServices to point to the (DAD) URL. will this work correctly ?
or should we do additional coding like the PLSQL portlet samples as provided with the PDK samples to achieve this ?

Oracle9i JDeveloper 9.0.3 supports PL/SQL development, such as editing and running PL/SQL functions, procedures, and packages, as well as debugging.
Have a look at this article on OTN:
Database and PL/SQL Development in Oracle9i JDeveloper
Peter

Similar Messages

  • Cursor Focus in PLSQL portlets

    Hi,
    Is there a way to set the cursor focus in a form created in a PLSQL portlet without using javascript?
    Thanks

    Hi,
    You cannot do it using plsql. You will have to use javascript.
    Thanks,
    Sharmila

  • PLSQL portlet Post problem...Help

    Hi,
    I have a plsql portlet. I am displaying a form using the the builtin's htp and owa. I have now to post the form(call another procedure within the same package), I am unable to get the right URL. How do I get the correct portlet URL? I have tried using the portlet_runtime_record, but no success. If someone has faced the same issue, I could use their help
    Thanks in advance
    Sam

    Sam,
    Make sure the portlet package is public.
    i.e. grant execute on abc_portlet_pkg to public;
    Then your FORM tag should look like this:
    htp.p('<form name="MyForm" '||
    'method="post" '||
    'action="schema.abc_portlet_pkg.post_data">');
    Best to put your post routine (i.e. "post_data") in the same package (i.e. "abc_portlet_pkg") as your portlet code.
    Then, in the "post_data" routine, make a call to your api package to do dml operation and at the end do this:
    owa_util.redirect_url(p_page_url);
    Note:
    p_page_url should be passed as a HIDDEN field after the FORM tag.
    i.e.
    htp.p('<input type="hidden" '||
    'name="p_page_url" '||
    'value="'||p_portlet_record.page_url||'">');
    I personally do not like to use anything in the web toolkit except "htp.p" but that is a matter of preference.
    Hope this helps.
    Eric

  • Helloworld plsql portlet installing problem

    hi
    i read "database provider starter examples" document.here is the link
    "http://otn.oracle.com/products/iportal/files/pdk105ea/plsql/starter/installing.starter.html"
    i follow instructions.
    -i login my system "sys/change_on_install as sysdba" via sqlplus
    -i create starter user
    -give permissions
    -i login "portal30/portal30 as sysdba"
    here i dont know schema where my portal is installed.i just interpreted.how can i learn it?
    -"@provsyns.sql starter" here.i took errors.if you examine provsyns.sql.this code creates synonyms for plsql APIs.its ok.but when this codes tries to give "execute" permissions it gives this error " package or body etc. doesnot exist"
    problem is.it creates synonyms.but cant give execute permissions.because it cant find packages which it created synonyms them.
    how can i solve this problem
    best regards

    Hi.
    Your problem as I percieve it is probably due to the fact that portal is installed in a schema other than the default schema.
    Let me answer this question by asking you a question first. While installing portal did you accept the default schema, or did you specify a different schema?
    If you had accepted the default schema while installing portal, then portal will be installed in the following schema by default.
    Portal 309 : portal30
    Portal 902 : portal
    If you had specified a different schema while installation, you run the following query which will return you all the schemas, from which you will have to identify the schema in which portal is installed.
    select username from all_users;
    Hope this helps.
    Thanks,
    Ashish.

  • Import / Export PLSQL Portlets

    Export from PL/SQL created sample portlets is ok.
    Import on another instance:
    No errors, but the page is empty. The page is created with no portlets and no provider.
    The same as java portlets?!
    Dieter

    Same Q&Response on Oracle 9ias Portal too:
    Deiter,
    I had the same problem. Your analysis is
    right. My solution was to put quotes around
    the string in provider.xml, as in:
    <timeoutMsg>'Portal Web provider timed out'</timeoutMsg>
    If you check this string now in the exported
    page dumpd file, you will see that string
    is correctly quoted. So the pl-sql execution
    during import will not fail now.
    nanda
    null

  • PLSQL portlet - problem calling stored procedure -

    Good day folks. My portal version 10.1.2. I have a dynamic page with multiple rows. For simplicity, example here has two columns => id and value. The initial dilemma - The stored procedure specified in the action attribute of the <form> tag has to have parameters that match in name and count to the fields on the html form. But, the number of rows is variable on the form. I currently use pl/sql to generate the page. I have two forms in the html - form A has two static fields id and value, with an action attribute of the stored procedure I want to run. The second html form is form B. It has id_1, value_1, id_2, value_2, id_3, value_3 and so on with a variable number of rows. SO, when the user clicks the "Submit" button at the bnottom of the page, I call a javascript passing in the number of rows. I then loop through the Form B, and for each row of data, I do a submit of Form A. My goal is to run the stored procedure in the database for each row of data in Form B. I use Form A to accomodate the requirement that the stored procedure has to match in name and number the parameters inthe form.
    This is to avoid an update button on each row of data, also.
    The problem - in my javascript, I set the values of Form A to the values from Form B correctly. However, only the last rowis successful in running the procedure. For example, if I have 3 rows in Form B, I want to submit form A 3 times, but, it only seems to submit once for row #3. The weird thing is if I put an alert message after the document.formA.submit(); command, the stored procedure is successfully called for each row in form B, but when I remove the alert, only the last row successfully calls the procedure!
    Thanks in advance if anybody has any ideas -
    Kent

    Let's continue the example of 3 rows.
    It sounds like that you submit the form 3 times in quick succession, and so before the Action for Form A has had time to run and respond for the first row, the second row has been submitted, and therefore the web page will stop trying to display the results from the submit of Row 1 (by this I mean it'll stop the http request, if you do this quick enough then the back-end function won't run). Then the same thing happens to Row 2's submit when Row 3 starts.
    What it sounds like you need to do is to use only 2 parameters, but repeat them on the HTML page, when the submit is run it's passed to oracle as a type 'owa_util.vc_arr'. There is a more comprehensive solution to this problem in another thread:
    passing variable number of arguments in a stored procedure
    Please note though that you have to be careful of the situations where your form only has one row to submit to the oracle function, in this case the data type of the parameter will be a VARCHAR2 rather than a owa_util.vc_arr. The solution to this problem is to always have a an extra dummy parameter which is empty and you skip over it during your processing. (Thought I'd better include this information in case you ran into this problem).
    Hope this helps.
    Cheers,
    Ron.

  • How display the page where the portlet PLSQL is executed

    I have build a simple PLSQL portlet in 9ias 9.0.2.
    This portlet display the name of the user connected. I would have too the name of the page where this portlet is displayed. Because i put this portlet in different page of my portal.
    I think information is in portlet_runtime_record (like page_url), but i don't know how call this value into PLSQL Portlet (portlet_runtime_record.page_url ????)
    Thanks in advanced
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    <ORACLE>
    declare
    rt:=portal.wwsec_api.person_info(portal.wwctx_api.get_user());
    htp.p(rt.first_name||' '||rt.last_name);
    htp.p('Liste des Urls');
    htp.br;
    htp.p('IP:'||portal.wwctx_api.get_ip_address);
    htp.p('NAME:'||portal.wwctx_api.get_user);
    end;
    </ORACLE>
    </BODY>
    </HTML>

    Fabrice,
    the Dynamic Page is a special form of portlet that is supported by Oracle9iAS Portal internally, which means that it is not recommended to tweak the generated PL/SQL package even though you have access to it. By doing this you won't be able to make any changes using Portal UI because every time you do the changes your code will be regenerated. Unfortunately, I don't see an easy way to extract the information you are looking for in the Dynamic Page portlet. My recommendation is to programmatically create a PL/SQL portlet that implements the same business logic as your Dynamic Page portlet. This way you will gain full control on your code and will have all advantages of PDK-PL/SQL.
    Hope this helps.

  • Link to Folder in Folder Portlet

    We display our folder contents within a portlet. It's important that all of those links present their contents in the portlet. This typically works.
    However, if an item is linking to another folder, the link presents its content on the entire page, not within the portlet.
    How can I link from one folder to another and keep the result within my portlet?

    Luke,
    For inplace display, use parameter passing. The only drawback is that the parameters will be seen in the address bar.
    You will need to use an intermediate handler procedure, which accepts your folder display call and builds the page URL
    with the parameters attached. In your folder portlet, use wwpro_api* to get the parameters.
    Check out the parameter passing portlet for tips on how to implement parameter passing in plsql portlets.
    We display our folder contents within a portlet. It's important that all of those links present their contents in the portlet. This typically works.
    However, if an item is linking to another folder, the link presents its content on the entire page, not within the portlet.
    How can I link from one folder to another and keep the result within my portlet?

  • PLSQL PDK Install - Help Please

    So, I have gone to the pdk site on otn at http://www.oracle.com/technology/products/ias/portal/pdk.html. However, there is no seperate PLSQL PDK install there? Do I need to install all of portal 10.1.4 into my database in order to use the PLSQL PDK?
    What I am trying to end up with is a small PLSQL PDK install on target databases and then register these databases as Federated Portlet Providers. I just don't have the PLSQL PDK installed yet... So, is there a seperate install or how would I go about installing this on my target database we want to build PLSQL Portlets.
    Thanks,
    BradW

    So, looks like I need to do a full Portal Install with each instance having their own Meta Data Repository (MDR).
    Sure would be nice to have a slightly lighter weight solution to this....

  • Pass parameter from Portlet to Form?

    Hi Frineds
    I created a plsql portlet in which i am displaying a combo box with the list of client id's
    I created a Form from locally built Provider which got a client ID as one of the column.
    My question is. If the user selects client id from combobox, it should go the
    client ID column .. on the Form
    Can any one give me suggestions.. how to achieve this?
    Thanks
    Ravi

    I have a similar problem where I have a portlet X which accepts parameters using the <passAllUrlParams>true</passAllUrlParams> tag in the provider.xml and it works if portlet X is directly on page A. However, because I need to wrap portal security around this portlet declaratively, I will need to apply security on this page A and then publish page A as a page portlet Z, then drop page portlet Z on another page, page B. (I hope you all been through this before to apply security around a portlet). By doing this - the parameters are no longer being passed into portlet X anymore.
    To get around this - I will need to define page parameters for page A and map them to portlet X via the "Parameters" tab in edit mode and then define the same set of page parameters on page B and map them to the page portlet Z just to get the parameter passing working and flowing through to portlet X.
    Is there anyway around this?
    Do we always need to define page portlets in 10.1.4?
    What does the <passAllUrlParams>true</passAllUrlParams> tag do in 10.1.4?
    In 10.1.2 - the <passAllUrlParams>true</passAllUrlParams> tag was all you need to pass any number and type of parameters from a page B->page-portlet Z->portlet X
    This feature seems to be missing in 10.1.4.
    Please respond.
    Thanks
    Stanley

  • Lotus Notes Portlets in Arabic

    I am encountring a problem with Lotus Notes Portlets, I want them to dispaly in arabic.
    Note: they are running very good in English
    I used the propertyResourceBundle way, and it indeed retreives the strings from the correct file -LotusBundle_ar.properties in my case , but as long as the strings are in English. If I changed the translated strings to arabic strings, it returns me a rubbish in the Portlet headers (e.g. From , Subject , Date Received , ToDo , ..). I tried to set the charSet in the getWriter() method and in PortletRenderRequest.setCharacterEncoding() to UTF-8 and WINDOWS-1256 charsets, in the InboxRenderer class and in the LotusProvider class but nothing worked it always returned me rubbish words, I also set the NLS_LANG of the ias machine which is a windows NT server machine to ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256, the charSet of the Portal db is not unicode but the NLS_LANG env. variable of the db machine is set to ARABIC_UNITED ARAB EMIRATES.UTF8 , but still nothing worked.
    Notes: Arabic is installed on my portal (ver 3.0.9.8) and using the SetLanguage portlet i can switch between english and arabic in a seamless way, also the Database plsql Services Portlet sample is running well and it switches between Eng and Ar also -I have seeded the arabic strings to make it dispaly arabic.
    The Notes Arabic cient is installed, and the Notes web access also runs now in arabic (it shows me the Inbox, Calendar, Contacts , ToDo documents all in arabic).
    So where is the problem with web portlets, where exactly to set the charSet, I still have a doubt about the portal db charSet which is as I mentioned not unicode, it is American, but how the portal itself is running in arabic and the plsql portlets also while using this American charSet? Pls Oracle people do not let us lost that way. I'll try to use the ListResourceBundle way as maybe the encoding used when saving the .properties file is not correct, and then give u a feed back.
    Pls all colleagues if any one can help, and give some guiding points, he will be greatly appreciated.
    Amr
    null

    Thanks Christopher for your reply ..
    The Good news is that the problem is now solved when using the ListResourseBundle way, I think that my doubt was correct; the encoding used when saving the .properties files is some how Latin (e.g. US-ASCII for example), so that when retreiving the translated strings and writting them on the reponse object using WINDOWS-1256 charSet, some characters get lost, and hence I got the rubbish strings. The problem now is that you cannot provide more than one resourseBundle for one portlet,I need to provide Bilingual interface, so I have two resourseBundle classes for each portlet (e.g. InboxBundle_ar.class , InboxBundle_en.class). I Couldn't provide more than one resourse tage for each portlet in provider.xml, otherwise it gives an ERROR OCCURED! message in the rendered portlet body. So how to resolve this ?
    The second problem, wchich is bigger, is that the dynamic strings returned from Lotus server are showing as rubbish strings (e.g the Subject itself of the message, Subject of an appointment,the Last name of a user in a Contacts list,..)althoug these strings are showing well in Arabic from the Lotus web access for the same logged in user. I think that the methods doc.getItemValueString(), doc.getColumnValues().get() are returning strings assuming Latin charSet, I tried to play the following code for the rendered message subject :
    byte[] bytes = doc.getItemValueString("Subject").getBytes("US-ASCII");
    String subj = new String(bytes,"WINDOWS-1256");
    out.println("<td><FONT SIZE=2><a href=\""+readMsgURL+"\" target=\"_new\">"+subj+"</a></FONT></td>");
    But unfortunately it didn't work, even when using UTF-8 and UTF-16 in the getBytes statment and when initializing the subj string. note: the out object is assuming the WINDOWS-1256 charset, I forced it to this charset by writting the following code in the renderShow method in the InboxRenderer class :
    pr.setCharacterEncoding("WINDOWS-1256");
    PrintWriter out = pr.getWriter("text/html","WINDOWS-1256");
    where pr is the portletRenderRequest.
    So what to do ??? If you can help me Christopher or pass the topic to any one of the people who wrote the Lotus Notes Portlets, to tell me how to overcome these two problems.
    Note: It is an urgent requirement to arabize these Lotus Notes Portlets.
    Thanks Christopher,
    Thanks all
    Amr

  • Plsql programmatically add_user or create_user  in Portal9 OID

    Hi
    I'm writing a selfregistration plsql portlet for Portal9.0.2.2.22 everything is allmost done except the most importent step: to create or add the user into Portal and OID!
    Is there somewhere a simple api i can call?
    Regards Thomas

    I've encountered that problem before and my solution was to turn OFF all popup blockers in my browser.

  • Helloworld portlet installation problem

    hi
    i try to install helloworld plsql portlet into portal.
    how can i do this?
    i read "database provider starter example" but i cant succeed.
    it gives compilation errors
    best regards

    hi
    i did these steps.
    i read follow this documents.
    "database provider starter example"
    at the beginning i must say that.i want to make a plsql portler and psp portlet.
    1-i login oracle9ias portal as "sys/ as sysdba;"
    2- create a user "deneme"
    3-"grant resource,connect to deneme;"
    4-i login "portal/xxx as sysdba;"
    5-"@provsyns.sql deneme;"
    it creates synonyms but cant find package,body etc.
    i did above steps via sqlplus.
    i try do with oracle9ias portal system above steps.
    i find helloworlportlet by navigator.it runs but when i try to compile it gives "invalid state"
    and i cant see helloworld portlet in repository.
    best regards

  • Portal902 - DB portlets that use page parameters

    Hi all.
    I am trying to create a plsql portlet that will read the page parameters. I believe that this is the idea, right? Well, I don't know how to do it. Can someone tell me how to do it? Or tell me where to find an example?
    Thanx, Mere.

    Hi all.
    I am trying to create a plsql portlet that will read the page parameters. I believe that this is the idea, right? Well, I don't know how to do it. Can someone tell me how to do it? Or tell me where to find an example?
    Thanx, Mere. I had an example in which parameters were passed from one report to another:
    Report 1: summary report
    SQL report, on scott.dept:
    select htf.anchor('http://<server>:<port>/servlet/page?_pa
    geid=<page id>&_dad=<dad>&_schema=<schema>&_mode=3&dept='||deptno, deptno)
    aaa, dname, loc from SCOTT.dept
    The url here is the page url with extra parameter for dept, the bind
    variable in the detail report
    Report 2: detail report
    SQL report, on scott.emp
    select * from scott.emp where deptno = :dept
    Add the following PL/SQL code in the "before displaying the page"
    <portal schema>.wwv_name_value.replace_value(
    l_arg_names, l_arg_values, p_reference_path||'.dept',
    <portal schema>.wwv_standard_util.string_to_table2(nvl(get_value('dept'),
    10)));
    Build a page and include these 2 portlets, then when you click
    on the link of the summary report, the page will be refreshed,
    and the detail report changed based on the data from the summary report.
    Hope this helps

  • Page/portlet parameters

    Hi people,
    Kan anyone tell me how to set a page parameter from a plsql portlet so that a java-portet can read/get the parameter value?
    I'll be greatful for any reply!!!

    Galina,
    the portlet must trigger an event, and the only builtin portlet which is able to do that is the "simple parameter" portlet (which is not a plsql portlet, in fact).
    The others ways (in PL/SQL) are:
    .use dynamic component (but the form action tag will be hard coded)
    .use PDK
    .use Jpdk
    Patrick

Maybe you are looking for

  • Regarding MM SUS ASN Info

    Hi, I am working on GRNSTATUS object in which ASN Number is one of the selection screen parameter.For example if ASN is created against DELINS i want to find GRnumber Corresponding ASN Number.Can any one guide me how to find the GRN. Thanks in Advanc

  • Hierarchical Cost planning in CJ40 not updating in CNS41

    Hello Experts, When i am planning cost using cj40 than checking report cns41 so this is not showing cost planned via cj40. what will be reason of not showing this cost plan. Please guide. thanks Sunil

  • SQL developer broken DL

    Can't download SQL Developer from the dl site (oracle). Only gets 404's If someone got a external link to someone that actually host the new version it would be much appriciated.

  • Can't print with Reader 10.1.4

    Since downloading an update to Reader on Aug 24, i can no longer print (wirelessly) a PDF from Reader.  My current version is 10.1.4.  ALL of my other printing works with all other applications.  Only problem seems to be with Reader.  I have uninstal

  • I can't renew a subscription on iTunes can someone help?

    My subscription for my telegraph news paper failed to renew.i went into iTunes to manage my subscription and I tried to renew it, it said I had to re enter my details ,when I went to do that it said there was an error with iTunes and to try later whi