Popup window not populated on SAVE event
Hi All,
I am enhancing standard AIC_INCIDENT_H component on EH_ONSAVE event, requirement is to display ComponentUsage "CUGSSurvey"
, InterfaceView "SurveyWindow as Popup window , but there is a blank popup appeared
On SAVE event i write the following code:
IF gr_proctype_popup IS NOT BOUND.
gr_proctype_popup = comp_controller->window_manager->create_popup(
iv_interface_view_name = 'SurveyWindow'
iv_usage_name = 'CUGSSurvey'
iv_title = 'Survey' ).
ENDIF.
lv_viewname2 = 'CUGSSurvey.SurveyOverviewWindow'.
lr_viewset ?= me->get_subcontroller_by_viewname( lv_viewname2 )..
lr_view_ctrl_par ?= lr_viewset->M_PARENT. ".
current_sur_id = lr_view_ctrl_par->TYPED_CONTEXT->SURVEYID->collection_wrapper->get_current( ).
current_sur_ver = lr_view_ctrl_par->TYPED_CONTEXT->SURVEYVERSION->collection_wrapper->get_current( ).
* while current_sur_id is not initial.
if current_sur_id is not bound.
return.
endif.
try.
* data: rv_result type string.
CALL METHOD current_sur_id->GET_PROPERTY_AS_STRING
EXPORTING
IV_ATTR_NAME = 'SURVEY_ID'
RECEIVING
RV_RESULT = RV_RESULT
catch cx_crm_cic_parameter_error.
endtry.
RV_RESULT = 'FDB_FORM_01'.
TRY.
CALL METHOD current_sur_id->SET_PROPERTY_AS_STRING
EXPORTING
IV_ATTR_NAME = 'SURVEY_ID'
IV_VALUE = RV_RESULT
* data: lr_core TYPE REF TO cl_crm_bol_core.
* lr_core ?= cl_crm_bol_core=>get_instance( ).
* lr_core->modify( ).
* exit.
CATCH CX_SY_CONVERSION_ERROR .
ENDTRY.
if current_sur_id is not bound.
return.
endif.
try.
* data: rv_result type string.
CALL METHOD current_sur_ver->GET_PROPERTY_AS_STRING
EXPORTING
IV_ATTR_NAME = 'SURVEYVERSION'
RECEIVING
RV_RESULT = RV_RESULT2
catch cx_crm_cic_parameter_error.
endtry.
RV_RESULT2 = '0000000000'.
TRY.
CALL METHOD current_sur_ver->SET_PROPERTY_AS_STRING
EXPORTING
IV_ATTR_NAME = 'SURVEYVERSION'
IV_VALUE = RV_RESULT2
* data: lr_core TYPE REF TO cl_crm_bol_core.
* lr_core ?= cl_crm_bol_core=>get_instance( ).
* lr_core->modify( ).
* exit.
CATCH CX_SY_CONVERSION_ERROR .
ENDTRY.
gr_proctype_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
gr_proctype_popup->open( ).
but on save event this screen appeared:
I want this view with survey form, filled by user and then SAVE the incident.
Hi Mohammed,
Try setting the enabled property to false for ROOTUIELEMENTCONTAINER in that view. It should work out for you.
Regards,
Uday
Similar Messages
-
P6 EPPM V8.2.2.8 window popup windows not showing.
I've installed Primavera V8.2.2.8 EPPM on 64bit Windows 2008 R2 sp1 server with weblogic 10.3.5 using a 64 bit JDK (1.6.0_27). The database is 11g on another rhel5 server and has sample data loaded. Initially the install worked great for a bit. I was able to move around to different windows all worked fine. But soon after anything with a popup window (projects, users access, ) will not load and either shows an error like "Fail to load data..Please..." or just shows loading data then stops. In the application settings window changes to the screen does not allow the save button to appear (another pop is displayed before that happens). There are no errors in any logs, no connection errors, no information what so ever. I am using IE 9 and the block pop windows is unchecked.
The same thing happen on a rhel5 install with weblogic 10.3.6. Oddly, there is another install where I work that functions just fine (via my desktop's browsers) but is on some very old equipment like windows 2003 and oracle 10g.
Obviously, this is about Primavera P6 EPPM v8.2.2.8 web application; the professional desktop client works fine with the same database.
Also, I did the same install on a rhel5 box with weblogic 10.3.6 and a 1.6_45 jdk. The same "problem" develops.
Upgrading to V8.3 is not an option. I may be able to move to JDK 1.7, but i sure would like to get JDK 1.6 to work.
Thanks your help and let me know if there is any other info that could help.JRE1.6_027...
I am pretty sure it is not a browser issue since I can get see all web functionality with the same IE browser connecting to an existing install that is running on rhel5.1/weblogic 10.3.5/jdk1.6._27.
I have some more info:
* no ssl
* pc with browser in windows 7
* the windows server is on virutal boxes (wmware)
* the databases are on virtual boxes (vmware, rhel6)
* also, the following url never comes back: http://someserver.somedomain:7003/p6/action/pm/openprojectpicklist
Can someone tell me what SQL is used to run struts action/pm/openprojectpicklist? I am starting to think this is some bizarre database issue or state. Today, I built a new 11g database on a windows server box (virtual) and installed a Primavera eppm p6 8.2.2.8 database in it with no sample data. It worked nicely (today, that is). Like I said it seems to work at first then after a while...breaks. -
Popup window not opening in IE 6.0, SP1
Hi Friends,
Whats the version information for Popup windows to open.
Not able to view the popup window on Internet Explorer 6.0 , build 2800.1106, SP1.
It gives Runtime Error.
I can see the popup windows in IE6.0.2900.2180, SP2
any clue?
Thanks.
Message was edited by: NavNaveen,
Normally the browser should support the javascript version you are using. The best way is to upgrade the browser to higher SP if it runs on a different SP.
Usually, Javascript erros are very abstract, so tough to handle. So, got to be careful when coding.
Check this link for details on Javascript erros etc
http://www.irt.org/script/general.htm
Hope this helps,
Kumar -
Link to popup window not working
I have a calendar page in which I'm setting up a column link to another page within the app.
However, I have some syntax error in the javascript popup statement. I have tried many things, but cannot find what the problem is.
This works (no popup):
f?p=&FLOW_ID.:43:&SESSION.::&DEBUG.::P43_ACT_ID:#ACT_ID#
This does not work (popup):
(I left off the initial < so the text would not be converted to html)
a href ="javascript:popUp2('f?p=&FLOW_ID.:43:&SESSION.::&DEBUG.::P43_ACT_ID:#ACT_ID#',500,400)" >#ACT_DESC#</a>
Does anyone see what's wrong with this syntax?
When I run it (click on the link), I receive this error msg:
"Bad Request The HTTP client sent a request that this server could not understand."
Thanks!
-Reid
Edited by: reidster on Aug 8, 2009 12:25 AMHi Reid,
href="javascript:..." tells the browser to go to the address bar (href) and type in "javascript:....". This won't work!
Change your link to:
a href="#" onclick="javascript:popUp2('f?p=&APP_ID.:43:&SESSION.::&DEBUG.::P43_ACT_ID:#ACT_ID#',500,400)"href="#" tells the browser not to do anything with the address bar and we are relying on the onclick event itself to call the popup
Also note that you should use &APP_ID. not &FLOW_ID.
Andy -
Popup datagrid not populating data from xml
hey guys,
im having trouble creating a datagrid within a popup. i
created the datagrid on a normal panel and everything worked fine.
then i tried to recreate it within a popup and now im having
trouble getting the xml data onto the datagrid. i think the problem
is that the xml is not a variable within the function but ive tried
multiple methods and i have not gotten it to work.
whenever it runs it just says TypeError: Error #1009: Cannot
access a property or method of a null object reference. yet when i
remove the dg.dataProvider = list.michigan.venue; line the datagrid
works but there is no data obviously... how do i define the xml
dataprovider within the function??? also, i need the name of the
state to be dynamic... how could i make it so that the datagrid
uses the selected state within the xml file? i imagine i would be
passing a variable through the function that would be called when i
select the path within the xml. THX GUYS!
<venuelist>
<michigan>
<venue>
<name>Location Name</name>
<address>This is the address</address>
<city>Detroit</city>
<state>MI</state>
<zip>48209</zip>
<phone>(313)555-5555</phone>
</venue>
</michigan>
<illinois>
<venue>
<name>Location Name</name>
<address>This is the address</address>
<city>Detroit</city>
<state>MI</state>
<zip>48209</zip>
<phone>(313)555-5555</phone>
</venue>
</illinois>
</venuelist>
here is the code im using to get the xml file...
<mx:XML id="list"/>
<mx:HTTPService id="getXML" url="VenueList/list.xml"
resultFormat="e4x" result="list = XML(event.result);"/>
here is the code for the popup
<mx:Script>
<![CDATA[
import mx.controls.dataGridClasses.DataGridColumn;
import mx.collections.ArrayCollection;
import mx.containers.Panel;
import mx.controls.Button;
import mx.controls.DataGrid;
import mx.controls.dataGridClasses.DataGridColumn
import mx.managers.PopUpManager;
private var panel:Panel;
private function init():void {
var dg:DataGrid = new DataGrid();
var dgc:Array = dg.columns;
var d1:DataGridColumn = new DataGridColumn;
var d2:DataGridColumn = new DataGridColumn;
var d3:DataGridColumn = new DataGridColumn;
var d4:DataGridColumn = new DataGridColumn;
var d5:DataGridColumn = new DataGridColumn;
var d6:DataGridColumn = new DataGridColumn;
dg.width = 638
dg.height = 163
dg.dataProvider = list.michigan.venue;
d1.width = 150;
d1.headerText = "Venue Name";
d1.dataField = "list.michigan.venue.name";
d2.width = 150;
d2.headerText = "Address";
d2.dataField = "address";
d3.width = 100;
d3.headerText = "City";
d3.dataField = "city";
d4.width = 50;
d4.headerText = "State";
d4.dataField = "state";
d5.width = 50;
d5.headerText = "Zip";
d5.dataField = "zip";
d6.width = 100;
d6.headerText = "Phone";
d6.dataField = "phone";
dgc.push(d1);
dgc.push(d2);
dgc.push(d3);
dgc.push(d4);
dgc.push(d5);
dgc.push(d6);
dg.columns = dgc;
panel = new Panel();
panel.title = "Here are our venues:";
panel.width = 658;
panel.height = 203;
panel.addChild(dg);
private function closePopUp(evt:MouseEvent):void {
PopUpManager.removePopUp(panel);
private function createPopUp():void {
PopUpManager.addPopUp(panel, this, true);
PopUpManager.centerPopUp(panel);hey guys,
im having trouble creating a datagrid within a popup. i
created the datagrid on a normal panel and everything worked fine.
then i tried to recreate it within a popup and now im having
trouble getting the xml data onto the datagrid. i think the problem
is that the xml is not a variable within the function but ive tried
multiple methods and i have not gotten it to work.
whenever it runs it just says TypeError: Error #1009: Cannot
access a property or method of a null object reference. yet when i
remove the dg.dataProvider = list.michigan.venue; line the datagrid
works but there is no data obviously... how do i define the xml
dataprovider within the function??? also, i need the name of the
state to be dynamic... how could i make it so that the datagrid
uses the selected state within the xml file? i imagine i would be
passing a variable through the function that would be called when i
select the path within the xml. THX GUYS!
<venuelist>
<michigan>
<venue>
<name>Location Name</name>
<address>This is the address</address>
<city>Detroit</city>
<state>MI</state>
<zip>48209</zip>
<phone>(313)555-5555</phone>
</venue>
</michigan>
<illinois>
<venue>
<name>Location Name</name>
<address>This is the address</address>
<city>Detroit</city>
<state>MI</state>
<zip>48209</zip>
<phone>(313)555-5555</phone>
</venue>
</illinois>
</venuelist>
here is the code im using to get the xml file...
<mx:XML id="list"/>
<mx:HTTPService id="getXML" url="VenueList/list.xml"
resultFormat="e4x" result="list = XML(event.result);"/>
here is the code for the popup
<mx:Script>
<![CDATA[
import mx.controls.dataGridClasses.DataGridColumn;
import mx.collections.ArrayCollection;
import mx.containers.Panel;
import mx.controls.Button;
import mx.controls.DataGrid;
import mx.controls.dataGridClasses.DataGridColumn
import mx.managers.PopUpManager;
private var panel:Panel;
private function init():void {
var dg:DataGrid = new DataGrid();
var dgc:Array = dg.columns;
var d1:DataGridColumn = new DataGridColumn;
var d2:DataGridColumn = new DataGridColumn;
var d3:DataGridColumn = new DataGridColumn;
var d4:DataGridColumn = new DataGridColumn;
var d5:DataGridColumn = new DataGridColumn;
var d6:DataGridColumn = new DataGridColumn;
dg.width = 638
dg.height = 163
dg.dataProvider = list.michigan.venue;
d1.width = 150;
d1.headerText = "Venue Name";
d1.dataField = "list.michigan.venue.name";
d2.width = 150;
d2.headerText = "Address";
d2.dataField = "address";
d3.width = 100;
d3.headerText = "City";
d3.dataField = "city";
d4.width = 50;
d4.headerText = "State";
d4.dataField = "state";
d5.width = 50;
d5.headerText = "Zip";
d5.dataField = "zip";
d6.width = 100;
d6.headerText = "Phone";
d6.dataField = "phone";
dgc.push(d1);
dgc.push(d2);
dgc.push(d3);
dgc.push(d4);
dgc.push(d5);
dgc.push(d6);
dg.columns = dgc;
panel = new Panel();
panel.title = "Here are our venues:";
panel.width = 658;
panel.height = 203;
panel.addChild(dg);
private function closePopUp(evt:MouseEvent):void {
PopUpManager.removePopUp(panel);
private function createPopUp():void {
PopUpManager.addPopUp(panel, this, true);
PopUpManager.centerPopUp(panel); -
How to open popup windows in response to an event in view model
Hi All,
I'm developing a Windows store app using XAML+C#, following MVVM framework.
I have a login form which taked userid and password and logs into a database. If the login failed, i need to open an exception popup on the same login screen.Let's say login screen's name is homepage.xaml and the view model which contains all the login
work flow is loginviewmodel.
Now, if connection to the database fails a message will be sent by the connection service. I need to raise a popup in the view based on the message i see in the viewmodel.
Any help/pointers are greatly appreciated.
Thanks in advance,
ChandraIn MVVM LIght 5 there is a dialogService you can use for this
http://marcominerva.wordpress.com/2014/10/14/dialogservice-in-mvvm-light-v5/ -
Authentication window not populating when attempting to move a file
When attempting to move a file that will need administrator authentication, the authentication window to enter a password does not populate. Thus, I am unable to move the file.
Linc,
I didnt get back with you this week as we've discovered a number of other "interesting" issues with the iMac. They all seem to (possibly) be related to privilege issues: 1. Cannot move photos to ~Library/Desktop Pictures, 2. Cannot access System Preferences/Security&Privacy (click on the lock to make a change and the User Name and Password "Unlock" window will not appear.) 3. When attempting to install the MS Office For Mac update, the installer will not respond. 4. Cannot boot from an external drive. The computer wants to reinstall the OS X Yosemite when attempting to boot from an external drive. -
Opening PopUp window not displaying 1st view in background
Hello,
I developed WDA with Tree UI element. now on click of childnode (UI elemment TreeItemType), i am opening window. below is the code that i put in method.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'W_JOBCODE'
title = l_string
close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
close_button = abap_true
button_kind = if_wd_window=>co_buttons_close
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_close
l_api = wd_this->wd_get_api( ).
lo_window->set_window_position( position = if_wd_window=>co_center ).
lo_window->set_window_size( width = '900px' height = '900px' ).
lo_window->open( ).
also i embeded view V_JOBCODE inside window W_JOBCODE.
my requirement is that when this window gets opened, my earlier view should be displayed in background. Now when the window is getting opened, the ealier view is not displayed at all. earlier i developed another WDA where i am displaying window on click of URL to Action UI element and there i am able to see the 1st view in background. I checked all things but not sure why for my current WDA, i am not able to see 1st view in background.
Please let me know if anyone has any clue.
Regards,
ChandraHi Chandra,
Use the below code to open a new window in the same component.
data: str type string,
l_window1 type ref to if_wd_window_manager,
l_cmp_api type ref to if_wd_component,
result1 type ref to if_wd_window.
call method cl_wd_utilities=>construct_wd_url
exporting
application_name = 'Component Name'
importing
out_absolute_url = str.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window1 = l_cmp_api->get_window_manager( ).
result1 = l_window1->create_external_window(
url = str ).
result1->open( ).
Regards,
Simi A M -
How to close a popup window for system events?
Hi,
I have a screen 110 which shows several input field in popup mode.
The Cancel button can close the screen.
But my question is how to close the popup window for the following system events?
1, Customer clicks the cross button in top-right corner
2, Customer clicks the system icon in top-left corner and then select either: "Close" or "Stop Session"
The PAI subroutine of the screen has not been triggered for the above system events.
Thanks for the coming help.
Best Regards,
DavidHi Siddharth,
I did check with another very experienced ABAP developer.
The solution was the same as what Arunima Rudra provided.
And I got a sample program which did work properly.
The headache is that the system events in my program still cannot be triggered even after I have all the same changes.
Anyway, I suggest you to try the solution as provided by Arunima Rudra.
It should work for 2 system events:
1, Customer clicks the cross button in top-right corner
2, Customer clicks the system icon in top-left corner and then select either: "Close"
For "Stop Session", it should not be handled by popup.
You can observe the same behavior in ALV sorting configuration popup.
Good luck!
Regards,
David -
Refresh only page item while submitting data from the popup window
Hi All,
I'm pretty new to Apex .....
I have a form with text items as first few entries and then a radio button list and few text items again. On selecting certain radio button I have a popup window which acts as an interface for the next text item in the calling page. The purpose of having the popup window is that the text item following the radio button takes the input with certain character delimiters along with the data. Instead of using delimiters while entering the data I want a meaningful data to be keyed in the popup window and all the string operation to be done as a background process. I have been successful this far. I'm using the below javascript on click of the submit button.
javascript:doSubmit();
window.opener.doSubmit('REFRESH');
window.close();
On doing this I'm losing the values submitted for the items prior to the radio button(including radio button). Please note, I have a dynamic action set on page load to reset the values. Is it possible to refresh just the page item from the popup window.
Also, I tried excluding the window.opener.doSubmit('REFRESH'); from the above javascript. It sets the item with the expected value (viewed it in the session items, however I would like to view the concatenated string on my calling page) but following this there is an insert operation which uses all the necessary items in the form. All values except the value returned from the popup window is populated into the table. Am I missing something.
Any help in this regard is appreciated.
Thank you!!!
Regards,
GaneshValue set using Javascript is only in your browser page but is not yet available in the session. This is why the report doesn't return the expected output.
Before refreshing the report you would need to set the session state of this item.
You can set it after you assign the item a new value or before the report is refreshed
For Interactive Reports, this is available built in
you can go to Report Attributes >Advanced Attributes -> Page Items to Submit and specify P2_X1 for the field(and any other page item that the report is dependent on)
For standard reports, you can create a Dynamic Action that is triggered "before refresh" of the report's region, and choose PLSQL as the action types, give a dummy BEGIN NULL END; for the code and specify this item name in the page item to submit field so that it sets the items's value in session. -
Capture the Popup window action
Hi,
I have a requirement when i click 'yes' on popup window i need to save the data. For that i need to capture the fctcode of save.
Below is the sample code...
Data: context_node type ref to if_wd_context_node.
data: lr_popup type ref to if_wd_window,
lr_view_controller type ref to if_wd_view_controller.
data: lr_api_comp_controller type ref to if_wd_component,
lr_window_manager type ref to if_wd_window_manager.
lr_api_comp_controller = wd_comp_controller->wd_get_api( ).
lr_window_manager = lr_api_comp_controller->get_window_manager( ).
lr_popup = lr_window_manager->create_window(
MODAL = ABAP_TRUE
window_name = 'WIN_POPUP' "Name of the window created in step 2
TITLE = 'Do you want to save the form'
CLOSE_BUTTON = ABAP_TRUE
BUTTON_KIND = if_wd_window=>CO_BUTTONS_OKCANCEL
MESSAGE_TYPE = if_wd_window=>CO_MSG_TYPE_INFORMATION
CLOSE_IN_ANY_CASE = ABAP_TRUE
*MESSAGE_DISPLAY_MODE = "MESSAGE_DISPLAY_MODE'
Adds an action to the popup screen buttons
lr_view_controller = wd_this->wd_get_api( ).
lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = 'Yes'
action_name = 'SAVE'
action_view = lr_view_controller ).
lr_popup->open( ).Hi,
you did right:
lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = 'Yes'
action_name = 'SAVE'
action_view = lr_view_controller ).
Now create action SAVE (within tab 'Action'). When action save is created, method ONACTIONSAVE will be created automatically.
Within ONACTIONSAVE you can check which button is clicked using the WDEVENT parameter:
if wdevent->name = 'ON_NO' or wdevent->name = 'ON_YES'.
endif.
Regards -
Hi experts,
There is a popup window, with two button:
SAVE
CANCEL.
i create the popup in this way:
lr_popup = lr_window_manager->create_window(
modal = abap_true
window_name = 'WND_POPUP'
title = lv_text
close_button = abap_true
button_kind = if_wd_window=>co_buttons_yesno
message_type = if_wd_window=>CO_MSG_TYPE_NONE
close_in_any_case = abap_true
lr_view_controller = wd_this->wd_get_api( ).
lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_yes
button_text = 'Save'
action_name = 'SAVE'
action_view = lr_view_controller
is_default_button = abap_true ).
lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_no
button_text = 'Cancel'
action_name = 'CANCEL'
action_view = lr_view_controller
is_default_button = abap_true ).
lr_popup->open( ).
My problem is that, if the user press the SAVE button, then I have to make some checks, and if they don't pass, an error message should be created, and the popup shouldn't close.
My question is: How can I do that?
It's ok that if I use the paramter:
close_in_any_case = abap_false
then the popup isn't closed, but how can I close it in the action handler method of the Close button (or the save when the cehcks are fine)
Thnaks.
N.Hi,
When there are errors do you want to display them on popup. If there are errors and user closes the window(click on close) button then these errors are shown in parent view rather on popup window.
Do you want to handle this also..
In addition to making that close_button as abap_false. there is a method to handle on button close in if_wd_window interface.
Try to use and write the close window code.
If you donot want to show the errors in parent view, In the abobe metthod for window close, clear all the messages and then close the window.
check out this link -
Re: Form field validation messages in pop-up window
Regards,
Lekha. -
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> -
Folders are not visible in BEx Portfolio tab of Save As popup window
Hi All,
when I try to save a report in BEx Web Analyzer by open Save As popup window, I can't see any folders in neither of Favorites, BEx Portfolio nor My Portfolio tabs, even though I've created some directories in "/documents/Public Documents" for example. I can only see the list of already saved reports.
What needs to be done to be able to the folders in Save As (or Open) popup window?
thank you,
olegHi,
Please check Note No. 988406 and the role mentioned in this link:
http://help.sap.com/SAPHELP_NW04S/helpdata/EN/a5/4b0b40c6c01961e10000000a155106/frameset.htm
I would also recommend that you try with the latest java patches. BIBASE and BIWEBAPP patches.
Thanks,
Michael -
I have a typical popup window launched using the builtin javascript:popupURL().
I would like a Save and Close button on this popup window that does
1. Submits the popup page so that changes are saved into session state
2. Close the popup window
3. Refresh the parent window so that updates in (1) are reflected
What is the recommended way of doing this? I was thinking of the following URL redirect on the Save & Close button
doSubmit('SAVE');
window.opener.location.reload();
window.close();Do I need a same-page branch on the popup page? If so, why? If not, why? ;-)
Comments?
ThanksThis is a bit of javascript that I nicked which works well for me:
-- 1. Add the folowing to your page header or create a new page template --
-- (popup window template) and put it in the header section. --
SCRIPT LANGUAGE="JavaScript">
function loadinparent(url, closeSelf){
self.opener.location = url;
if(closeSelf) self.close();
</SCRIPT>
-- 2. Use the following to call the function. the true and false keeps the parent--
-- window open or closed. Obviously set any values in the URL. --
javascript:loadinparent(''<URL>'', true)
eg. javascript:loadinparent(''f?p=&APP_ID.:40:&SESSION.::NO::P40_ID:'||ID||''', true)
-- Inc the following comment in your header --
-- Version 1.0
-- Last Updated: May 18, 2000
-- Code maintained at:
-- http://www.moock.org/webdesign/javascript/
-- Copy permission granted any use provided this notice is unaltered.
-- Written by Colin Moock.
Simon
Maybe you are looking for
-
Issue at the time of Down payment
Dear friends I created one Down payment request for Rs.10000/- in F-47. When I am making the Down payment through F-48, system is allowing more than Rs.10000/- against the above Down payment request. Is there any control or any note to apply or any c
-
Outgoing mail server will work on Iphone but not Mail on Macbook
My POP account will send mail on my iphone no problem, but on the mail program on my macbook it times out. All the account information is identical. The mail program keeps telling the server does not support port 995, but on the Iphone it does. I hav
-
If there is no solution, there is money back.
-
Webgate installation - not able to find .cgi file in bin directory
Hi friends, I am trying to install webgate on ohs server (after webpass installation). But as told in installation document for webgate, we need to configure the webgate by giving relative path to dll or cgi file in bin directory. But when I tried to
-
After updating iphone it is locked and asking for passcode .where is passcode
cannot unlokc phone after I downloaded an update. It is asking for a passcode. I do not have it/