Can a trigger call a dynamic page??

i'm trying to simply the things:
for the trigger, just
begin
insert into phang.test(qid) values(1);
end;
after i log into the portal, yes, the value 1 is inserted into the table
thus i conclude that the triggering event is correct.
but if I
begin
phang.testpage.show;
end;
i still gets log in, but the dynamic page phang.testpage just doesn't show up.
any way to do it?
thx.

hi! the trigger was supposed to call this procedure:
Create or replace procedure phang.dob_param
DOB IN DATE,
UserName IN VARCHAR2)
as
age varchar2(3) default 0;
begin
htp.p('<html>');
htp.p('<head>');
htp.p('<script language="javascript"
type="text/javascript">
bCard = new Array("/images/red.gif","/images/blue.gif","/images/yellow.gif")
cardCount = bCard.length
function chooseCard()
if (document.images)
randomNum=Math.floor((Math.random()*cardCount))
document.Card.src=bCard[randomNum]
</script>');
htp.p('</head>');
htp.p('<image src ="/images/logo.gif">');
htp.p('<BR>');
htp.p('<BR>');
age:= to_char(sysdate, 'yyyy') - to_char
(DOB,'yyyy');
htp.p('Dear '||INITCAP(username)||', ');
htp.p('Happy Birthday!');
htp.p('<BR>');
htp.p('<BR>');
htp.p('<body onload="window.resizeTo
(600,500);chooseCard()">');
htp.p('<image src ="/images/green.gif" width=300
height=75 name="Card">');
htp.p('<p>');
htp.p('Oh, in case you deliberately forget, you
are ');
htp.p(age);
htp.p('years old now.');
htp.p('<BR>');
htp.p('<BR>');
htp.p('<input type ="button" value="Close"
onClick="window.close()">');
htp.p('</body>');
htp.p('</html>');
end;
For the dynamic page, it's about the same except it draws the data from the database and display it, no parameter passing in. You can treat is as just:
<html>
<body>
Hello!
</body>
</html>
thx

Similar Messages

  • Problem with a Link calling a dynamic page

    Hi!
    I wanted to create a link calling to a dynamic page. This dynamic page displays a PDF depending on the parameter, the thing here is that I don't know how to set the bind variables or more likely how to say that the value of those variables is going to come from the link in which the dynamic page it's been called.
    I have my PL/SQL code where I have this bind variables
    id_dep
    id_tipo
    and I went to the Customization Form Display Options button and there i made them public.
    now on a page i created a link with the following structure, in order to call the dynamic page and send the parameters.
    http://your.portal.com/portal/pls/portal/SCHEMA.DYN_YOUR_DYN_PAGE_NAME.show?p_arg_names=YOUR_PARAMETER_NAME&p_arg_values=YOUR_PARAMETER_VALUEso my links looks like this one:
    http://desarrollo06:7778/pls/portal/TRANSPARENCIA.NOSEQUE.show?p_arg_names=idDep&p_arg_values=11&p_arg_names=idTipo&p_arg_values=25so I was told that I had to check that the parameters bindings are present or set, but I don't know how to do that... 'cause I thought I already did...
    can youi help me?
    thanks In Advance
    aTTe
    Blume

    Hi AMN,
    well what I meant was that, see in the manage page for the Dyn Page there are some options bellow, in the one that sais Customize you can test the page, and I put there the values for id_dep and id_tipo as *11* and *25* then run the page and it opens the PDF but when I click on the link you suggested
    http://desarrollo06:7778/portal/pls/portal/TRANSPARENCIA.NOSEQUE.show?p_arg_names=idDep&p_arg_values=*11*&p_arg_names=idTipo&p_arg_values=*25*
    u_u but it doesn't open the PDF.
    ...The code I put in my last post is the code for my dyn page, and there's an if where if it doesn't find a file to deploy it show a message that sais "No hay Datos o No Aplica", so when I clic on the link it takes me to the dyn page but shows the message for no data found...
    so I don't know what's going on.... if supposedly the dyn page is receiving the same values in different way, why it doesn't work with the link? -_-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Can Java Applet Call the ASP Page

    Hi,
    I would like to know whether the Java Applet can call the ASP page.
    If it can be done, how does the Java Applet get the value from ASP page?
    Please provide me some running example.
    Thanks.

    I would like to know whether the Java Applet can
    an call the ASP page.Something like:
    AppletContext.showDocument(new URL("http://wherever/myPage.asp"), "_blank");
    how does the Java Applet get the value from ASP page?What?
    Please provide me some running example.Nope.

  • Calling a dynamic page

    Hi,
    here is the situation i got , i have a page with table layout with rows displayed and there is a radio button beside each row. when i click on radio button in that row, there should be a new form displayed on the page.
    Thanks
    Newbie

    You can get the hold of rowreference and when the radio button related to that particular row is selected, call the page which you would like to invoke. Do let me know if you are unable to do that.
    Regards,
    Pavan, K

  • Trigger calling dynamic page

    hi! i've got a trigger that calls a dynamic page upon log in to the portal. problem is the page just doesn't show up. i'm using portal v3.0.9.8.0 and iAS R1, oracled db8.1.7.
    begin
    phang.testpage.show;
    end;
    i know the trigger is working cos if i changed it to
    begin
    insert into phang.test(qid) values(1);
    end;
    the value was inserted into the table upon logging into the portal.
    kindly advise.
    thx.

    hi! thx for the prompt reply. sorry, i should have made myself clearer. i had wanted a seperate greetings page (pop up window or not), apart from the default page after logging in to the portal.
    i've read in this forum that a user had his pop up screen from a html page - thus i improvised a bit by adding the codes in the page template that calls my procedure (combination of <oracle> tags and javascripts) and it does achieve the objective - provided the template is used or remember to copy the codes over when creating new ones.
    however, i was thinking it would be more correct to do it via the trigger way.
    the funny thing is if i had a trigger that calls the same procedure upon updating say the wwsec_person$ table. it does display the generated page when i go the the administer page and edit the user profile, only thing is it's displayed right on top of the normal page, i.e togather as one single page??!
    if what i've done is different from what you had in mind, kindly advice.
    thx again.

  • Why is the template not being used when dynamic page called ?

    Hi,
    I have created a dynamic page and assigned a template to it. When I call the dynamic page using the 'show' procedure from a form, I do not see the template.
    Why is the template not being used ? How can I get the template working when I call the dynamic page ?
    I even tried to show the page from the dynamic page's manage components tab and there is same problem. Template is not being used.
    thanks,
    Mainak

    You can alter the generated package body to include the following function in the header and footer sections.
    Header:
    PORTAL.wwv_headings.show_header(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_heading => 'Dynamic Page',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help',
    p_about_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.about');
    Footer:
    PORTAL.wwv_headings.show_footer(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help');
    where
    <PORTAL_DEMO> indicates application schema
    <PORTAL> indicates the name of the portal (normally this will be portal30 by default).

  • Is it possible to call on a link in a dynamic page?

    I have created a dynamic page with sql code in it. When I go to customation form, for the page I just created, there is a button called run dynamic page. When I click this the sql code on the page execute. I can also make a link to the customation form so when I run this link the page with button run dynamic page appear. The question is if there is someway you can use this link in another dynamic page you just created so you get a page with the button run dynamic page when you run the page? Or is there another solution to the problem to get a page with a button to run sql code?

    Hi,
    You can call a component's customization form in the dynamic page like this
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    begin
    SJAYARAM903_1G.RPT_0911010900.show_parms;
    end;
    </ORACLE>
    </BODY>
    This would render the customization form in the dynamic page.
    Thanks,
    Sharmila

  • How to display dynamic page content in an external application (MS Word)?

    I have a portal that generates a CV from info stored by various forms. The CV displays fine in a dynamic page, but when I add javascript to launch MS Word with a call to the dynamic page portlet, only the hard coded html displays - nothing between the <ORACLE> tags is loaded.
    I had the idea of updating the dynamic page with hard coded html prior to each export - but I can't find where the dynamic page definition is stored in the database.
    Any ideas/better solutions out there?

    dynamic page:
    <ORACLE>
    DECLARE
    theUser varchar2(30) := portal30.COE_GET_CV_PERSON;
    v_output varchar2(6) := portal30.COE_GET_CV_OUTPUT;
    v_no number;
    v_url varchar2(500):= 'http://oraclecoedb.asiapacific.cgey.com:7779/pls/portal30/PORTAL30.wwv_component_control.run_as_portlet?p_module_id=1934976747';
    BEGIN
    IF v_output = 'WORD' THEN htp.script('startWord('||''''||v_url||''''||');','Javascript');
    ELSE null;
    etc ...
    javascript:
    <script language="JavaScript">
    function startWord(strFile)
    var myApp = new ActiveXObject("Word.Application");
    if (myApp != null)
    myApp.Visible = true;
    myApp.Documents.Open(strFile);
    </script>

  • How do I hide the Dynamic Page parameters from being displayed in the URL

    Hello,
    I am using a form to call a Dynamic Page and to send parameters to it ,
    is there a way to hide the parameters values from being diplayed in the URL
    when the Dynamic Paged is called .
    Thanks .

    Hi,
    You cannot hide the parameters in the url. The GET method works like that. You can use the POST method to submit the parameters. But in your case the POST method may be not be appropriate.
    Thanks,
    Sharmila

  • Making a Dynamic Page into a portlet

    I made a dynamic page with bind variables using the Oracle Portal tools under the build Applications link. I was able to expose that page as a portlet. To set the bind variables, I would have to hit customize and enter the variables on a different screen. Do you know of a way to make that customize screen into a portlet?

    You can create an HTML portlet with all the fields in that portlet. On the submit on this portlet, you can call your dynamic page (by passing the values entered in the HTML portlet).
    Hope this helps.
    Regards,
    Jatinder

  • Webdynpro call another web page

    Hi experts,
    can my webdynpro call another web page? I need that the webdynpro call a pop-up to another web page and when this page is closed a variable returns to webdynpro to process.
    Is this possible?
    Thanks in advance,
    David

    Hi,
    I've found a popup tutorial to webpage and work's fine ... only the first side of my aplicaton.
    I can open a separate web page using:
    wdComponentAPI.getWindowManager().createExternalWindow("http://www.google.de","Google - Search for an email address",true).open();
    in this class, the "createExternalWindow" method have a boolean parameter to indicate if the window is modal or not ....
    I asign this page on a modal=true but I cannot receive from my webdynpro possible events or variables.
    sniffff.
    David

  • Procedure in dynamic page shows only sometimes data

    Is anybody recognizing this problem:
    A stored procedure is called in a dynamic page. The procedure builds up a html form. When calling the dynamic page, sometimes the form appears, sometimes it does not appear. In the last case, even a errormessage is not shown. The portlet area in the page is just empty.
    Anybody an idea?
    Johan

    Problem solved. I changed the timeout period of the provider ('Edit a Provider Registration') and I added a timeout message.

  • Dynamic page size

    Hi,
    I need to run the same RTF template for US and Europe.
    The only difference is page size.
    US is using "Letter" page size, Europe is using "A4" page size.
    I can distinguish the page size by organization.
    Is there a way that I can have one template with dynamic page size, or I have to have two different templates?
    Thanks,
    karmit

    When the data is generated, can you determine who it is for (letter-sized or otherwise)? Once you pick off a value that identifies the page size, you can let a variable for lines per page (see the fixed lines per page example on Tim's blog) and base the page break on the paper size.

  • Calling a form in a dynamic page

    Hi all,
    We are using dynamic pages for the creation of custom portlets. We can call a report in html tag by calling report.show procedure. What will I write for calling a form?
    Thanx,
    Gulsah

    Gulsah,
    In the component management screen you can find a URL-style "Run Link" which looks like this:
    PORTAL30.wwa_app_module.new_instance?p_moduleid=1060253649
    Also can put this PLSQL code:
    PORTAL30.wwa_app_module.link (
    p_arg_names => '_moduleid', p_arg_values => '[module id]',
    p_arg_names => '_show_header',p_arg_values => 'YES');
    where [module id] is your form id
    for more information please see the Portal FAQ:
    http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm#BuildingApplications
    Thanks,
    Dmitry

  • How can to show picture in my dynamic page?

    I have a dynamic page where I want to show a logotype or picture in the header same than a template, how can to do it?
    thank by any idea.

    Add in the head:
    <base href="http://desarrollo/pls/portal30/"></HEAD>
    and when you want to call a image:
         <td align=left valign=bottom><img SRC=/images/logo.jpg BORDER=0></td>
    where your image is logo.jpg ....

Maybe you are looking for

  • How can I change the random order of the people in Faces on my ipad and iphone

    I want to organize the faces alphabetically. how can I do that? also, search doesn't work on th faces page to find a particular person

  • Exchange 2010 DAG netowrk replications issues - Causing database copies to be disconnected and resynchronizing.

    My environment is as follows.<o:p></o:p> We have 3 exchange 2010 servers.<o:p></o:p> EX1, EX2, DREX1. All servers are exchange 2010 14.2 build 247.5<o:p></o:p> EX1 and EX2 have two nics, one LAN and one for BACKUP <o:p></o:p> The dag is configured to

  • Jdk 1.4 set up

    I've tried to set up java 1.4 on Windows 2000. I'm running it in Cygwin. I can run the java command on a .class file and it runs ok, but when I try to run javac on a file, it gives me 'javac command not recognised'. Am I right in thinking it's a PATH

  • Changing of MVT during inbound delivery

    Hi Guys, I am creating Inbound delivery against purchase order in VL31N to complete goods receipt. I wanted to change MVT to my customized MVT instead 101. please let me know how to change the mvt during I/B delivery Thanks

  • Trigger Automatic Mail

    Hi All, Pls guide me where the settings can be done to trigger an internal mail (SAP Business Workplace) at any user exit, like UD, QI01 Save, GR (MIGO) save etc. And what to do if I want to mark the same to MS Out look E-mail ID. With Best Regards,