How to automatically startup a report in a new window after committing a form
I have a form on a portal-page. The user enters values in the form and presses the INSERT button.
After doing so, I want to show a report in a NEW window querying some values the user entered in the form.
I was hoping to be able to use the After Processing Form PLSQL-section as follows:
declare
l_id integer;
l_url varchar2(2000);
begin
l_id := p_session.get_value_as_NUMBER(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_ID');
l_url := 'APP_OWNER.MY_REPORT.show?'
| | 'p_arg_names=id&p_arg_values='
| | to_char(l_id);
htp.p('<a href="' | | l_url | |' target="_blank"></a>');
end;
But I see only "Inserted one record" and no report is started.
I've tried to use the after-form-processing part, but it seems I can only startup reports in the same window with GO and CALL.
Also the ID-variable can not be read from that part.
A second solution I tried was to put this PLSQL in the PLSQL-handler-section of the button, but for some reason all double quotes " are automatically changed into single quotes ' causing several Java-script errors. Perhaps a bug?
Does anyone have a solution for this functionality?
Thanks,
Jan Willem Vermeer
Hi,
There are 2 scenarios I can think of:
1. The value of ORD_ID is not known until the insert processing completed.
2. The value of ORD_ID is known and can be retrieved without a roundtrip to the server.
The 2nd scenario is being simpliest and could be done from Javascript w/out any server involvement, all you need is the getField() function (or any other function to get the field value) described here : http://technet.oracle.com:89/ubb/Forum81/HTML/000073.html
Javascript piece goes something like this:
myWindow = window.open("http://myhost/portal30/pos.APPROVAL_INVOICE_DYN.show?p_arg_names=ord_id&p_arg_values=" + getField(this.form,"ORD_ID"),
"myWindowName","toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,height=400,width=600");
The first scenario is more complicated.
During the "accept cycle", when your PLSQL insert/update etc. event handlers are
fired all the processing output will happen into the current window.
Neither owa_util.redirect_url() nor wwa_app_module.set_target() will help.
Both of them will do a redirect only in the current browser window,
actually, wwa_app_module.set_target() internally calls owa_util.redirect_url().
What you need is:
1. Get the field value, and either: 1. store it somewhere in a package variable,
or: 2. do this all at once in "before displaying the page"
2. After the form processing is completed (but not in the onSuccess!!! code),
open a new browser window w/Javascript specifying the same url you were passing to
set_target().
Here is my example, place following code into "before displaying the page" additional PLSQL block:
declare
l_id integer;
begin
l_id := p_session.get_value_as_NUMBER(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_ORD_ID');
if l_id is not null then
htp.p('{SCRIPT} var myWindow = window.open("http://myhost/portal30/pos.APPROVAL_INVOICE_DYN.show?p_arg_names=ord_id&p_arg_values=' | | l_id | | '",
"mySubWindow","toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,height=400,width=600");
myWindow.focus();
{SCRIPT}');
end if;
end;
To do: you will need to add more logic to decide when to open a new window,
whatever is appropriate for your application,
rather than just 'is null' check I did.
Hope this will help.
Thanks,
Dmitry
Similar Messages
-
Hi, using Adobe Dreamweaver CS4, I would like to have a link or a button on a webpage that when clicked will play a Flash Movie in a new window.
Using the 'Insert Panel' > Media: FLV I managed to insert the .flv file on the page, but the movie plays 'in line' instead of in a new window. So far I can't find any 'Properties' or settings to change this behaviour. E.g. like Target _blank for opening e.g. a .pdf in a new Window.
> Please help.
Thank you!Try using one of the popular javascript methods for this. I use shadowbox and you can find examples, info and a download here: http://www.shadowbox-js.com
-
How to startup a report in a popup after committing a form (solution)
How to startup a report in a popup window after succesfull submission of a form</p>
In Portal Applications you can create forms in which e.g. users can enter
order-entries. When a user submits his order, it's a good practice to show his
filled-in order-form, containing the delivery address, items, descriptions,
prices etc etc.</p>
In this solution the order-report is started up in a popup window after
succesfully completing the order-entry form.</p>
Once you've created the form and report, you have to take two extra steps
(the abbrevation mos represents MyOrderSystem and offcourse you should replace
that by the schema- and applicationname you use).</p>
1 Create a package to startup the report</p>
<font face="Courier">create package MOS.MOS_POPUP_ORDER
as
procedure show ( order_id varchar2, backurl varchar2 );
end; </font></p>
<font face="Courier">create package body MOS.MOS_POPUP_ORDER
as
procedure show ( order_id varchar2 , backurl varchar2 )
is
l_url varchar2(2000);
begin
if order_id is not null
then
-- URL to startup the report. Surf to the Develop tab while managing the
-- portal-report and click on Show the call interface.
l_url := 'http://www.mydomain.com/pls/portal30/'
| | 'MOS.MOS_ORDER_REP.show?'
| |
'p_arg_names=_show_header&;p_arg_values=YES&;'
| | 'p_arg_names=order_id&;p_arg_values='
| | order_id;
-- Display the popup window and startup the report.
htp.p('<SCRIPT> var MyWindow = window.open("'
| | l_url
| |
'","MyOrderWindow","toolbar=no,location=yes,directories=no,'
| |
'status=no,menubar=yes,scrollbars=yes,resizable=yes,'
| |
'height=400,width=600,left=150,top=150");'
| |
'MyWindow.focus();</SCRIPT>');
-- Now you have two options:
-- 1. When you have your form in a Portal Page, you want to return to the page.
-- 2. When you have your form in a full window, you only have to return to that
-- window.
-- The coding is as followed:
-- 1. Copy this URL from the navigator pointing to the page.
l_url := 'http://www.mydomain.com/pls/portal30/'
| |
'!portal30.wwpob_page_util.redirect?'
| |
'_pageid=123&;_mode=3&;_tabstring=&;_portletmode=&;_cache=1';
-- 2. Parameter backurl contains automatically the correct url to return
-- to the form in full browser mode.
l_url := backurl;
-- Now return to the original window.
htp.p('<SCRIPT>self.location.href="'
| | l_url
| | '"</SCRIPT>');</font></p>
<font face="Courier"> end if;
end;</font></p>
2 Modify the form</p>
In the "on succesful submission of a form" part you enter this
PLSQL. Note that the order is identified by the column ORDER_ID and the CALL
procedure needs two parameters: the url for starting up the report and the
parameter name for the back-url. </p>
<font face="Courier">declare
l_order_id integer;
begin
l_order_id := p_session.get_value_as_NUMBER(
p_block_name => 'DEFAULT',
p_attribute_name => 'A_ORDER_ID');
call('mos.mos_popup_order.show?order_id='|  4;l_order_id,'backurl');
end;</font></p>
</p>
nullExcellent tip! Thank you for that!
One question - where you have hardcoded the URL to navigate to the report and back again, I'd like to be able to do this without the hardcoding. The domain of my development environment is different from the domain of my production environment, and I don't want to have to remember to change the URL when I handover code. How could I do this? -
How can I open a customized report in a new window?
I am trying to create printable views for my reports that are published as portlets. In specific, I would like a link to open the report up in a new window where the user can print at. I have figured out how to do this with the default report created. However, after a user has customized the report, is there a way to open the customized report in a new window?
Hi
I do not think it matters whether your reports portlet is a default one or a customize one. I think whne you place the portlet, you can specify in the property to open up the result in new window. I think it is common feature of Portal.
Thanks
Rohit -
How can I produce a report of the people asked to complete a form and their response?
How can I produce a report of the people asked to complete a form and their response?
Thanks. I cover four different sites. We are using the same questions for the four sites. Each site has a different client base (with different users). So I am inviting persons to complete the form in an ad-hoc basis following training sessions (so far I have trained 10 out of 57). The responses will be viewed by two or three Managers. The problem is that it is difficult to see who has started filling out the form, who has not even looked at it, and those who have completed it. So for example at the moment I have a zero response to my requests to complete the form, although some people may be working on the form?
Russell W H Bulley C.Eng B.Eng MIET
Critical Engineering Manager
MITIE – Delivering FM for Lloyds Banking Group
5 Limeharbour Court, Limeharbour, London, E14 9RH
M: 07900704196
www.MITIE.com<http://www.mitie.com/>
Follow us:
Description: Description: Description: Description: Description: Description: Description: twitter_32<http://twitter.com/mitie_group_plc>[Description: Description: Description: Description: Description: Description: Description: facebook_32]<http://www.facebook.com/mitiepeople> Description: Description: Description: Description: Description: Description: Description: linkedin_32 <http://www.linkedin.com/company/mitie?trk=fc_badge> Description: Description: Description: Description: Description: Description: Description: youtube_32 <http://www.youtube.com/user/MITIEGroupPLC> Description: Description: Description: Description: Description: Description: Description: rss_32 <http://www.mitie.com/rss> Description: Description: Description: Description: Description: Description: Description: flickr_32 <http://www.flickr.com/mitie_group_plc -
SSRS 2008 : Open a linked report in a new window.
Hi,
How can I open a linked report, specified in the Action property, in a new explorer window?
Thanks,
AnuragHi Anurag,
If I understand correctly, you have used the "Jump to report" function to open a sub reoprt(linked report in your question). Now, you want to open the report in a new windows.
By default, if using "Jump to report" function, the sub report will be opened in itself. That menas, it won't be opened in a new window.
To open the sub report in a new windows, we can use the "Jump to url". Use JavaScript function "window.open" in the URL to open the reoprt in a new window:
="javascript:void(window.open('subreport name'))"
Please feel free to ask, if you have any more questions.
Thanks,
Jin ChenJin Chen - MSFT -
Hi All,
I have a calendar and a report on the same page:101. But I want to open a report on a new window whenever a user clicks on the event. I can not move the report on the different page because it is before login and public.
Please let me know.
Thanks.If you're wanting to just dump some data to a new window/popup, in the "Column Link" section:
+ Select "URL" for the Target field.
+ Enter the following in the URL field:
javascript:var newwin=document.open('','_errmsg','width=500,height=500'); newwin.document.write('#ERROR_MSG#')
...where ERROR_MSG (for this scenario) is one of the columns/attributes on the page. -
How do I get firefox to open a new window when i click on a link in a webpage ?
When I click on a link in a webpage in Firefox, generally it opens the new page in the window i am in (though some times it does not). How do I get it to open a new window (or tab) each time I click a link.
For example, on www.bbc.co.uk if I click on a link, the new page opens in the same window, if I then click another link in the new window, again, it opens in the same window. To get back to the original window, I have to use the back button twice. Surely there is a setting so that all 3 windows can be open on separate tabs or separate windows.
I have been to the tabs window in options, but doesn't seem to make a difference.Open link/bookmark in new tab in same window:
*Middle-click (press the mouse scroll wheel) the link
*Ctrl+left click the link
*right-click the link, choose "Open Link in New Tab"
Open link/bookmark in new window:
* Shift+Enter on the link
* Shift+left click on the link
See: http://www.7is7.com/software/firefox/shortcuts.html -
Open an on demand sub report in a new window
Hi There!
While reading the forum threads, there is an thread that have the same issue that i want to find out, but the thread is not yet answered. Could you guys help me. Thanks!
Thread by: Kylie Edwards
Hi I am wondering if it is possible to open an on demand sub report in a new window.
I have a report that has 6 level drill and I want to be able to close the information in the sub report to give the end user the ability to keep drilling.
I have tried inserting a text box with a hyper link back to the main report but hyper links do not seem to work the subreport. "
Thanks and Regards,
JoniHi all,
Sorry for the late reply, and thank you guys for the helped. I manage to solve the problem myself
To Falk:
Ya you are right, for what i know, Inforview is not possible to open a subreport from a RPT file in a new windows as well.
To Wallie Cheng :
When i posted the question for help, i just want to know if i could display a crystal report on a new window.
My situation is that i have a page that is size 3in x 3in ( Just a small static graph ) and i wanna attached a A4 report. In order to have a nicer view at inforview ( 3in x 3in border box ), i will need to reduced the size of the crystal report. The size of the main report is now properly change, but it affects the view for the sub report ( As subreport is A4 size, the system display the A4 size document in a serveral 3in x 3in page. -_-"' ).
To Abhishek:
I wanna try out your solution, but i can't find the hyperlink tab in perference option ( in inforview ).
I manage to solved my problem (suitation that i have explain to Wallie Cheng ). That is to created a hyperlink to the report. Rather than a subreport link.
Thanks and Regards,
Joni -
How do I sync my Ipod to a new library after my computer has crashed?
How do I sync my Ipod to a new library after my computer has crashed?
iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only media purchased from iTunes Store
Sync transfer is one way, matching the device content to the content on the computer, except purchased content as mentioned above. For transferring other items from an i-device to a computer you have to use third party commercial software. Examples (check the web for others; this is not an exhaustive listing):
- Senuti - http://www.fadingred.com/senuti/
- Phoneview - http://www.ecamm.com/mac/phoneview/
- MusicRescue - http://www.kennettnet.co.uk/products/musicrescue/ - Mac & Windows
- Sharepod (free) - http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2 - Windows
- Post by Zevoneer: iPod media recovery options - https://discussions.apple.com/message/11624224 - this is an older post and many of the links are also for old posts, so bear this in mind when reading them.
Syncing to a "New" Computer or replacing a "crashed" Hard Drive - https://discussions.apple.com/docs/DOC-3141
In general do not regard your i-device as a reliable unique storage for your media. It is not a backup device and everything is structured around you maintaining a backup of your media on a computer backup. -
How do I open a frame in a new window or tab?
I want to be able to open frames into their own tabs or window... So how do you do this, or is Firefox NOT CAPABLE of this... i.e. it's LAME and should be shot? (=:]
How do I open a frame in a new window or tab?
========================
Basically... I right click, and a context menu pops up... and there is no option for what I want to do... basically because the frame is so small, and the frame table for this particular site is set to fixed... so you can't resize them... so it's almost impossible to read. If only I could easily click and open in a new window or tab...
I mean... yeah, I can VIEW SOURCE by hand, manually, and find grope the freaking HTML until I find the desired frame URL... but Uhh... likee that's really inefficient, and a waste of time and frankly gives me a headache...
There's got to be an easy way to do this... either with a setting, which I fail to know about, or by a plugin or extension... or by tweaking the source code... but I'm not a programmer, so I'm handicapped there.If you right-click and don't see a context menu item that says '''This Frame''', that page isn't made with Frames; I-frames aren't "Frames". Unless you have an extension installed that is messing up your context menus ....
http://support.mozilla.com/en-US/kb/Safe+Mode -
Checkbox and report page in new window
Hi team,
I have the following problem.
On a page I display a report where each row has a checkbox.
The user can check a row and press a button (button in region)to produce a more detailed report. I want to display this report in a new window. I know that I can use the javascript PopUpURL or PopUp2. The issue I have is that I have to process the checkbox with function htmldb_application.g_f01(i). I can't use that directly. So what I have done is create a hidden field and assign the return value of the formentioned function to it in a Page processing computation. The problem I hit is that page processing is/has not taken place. Therefor the call to the new page is missing a paramater because the hidden field is empty.Hi Raymond,
1. Create a URL redirect branch back to the same page when the VIEW button is pressed
"f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:&REQUEST.:&DEBUG.:"
2. Create an Hidden Item P1_HIDDEN_ITEM
3. Create an after submit computation to null the hidden value item
4. Create an after submit computation to find out which check box is checked.
Dynamically generate the popup URL you would like to view into the Hidden Item.
P1_HIDDEN_ITEM
3. Create a JavaScript function called showpopup in the page HTML Header region
<script>
function showpopup () {
if ("&REQUEST." == "VIEW")
if ("&P1_HIDDEN_ITEM." != null)
popupURL('&P1_HIDDEN_ITEM.');
</script>
4. Call the showpopup function in on load JavaScript region. onLoad="showpopup();"
Try this and see if it works for you.
Also I would have changed the Checkbox to a Radio button group because this will limit the user to select only one row.
Vivek Ananda -
How do I open a playlist in a new window with the new version 11.01
How do I open a playlist in a new window with the new version 11.01
I use playlists a LOT to organize my music. It is extremely important to me to be able to open playlists in their own wondows. I am upset to see this feature removed. Please enable this functionality as soon as possible.
-
How to automatically save a report locally after a user has ran the report
Hi All,
I am currently working on a report where part of the the requirement is as follows:
--> report is to output into t CSV file that will be used later on.
--> report will need to write the CSV file into a defaulted location eg "C:\mydirectory\my_reports"
Therefore, the the user runs the report, it will automatically save into this directory instead of have to select the Export option on the report and save it to the required directory.
I am aware that bursting enables this feature and will save the file into a directory, however, I cannot find a solution that allows this automatic saving of reports to a specified directory.
Has anyone done this before or is it even possible?
Cheers,
JonasFor that use iqy queries ...
here you will able to see more information on how to create iqy http://oraclebizint.wordpress.com/2007/10/31/oracle-bi-ee-101332-iqy-and-auto-generation-of-go-url/ -
How to automatically startup Oracle on SUSE Linux
I have Oracle 11g installed on a server running SUSE Linux 11. I followed the official Oracle instructions to try to set up Oracle for automatic startup.
My /etc/oratab file contains the following:
sidname:/opt/oracle/product/11gR2/db:Y
I created a /etc/init.d/dbora file, which contains the following:
#! /bin/sh -x
# Change the value of ORACLE_HOME to specify the correct Oracle home
# directory for your installation.
ORACLE_HOME=/opt/oracle/product/11gR2/db
# Change the value of ORACLE to the login name of the
# oracle owner at your site.
ORACLE=oracle
PATH=${PATH}:$ORACLE_HOME/bin
HOST=`hostname`
PLATFORM=`uname`
export ORACLE_HOME PATH
if [ ! "$2" = "ORA_DB" ] ; then
if [ "$PLATFORM" = "HP-UX" ] ; then
remsh $HOST -l $ORACLE -n "$0 $1 ORA_DB"
exit
else
rsh $HOST -l $ORACLE $0 $1 ORA_DB
if [ "$PLATFORM" = "Linux" ] ; then
touch /var/lock/subsys/dbora
fi
exit
fi
fi
case $1 in
'start')
$ORACLE_HOME/bin/dbstart $ORACLE_HOME &
'stop')
$ORACLE_HOME/bin/dbshut $ORACLE_HOME &
echo "usage: $0 {start|stop}"
exit
esac
exit
Then I ran the following commands:
chgrp dba /etc/init.d/dbora
chmod 750 /etc/init.d/dbora
ln -s /etc/init.d/dbora /etc/rc.d/rc0.d/K01dbora
ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/S99dbora
ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/S99dbora
shutdown -r now
After restarting, Oracle was not running:
server:~ # ps -fea | grep ora
root 2681 2563 0 21:18 ? 00:00:00 hald-addon-storage: no polling on /dev/fd0 because it is explicitly disabled
root 2688 2563 0 21:18 ? 00:00:00 hald-addon-storage: polling /dev/sr0 (every 2 sec)
root 4491 4333 0 21:19 pts/1 00:00:00 grep ora
server:~ # ps -fea | grep lsnr
root 4493 4333 0 21:19 pts/1 00:00:00 grep lsnr
Oracle runs fine after I start the instance (by logging into sqlplus as "sys as sysdba" and issuing the "startup" command) and listener. But it won't start up automatically after restarting the server. Why is that?I got it working. I had to change the dbora file to look like this:
#! /bin/sh -x
# Change the value of ORACLE_HOME to specify the correct Oracle home
# directory for your installation.
ORACLE_HOME=/opt/oracle/product/11gR2/db
# Change the value of ORACLE to the login name of the
# oracle owner at your site.
ORACLE=oracle
PATH=${PATH}:$ORACLE_HOME/bin
export ORACLE_HOME PATH
touch /var/lock/subsys/dbora
case $1 in
'start')
su - $ORACLE $ORACLE_HOME/bin/dbstart $ORACLE_HOME &
'stop')
su - $ORACLE $ORACLE_HOME/bin/dbshut $ORACLE_HOME &
echo "usage: $0 {start|stop}"
exit
esac
exit
Then I had to delete the listener.log and startup.log files in $ORACLE_HOME because they were incorrectly owned by root.
Maybe you are looking for
-
GPIB-ENET driver 1.10 no longer works under Windows 2000 service pack 2
I have used my GPIB-ENET adapters with Windows 2000. However, since I installed service pack 2, the GPIB driver 1.10 no longer works. It seems to install correctly and puts the GPIB icon in the Control Panel. After a reboot, however, the icon is gone
-
Setting up csv files as a data source for Hyperion intelligence explorer on Windows 7
Hi. wondering anyone can point me to a resource or supply me with step son how to Set up csv files as a data source for Hyperion intelligence explorer on Windows 7? I used to be able to do it in WXP, but it seems thing shave really changed with W7...
-
When I send videos or photos by email they are sometimes received upside down.help.
When I email videos or photos they are sometimes received upside down.help.
-
Can you connect a 4th generation iPad to a printer with a cable?
Can you connect a 4th generation iPad to a printer with a cable?
-
I was trying to find the date of creation of a trigger in the database. But the detail is not in all_triggers view. Is there any other dictionary view, in which I can find this?