call functions in parent (?) of (?) window popup
I don't know the terms parent or window in flex 4.
I want to call functions in the parent of the parent window.
It seems to be difficult.
Help me please.
Thanks in advance.
========================== index.mxml ==========================
(root element: < mx:Application >-xmlns:mx = "http://www.adobe.com/2006/mxml")
a Main.mxml inside
========================== Main.mxml ==========================
(root element: < s:NavigatorContent >-xmlns:s = "library://ns.adobe.com/flex/spark")
public function functInMain (): void
{
do something
}
protected function dataGrid_itemDoubleClickHandler(event:ListEvent):void
{
var arr:ArrayCollection = event.currentTarget.dataProvider;
var titleWindowInstance:Popup =
Popup (PopUpManager.createPopUp (this,
Popup,
true));
titleWindowInstance.rowData = arr.getItemAt (event.rowIndex);
PopUpManager.centerPopUp (titleWindowInstance);
}
========================== Popup.mxml ==========================
protected function buttonClickedInpopup (): void
{
Application.application.parentDocument.functInMain (null); / / < <-here, I want to correct
}
Application.application appeal should work if the method you want to call is public.
There is also another way to do it: with a callback function.
In your pop-up:
private var _callbackFunction:Function; public function set callbackFunction( value:Function ):void { _callbackFunction = value; } protected function buttonClickedInpopup():void { _callbackFunction(null); }
And in your Main.mxml:
var titleWindowInstance:Popup = Popup(PopUpManager.createPopUp(this, Popup, true)); titleWindowInstance.rowData = arr.getItemAt(event.rowIndex); titleWindowInstance.callbackFunction = functInMain; PopUpManager.centerPopUp(titleWindowInstance);
Tags: Flex
Similar Questions
-
region of refresh on the page parent after closing popup inframe
Hello
I have parent page with several regions, and one of the reports is related popup to another page using inframe. All these are works fine but now iam trying to a parent region partially regenerate after closing the window contextual inframe, I tried apex.submit (region1) but it does not work? no idea how can I update this after the closure of the window popup?
Best regards and thank you
Hi Gor_Mahia,
Gor_Mahia wrote:
Here are the details,
application ID = 46268
page ID = 13
demo123/demo123
proj2010 = workspace
Use the links in the second column IR
Once again thanks for your time.
Check your application now. The interactive report is refreshing on the closure of the modal dialog box using the method of dynamic, such action described in the blog post:
Monkey on Oracle: Modal popup with dynamic Actions
Here are the changes:
- Edited your action dynamic and value:
In the section "Advanced":
Scope of the event: Dynamics
In 'true Actions:
Action edited your "run the Javascript Code" and "Code" to modified:
From:
/* prevent default behavior on click */ var e = this.browserEvent; e.preventDefault(); /* Trigger JQuery UI dialog */ var horizontalPadding = 30; var verticalPadding = 30; $('').dialog({ title: "Edit Employee", autoOpen: true, width: 700, height: 300, modal: true, close: function(event, ui) { apex.event.trigger('#P13_AFTER_MODAL','select',''); $(this).remove(); apex.submit('edit-IR'); }, overlay: { opacity: 1.0, background: "black"} }).width(700 - horizontalPadding).height(300 - verticalPadding); return false;
NOTE: remove the apex.submit call in the function close to the code below so that it submits the page.
TO
/* prevent default behavior on click */ var e = this.browserEvent; e.preventDefault(); /* Trigger JQuery UI dialog */ var horizontalPadding = 30; var verticalPadding = 30; $('').dialog({ title: "Edit Employee", autoOpen: true, width: 700, height: 300, modal: true, close: function(event, ui) { apex.event.trigger('#P13_AFTER_MODAL','select',''); $(this).remove(); }, overlay: { opacity: 1.0, background: "black"} }).width(700 - horizontalPadding).height(300 - verticalPadding); return false;
I hope this helps!
Kind regards
Kiran
-
original title: error number: 0 x 80040707
When I try to install the Sims House Party, the installer launches and then immediately closes, gives me the error "0 x 80040707 - call function DLL crashed: SORTS." PathGetSpecialFolder.According to the compatility of Windows 7, the House Party is compatible under 64-bit and 32-bit Windows 7. I tried to install it on another computer running Windows 7 32 bit and the error does not occur.
I am running Windows 7 Professional 64 bit.
Looks like that method 1 solved my problem. Normally, I would get this message several times a day. For more than 3 hours I applied the method 1, and the error has not appeared again. Thank you very much.
-
Original title: Call of Duty 2 on windows 7: first window said: library not registered. After a minute, seven or more pop-up windows to say the same thing: access violation at address 00000000. Read of address 00000000
I have thought about it myself, do what I tried above and activate the function of compatibility with Windows Vista service pack 2. If you do not know the fix vista, click Start, Control Panel, hardware and sound, click sound, and then click the recording TAB. Right click on a space in the tab itself, when see her disable devices is displayed click on to show them. stereo mix is show in the tab, right click on that and turn on. Only, remember, insert the CD, do not autorun installation just right click on the icon setup on the CD itself and open a new window. run as administrator and install. After that, go ahead and install the latest version of Patch 1.3 for Call of Duty 2. When all is said and done don't forget to change the compatibility mode to Windows Vista service Pack 2. Note to Microsoft: Windows XP mode is a great idea, except that you dropped the ball twice, #1 - should have a version of it to support windows 7 Edition home premium for topics such as this for the public #2 - you must enable a way to get the video settings within the windows XP mode , in short to make a windows operating system that will play a game out there that has already been done to PC.
-
Question: How can I call function of MC in the first image of the stadium?
Example:
First MC: ToggleButton have the function:
function setSelected (b)
{
selected = b;
If (selected)
_this.gotoAndStop ("DN");
on the other
_this.gotoAndStop ("up");
}
This code working fine inside MC...
This place of button on the stage with the instance name: btn_mc
When I write Action in the first image of the stage: this.btn_mc.setSelected (true) in the output window of the browser, I got an error message: setSelected is not a function.
You must declare the function to make it accessible. Try this inside the movieclip:
setSelected var = setSelected;
function setSelected (b)
{
selected = b;
If (selected)
_this.gotoAndStop ("DN");
on the other
_this.gotoAndStop ("up");
}
Then, it should work out the movieclip:
This. ToggleButton.setSelected (true);
-
Using Win 7 OS 29.0.1 - window popup says v30 available, but "On Firefox" said 29.0.1 with no option to upgrade. Not sure if popup is wrong or why "On Firefox" does not give me the option.
Put your firefox here:
.
Edit: link fixed.
-
Activation of calling function WhatsApp
So I was wondering if anyone of you guys have the calling function enabled on whatsapp and if could you please call me to activate it? Then PM me and I will reply with my number, I'm not posting here cos I don't want the world to see that it
So I finally managed to get calls on WhatsApp! I had to uninstall the version of WhatsApp page and install one of the playstore. If you do that and you receive a call (or if you have received a call) the feature must be activated
-
Unexpected behavior first LV call function called VI.
Hello
I call a VI that has the first call internal ventricular function. It works as expected when I run the sequence of the first time. However, when I run the sequence for the second time, First Call function returns 'false', when I run this VI for the first time. Expected value is 'true '.
Why?
I use the default options for loading and unloading. I played with the options of unloading in the property Options running, but futile.
What should I do to make it work because I expect?
-
How to return on a Subvi in a calling VI and does not stop the calling function
I am writing a program which consists of a call VI and one under VI. I want to call function to run continuously and be able to trigger the sub VI (via activation of the voice). I want the sub VI to expire automatically after 10 seconds and return to the calling VI (master), which will continue until the sub VI is still called.
I found a way to expire the sub VI using the 'stop' command, but he left the appellant VI also, which does not. I know there is no 'back' or 'soft stop' in LabVIEW, but someone he knows a way to do this?
What you really need in your Subvi is something like what is shown below. You specify the delay using the delay function or get Date/Time In Seconds msec. would work in the same way.
-
original title: library not registered
When you try to install call of duty 2 on windows 7 64 bit, I received "library not registered".
------
-
Client to make VoIP calls
I recently started having problems, make VoIP calls from my computer. I use VoIP Busters (and using it for a few years without any problems). Evertime I try to call the destination phone rings a couple of times and then stop. The next thing that happens is an error message that says: "Client for VoIP calls has stopped working. Windows is checking for a solution to the problem. It is followed by another screen that says: "a problem caused blocking the program working properly." Windows will close the program and inform you is a solution available. " Nothing happens. How to overcome this problem.
I finally had to resort to the re-installation of Windows. This solves the problem. But don't forget to back up your computer and email address / addresses before you do.
-
Is it possible to put in place a wake-up call to the PC/computer Windows Vista laptop? Then, he can wake up in the morning.
Hello Xltdnbl,
Thank you for using the Microsoft Windows Vista Forums. In Windows Vista, there is not a revival on the operating system, but you can add a. The site below has different types of alarms that can be added. You can set the alarm to wake up with the sidebar.
http://Gallery.live.com/liveItemDetail.aspx?Li=354455a7-0b97-42d7-adb1-09aeebee0c46&BT=1
Please let me know if this was helpful, or if you're still having problems. Engineer James Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.
-
We received a call from a person of 'Windows' 618-463-1412 number tonight.
We received a call from a person of 'Windows' tonight (20:08 August 9, 2011) number 618-463-1412 asking us to help solve a problem with our computer that was going to have a virus to infect if it did not give them control of our system... they asked us to CTRL R (together) and the type of read-AHEAD and count the files in there... my wife called me at this time. I suggested she get the telephone number of the person 'Windows' and ask for identification. The person said she would phone in 20 minutes and up... hanging not too surprised there is no recall yet (1 h later).
Hello
It's a SCAM
they want or money on your part for programs without value or make an identity theft on you to get even more money and get your internet banking passwords and credit card by obtaining information allows you to download the software to 'fix' or 'test' for your computer or install via remote access
read this:
http://www.Microsoft.com/security/online-privacy/msName.aspx
Microsoft has none of the unsolicited telephone calls to help you fix your computer
In this type of scam cybercriminals are calling you and claim to be of Support technique Microsoft. They offer help with your computer problems. Once scammers have earned your trust, they try to steal and damage your computer with malicious software, including viruses and spyware.
Although the law enforcement can trace phone numbers, often authors use pay telephones, disposable cell phones or stolen cellular phone numbers. Better avoid fooling themselves rather than try to repair the damage afterwards.
Treat all unsolicited sceptically telephone calls. Don't provide personal information.
If you receive an unsolicited call from someone who claims to be from Technical Support Microsoft, hang up. We do not have such calls.
If you think you might be a victim of fraud, you can report it. For more information, see: what to do if you think you have been scammed.
-
Where should I contact regarding the functions of newsgroups in Windows Mail and Windows Live Mail?
I seem to have problems with Windows Mail, perhaps caused by the update KB978542 and/or run the program WMUtil.
One of my Windows Vista Home Premium SP2 64-bit machines, whenever I try to start Windows Mail, it displays 0x800C0155 error message, then a message saying that he was unable to start because MSOE. DLL could not be initialized.
The other has problems of material type instead: it's a laptop with no mouse and no reliable connection to the internet.
On my Windows Vista Home Premium SP2 32-bit machine, I can start Windows Mail, but most local issues have disappeared - only the Inbox is visible. I already checked that subdirectories for the other files are still present.
All three of these machines have had problems of backups for months and have had no successful backup for the last two months.
I have trouble finding enough information about Windows Live Mail without having to install this program if it could avoid these problems or just make it worse.
http://www.Vistax64.com/tutorials/62560-Windows-Mail-problems.html
The link above covers solutions to many problems with Windows Mail.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
«The other has problems of material type instead - it's a laptop without mouse and reliable connection to the internet.»
A computer repair shop will help you with hardware problems.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Read the info at Google re Windows Live Mail.
See you soon.
Mick Murphy - Microsoft partner
-
Phone calls, by a representative of windows
During the few minutes received a phone call from a representative of windows. He said that my computer was harmful data download without my knowledge and that I had to type commands in my computer. It was rough and energetic, so I suggested that he called me in 10 minutes.
Thoughts?
Tuesday, April 14, 2015, 13:05:46 + 0000, TomGreenwood_478 wrote:
During the few minutes received a phone call from a representative of windows. He said that my computer was harmful data download without my knowledge and that I had to type commands in my computer. It was rough and energetic, so I suggested that he called me in 10 minutes.
Thoughts?
It was a scam and with all the names and phone numbers, one who has
become very frequent lately. Microsoft never makes unsolicited calls
clients.
See
http://www.troyhunt.com/2012/08/virus-scams-social-engineering-victims.html
and
http://www.howtogeek.com/176605/tell-your-relatives-no-Microsoft-wont-call-you-about-your-computer/
and
http://www.howtogeek.com/180514/the-%E2%80%9ctech-support%E2%80%9D-scammers-called-Htg-so-we-had-fun-with-them/In addition to their money get on your part to do anything of any value,
If you leave them in your computer, who knows what they were doing or where
What confidential information they stole.So if you have done so, I highly recommend that you do both of the following
immediately:1 do a clean reinstall of Windows.
2. after reinstallation of Windows, change all your passwords.
especially the banks or other
financial sites.Since they have perhaps installed a recorder of strikes, changing just your
Passwords may not be good enough.
Maybe you are looking for
-
Satellite P100-324: tone failure and stops with BSOD
Satellite P100-324 Built in modem HDAUDIO Soft Data Fax Modem with SmartCPModem installed correctly to COM3 querry modem ok. diagnostic test "test Modem controller". But he has failed the test tone and stops windows with the blue screen. When windows
-
The model of my laptop is HP Pavilion 2235dx g4. I use windows7 32-bit. It has 3 usb ports. It contains a usb port, it is just side & two others contain he left aside. In this way the usb port on the right side works fine but two other usb ports on t
-
Compile the LabVIEW .vi for VXWorks .out file
Is it possible to use LabVIEW to compile a .vi in a .out to use file as a model of Simulation VeriStand for a target of VXWorks still?
-
Problems starting Vista Service pack 1 update - buckle boot - now
Hello Vista Home Premium (SP0) ran on our home computer. Due to the loss of IE7 support on some sites, that we needed to update IE and then install Service Pack 1 (SP1). After 3 hours of nail-biting install the computer hooked to black screen. Reboot
-
I've developed using the SDK 10.2. A few days ago, I downloaded the SDK 10.3. Unfortunately, when I tried to launch my app, it would break not immediately, or sometimes a second or two after opening. Debugging doesn't seem to work. Given this failur