Applying skin to popup windows
We have extended the classic skin (added CSS and javascript stuff) to define styles
for our content that match the look and feel of the classic skin, etc. When our
portal renders, the portal framework inserts link and script tags in the head
for each of the css and js files defined in the skin, which is great. I'm wondering
if there is a way (tag, whatever) to similarly "apply" the skin to windows popped
up from the portal, so that our popups also adopt the same look as our portal
and portal content. Any ideas? Thanks.
Phil,
I'm sure this must have been worked around ????
No, but the solution is as follows:
1. Be advised that passing character data around (other than simple primary keys) in URLs is inadvisable as we've gone over many times.
2. You cannot pass colons in the argument value component of an f?p URL. Encoding them during HTTP transport is not a remedy.
3. To pass commas in the argument value component of an f?p URL, you can encode the entire value between backslashes. When you do this in javascript, the javascript rules require you to escape the backslash with a backslash, so an argument value of A,B would be represented as \\A,B\\.
Scott
Similar Messages
-
Hi all,
I'm looking for a way to have a popup window (initiated from a button within
a portlet) automatically set its skins to that of the current portal.
Specifically I'm implementing a "print article" type function.
thanks,
MarkusDear,
I use the javascript window.open(....) for popup a new portlet window
(remote),
and in remote portlet jsp written the follow javascript which u posted,
however, my remote window is hang on after
copyScripts(fromElement,toElement);
What's my fault ?!
in my code is
function onLoadSetting() {
fromElement = top.opener.document.getElementsByTagName("head")[0];
toElement = document.getElementsByTagName("head")[0];
copyScripts(fromElement, toElement);
copyLinks(fromElement, toElement);
Could u help me , Thanx
best regard ,
softleader, taiwan Gary Lee
"Will Butler" <[email protected]> ¦b¶l¥ó
news:3f8d490b$[email protected] ¤¤¼¶¼g...
This can be accomplished using javascript to copy the css links and the jsscripts from the opening page... Generally, fromElement would be
top.opener.document.getElementsByTagName("head")[0] and toElement would be
document.getElementsByTagName("head")[0].
>
function copyScripts(fromElement, toElement)
var scripts = fromElement.getElementsByTagName("script");
for (var i = 0; i < scripts.length; i )
var script = scripts;
var newScript = document.createElement("script");
newScript.src = script.src;
toElement.appendChild(newScript);
function copyLinks(fromElement, toElement)
var links = fromElement.getElementsByTagName("link");
for (var i = 0; i < links.length; i )
var link = links[i];
var newLink = document.createElement("link");
newLink.rel = link.rel;
newLink.href = link.href;
toElement.appendChild(newLink); -
Custom pushbutton in ME21N should display a popup window with item details
Hello,,
The requirement is to
1. Add a custom pushbutton in ME21N screen at header level.
2. The user will select some PO line items and will click on this push button.
This inturn should trigger a popup window with item details only for those selected PO line items along with schedule line qty.
I have created the custom push button in a custom tab using the BADI ME_GUI_PO_CUST.
Now I am not able to retrieve item details and schedule line details inside the PAI of the custom tab..
i.e., when i click on the custom push button, I am not able to retrive the item data and schedule line data.
Please help me to retrive PO line item data and schedule line data.
Regards,
SharahJSF is not so relevant in this question. It's all about how the generated client side code look like. Which is usually a bunch of HTML/CSS/JS (open page in browser, rightclick and view source). If you know HTML, you should know that using target="_blank" in a <form> or <a> element would open a new window. If you know JS, you should know that using window.open() would open a new window.
Apply this so in the JSF source code so that the generated HTML/JS output is exactly what you want. -
I installed Lion 10.7.4. Went to use Photoshop Cs and got a popup window. You can't open the application Adobe Photoshop CS because PowerPC applications are no longer supported. Is there a way of getting this to work or do I have to get newest version of all of my Power PC apps?
Welcome to Apple Communities
PowerPC applications are unsupported in newer versions. You can upgrade Photoshop or you can install Snow Leopard in a partition.
1. Open Disk Utility (Applications > Utilities) and select your drive
2. Go to Partitions tab, press + button, create a new partition and press Apply
3. Insert the Snow Leopard install DVD and reboot pressing C key
4. Install it in the new partition
5. If you want to change boot, go to System Preferences > Startup Disk and select 10.7 -
How to stop popup window using phone layout for display - Responsive HTML5, RH11
Hello,
I'm using the new Responsive HTML5 output in RH11. For some of my hyperlinks, I want to use a pop-up to display the linked topic. In the output, the pop-ups work, but they are automatically displayed using the phone layout, with the associated navigation buttons at the bottom, the help title, and so on. I don't want this - I just want a plain popup window. So, I tried to add a Screen Profile, set to 400 x 500 pixels exactly (thinking that this is bigger than a phone, but smaller than a tablet). I also added a corresponding Screen Layout. In the popup properties, I set the popup size to be 400 x 500 pixels. I guess there is something else I need to do to get this to work... but I don't know what that is. (I tried creating a new Window on the Project Set-up tab, and I tried creating a different master page. These things didn't work.)
Can anyone tell me if what I'm trying to do with these popups is just a bad idea and it won't work well with certain browsers?
Thanks!
AlexandraI am confused as the responsive layouts are one size fits all, that is the point of them. You have one layout that morphs according to window size.
Screen Profiles are only used within Multiscreen HTML5 layouts where you can map screen profiles to different adaptive screen layouts, such as desktop, tablet and phone. That mapping does not apply to responsive layouts.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
TIP: Building Modal Popup Windows
Build Modal Popup Pages
Introduction
The following is based on the 'How To Document' - 'Build Custom Popup Pages'.
This How To will show the developer how to create Modal Popup windows with the ability to pass information back to the parent window.
Example Scenario
The example described in this how to adds a custom modal popup LOV to a form on the SCOTT.EMP table. Clicking the popup LOV link on the form page will popup a Modal LOV page that allows users to search by ENAME, JOB, and SAL. Selecting a value from this LOV page will close that popup LOV page and populate the ENAME, JOB, and SAL fields on the form page with the selected values. Additionally, had the user entered some data into the ENAME, JOB, and/or SAL fields on the form page, that data would be used in the initial search when the popup LOV page is first shown.
Step 1 - Create a simple form page on SCOTT.EMP
To create the form page, simply step through the HTML DB "Form on a Table or View" wizard against the EMP table accepting the defaults. For this example, create the form with a page number of one, and make sure to allow the ename, job, and sal fields to be editable. When the wizard completes, page 1 of the application should have the items P1_ENAME, P1_JOB, and P1_SAL on it as text fields.
Step 2 - Create a popup page with search fields
Next, create a page that's to be used as the popup window: Page 2. Ultimately, this page will have javascript, a report region, and some buttons. For now, though, just create a page 2 with the items P2_ENAME, P2_JOB, and P2_SAL on it as text fields.
Step 3 - Set Modal popup page header requirements
A) Modal windows by default cache the information they display. When creating a popup window which displays different information each time it is called or to allow searching the caching default must be switched off.
Add the following meta-tag to the "HTML Header" field of the page-level attributes screen for page 2 to accomplish this:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
B) Modal windows by default open a new window when running any redirect calls. When creating a modal popup which passes back parameters to the parent window. The modal window has to be forced to fire redirect calls within its own window rather than open a new window for the redirect.
Add the following tag to the "HTML Header" field of the page-level attributes screen for page 2 to accomplish this:
<base target="_self">
Step 4 - Add Javascript call to the popup page
Because the popup page should filter its result set based on any values that the user might have entered onto the form page, you need to add a javascript function that would pass those values off. Add the following function to the "HTML Header" field of the page-level attributes screen for page 1 to accomplish this:
<script language="JavaScript" type="text/javascript">
function callMyPopup (formItem1,formItem2,formItem3) {
var formVal1 = document.getElementById(formItem1).value;
var formVal2 = document.getElementById(formItem2).value;
var formVal3 = document.getElementById(formItem3).value;
var url;
url = 'f?p=&APP_ID.:2:&APP_SESSION.::::P2_ENAME,P2_JOB,P2_SAL:' + formVal1 + ',' + formVal2 + ',' + formVal3 ;
// IE Browsers modal popup window
if (window.showModalDialog) {
w = showModalDialog(url, window.self,"status:0; scroll:1; resizable:1; dialogWidth:25; dialogHeight:43");
// w is an array returned from the modal popup containing the passback values
if (w) {
document.getElementById("P1_ENAME").value = w[0];
document.getElementById("P1_JOB").value = w[1];
document.getElementById("P1_SAL").value = w[2];
document.getElementById("P1_SAL").focus();
else {
// mozilla based browsers modal popup window
w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600", modal="yes");
if (w.opener == null)
w.opener = self;
w.focus();
</script>Though you don't need to know how to read javascript for this example, it helps to understand that this function only does one important thing: it opens a modal popup window of page two in our application while passing values to P2_ENAME, P2_JOB, and P2_SAL. It gathers those values to pass from the names of the HTML DB items provided to it. The call to this function will be added in the next step below.
Step 5 - Add a popup link next to the P1_SAL field on the form page
Add a link to the form page that will call the callMyPopup function above and pass it the values it needs. To do so, place the following HTML in the "Post Element Text" field attribute of the P1_SAL item:
<~a href="javascript:callMyPopup('P1_ENAME','P1_JOB','P1_SAL');">Click for LOV<~/a>NB. remove ~ from above when deploying
Step 6 - Add the LOV report to the popup page
The next step is to create a report on the popup page based on the values passed from the form on page one. The tricky part of this report is providing a means for the selected values to be passed back to the form page. This can be achieved by having a column of the report render as a javascript link that would close the popup window and pass the ename, job and sal values for that row back. Start by adding a simple report region to our Modal popup page that uses a query such as:
select ename, job, sal , 'placeholder' the_link
from emp
where ename like '%'||:P2_ENAME||'%'
and (job = :P2_JOB or :P2_JOB is null)
and (sal = :P2_SAL or :P2_SAL is null)Note that the last column in this query is just a placeholder. once the region is created, turn that placeholder into a link by doing the following:
Navigate to the Page Definition for page 2
Next to the name of the report region created in step 6, Click Q
Next to the column THE_LINK, click the edit icon
In the "Link Text" field enter the string "select"
In the URL field enter: javascript:passBack('#ENAME#','#JOB#','#SAL#'); Click the "Apply Changes" button
Step 7 - Add the javascript function to the Modal popup page to pass selected values to the (parent) form page.
In the previous step you added a call to a javascript function, passBack. Now add that function to the top of Modal popup page 2. In the same manner as step 4 above, add that passBack function to the page 2 by putting it in the "HTML Header" field of the page-level attributes screen. The function should look similar to the following:
<script language="JavaScript">
function passBack(passVal1, passVal2, passVal3)
// IE Browser return the passback values in an array
if (window.showModalDialog) {
var retVal = new Array(passVal1, passVal2, passVal3);
window.returnValue = retVal;
window.close();
// Mozilla based browsers right the passback values directly into the parent window
else {
opener.document.getElementById("P1_ENAME").value = passVal1;
opener.document.getElementById("P1_JOB").value = passVal2;
opener.document.getElementById("P1_SAL").value = passVal3;
opener.document.getElementById("P1_SAL").focus();
close();
</script>This function simply sets the values of P1_ENAME, P1_JOB, and P1_SAL with the values of the whatever's stored to the three HTML DB item names passed to it. It also closes the current window and puts the cursor back into the P1_SAL field.
Step 8 - Polishing
The basic functionality of this custom modal popup window has been created in steps 1 though 7. To make its usage a little more friendly, it's advisable to add Cancel and Search buttons to the popup window page. The Search button should just be added as a regular button that branches back to the page 2. Adding this button allows users to re-query for LOV options without having to return to our form page. The Cancel button should be created with an "Action" of "Redirect to URL". The "URL Target" of the button should be javascript:window.close(). As the code suggests, the Cancel button would just close the popup window (with no values returned).
Hope this is of use....Everything said above is working fine but in Mozilla small popup is coming in top left corner of browser..
so please help me so that it is opened in proper width and height in mozilla. -
Can't get popup window to work, could use code help.
This is the first time I've tried to open a popup window in
flash, and I can't get it to work. The site I'm building has the
navigation buttons contained in an animated movie clip. All of the
navigation buttons work fine. But there's a link that the company
wants me to add that opens a window to another site who hosts a
video commercial for the company (it has to be a link to the other
site, it can't be added directly to the customers site).
The link the other company sent me is for javascript (I'll
include it in the attached code), and the code works great if I
just insert the javascript in the html. But I wanted to try and get
the link in the Flash menu. I've tried several versions of the
code, from applying it directly to the button to naming an instance
of it and attaching the actionscript in the movie clip. When I'm
done, I get two different problems. On my XP machine, I get a
warning error about the flash trying to open something to another
server. On my Vista machine, nothing happens at all.
Anyway, I'm including the original javascript and several
versions of the actionscript I've tried (with the actual site
information replaced with "fakeurl.com", wasn't sure how these
forums felt about including site info). Any help at all would be
greatly appreciated. I've searched and searched for about a week,
and I'm tempted to just do away with the Flash button and use a
cheesy javascript button for this one link.
Thanks!
MoAttIn article <[email protected]>,
[email protected] wrote:
> All I want to do is have a Close Window link in my popup window that works.
Select your text that you want to act as a trigger to close the window,
just as if you were going to create a link.
Then paste the following line of code into the link Inspector:
javascript:self.close();
That should do the trick.
Cheers Martin -
XSLT Issue to open URL in new tab and PopUp Window through one custom style
I have SharePoint Online Custom List that contains two columns
Name: Single Line of Text
URL: Hyperlink or pictures
Using XSLT I have shown Name columns value on my home page by using below custom style in
Itemstyle.xsl file.
Custom style to show Link in PopUp window itemstyle.xsl
<xsl:template name="OpenApplicationPagePopUp" match="Row[@Style='OpenApplicationPagePopUp']" mode="itemstyle">
<xsl:variable name="SafeLinkUrl">
<xsl:call-template name="OuterTemplate.GetSafeLink">
<xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="DisplayTitle">
<xsl:call-template name="OuterTemplate.GetTitle">
<xsl:with-param name="Title" select="@Title"/>
<xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
</xsl:call-template>
</xsl:variable>
<div class="item link-item">
<xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
<a href="{$SafeLinkUrl}" onclick="ShowPopupDialog(GetGotoLinkUrl(this));return false;">
<xsl:if test="$ItemsHaveStreams = 'True'">
<xsl:attribute name="onclick">
<xsl:value-of select="@OnClickForWebRendering"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$ItemsHaveStreams != 'True' and @OpenInNewWindow = 'True'">
<xsl:attribute name="onclick">
<xsl:value-of disable-output-escaping="yes" select="$OnClickTargetAttribute"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="$DisplayTitle"/>
</a>
</div>
</xsl:template>
My Requirement to show only Suggestion Box in Popup window Other Links Should be open in new Tab So please suggest me what can change in above xslt...
Thanks
Deepak Chauhan
SharePoint 2010 & 2013 and Office-365 Branding and Front End Customization, UI DesignHi,
In SharePoint 2013, we can use JSLink to achieve it.
1. Save the following code as a js file (URLPopup.js) and upload it into the
SiteAssets Document Library.
// List View – Field open modal dialog Sample
(function () {
// Create object that have the context information about the field that we want to change it output render
var linkFiledContext = {};
linkFiledContext.Templates = {};
linkFiledContext.Templates.Fields = {
//Apply the new rendering for URL field on List View
// "URL" is the column name.
"URL": { "View": URLFiledTemplate }
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(linkFiledContext);
// This function provides the rendering logic for list view
function URLFiledTemplate(ctx) {
var itemTitle=ctx.CurrentItem.Title;
var urlLink=ctx.CurrentItem.URL;
var urlDesc=ctx.CurrentItem['URL.desc'];
if(urlLink!=null&&urlLink!=""){
if(itemTitle=="Suggestion Box"){
return "<a href='#' onclick=\"openModalDialog('"+urlLink+"')\">"+urlDesc+"</a>";
}else{
return "<a href='"+urlLink+"' target='_blank'>"+urlDesc+"</a>";
}else{
return "";
function openModalDialog(url)
var options = {
title: "Suggestion Box",
autoSize: true,
url: url
SP.UI.ModalDialog.showModalDialog(options);
return false;
2.Edit the list view page.
3.Edit the list web part. Go to Miscellaneous -> JS Link.
4.Add the following URL into the JS Link textbox.
~site/SiteAssets/URLPopup.js
5.Click "OK" and save the page.
Best Regards
Dennis Guo
TechNet Community Support -
Close popup window and refresh the parent window
Hello,
I have a button in a normal report, when clicked opens up an popup window which is a form containing some items and here in this form (i have some editable text items) I make some changes and click on the apply changes button -- this should update the form, close the popup window and should refresh the parent window.
can anyone please help me out with this issue.
Thanks,
Ortonyou have your popup window. When they apply the changes you want it to close the window, right?
Modify the button (save, apply changes) and give it url redirect to the custom function you create (See below): javascript:saveChanges();
in the page header, add a new function:
<script type="text/javascript">
function saveChanges(){
doSubmit('SAVE');//this is the line to save the current form on the popup window. (This assumes SAVE is the request value that should udpate the db)
window.close();//close the popup window
window.opener.doSubmit('REFRESH');//call doSubmit function on the parent window to cause the page to refresh.
</script> -
Display popup window on roll over on the cell in ADG
Hi All,
I want to create a application where a popup window will be opened when user mouse roll over on a cell and closed when roll out from the cell. actually i want to use a popup window same as toolTip feature of ADG. I have implement it by many ways:
1. by combination mouse move, ITEM_ROLL_OVER, ITEM_ROLL_OUT of ADG.
2. By Rool over and roll out of custom item renderer But each time i am facing a run time error while rolling mouse in cell. error is in updateLastActiveForm() of systemManager class.
Get the project file from here http://old.nabble.com/file/p29836926/popupinColumn.zip
Error:
Error
at mx.managers::SystemManager/updateLastActiveForm()[C:\autobuild\3.2.0\frameworks\projects\ framework\src\mx\managers\SystemManager.as:5087]
at mx.managers::SystemManager/activateForm()[C:\autobuild\3.2.0\frameworks\projects\framewor k\src\mx\managers\SystemManager.as:2352]
at mx.managers::SystemManager/activate()[C:\autobuild\3.2.0\frameworks\projects\framework\sr c\mx\managers\SystemManager.as:2307]
at mx.managers::FocusManager/creationCompleteHandler()[C:\autobuild\3.2.0\frameworks\project s\framework\src\mx\managers\FocusManager.as:1592]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9298]
at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as :1169]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:718]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568] Please let me know if any one have a solution. Thanks
Sachin dev tripathi(DevSachin)1. adding a RawText item to your page.
2. binding a attribute of VO to the RawText. (ex: VO Name:TempVO; Attribute name:Script)
3. writing coding in your processFormRequest
am.invoke("showMessage");
4. writing a method in your AM
public void showMessage()
Row row = getTempVO().first();
row.setAttribute("Script", "<script>alert('test');</script>");
} -
i'd like to generate a popup window, much like how on apple's
website, the close-up pictures pop up (
http://www.apple.com/keyboard/),
or something similar. basically, i'd like my viewer to be able to
click on a small picture and have a bigger picture pop up in its
own window, w/ a close or X button. is that possible through the
"getURL" action script? i reckon that this AS only applies to URLs.
any direct help or link to a good source site would help.
thanks a million!!!i always just make mine in flash. create a background that is
the same size as your stage. then turn it into a movieclip with a
blank first frame and a stop. make it like 20 frames. the first 10
for the popup window in animation and 10 for the out.
when a thumbnail is clicked it sets a variable equal to the
link of the image. when the popup gets to frame 10 you have code
there that takes that link and loads the image.
make a close button that goes to the 11 frame and plays.
i usually make the actions layer go like this.
frame 1 = stop();
frame 2 = "in";
frame 10 = stop(); and other code for loading an image.
frame 11 = "out"
frame 20 = nothing, let it loop around to the first frame
where a stop is and it is totally blank.
make sure this is on a layer that is higher than everything
else. -
Hi,
I have a reqirement in OAF where i have page with some fields, apply and cancel buttons. When i click on apply button it should validate the data entered in those fields and if any thing is wrong, it should display error messge on the top of the page and if success it should show a popup window or alert box with a messge that the record is successfully created and an ok button. When i click Ok button it should navigate to Home page.
For now i am validating the data when i click on apply button and throwing error or success message on the same page (This happens in Process Form Request). But cannot go to home page.
The part which i dont know is, when i click on apply button, how to popup a small window or alert box with an Ok button if it is success. When i click on OK button it should navigate to Home page.
I have gone though a lot of threads on this forum and developers guide but couldnt find a match to my requirement.
Can some one please help.
Thanks
Pavan1. adding a RawText item to your page.
2. binding a attribute of VO to the RawText. (ex: VO Name:TempVO; Attribute name:Script)
3. writing coding in your processFormRequest
am.invoke("showMessage");
4. writing a method in your AM
public void showMessage()
Row row = getTempVO().first();
row.setAttribute("Script", "<script>alert('test');</script>");
} -
Resizing siebel In built popup windows in VMware
Hi,
I have installed Siebel 7.7 in windows xp using vmware as my personal laptop has got windows vista.
when I am using tools I am facing problem with popup window as its size is too large and not able to update the window.
For instance to Apply changes in table ,I clicked Apply button I could not update ODBC Data Source as I am unable to navigate.
Could you please suggest me any solution for this.
Thank You,Is there any suggestions for this
Edited by: user578578 on Aug 6, 2009 7:01 AM -
Question:
The requirements is that when you click the report on report manager you will get an popup window with the disclaimer message, only after you read this message you can click the “Agree” button, then you can continue to read the content of the report, if you
disagree with it, you can click the “Disagree” button to back to the home or other path you want.
Answer:
To achieve this goal, we can add some JS or JQuery code in the report.aspx file in the path like:”C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\Pages”
Find the path of the report.aspx file and add these code in to it.
<script type="text/javascript" src="</script">http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
<link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function() {
var result = new RegExp('[\?&]ItemPath=([^&#]*)').exec(window.location.href)[1];
//get the path of the folder which the report exists
var reportFolder = result.split('%2f')[1];
//get the report name which you want to add this pop up window.
var reportName = result.split('%2f')[result.split('%2f').length - 1];
//hide the report before you click the agree button
document.getElementById("ui_form").style.display = "none";
//alert(result);
//alert(reportFolder); //test the report folder name to see if it is correct
if (reportName == "your report name" && reportFolder=="your folder name") {
$("#dialog").dialog({
title: "jQuery Dialog Popup",
height: "250",
modal: true,
buttons: {
"Agree": {
text: "Agree",
id: "my-button-id1",
click: function() {
$(this).dialog('close');
//display the report after you click the agree button.
document.getElementById("ui_form").style.display = "block"; }
"Disagree": {
text: "Disagree",
id: "my-button-id2",
click: function() {
location.href = '/Reports'
else {
document.getElementById("ui_form").style.display = "Block";
</script>
<div id="dialog" style="display: none; z-index:20001">
Please make sure you have read this information and understand clearly before enter the report.
</div>
When you click the report you will the popup window as below:
when you click “Agree” the report will display and when you click “Disagree” it will back to the home page.
Applies to:
Reporting Services 2005
Reporting Services 2008
Reporting Services 2008 R2
Reporting Services 2012
Reporting Services 2014
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.Question:
The requirements is that when you click the report on report manager you will get an popup window with the disclaimer message, only after you read this message you can click the “Agree” button, then you can continue to read the content of the report, if you
disagree with it, you can click the “Disagree” button to back to the home or other path you want.
Answer:
To achieve this goal, we can add some JS or JQuery code in the report.aspx file in the path like:”C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\Pages”
Find the path of the report.aspx file and add these code in to it.
<script type="text/javascript" src="</script">http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
<link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function() {
var result = new RegExp('[\?&]ItemPath=([^&#]*)').exec(window.location.href)[1];
//get the path of the folder which the report exists
var reportFolder = result.split('%2f')[1];
//get the report name which you want to add this pop up window.
var reportName = result.split('%2f')[result.split('%2f').length - 1];
//hide the report before you click the agree button
document.getElementById("ui_form").style.display = "none";
//alert(result);
//alert(reportFolder); //test the report folder name to see if it is correct
if (reportName == "your report name" && reportFolder=="your folder name") {
$("#dialog").dialog({
title: "jQuery Dialog Popup",
height: "250",
modal: true,
buttons: {
"Agree": {
text: "Agree",
id: "my-button-id1",
click: function() {
$(this).dialog('close');
//display the report after you click the agree button.
document.getElementById("ui_form").style.display = "block"; }
"Disagree": {
text: "Disagree",
id: "my-button-id2",
click: function() {
location.href = '/Reports'
else {
document.getElementById("ui_form").style.display = "Block";
</script>
<div id="dialog" style="display: none; z-index:20001">
Please make sure you have read this information and understand clearly before enter the report.
</div>
When you click the report you will the popup window as below:
when you click “Agree” the report will display and when you click “Disagree” it will back to the home page.
Applies to:
Reporting Services 2005
Reporting Services 2008
Reporting Services 2008 R2
Reporting Services 2012
Reporting Services 2014
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread. -
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday
Maybe you are looking for
-
How to deactivate *Schedule Background Job for Work Items with Errors* SWU3
Hello Guys, Can any one tell me how do I DEACTIVATE Schedule Background Job for Work Items with Errors in sap workflow SWU3. Currently it is green which I don't want. I want to stop this service. Regards NK
-
I left a wifi zone during an ios update for my iphone 4, now my phone is frozen in that state. how do i restart my phone to continue using it untill i get back to awifi zone?
-
I have the previous version of the Time Capsule (1TB) and I have it connected to 3 apple TVs and 4 Airport Express for coverage extension. Because we have a large family, there are 6-7 personal devices (iPad, iPod, etc.) connected. One of the aTVs c
-
Error Installation Netweaver R2 in HPUX with DB2 9_1
Hi all I have problem after putting in the installation wizard of the path of the files exports Is this the information of log: INFO 2008-04-18 10:09:12 Authorizations set for /usr/sap/install/IXQ_CI/sapinst_instdir/NW04S/SYSTEM/DB6/CENTRAL/AS/last_c
-
Leopard 10.5.6 imac 24" won't wake from sleep
Hi - Recently my mac has stopped waking from sleep. This happens about 50% of the time and neither the keyboard or mouse will wake the machine... the only resolution is to hold the power button. Is there anywhere I can check to see what's causing thi