Advanced Development Techniques for Oracle Portal Components

Hello friends,
I have the following problem. I have a report and a form (on a
view) in the same page, and when I select an item of the report
the form is refreshed with the values associated to the selected
item. The problem is that it makes it with delay, the first
selection doesn't show anything and the remaining sample the
data of the previous selection.
This application has been developed as Ken Atkins explains in
its document "Advanced Development Techniques for Oracle Portal
Components."
Oracle Portal Version: 3.0.9.8.0
Thanks in advance.
This is my code:
-- REPORT --
SELECT '<A HREF="http://mipc/portal30/
ALFONSO.refrescar_contenido?
p_variable=nombre_preferencia&p_variable_valor='||nombre_preferen
cia||'&p_pagina=61">'||Preferencias||'</A>' nombre_link
FROM ALFONSO.PREFERENCIAS
-- PROCEDURE TO REFRESH THE PAGE --
CREATE OR REPLACE PROCEDURE refrescar_contenido(p_varible IN
VARCHAR2,
          p_variable_valor IN varchar2,p_pagina IN
VARCHAR2) IS
v_Sesion portal30.wwsto_api_session;
BEGIN
v_Sesion := portal30.wwsto_api_session.load_session
('CONTEXT','SESS_EMP');
v_Sesion.set_attribute(p_varible, p_variable_valor);
v_Sesion.save_session;
owa_util.redirect_url('http://mipc/servlet/page?
pageid='||ppagina||chr(38)||'_dad=portal30'||chr(38)
||'_schema=PORTAL30'||chr(38)||'_mode=3');
END;
-- FORM --
-- ... BEFORE DISPLAYING THE PAGE
alfonso.consulta_preferencia(p_session);
-- PROCEDURE consulta_preferencia --
CREATE OR REPLACE PROCEDURE consulta_preferencia(p_session in
out PORTAL30.wwa_api_module_session) IS
v_RowID VARCHAR2(100);
v_Session portal30.wwsto_api_session;
v_nombre VARCHAR2(40);
BEGIN
v_Session := portal30.wwsto_api_session.load_session
('CONTEXT','SESS_EMP');
v_nombre := v_Session.get_attribute_as_varchar2
('nombre_preferencia');
IF v_nombre IS NOT NULL THEN
BEGIN
     SELECT rowidtochar(rowid) INTO v_RowID
     FROM ALFONSO.VISTAPREFERENCIAS
     WHERE nombre_preferencia = v_nombre;
-- VISTAPREFERENCIAS it is the view in which the form is
based.
END;
-- Tell the component that the query is coming from a link,
and that the rowid
-- is being used to query the correct context record.
p_session.set_value (p_block_name=>'DEFAULT',
p_attribute_name=>'_CALLED_FROM_LINK'
               ,p_value=>'ROWID');
-- Pass the rowid of the context record to query.
p_session.set_value (p_block_name=>'DEFAULT',
p_attribute_name=> '_ROWID'
               ,p_value=> v_RowID);
-- Now do the actual query, using the query button
processing in the target module
portal30.wwa_api_module_event.do_event
('DEFAULT','QUERY_TOP',1,'ON_CLICK',True,'',p_session);
-- Save the session information, which includes the
p_session.save_session;
END IF;
END;
/

You can make the report with a procedure from which you may call to a form by means of a link. It is a possibility, no??
It is better a example:
TABLE A
campo1 VARCHAR2 (20)
campo2 VARCHAR2 (20)
CREATE OR REPLACE PROCEDURE REPORT IS
v_cursor NUMBER;
sentencia VARCHAR2(200);
vnumfilas NUMBER;
rowid_pref VARCHAR2(18);
v_campo1 <schemaname>.A.campo1%TYPE;
v_campo2 <schemaname>.A.campo2%TYPE;
BEGIN
     htp.p('<HTML>');
     htp.p('<HEAD>');
     htp.p('</HEAD>');
     htp.p('<BODY>');
          sentencia := 'SELECT rowidtochar(rowid), campo1, campo2 FROM A';
          DBMS_SQL.PARSE(v_cursor,sentencia,DBMS_SQL.V7);
          DBMS_SQL.DEFINE_COLUMN(v_cursor,1,rowid_pref,18);
          DBMS_SQL.DEFINE_COLUMN(v_cursor,2,v_campo1,20);
          DBMS_SQL.DEFINE_COLUMN(v_cursor,3,v_campo2,20);
          vnumfilas := DBMS_SQL.EXECUTE(v_cursor);
          LOOP
          IF DBMS_SQL.FETCH_ROWS(v_cursor)=0 THEN
                    EXIT;
          END IF;
          DBMS_SQL.COLUMN_VALUE(v_cursor,1,rowid_pref);
          DBMS_SQL.COLUMN_VALUE(v_cursor,2,v_campo1);
          DBMS_SQL.COLUMN_VALUE(v_cursor,2,campo2);
          v_link := '<A href="PORTAL30.wwa_app_module.link?p_arg_names=_moduleid'||chr(38)||'p_arg_values=<form's moduleid>'||chr(38)||'p_arg_names=_rowid'||chr(38)||'p_arg_values='||rowid_pref||chr(34)||'>'||campo1||'</A> '||campo2||' <BR>';
               htp.p(v_link);
            END LOOP;
     htp.p('</BODY>');
     htp.p('</HTML>');
END;
the form has to be based on the table A.
I dont know if this example has errors, but have you the idea??
I hope it helps you out.
(Excuse my english)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Pro/cons for dev. environments for Enterprise Portal components

    Hi
    I am looking for some positives and some negatives that should be considered when a client needs to decide on which development environment to use for Portal development. I am aware of three products, Visual Composer, Web Dynpro and NW Developer Studio.
    Is there anyone who can briefly try to explain the positives and negatives with each?
    Any feedback is greatly appreciated!
    Kind Regards,
    Thomas Kjelsrud

    Hi Thomas,
    first, welcome on SDN!
    Then about your question:
    The standard IDE for any kind of portal components / applications is the NetWeaver Developer Studio (NWDS). By this, you can develop different things (EJBs etc pp), but also portal specific projects (in the end: PAR files, based on AsbtractPortalComponent, DynPages or JSPDynPages) as well es WebDynpro applications. The latter are able to run standalone (ie not driven by EP, but by WAS J2EE 6.40), but there is also a tight integration into the portal environment.
    If this is understood, you know that the question "NWDS or WebDynpro" does not make sense, for WebDynpro is developed through NWDS.
    A first overview about this issue so far is https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/exploring java programming models with sap netweaver developer studio.pdf
    In that PDF, also the relationship of the tool NWDS and the programming model of WebDynpro is given (even if the term "relationship" may be misguiding, it's more that these two things are to be seen in a comparison, for they use different techniques, are meant for different aims etc.)
    The VC is a totaly visual tool to build "applications" for EP mainly based on access to R/3 as backend system, for example. So it's focus is on building UIs which access backend information. That for sure is important for backend integration into EP, but the term "application" does not really fit.
    For VC see https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/developing code-free business applications using visual composer - beginner.abst and https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/visual composer - a model-driven development tool for enterprise portal iviews.pdf as an introduction.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers. Thanks in advance!

  • "Advance Synchronization Techniques for Data Acqusition is not simple.

    I want to use a 6534 DIO to drive my instrument and a synchronized 6502E to do AI from the instrument. The developer zone tutorial "Advanced Synchronization Techniques for Data Acquisition" suggests some of what is necessary to change from using AO as the master to using some other operation. After installing an RTSI cable, "Synchronized AI,AO,DI,DO,CTR.vi" runs as-is. Has anyone successfully converted the "Synchronized AI,AO,DI,DO,CTR.vi" or something similar to having some other master than AO? I want to use DO as master, and have moved the start vi's to the initialization cases except that for DO, have removed DI completely,and have tried to get DO to transmit REC1 on RTSI1 and AI and AO to clock o
    n the RTSI1 signal. The modified VI runs to completion, but I get no input at AI.

    Hi Bhanu,
    I ran the program SAP_FACTVIEWS_RECREATE.It is also not fetching any data.In the monitor, the extraction shows yellow status and the Processing says NO DATA.I have not given any selections at infopackage level.
    Please let me know what do i do.
    Thanks in advance.
    Regards,
    Venkat

  • Developing Report for Oracle Apps 11i

    Hi,
    I am developing Reports for Oracle 11.5.8 and using Reports 6i
    Are there any good documents that can guide me to develop reports exclusively for Oracle Applications
    I am customizing one of the report, did a very minor modification and when I run it, it shows small square boxes in the output.
    If I print it, I dont see the small boxes, Can you let me know how to avaoid this.
    Aslo have a couple of questions, should I use the option "use character units in designer" or something else while developing the reports
    What shold be the unit of measurement (Inches, Centimeter or Points)
    Lastly, is it a good idea to "View the Grid" or not in the "layout editor"
    Thanks
    Vasanth

    Hi Vasanth,
    when I run it, it shows small square boxes in the outputI can think of 2 posssibilities:
    one, the width of the column in the layout is slightly smaller than required. You can try increasing the width of the layout objects where you see square boxes.
    two, you are designing the report in a language for which support/font is not available on your development machine.
    should I use the option "use character units in designer"This option should be used when you design a report in "character mode", not when you are designing the report in "bitmap mode". Pl see Builder Help for more information on MODE.
    What shold be the unit of measurementIs it up to you to decide. If you know the dimensions of the paper (on which you are going to print) in inches for example, you can design the report in inches. Choose any unit of measurement, and then define the width and height of paper in the Header/Main/Trailer Sections in that particular unit. The report output will be the same whether you choose the paper width as 10 inches or 25.4 cm.
    Also, about point...
    Point: Is a printer's type size that makes up a pica. Each pica contains twelve points and is equivalent to one-sixth of an inch.
    is it a good idea to "View the Grid" or not in the "layout editor"The grid is available to help you position objects in the viewing region of the paper layout. It is helpful so you can start designing with it, but you can decide to turn it off if you do not need it.
    The grid is drawn in relationship to the rulers. In the Ruler Settings dialog box, you specify the interval at which grid lines appear per unit on the ruler. �For example, if you have a Unit of inches and a Grid Spacing of 0.5, there will be one grid line per half-inch on the ruler.
    You get to the Ruller Settings dialog Box by choosing Tools > Options > Rulers.
    Navneet.

  • Automated tool to convert from Forms to Dynamic Page for Oracle Portal?

    Hi Experts,
    We are thinking to convert majority of the forms in our portal to dynamic pages. Is there any tool to automate the conversion from Forms to Dynamic page for Oracle Portal 9.0.4.1.0?
    Thanks, Abbas

    Dear Abbas,
    You seem to have two issues... ;-)
    If you are finding the Forms are getting corrupt very easily, I'd suggest you go and open a Service Request into Oracle Support (http://metalink.oracle.com). There are a couple of ways where you can have these not corrupted (depeding on the Portal version you are in) and if there isn't yet a way you may get a bug logged and fixed within the next patchset eventually (improving the product functionality).
    As to changing it to a dynamic page it might give you a bit more flexibility... yeah. It really depends on what you desire to do. I'd slowly start to code them in this way if your goal is this. As to the former coded forms unfortunately as I've said there isn't a strait way to do that, so you may do this slowly in time...
    I hope it helps you a bit further...
    Cheers,
    Pedro.

  • Wich oracle database i need to buy(license) for oracle portal

    wich is better oracle database i need to buy(license) for oracle portal (10g)

    Hmmm... I'm not too sure. But we use 10.1.4.
    Try contacting your nearest Oracle reseller I guess!

  • CSS Setting for Oracle Portal

    Has anyone example css configuration for Oracle Portal ?

    The CSS does not have any specific Oracle Internet Directory (OID) Mibs or Oracle Portal , or directory Mibs per say. It does however comply to standard MIB II Mibs vendor extinctions to configure with SNMP.

  • Problems with Macromedia Extension for Oracle Portal

    Hello,
    I’m learning about Oracle portal 10g(3.0.4). I'm having some problems about Oracle portal. Please help me as soon as possible.
    I created an Web Template using Dreamweaver MX 2004, and I´m tring to send this template to Oracle Portal through dreamweaver webservice (dreamweaver_webservice.zip) using Dreamweaver extension (dreamweaver_extension.zip) but when I try to connect using the extension to send my template I get Invalid Login message (I tried all possible passwords and logins for Oracle Portal and OracleAS). Please Help!
    Please help me or give me any materials about oracle portal. I want to study about this subject so if you have books in pdf format please send me.
    [email protected]
    thanks
    Douglas

    When I try to open the url with the ORMI port in the brownser I get this error message:
    Invalid protocol verification, illegal ORMI request or request performed with an incompatible version of this protocolvInvalid protocol verification, illegal ORMI request or request performed with an incompatible version of this protocol
    Ports I have tryed : 1852 and 3202
    ex:
    http://<host>:<port>/portalTemplate/portalTemplate

  • Auto sign-on for Oracle Portal ?

    How do handle auto sign-on for Oracle Portal ?
    I am using Oracle Portal for my home page which should not have any login to the page.

    Just define your homepage as available to public. Then as PORTAL30, edit the user PUBLIC and make your homepage his default page. This way, when a user connects to your site, your page will be displayed without any login required. Note that the user will not have any personalized content until they log on and identify themselves.

  • Sample  PL/SQL Portlet Source Code for Oracle Portal 9ias

    Hi, I'm a newbie of Oracle Portal technology, and I have a problem:
    I would create a PL/SQL portlet that realizes the following functions:
    1) Retrieve the username of the portal user logged from WWCTX_API.GET_USER function.
    2) Insert into an oracle db table two values about two hidden fields in the HTML FORM of the portlet.
    3) Realize the insert commit through the click on the submit button on the Html form of the portlet. I would redirect by the same button to an other page url also.
    I've never developed in Portal, and may be useful if someone could post me the source code of the SHOW MODE SECTION in the PROCEDURE SHOW of a SAMPLE PL/SQL PORTLET that realizes the upper functions.
    Thanks a lot....

    Hi
    Here's the code from Helloworld_Portlet example:
    procedure show
    p_portlet_record wwpro_api_provider.portlet_runtime_record
    is
    l_portlet wwpro_api_provider.portlet_record;
    begin
    if (not is_runnable(
    p_provider_id => p_portlet_record.provider_id
    ,p_reference_path => p_portlet_record.reference_path)
    ) then
    raise wwpro_api_provider.PORTLET_SECURITY_EXCEPTION;
    end if;
    Retrieve the portlet information.
    l_portlet := get_portlet_info(
    p_provider_id => p_portlet_record.provider_id
    ,p_language => p_portlet_record.language
    if (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW) then
    if (p_portlet_record.has_title_region) then
    Draw the portlet header and specify what links are available
    from that header (i.e. details, customize, help, and about).
    The has_title property is set at the page region level.
    wwui_api_portlet.draw_portlet_header
    p_provider_id => p_portlet_record.provider_id
    ,p_portlet_id => p_portlet_record.portlet_id
    ,p_title => l_portlet.title
    ,p_has_details => true
    ,p_has_edit => true
    ,p_has_help => true
    ,p_has_about => true
    ,p_referencepath => p_portlet_record.reference_path
    ,p_back_url => p_portlet_record.page_url
    end if;
    Draw the portlet borders.
    The has_border property is set at the page region level.
    wwui_api_portlet.open_portlet(p_portlet_record.has_border);
    Display the content of the portlet in the show mode.
    Use the wwui_api_portlet.portlet_text() API when
    generating the content of the portlet so that the
    output uses the portlet CSS.
    htp.p(wwui_api_portlet.portlet_text(
    p_string => 'Hello World - Mode Show'
    ,p_level => 1
    if (p_portlet_record.has_border) then
    wwui_api_portlet.close_portlet;
    end if;
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_ABOUT) then
    Display the about page for the portlet.
    htp.p('Hello World - Mode Show About');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_EDIT) then
    Display the edit page for the portlet.
    htp.p('Hello World - Mode Show Edit');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_HELP) then
    Display the help page for the portlet.
    htp.p('Hello World - Mode Show Help');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_EDIT_DEFAULTS) then
    Display the edit defaults page for the portlet.
    htp.p('Hello World - Mode Edit Defaults');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_DETAILS) then
    Display the details page for the portlet.
    htp.p('Hello World - Mode Show Details');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_PREVIEW) then
    Display the preview page for the portlet.
    htp.p('Hello World - Mode Show Preview');
    end if;
    end show;
    I think you need to add this:
    You can get the values of your html-form with this command:
    v_hidden_1 varchar2(256);
    v_hidden_2 varchar2(256);
    v_hidden_1 := wwpro_api_parameters.get_value('name_of_hidden_1_in_html_form','p');
    v_hidden_2 := wwpro_api_parameters.get_value('name_of_hidden_2_in_html_form','p');
    You can get the actual URL with this command:
    v_url := p_portlet_record.page_url;
    Hope that helps.
    Regards,
    Mark

  • New Enterprise Manager Book on Advanced EM Techniques for the Real World

    Dear Friends,
    I am pleased to say my first EM book can be ordered now.
    Oracle Enterprise Manager Grid Control: Advanced Techniques for the Real World
    [http://www.rampant-books.com/book_1001_advanced_techniques_oem_grid_control.htm]
    Please let your colleagues and friends and clients know – it is the first book in the world to include EM 11g Grid Control. It is a great way for people to understand the capabilities of EM.
    Oracle’s Enterprise Manager Grid Control is recognized as the IT Industry’s leading Oracle database administration and management tool. It is unrivalled in its ability to monitor, manage, maintain and report on entire enterprise grids that comprise hundreds (if not thousands) of Oracle databases and servers following an approach that is consistent and repeatable.
    However, Enterprise Manager Grid Control may seem daunting even to the most advanced Oracle Administrator. The problem is you know about the power of Enterprise Manager but how do you unleash that power amongst what initially appears to be a maze of GUI-based screens that feature a myriad of links to reports and management tasks that in turn lead you to even more reports and management tasks?
    This book shows you how to unleash that power.
    Based on the Author’s considerable and practical Oracle database and Enterprise Manager Grid Control experience you will learn through illustrated examples how to create and schedule RMAN backups, generate Data Guard Standbys, clone databases and Oracle Homes and patch databases across hundreds and thousands of databases. You will learn how you can unlock the power of the Enterprise Manager Grid Control Packs, PlugIns and Connectors to simplify your database administration across your company’s database network, as also the management and monitoring of important Service Level Agreements (SLAs), and the nuances of all important real-time change control using Enterprise Manager.
    There are other books on the market that describe how to install and configure Enterprise Manager but until now they haven’t explained using a simple and illustrated approach how to get the most out of your Enterprise Manager. This book does just that.
    Covers the NEW Enterprise Manager Grid Control 11g.
    Regards,
    Porus.

    Abuse reported.

  • DR solution for OracleAS Portal 10g

    Hi
    I have to think about a disaster recovery (DR) solution for OracleAS Portal10g.
    Location1: Primary
    Location2: DR System
    SAN Storage used between Location1 + 2.
    The disaster case happens only once a year. (test)
    In DR case, OS technical It would be possible to use the same DNS (hostname) on Location 2 like Location 1.
    Oracle advises to use Dataguard or cluster solutions.
    Do you know if our way would be a walkable and supportable way?
    Thanks
    Reto

    This is a worthwhile course, but not for learning about Oracle Instant Portal (which was released after the Build Corporate Portals course was written). The best place to start finding out about Oracle Instant Portal is the self-paced Oracle By Example (OBE) tutorial, Building Instant Portals with Oracle Instant Portal. The tutorial also has links to a couple of viewlets, which you should find helpful.
    Cheers!
    Julie Tower
    Principal Curriculum Developer
    OracleAS Portal

  • Need help for learning how to develop interfaces for Oracle R12 EBS

    Hi all,
    I need to learn how to create interfaces in PL/SQL for Oracle R12 EBS Financials. I cannot find a good starting point for the documentation and examples to help me get started in this area. Would appreciate tips
    for this area.

    Hi,
    What kind of interfaces you are planning to develop?
    Oracle already provides list of APIs that can be used (in R12, it is responsibility).
    Oracle Integration Repository Documentation Resources Release 12 [ID 396116.1]
    Oracle Integration Repository
    http://irep.oracle.com/index.html
    If those APIs do not satisfy your requirements, you can refer to "Oracle Applications Developer" guide as well as SQL-PL/SQL guides.
    Applications Releases 11i and 12
    http://www.oracle.com/technetwork/documentation/applications-167706.html
    Database Documentation -- SQL-PL/SQL
    http://www.oracle.com/technetwork/database/enterprise-edition/documentation/index.html
    Thanks,
    Hussein

  • How to create a omniportlet for oracle portal with apex

    Hello everyone!
    Is there someone who knows how to create a omniportlet?
    This is for openning an application in apex from oracle portal using single sign on.
    Could you explain me step by step how to do this please?
    Thank you.
    Regards

    Hello Erik,
    Please check if the following can help you - http://www.oracle.com/technology/products/database/application_express/howtos/omniportlet_index.html .
    Regards,
    Arie.

  • Development  tool for oracle 11g R1

    hi all .. can someone plz guide me which dev tool can i use for oracle 11g R1? i want form builder and report builder for this. (i have been using oracle 9i with for builder 6i)

    kashif_ashfaq wrote:
    hi all .. can someone plz guide me which dev tool can i use for oracle 11g R1? i want form builder and report builder for this. (i have been using oracle 9i with for builder 6i)You need to use [Oracle Developer Suite 10g|http://www.oracle.com/technology/software/products/ids/index.html]

Maybe you are looking for

  • How can I move an mp3 podcast from music to podcast library?

    I am downloading archived podcasts manually and when I import them into iTunes they show up in my music list. How can I get them into my podcast library?

  • Load pdf with cfheader and cfcontent

    I have the following code to load a PDF. <cfquery datasource="lamtra1_data1" name="getpdf"> Select * from lamtracpdf WHERE id=#url.id# </cfquery> <cfoutput query="getpdf"> <cfheader name="Content-Type" value="pdf"> <cfheader name="Content-Disposition

  • Iphone not being recognised by my laptop

    I have plugged my iphone 4s into my new laptop which is running Windows 8 and i have installed itunes. However it is not being recognised when i plug it in to the computer.I have uninstalled and reinstalled itunes download but no difference. Help ple

  • Group key

    Hi What is use of group key in vendor/customer master data? with example Regards Suresh

  • Conditional Processing: Request is Contained within Expression 1

    I believe I have found a bug with the Process Conditional Processing logic, where "Request is Contained within Expression 1" is used. Here are three of the buttons that I have on my page: GET_RES_CIVIC_ADDR - This button is displayed among the Region