Close page through WD button click
Hi,
How do I close a portal page (brought up through object-based navigation) which holds my Web-dynpro service, through a Web-dynpro button-click?
What (portal) event do I trigger and how?
Thanks,
Adi
Hi
I had created a blog for this , please go through that
How to close parent window in Webdynpro applications?.
Thanks
Anzy
Similar Messages
-
Calling a procedure from an OAF page through a button in the screen
problem: calling a procedure from an OAF page through a button in the screen
CREATE OR REPLACE procedure APPS.xx_delete_dept_prc(p_id in number)
as
begin
delete from xx_training_dept_tbl where td_dept_id=p_id;
commit;
end;
2. create image button for delete
3. set the following property to this button:
action type : fire action
event :DeleteDept
parameter :
name: DEptIdParam value: ${oa.XxTrainingDeptVO1.TdDeptId}
4. create Co and writing the following code on process form request
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
String actionInscreen=pageContext.getParameter(EVENT_PARAM);
if ("deleteDept".equals(actionInscreen))
String deptidparam=pageContext.getParameter("DeptIdParam");
Serializable [] s={deptidparam};
Class [] c={deptidparam.getClass()};
OAApplicationModule am=pageContext.getApplicationModule(webBean);
am.invokeMethod("deleteDept",s,c);
throw new OAException("delete completed",OAException.INFORMATION);
5. create AM and writing the following code
public void deleteDept(String deptid) {
XxTrainingDeptVOImpl deptview= getXxTrainingDeptVO1();
deptview.deleteDept(deptid); }
6.create VO and writing the following code in view object class
public void deleteDept(String deptid
System.out.println("Dept ID =" +deptid);
String s = "call xx_delete_dept_prc(:1)"; // :1 is the number of parameter to pass it to procedure
CallableStatement cs =trx.createCallableStatement(s,1); // 1 number of record to fetch but delete always delete 1 row
try
cs.setString(1,deptid); // the name of the first parameter
cs.execute();
cs.close();
catch (SQLException e)
e.printStackTrace();
} -
Programmatically Open and close panel accordion on button click
Hi All,
Im using JDev 11.1.1.4 and adf faces application.
My requirement is to open/close panel accordion on button click programmatically.Kindly have a look at below figured one
Panel accordion Open Button
| ShowDetail1 //Consider first one is open inside close button is there to close this pane..
|
|
|
Close Button
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Show detail2 open button
Show details3 open button
Any idea...
Thanks,Thanks Mr.frank...
But disclosed property is to make the showdetail to disclose or not.. but requirement is to open panel accordion on button click
By default using panel accordion have arrow icon in left to open in a same way if i open the second one, first will get close automatically...
Actually is there any way to do the default process (open/close) programmatically... -
How to redirect to home page on "Cancel" button click
Hi,
I have created a web part for office 365 developed using sandbox solution on Sharepoint foundation 2013.
On "Cancel" button click i want to redirect user to another page(Home page) using C# only.
i used some methods like
Context.Response.Redirect(SPContext.Current.Web.Url.ToString() + "/Home.aspx");
but its not working. No methods which includes context or HttpContext is not working.
Please, tell me how can i redirect user to site home page.Hi,
you can try this
var button
= new Button();
button.Attributes.Add("OnClick"
, "javascript:{window.location='your
page url';return
false;}");
this.Controls.Add(button);
Hope it helps!
Avni Bhatt -
Hi All,
I have a page thats very lenghty.
On the button click can I scroll the page automatically to
see the vbox thats at the bottom of the page or will the setfocus
work?
Thankshave you tried to use setFocus?
I think verticalScrollPosition property of the Container
class should do the trick.
ATTA -
How to close the browser on button click?
Hi,
On a HTML page, I have a button labeled as "Close". When user click the button, I want to close the browser. I am using Apex 4 with 10g.
I created the following process which I call on pressing the close button:
BEGIN
htp.p('<body>');
htp.p('<script type="text/javascript">');
--htp.p('window.opener.doSubmit();');
htp.p('window.close();');
htp.p('</script>');
htp.p('</body>');
END;But it shows the below in the browser instead of closing it.
Location: f?p=17638:9:3591448756041585::NO
Any wayout?
ThxFor popup windows I use button code / javascript such as this.
The self function refere to the correct window, while window.close my be connected to the wrong (parent) window.
input type="button" value="Cancel" onclick="self.close();" id="CANCEL"Edited by: Sven W. on May 26, 2011 2:46 PM -
Close the Window on Button Click.
please can someone help.
I am trying to close the window in which my 'Exit'button is defined.
For this I am using:
button.addActionListener(this);
public void actionPerformed(ActionEvent e) {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
//dispose();
But the window still doesnt close,till I click on the 'X' icon.action{
if(e.getSource() == myButton){
jframe.setVisible(false)
// possibly jframe.dispose() depending on what you are trying to do
//if you are tying to exit the program all together
System.exit(0);
}http://mindprod.com/jgloss/close.html
xpost
http://forum.java.sun.com/thread.jspa?threadID=764106&tstart=0 -
CRM5.2 UI-Call a dynamic URL on button click
Hi all,
My requirement is to call a dynamic url on the click of a button in the overview page. I have added a custom button in the method IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS , and the related code in do_handle_event.I have created a custom method for the button event. I have enhanced a custom controller and created an attribute.In the custom method created for the button event, I have written the code for retrieving the parameters to be passed to the url.
In the layout of the view associated with the display view , I have written the following code for calling the URL in a new window.
<%
DATA: lr_cuco_EMA TYPE REF TO ZL_BP_CONT_BPCONT_IMPL,
lv_url TYPE string,
lv_url1 type string,
lv_count type i.
lr_cuco_EMA ?= controller->get_custom_controller( 'ZBP_CONT/BPCONT' ).
check lr_cuco_EMA is bound.
if lr_cuco_EMA->gv_VALUE is not initial.
if lr_cuco_EMA->gv_COUNT IS NOT INITIAL.
clear lr_cuco_EMA->gv_COUNT.
endif.
LV_URL = lr_cuco_EMA->gv_VALUE.
Concatenate 'http:/' LV_URL into LV_URL1.
Concatenate '"http:/' LV_URL '"' into LV_URL.
lv_count = lr_cuco_EMA->gv_COUNT mod '2'.
if lv_count Ne 0.
lv_url = lv_url1.
endif.
%>
<scrpt language="Javascript">
window.open(<%= lv_url%>).focus();
</script>
<%
lr_cuco_EMA->gv_COUNT = lr_cuco_EMA->gv_COUNT + 1.
clear lr_cuco_EMA->gv_value.
clear lv_count.
clear lv_url.
clear lv_url1.
ENDIF.
%>
But here my URl is getting called alternate times.If I do not write the code by using the variable GV_COUNT the url is getting called only the first time of the button click and to call the URL again you need to navigate back to the search page and again back to the overview page and click on the button.
Can anyone help me regarding this? I want the URL to be called in a new page on every button click.
Thanks in Advance,
ChandanaHi Nisha,
The crux of your issue here is that you want to call the event triggered with onClick before calling the event triggered on onClientClick. This can be achieved by the following code in the function called on the onClientClick.
function fn_button()
htmlbSL(this,2,'b_row_selection:onInputProcessing()');
window.open("new_page",target="BLANK");
Here, fn_button is the javascript function called on button click, and b_row_selection is the event triggered on the onClick event of row selection.
Try this out and let us know if it works for you.
Regards,
Saurabh -
I use an iMac 27" (mid 2011). Until recently I had OSX 10.6.8 installed, but both, the HDD and SSD had to be replaced, and I lost all the memory.
After the repair through Apple Care I had OSX 10.7.5. (Lion) installed, which developed a Magic Mouse problem.
Unlike with most users, I have no problems with connection, but grapple with a different kind of erratic behaviour.
All fancy stuff is turned off in the mouse preferences. When I try to move, open or close pages, unrelated submenus pop up and hinder the
required task. No matter how often I click, these menus stay there, and they even come up when clicking on the bare desktop.
It renders the mouse absolutely useless, as no work can be done with it.
The first 'Magic Mouse' had depleted batteries every few days, despite switching it off after use.
I was supplied a new Mouse, which does better battery-wise, but the problems are the same. I can't get a result by clicking on any link, due to
the pop-up menus, so both 'Magic Mice' are totally useless.
At present I am using the old USB mouse from my Mac Pro, and that works still o.k.
The problem are not the mice, but the software. The first 2 weeks after installation of OSX 10.7.5 the Magic Mouse worked though.
I have no idea as to what the reason may be.
Has anyone in the community ever experienced that particular problem. Any hint would be welcomed.
Thank you!Not using any mouse pad, I have a very smooth desktop. But I just tried to use a sheet of A4 printing paper, but no result, the problem persisted.
Someone on this forum suggested, that USB3 may interfere with the magic mouse.
I have 2 LaCie HDD's about 70 cm away from the mouse, I use them on Thunderbolt. But in operation or not - the result is the same, the mouse plays up! Just now I was clicking the desktop and the mouse created a new folder!!
Thanks for the advice, Bee
Cheers, Gerd -
Cannot not close open apps with double clicking the button Since downloading iOS8.
What happens when you try? Does double clicking the ?home button bring up the Task Bar of recently used apps? If so what happens when you flick up on the preview screen for the app you want to close?
To quit an app double click the Home button to reveal the row of recently used apps. Flick up on the page preview and it will fly away and disappear. That quits the app. -
Insufficient privileges error while calling the seeded page on button click
hi all
I am working on Customers Online module.
I have added a normal button on a standard page through personalization .
The destination for the button is set to call the seeded Create organization page
destination="OA.jsp?OAFunc=XXIIMC_NG_ORG_CREATE&OAHP=IMC_NG_MAIN_MENU&OASF=IMC_NG_ORG_CREATE"
System Admin --> functions --> XXIIMC_NG_ORG_CREATE is a copy of standard function IMC_NG_ORG_CREATE.
It calls the page "OA.jsp?page=/oracle/apps/imc/ocong/party/organization/webui/ImcCreateOrg&HzPuiAddressEvent=CREATE"
When i click on the button i get the error *"You have insufficient privileges for the current operation. Please contact your System Administrator"*
1. The profiles *"FND Function Validation Level"* and *"FND Validation Level"* are set to NONE
2. Bounced apache also.
3. The responsibility Customers Online Superuser is assigned to my user.
We are doing R12 upgrade. The similar functionality is working fine in 11i.
Please let me know what could be the reason of this error and how to correct it.Hi,
Grant is not given to the create organization page. Ask your DBA for this issue.
Thanks,
Kumar -
Close Web Dynpro Application on click of button
Hi,
I have a Web Dynpro Appliaction which would be open in a Portal iView. I have a close button in the application. How do I close the application on the click of "Close" button.
Thanks,
Prasanna.Hi prasanna,
First, it is very bad decision to make decisions instead of user. Just redirect him to logoff page and let close window himself.
In WebDynpro you may use Exit plug on interface view with parameter Url (notice the case) of type string.
Then you may previously fire this plug with JavaScript url: javascript:void(window.top.close())
In recent versions of WD this will not work. So you have to redirect user via exit plug to some static html page, that contains in header <script>window.top.close();</script>
Check the below thread,u will get an solution for your question....
Close Button
How to close portal page by Web Dynpro App
Exit button that close me the window in personalize
Re: Close Button Issue -
How to close the detach popup on click of a button in the panel collection
Hi,
I'm using Jdeveloper 11.1.2.3.0.
I have an af table surrounded by panel collection. There is a button on panel collection to commit the changes in the table.
Clicked detach button to view the table in full browser.
On click of Commit button, the detach popup is not closed. I have set partialSubmit of that button to false. Then also detach popup is not closed.
Can anybody suggest me how to close the detach popup on click of a button in the toolbar.
Thanks,
VinodHi Frank,
Thanks for your response. Popup is not closed.
I tried this approach, when the view tree is navigated on the Detach, I see that the tree is same as if it is traversed on the page without detach.
Printed client id and UI component class in the while loop, result is as below.
r1:0:pc1:t3 class oracle.adf.view.rich.component.rich.layout.RichToolbar
r1:0:pc1 class oracle.adf.view.rich.component.rich.output.RichPanelCollection
r1:0:ph2 class oracle.adf.view.rich.component.rich.layout.RichPanelHeader
r1:0:pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
r1 class oracle.adf.view.rich.component.rich.fragment.RichRegion
pgl1 class oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout
db2 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
db1 class oracle.adf.view.rich.component.rich.layout.RichDecorativeBox
psl1 class oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout
ps1 class oracle.adf.view.rich.component.rich.layout.RichPanelSplitter
f1 class oracle.adf.view.rich.component.rich.RichForm
Tried with setting partialsubmit property to false on the command button, still the popup is not closed and my Faces Message are shown behind the detach popup.
Thanks,
Vinod -
How do you fire a button click event on apex page from fancybox iframe that was created by page
I am trying to fire off the button click event from fancybox iframe. The apex page has a button that launches a fancybox iframe which is loaded with an APEX form. On close of that fancy box, I am trying to fire a click event on the parent page which will refresh a div with html that is created with plsql. The button on the page works as expected when clicked from the page. It will show a debug alert message to prove it was called and then load the div with the correct data. I am unable to fire off this button click from the fancybox iframe when it closes.
A couple of points:
I using Plug-in: Execute PL/SQL Code and Return Content ("PLUGIN_MULEDEV.SERVER_REGION_REFRESH") to place the create fancybox statement. It is used to populate a div using plsql.
The name of the button on the main page is P2020_REFRESH_SECTION_BUILDER_BTN.
The click dynamic action on the button is calling the plugin to replace the html in the div.
The data in the form in the fancybox is being saved to the database. On close of the fancybox box I want to refresh the div so the new record is included in the div html.
Can anyone help. Here is the fancybox code:
function customProcessOnReadyState4(){
for (var i=0;i<11;i++){
$( "#tabs"+i ).tabs();
$("#createNewExerciseLink"+i).fancybox({
''width'' : ''60%'',
''height'' : ''70%'',
''autoScale'' : true,
''transitionIn'' : 200,
''transitionOut'' : 200,
''type'' : ''iframe'',
''onClosed'' : function() {
window.parent.$(''#P2020_REFRESH_SECTION_BUILDER_BTN'').click();
Here are the dynamic actions assigned to the button:
5 - Execute JavaScript Code
alert("Starting refresh");
10 - Execute PL/SQL Code and Return Content [Plug-in]
begin
SCTUI.create_sct_tabs2(:P2020_CREATE_SECTION_LOV, '1');
end;user setActionListener...
<af:setActionListener from="#{bindings.XXX.inputValue" to="#{backingbean.variable}"
<af:inputText value="#{bindings.Email.inputValue}"
label="#{bindings.Email.hints.label}"
binding="#{backingBeanScope.backing_ShuttlePage.it2}"
id="it2">
<f:validator binding="#{bindings.Email.validator}"/>
</af:inputText>
<af:commandButton text="commandButton 2"
binding="#{backingBeanScope.backing_ShuttlePage.cb2}"
id="cb2" action="passing">
<af:setActionListener from="#{bindings.Email.inputValue}"
to="#{processScope.detail}"/>
</af:commandButton>next jsf page:
<af:outputText value="#{processScope.detail}"
binding="#{backingBeanScope.backing_ProcessScope.ot1}"
id="ot1"/>setPropertyListener also should work
<af:setPropertyListener from="#{bindings.Email.inputValue}" to="#{processScope.detail}" type="action"/> -
Open the default email application through button click in struts
Hi can someone help me with launching the default mail application from a jsp page through button click? I am using struts.
Yes you can send the dynamic values to the JS,
I have never tried <bean:write but you can use as,
var make="<%=makeFromJava%>"Where make is a JS variable and makeFromJava is a java variable where you can sent/set some dynamic values
Maybe you are looking for
-
i just bought an iphone 4s a month back the phone gets switched off on its own atleast 2 times in a day and when we press the home button it gets started. when it is in the switched off mode, a person calling on it gets my dialer tone. He feels that
-
Why does Bridge blow out thumbnails when adding new images?
Using Win 7 (64b) with CS6 and Bridge 5.0.2.4 x64 (CS6). I use Bridge in my workflow to catalog and tag images. I added 7000+ older photos in various file formats, Canon CR2, TIF, JPG, and PSD to my single directory containing all shots. As Bridge cr
-
When I merge a stereo clip with a mono audio clip, the result is a clip with 5 mono channels... is this a bug? Unfortunately, CC doesn't seem to allow autmotic breakup of stereo clips into mono any more, only into "stereo mapped to mono" (a 2 channel
-
Why does Siri always give me Jillian Ye when searching the web?
I have enjoyed using Siri on my new iPhone 5. However, anytime Siri asks me if I would like her to search the web for something she always comes back with the contact information for a Jillian Ye. I have yet to actually have her truly search the web.
-
Sync iphone calendar with outlook 2010
Having a bit of trouble getting this to work. It's on the bosses PC so I don't have much time at his PC to troubleshoot. Running Windows 7 and outlook 2010 (all updated) POP account , hosted by godaddy Everything sync's fine except calendar appointme