How to open a window on click of a button?
Hi,
I want to open a window(a new browser page) on the click of a button.Can anyone please tell me what i should write in the onAction of the button?
Regards,
Padmalatha.K
hi,
1.Declare the following in the implementaion of the component controller
//@@begin others
IWDWindow modalWindow;
//@@end
2.First create a method in the component controller :
public void createExternalWindow( )
//@@begin createExternalWindow()
// create external window
IWDWindow externalWin = wdComponentAPI.getWindowManager().createNonModalExternalWindow
("http://www.google.co.in/", "External");
//Define window position and dimensions according to acreen parameters
externalWin.setTitle("Google");
externalWin.setWindowPosition(WDWindowPos.CENTER);
externalWin.setWindowSize(1280,850);
externalWin.show();
//@@end
3.Create a button in the view, create an action. assign this action to the button . Now call the method in the view controller.
public void onActionexternal(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionexternal(ServerEvent)
wdThis.wdGetPopUpCompController().createExternalWindow();
//@@end
Now to create a modal window
1.Declare the following in the implementaion of the component controller
//@@begin others
IWDWindow modalWindow;
//@@end
2.Create a new window "NewPopWindow".Declare the following in the implementaion of the component controller.
public void createModalWindow( )
//@@begin createModalWindow()
//creating the window
IWDWindowInfo winInfo = wdComponentAPI.getComponentInfo().findInWindows("NewPopWindow");
modalWindow = wdComponentAPI.getWindowManager().createModalWindow(winInfo);
//display window in centre
modalWindow.setWindowPosition(WDWindowPos.CENTER);
modalWindow.setTitle("Modal Window");
modalWindow.setWindowSize(400,100);
//opening the window
modalWindow.show();
//@@end
3. destroy the window
public void destroyModalWindow( )
//@@begin destroyModalWindow()
modalWindow.destroyInstance();
//@@end
4.Create a button in the view, create an action. assign this action to the button . Now call the method in the view controller.
public void onActionmodal(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionmodal(ServerEvent)
wdThis.wdGetPopUpCompController().createModalWindow();
//@@end
regards,
pinki
Edited by: pinki goswami on Apr 17, 2008 11:42 AM
Similar Messages
-
How to open new window when i press submit button/submit button.
Hi,
When i press a button, I need to capture an item value in current from and I need to pass that value to another form. The child form should open in the new form.
For that Iam using the java script, But when i use the java script my page is not able to re-size, scroll bars address bar and menu bars are missing. if any one did this kind of requirment please share with me how to solve this issue.
ThanksRe: How to show Popup window in OAF on click of a button
Thanks
--Anil
http://oracleanil.blogspot.com/ -
Open new window on click of a button
Dear All,
We are using VC for development of Dashboards.
I have created the related i views.
First page of dashboard shows all the high level graphs.
I intoduced a button on the chart to go into details (another Iview)
I was able to navigate to the next layer on click of button in tool bar and comeback to the first layer again.
I want to open a new window when I click on the button on the tool bar of chart..
Is it Possible in VC? Please help us in this regard.
Points assured in full.
I have already posted this issue in the forum VC 7.1. But I couldn't get the answer.
Please Help us.
Thank You All and Regards
Joga SrinivasaDear All,
Sorry for getting back late.
Thanks for your inputs. Problem is solved using pushbutton. I gave the URL of the second Iview in the hyperlink of the pushbutton system action.
The problem with the Popup window is that it wont allow you to to go back and choose or analyze other parts of dashboard. so we adopted the pushbutton approach which takes you to another window allowing full access to the main window.
Once again, Thank you all.
Points assigned as promised.
Regards
Joga -
How to close main window on click of a button on popup window
Hi All,
I have created a web page which on certain condition display a popup window to to provide information. Wht i want is that when i click on close button on my popup window, my main window should also close.
Can anyone please help with this requierment!!!
Regards,
tusharHi All,
Could anyone of you please help me by answering the thread
WDDOEXIT method not called when the application is closed from the portal
Thanks,
Subash M -
How to open a form on click of a button in infopath
I have created an infopath form on a list. I need to create a button on the pape on click of which the last item created by the user should open. I mean the edit form of that list item should open.
How can we do this ?
Thanks for your response in adv.
Regards,
prajKHi,
Per my understanding, you might want to add a button on a page, when clicking it, the last form which is created by the current user will open.
As it might require to query the last form created by current user, custom code would be required.
A solution is that, you can query the URL of the last form created by the current user using JavaScript Client Object Model, generate a button with the URL retrieved
using JavaScript. Then when user open this page, the button will be created dynamically, user clicks it, the last form created by this user will open.
More information about JavaScript Client Object Model:
How to: Create, Update, and Delete List Items Using JavaScript
http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx
Common Programming Tasks in the JavaScript Object Model
http://msdn.microsoft.com/en-us/library/office/hh185015(v=office.14).aspx
About how to create a button using JavaScript:
http://stackoverflow.com/questions/7707074/creating-dynamic-button-with-click-event-in-javascript
Thanks
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Need Help in using ssrs action how to open outlook window to send an email
Hi Everyone,
I have a scenario i will get E-mail id as part of the database Fields as a column in report.
When i click on the E-mail id it as to open the "OUTLOOK" window.
How can i achieve this please....
Thanks in Advance.....
Sreekanth Note: Please vote/mark the post as answered if it answers your question/helps to solve your problem.*****Hi,
Try these links,
http://hjabbar.blogspot.in/2012/04/ssrs-link-to-open-outlook-and-compose.html
http://suhaskudekar.blogspot.in/2010/12/open-outlook-window-on-clicking-on.html
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/30ca3329-acd8-4fe2-b965-200c767a4b33
http://www.bidn.com/blogs/ChrisAlbrektson/bidn-blog/1797/ssrs-action-to-open-outlook-email
sathya --------- Mark as answered if my post solved your problem and Vote as helpful if my post was useful. -
How can I turn-off the apps which I have opened once in ISO 7.0.2. In previous version of ISO it was easy to turn-off the opened apps by double clicking on home button and then click and hold on respective apps then click on cross sign but in this version I could not do so and my iPad appears slower.
Close inactive apps
1. Double tap the home button to bring up the multi-tasking view
2. Swipe the app's windows upwards to close
3. The app will fly off the screen -
How to open a window in full screen mode using lf_fpm_navigation?
Hi Guys
For the following applications
ESS Application: HAP_START_PAGE_POWL_UI_ESS
MSS Application: HAP_START_PAGE_POWL_UI_MSS
When the user clicks on the appraisal document name, a seperate window(not full screen) is generated to display the Appraisal docuemnt.
The code is as follows:
COMP: HAP_START_PAGE_POWL_UI
Object : COMPONENTCONTROLLER
Method: FOLLOWUP_POWL
Generate the URL to be called.
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'HAP_MAIN_DOCUMENT'
in_parameters = lt_parameters
IMPORTING
out_local_url = l_url.
wd_this->url = l_url.
wd_this->display_document( ).
In Method: DISPLAY_DOCUMENT
lv_alias = 'EMPLOYEE_DOCUMENT_UI_OBN'.
use FPM navigation
ls_nav_key-key1 = 'HAP'.
ls_nav_key-key2 = 'HAP_GENERIC_UI'.
lr_fpm_navigation ?= lr_fpm->get_navigation( is_key = ls_nav_key iv_instance_sharing = abap_false ).
CALL METHOD lr_fpm_navigation->get_key_from_alias
EXPORTING
iv_alias = lv_alias
RECEIVING
rv_key = lv_key.
lr_fpm_navigation->modify_parameters(
EXPORTING
id_target_key = lv_key
it_application_parameter = lt_appl_param
it_business_parameter = lt_business_param ).
lr_fpm_navigation->navigate( lv_key ).
Any idea how to open this window in full screen?
Highly appreciate your help.
Thank and Regards
PramodHi Pramod,
This FPM navigation is achieved using settings made in Launchapd Customizing ( LPD_CUST ).
a) Execute Tran LPD_CUST
b) Go to Role HAP - Double Click to open it.
c) Open the second folder on the LHS menu - there you will find 2 entries
d) Click on second entry - in the entry setting you can see that it is configured for WD Application - HAP_MAIN_DOCUMENT
e) Click on button Show Advanced Parameters
f) There you will find a input box named as Window Features - here you can specify window features like
height=700,width=1100,position=center,menu=no,status=no,location=no,menubar=no,status=no,toolbar=no
save the settings come out and test ur app again.
change the height and width and other features as per ur req.
Regards
Manas Dua -
How to open new window and generate oracle report from apex
Hi,
I had created an application that generates PDF files using Oracle Reports, following this Guide.
http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
And I followed 'Advanced Technique', so that users can't generate PDF file by changing URL and parameters. This is done for security reasons.
But in this tutorial, when 'Go' button is pressed, the PDF file is displayed on the same window of apex application. If so, user might close the window by mistake. In order to avoid this, another window have to be opened.
So, I put this code in the BRANCH - URL Target. (Note that this is not in Optional URL Redirect in the button property, but the branch which is called by the button.)
javascript:popupURL('&REPORTS_URL.quotation&P2100_REP_JOB_ID.')
But if the button is pressed, I get this error.
ERR-1777: Page 2100 provided no page to branch to. Please report this error to your application administrator.
Restart Application
If I put the code 'javascritpt ....' in the Optional URL Redirect, another window opens successfully, but the Process to generate report job is not executed.
Does anyone know how to open new window from the Branch in this case?G'day Shohei,
Try putting your javascript into your plsql process using the htp.p(); procedure.
For example, something along these lines should do it:
BEGIN
-- Your other process code goes here...
htp.p('<script type="javascript/text">');
htp.p('popupURL("&REPORTS_URL.quotation&P2100_REP_JOB_ID.")');
htp.p('</script>');
END;
What happens is the javascript is browser based whereas your plsql process is server based and so if you put the javascript into your button item Optional URL Redirect it is executed prior to getting to the page plsql process and therefore it will never execute the process. When you have it in your branch which normally follows the processes, control has been handed to the server and the javascript cannot be executed and so your page throws the error "Page 2100 provided no page to branch to"... By "seeding" the plsql process with the embedded javascript in the htp.p() procedure you can achieve the desired result. You could also have it as a separate process also as long as it is sequenced correctly to follow your other process.
HTH
Cheers,
Mike -
How can I open the windows file directory in "WHEN-BUTTON-PRESSED" trigger
Dear All,
How can I open the windows file directory in “WHEN-BUTTON-PRESSED” trigger?Blessan Joseph,
The solution is dependent on your Forms version and if your applications is traditional Client/Server (CS) (Forms 6i and lower) or web deployed (Forms 6i and higher). For CS, you would use the Get_File_Name() built-in as Faa demonstrated. For Web, you will need to use the WebUtil library function Client_Get_File_Name() as Sarah (OGIR) demonstrated. Both of these functions will return the full path to a file. Note: WebUtil is an external library so it requires you to perform some configuration on your developer client as well as on the Application Server. WebUtil is included with Forms 9i and higher, but you must download it for Forms 6i.
My requirement is user should able to select windows directory for the output.Do you really need to allow the user to write to a file in the Windows directory? This is very dangerous and you should not allow users or programs to write to the Windows directory. Users should only be able to write files to "User" directories (\My Documents\<Directory name>).
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Destroy Portal Window on click on Logoff button
Hi Experts,
My requirement is a simple one. I simply need to destroy the portal window on click of logoff button. Initially i followed a few blogs and did the following.
Created an HTML KM document and copied its link under the ume.logoff.redirect.url property. But this link is getting appended twice when i click the logoff button.
Please let me know if there is some other way or if I need to make changes in the current approach. We access the portal within our own network i,e intranet.Hi Kaustubh,
Below is the way we did -
Create a logoff.html and place it inside km at any folder location. make sure everyuser group has full permission to this km folder. below is the code -
use html head and start script language then -
function closeWindow()
window.opener = top;
window.close();
end script language
call onload closewindow
end body and end html.
now, open visual admin and goto propery name - ume.logoff.redirect.url and write property value as -
Property Value =
http://<Server hostname:port>/irj/go/km/docs/.../.../logoff.html
and restart the server.
hope it helps.
Regards,
Sen -
How to call an applet on click of a button in core java?
On this, I suggest that if we can call commond prompt on background and then pass the path of the class file of another applet we can open another applet on clicking on the button what u says ? if any suggestions or code u can give it is our pleasure to know that.
If you are asking if you can execute an external process (application/applet) from another application/applet - the answer is yes and no.
Yes. If you have the security settings/policy to do so.
No. This may require a security policy to be allowed - as an applet. -
How can we open a New Window on click of a button
Dear All,
Please can anyone guide me how to open a page in A new pop up window.
Application Express 4.0.1.00.03
Thanks & regards
Arif KhadasAssalamwalkeum Tauceef,
Thanks for your reply.
For the second query where you want to refresh parent window and close the popup window,
Create a html region and give a condition to this region that it should display on a particular request and pass that request on your button click and write this javascript code in your Region SourceAccordingly I created a Region on the Calling Page and have the condition Request = REFRESH.
Now my problem is on the pop-up window how can I pass the Request as the action when button pressed is Submit and I am using an SQL Insert Action.
For such an action for button click the Request field is hidden.
Also please help me through this one for setting the Item values in the pop up window:
I have the following in Execute When Page Loads
var total = 0;
var inv = '';
var selected_inv = '';
total = opener.document.getElementById('P24_PAY_AMOUNT');
selected_inv = opener.document.getElementById('P24_PAY_INV');
$s('P23_RCP_AMOUNT_PAID', total);
//setSessionValue ('P23_RCP_AMOUNT_PAID', total);
$s('P23_INVOICES', selected_inv);
//setSessionValue ('P23_INVOICES', selected_inv);The value that I am getting for the above Items is " [object HTMLInputElement]" in Mozilla Firefox and "[object]" in Internet explorer, not sure why?
Please guide.
Thanks & Regards
Arif Khadas
Edited by: Arif Khadas on Apr 27, 2011 9:51 AM -
How to open new window with required size when clicking on image in a table
Hi,
There is an image column in advanced table. i want to open new window with required parameters(size, toolbar, status bar,etc..) and with that transaction context.
can any one help plzzzzzzzz?
Thanks
RajuYou can also use OAF js function to open modal pop up:
openWindow(self, '<url>','longTipWin', {width:900, height:400}, true); return false;
--Mukul -
How to open new window 640x520
When a user clicks on a button I want a 640 x 520 new window
to open, preferably without the browser address bar. You can see
the problem I'm having using target "blank" if you go to
http://movingcircles.com/ and
click on the first button (for Grand Entrance.) BTW if you go
there, please let me know how the flash file is playing for you.
Thanks.Hi David --
I've used a DW extension called "Popup Link" with great
success. You can
specify not only the size of the pop-up, but you can also
position it on the
screen as well as determine which window attributes (address
toolbar, status
bar, etc.) are displayed.
You can find it here:
http://www.flevooware.nl/dreamweaver/extdetails.asp?extID=8
HTH
John
"David Mainstreet" <[email protected]> wrote
in message
news:fca10s$399$[email protected]..
> When a user clicks on a button I want a 640 x 520 new
window to open,
> preferably without the browser address bar. You can see
the problem I'm
> having
> using target "blank" if you go to
http://movingcircles.com/ and
click on
> the
> first button (for Grand Entrance.) BTW if you go there,
please let me
> know how
> the flash file is playing for you. Thanks.
>
Maybe you are looking for
-
I had to rebuild my computer and when I imported all of my bookmarks they had no favicons. I started getting some of the favicons when I would go to the websight it would reconnect, but now I can't seem to see almost any of them. I did a search on Go
-
How to pass the page item data from tabA to TabB of a discoverer report
I have a discoverer repoort, it is master_detail (Dept-Emp) report TabA is a master worksheet, which has a page item Deptno (the data is from a customized query) TabB is detail report which has a Deptno as the page item which show the emp detail info
-
Best way to handle user scaling/offsetting of channels?
I have a "Channel Configuration" page in my program that I setup. The user can turn channels on or off for data acquisition. The user saves the channels (global variable), and then goes back to a Main Menu. Right now, if they want to add a channel or
-
Can I know what is "Commit" after failover to Azure ?
Can I know what is "commit" after failover to Azure ? I want to know "Commit" button of protected items. SETUP RECOVERY: [ Between an on-premisese Hyper-V site and Azure ] After failover from on-premis Hyper-V site to Azure, Protected item show "Comm
-
Our organization is just beginning to use Data Mining in BI. We're trying to understand what the typical protocol is for moving data models into production? Is it standard practice to create the data models directly in the Production system or are th