How call parent function through the module
Hi, i want to call the function of parent application which add the module can you tell how i can do it???
As long as you have the custom event classes accessible with import myClassDir.myClassSubdir.*;
you should be able to create custom events with var myEvt:MyCustomClass - new MyCustomClass(); and then dispatchEvent(myEvt);
You can communicate with the main app using mx.core.Application.applilcation or using parentDocument or parentApplication, though custom events are the way to go.
If this post answers your question or helps, please mark it as such.
Similar Messages
-
Calling a Function in the Parent Window from the Child Window
QUESTION: How do I call a function resident in the parent
window from a child window?
BACKGROUND
I have a JavaScript function resident in the parent window
that reformats information obtained from the Date object and writes
the result to the parent window using the document.write( ) method.
I would like to call this function from the child window and have
it write to the child window instead. Is this possible? If not,
must I rewrite the entire function and nest it in the below code?
If so, what is the proper form of nesting?
CODE: The code that creates and fills the child window is
provided below. The highlighted area indicates where I would like
to enter the information from the function resident in the parent
window. I have tried every imaginable permutation of code that I
can imagine and nearly destroyed my parent document in the process.
I am very happy that I had a back-up copy!
function openCitationWindow() {
ciDow = window.open("", "", "width=450, height=175, top=300,
left=300");
ciDow.document.write("A proper way to cite a passage of text
on this page:<br /><br />Stegemann, R. A. 2000.
<cite>Imagine: Bridging a Historical Gap</cite>. " +
document.title + ". [<a href='" + location.href + "'
target='_blank'>online book</a>] <" + location.href
+ "> (");
MISSING CODE;
ciDow.document.write(").<br /><br /><input
type='button' value='Close Window' onclick='window.close()'>");
ciDow.focus();Never mind - I was doing something very stupid and wasn't
calling the function as a method of a movie clip. I was simply
calling checkTarget(event) rather than
event.currentTarget.checkTarget(event); which seems to work. -
How do i call a function within the jsp?
Hi,
What i am doing is now allow a user to type in comment and when the user click on "Add" button, it will call my function and write to a txt file.How can i call a custom jsp function within my jsp page or what is the correct way to do this?
[My current codes]
<form name="SubmitEvent" method="post" action="addComment()">
</form>
function addComment()
System.out.println("Entered Add Comment function");
Thanks for your help!You can define a Java Bean (I presume you know the rules to write a Java Bean) and send the read value as parameter to the Bean and then call a function in the Bean from the JSP.
Contact me if you need more help! -
How to create the planning function through the process chain
Hi guys,
currently i am running some planning function in fortend so it is time consuming now customer want the run the planning function through the process chain any body having the idea please give me.Hi,
this is standard functionality, cf.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/946677f8fb0cf2e10000000a114a6b/frameset.htm
Regards,
Gregor -
Calling a function in the main movie from a loaded swf
I realize this is probably a very basic question, but I have
loaded a SWF file into another movie. I now want to call a function
in the main SWF. Is there a way to do that? Alternatively, I have a
custom class where I could put the function, but I haven't been
able to figure out how to call it from the loaded SWF either. Do I
somehow need to associate the class with the main movie,
or...?Never mind - I was doing something very stupid and wasn't
calling the function as a method of a movie clip. I was simply
calling checkTarget(event) rather than
event.currentTarget.checkTarget(event); which seems to work. -
Calling a function through JDialog
Hi all,
The title might be a bit confusing, but the topic is about the following:
I've got a JFrame as the main application. From the main application a JDialog gets called when you want to see more about an item in the JFrame.
Because I want to collect all clicked information in the JDialog(so you can see what you've click before) I want to have the old JDialog with his current information + the new information at the moment you click on a other item.
Example:
JFrame mainFrame = The_CollectorApp.getApplication().getMainFrame();
gameInfoBox = new The_CollectorCollectionDialog(mainFrame, tempGame, "game");
gameInfoBox.setLocationRelativeTo(mainFrame);
The_CollectorApp.getApplication().show(gameInfoBox);
For opening a new JDialog with the game content. Now when you click on an other game, I want this gameInfoBox been showed (easy, just enter the last line only ), but I also want to pass the new Information to this JDialog.
In the CollectionDialog.java is a function called AddItem(), so I want to call this function from the main when the JDialog has already been made.
With a normal object gameInfoBox.addItem() would be enough, how to do this trick with this setup?Sounds like a bit of re-architecting might be in order. I haven't bothered deciphering your description of the flows, but the very fact that UI widgets are apparently trying to affect what other UI widgets are showing tells me you need something like MVC to keep things under control. Have a look into that pattern, MVC
-
Call a function in the shell SWF from a imported SWF
We have flash set up as a shell to take lesson data from XML
and display it frame by frame.
We import SWF files when the XML tells it to to be displayed
on the frame.
How can I get the imported SWF file to call a function in the
shell....
basically have a button or movie clip in the imported swf
call the "gotoNextFrame()" function in the shell.We found a "bit" easier way if anyone is interested.. we have
the have an eventlistner added to the loader to assign a event to
the swf file thats imported:
flashLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
addEventHandlers);
then when its completed, it adds event listeners and calls
our "goNextFrame" function (then clears it when its removed from
the stage):
function addEventHandlers(event:Event):void
var swfMC:MovieClip = event.target.content as MovieClip;
swfMC.addEventListener("NextFrame", goNextFrame);
swfMC.addEventListener("PreviousFrame", goPrevFrame);
swfMC.addEventListener(Event.REMOVED_FROM_STAGE,
clearEventListeners);
Then in the swf file thats to be imported, its real simple:
next_btn.addEventListener(MouseEvent.CLICK, MoveToNextFrame);
prev_btn.addEventListener(MouseEvent.CLICK,
MoveToPreviousFrame);
function MoveToNextFrame(e:MouseEvent):void
dispatchEvent(new Event("NextFrame"));
function MoveToPreviousFrame(e:MouseEvent):void
dispatchEvent(new Event("PreviousFrame")); -
ODI Error - Calling a function in the source database
I am using this directly in the Interface mapping and getting the following error
This is the syntax I am using SUM(CASE WHEN ((main.getCertDate(person_id,getdate()) >= current_timestamp) THEN 1 ELSE 0 END)
ODI-1228: Task Load_Fact_Table1 (Integration) fails on the target MICROSOFT_SQL_SERVER connection SQLSERVER_USA.
Caused By: java.sql.SQLException: [FMWGEN][SQLServer JDBC Driver][SQLServer]Cannot find either column "main" or the user-defined function or aggregate "main.dbo.getCertDate", or the name is ambiguous.
Am I missing any additional steps, before calling a function in the mapping. Do I have to do something in the model to include teh function etc., Please help in fixing this issue.
Thanks for your time and help.Hi Michael, Please see below.
IKM - MSSQL Incremental Update
Failing on Step 3 - Integration - Insert flow into I$ table
insert into db11.dbo.##I$_FCT_TABLE
COMP_ID,
CNT_CLP_TARGET_MET,
CNT_CERTIFIED,
CNT_NOTCERT_WITHIN_GRACE_PRD,
CNT_CERT_OR_WITHIN_GRACE_PRD,
CNT_CERT_DELINQUENT,
SUM_OF_AGE,
SUM_OF_YEARS_EXPERIENCE,
LOAD_DATE,
IND_UPDATE
select
CASE WHEN DIM_COMP.COMP_ID IS null then -9999
ELSE DIM_COMP.COMP_ID
END,
SUM(CASE WHEN ((main.dbo.getCertDate ([DISTINCT_RWF.MASTERKEY],GETDATE()) >= CURRENT_TIMESTAMP) OR DISTINCT_RWF = 'NO') THEN 1 ELSE 0 END),
CURRENT_TIMESTAMP,
'I' IND_UPDATE
from ((
select DISTINCT
REPORT_WORKFORCE_REVIEW.REGION as REGION, REPORT_WORKFORCE_REVIEW.COMPO as COMPO, REPORT_WORKFORCE_REVIEW.PERSON_ID as PERSON_ID, REPORT_WORKFORCE_REVIEW.WF_STATUS as WF_STATUS, REPORT_WORKFORCE_REVIEW.PERSON_NAME as PERSON_NAME, REPORT_WORKFORCE_REVIEW.CPCN_NUM as CPCN_NUM, REPORT_WORKFORCE_REVIEW.COMMAND as COMMAND, REPORT_WORKFORCE_REVIEW.UIC as UIC, REPORT_WORKFORCE_REVIEW.UIC_STATE as UIC_STATE, REPORT_WORKFORCE_REVIEW.ORG_STRUCTURE_CODE as ORG_STRUCTURE_CODE, REPORT_WORKFORCE_REVIEW.ORG_DESC as ORG_DESC, REPORT_WORKFORCE_REVIEW.LOCATION as LOCATION, REPORT_WORKFORCE_REVIEW.STATE as STATE, REPORT_WORKFORCE_REVIEW.SVC_COMP_DATE as SVC_COMP_DATE, REPORT_WORKFORCE_REVIEW.YRS_OF_SERVICE as YRS_OF_SERVICE, REPORT_WORKFORCE_REVIEW.POSITION_ENTER_DATE as POSITION_ENTER_DATE, REPORT_WORKFORCE_REVIEW.MTHS_EXP_IN_PRESENT_POS as MTHS_EXP_IN_PRESENT_POS, REPORT_WORKFORCE_REVIEW.MTHS_EXP_IN_CURRENT_APC_ACL as MTHS_EXP_IN_CURRENT_APC_ACL, REPORT_WORKFORCE_REVIEW.AGE as AGE, REPORT_WORKFORCE_REVIEW.SEX as SEX, REPORT_WORKFORCE_REVIEW.SUPV_CODE as SUPV_CODE, REPORT_WORKFORCE_REVIEW.ACF as ACF, REPORT_WORKFORCE_REVIEW.CP as CP, REPORT_WORKFORCE_REVIEW.SERIES as SERIES, REPORT_WORKFORCE_REVIEW.DUTY_TITLE as DUTY_TITLE, REPORT_WORKFORCE_REVIEW.APT as APT, REPORT_WORKFORCE_REVIEW.APT_DESC as APT_DESC, REPORT_WORKFORCE_REVIEW.API as API, REPORT_WORKFORCE_REVIEW.SAA as SAA, REPORT_WORKFORCE_REVIEW.GRADE as GRADE, REPORT_WORKFORCE_REVIEW.HI_DEGREE as HI_DEGREE, REPORT_WORKFORCE_REVIEW.LVL_DESC as LVL_DESC, REPORT_WORKFORCE_REVIEW.APC as APC, REPORT_WORKFORCE_REVIEW.ACL as ACL, REPORT_WORKFORCE_REVIEW.CERT_LVL_ACHIEVED_IN_APC as CERT_LVL_ACHIEVED_IN_APC, REPORT_WORKFORCE_REVIEW.CERT_IN_POSITION as CERT_IN_POSITION, REPORT_WORKFORCE_REVIEW.CERT_BELOW_POSITION as CERT_BELOW_POSITION, REPORT_WORKFORCE_REVIEW.NOT_CERTIFIED as NOT_CERTIFIED, REPORT_WORKFORCE_REVIEW.CLP as CLP, REPORT_WORKFORCE_REVIEW.LAST_IDP_UPDATE as LAST_IDP_UPDATE, REPORT_WORKFORCE_REVIEW.LAST_IDP_UPDATE_MTHS as LAST_IDP_UPDATE_MTHS, REPORT_WORKFORCE_REVIEW.SUPV_REVIEW_DATE as SUPV_REVIEW_DATE, REPORT_WORKFORCE_REVIEW.SUPV_REVIEW_DATE_MTHS as SUPV_REVIEW_DATE_MTHS, REPORT_WORKFORCE_REVIEW.EMAIL as EMAIL, REPORT_WORKFORCE_REVIEW.MASTERKEY as MASTERKEY
from main.dbo.REPORT_WORKFORCE_REVIEW as REPORT_WORKFORCE_REVIEW
where (1=1)
) as DISTINCT_REPORT_WORKFORCE_REVIEW LEFT JOIN main.dbo.PERSON as PERSON ON DISTINCT_REPORT_WORKFORCE_REVIEW.MASTERKEY=PERSON.MASTERKEY) LEFT JOIN main.dbo.ACQUISITION_CORPS_QUALIFICATION as ACQUISITION_CORPS_QUALIFICATION ON DISTINCT_REPORT_WORKFORCE_REVIEW.MASTERKEY=ACQUISITION_CORPS_QUALIFICATION.MASTERKEY) LEFT JOIN main.dbo.PERSONS_POSITIONS as PERSONS_POSITIONS ON DISTINCT_REPORT_WORKFORCE_REVIEW.PERSON_ID=PERSONS_POSITIONS.MASTERKEY
AND PERSONS_POSITIONS.POSITION_END_DATE IS NULL) INNER JOIN db11.dbo.DIM_COMP as DIM_COMP ON DISTINCT_REPORT_WORKFORCE_REVIEW.COMPO=DIM_COMP.COMP_CODE AND DIM_COMP.CURRENT_RECORD_IND = 1) LEFT JOIN db11.dbo.DIM_POSITION_TYPE as DIM_POSITION_TYPE ON DISTINCT_REPORT_WORKFORCE_REVIEW.APT=DIM_POSITION_TYPE.POSITION_CODE
AND DIM_POSITION_TYPE.CURRENT_RECORD_IND=1) -
Calling a function in the HTML window the course sits inside - Captivate 8
Hi,
I've scoured the forums for an answer to this but as yet have come up blank.
Our LMS launches a course in a popup window and inside of this the .htm Captivate output file sits.
Currently this pop up window has a button in it which executes a function. The problem is this button is rather unsightly sitting above the course in the HTML window and I'd like to be able to call this function from inside the Captivate course itself.
The function is called closeSCOContent() and it closes the course window but crucially forwards the user to a feedback page.
So essentially is it possible to call this function using the Javascript function in Captivate 8?
I hope I've explained that sufficiently
Many thanks!Hi,
This gave me the nudge in the right direction I needed, after a bit of basic frameset research I've got the desired functionality.
Huge thanks! -
Can call a function in the select statement?
Is there any ways to call a function in the select statement?
what I like to do is this:
select deptno, totalEmployees(deptno), TotalSalary(deptno)
from emp;
I know it can be done by count(*) and join tables, but my case
is much more complex and the where clauses are different from
one function to another, and have many tables to join and many
combinations
ThanksFunctions can be used in a select statement subject to certain
restrictions, see
http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/
server.817/a85397/statem9b.htm#2062024
It's under "CREATE FUNCTION> Keywords and Parameters> function>
Restrictions on User-Defined Functions"
Here is an except...
When a function is called from within a query or DML statement,
the function cannot:
a) Have OUT or IN OUT parameters
b) Commit or roll back the current transaction, create or roll
back to a savepoint, or alter the session or the system. DDL
statements implicitly commit the current transaction, so a user-
defined function cannot execute any DDL statements.
c) Write to the database, if the function is being called from a
SELECT statement. However, a function called from a subquery in
a DML statement can write to the database.
d) Write to the same table that is being modified by the
statement from which the function is called, if the function is
called from a DML statement.
Except for the restriction on OUT and IN OUT parameters, Oracle
enforces these restrictions not only for the function called
directly from the SQL statement, but also for any functions that
function calls, and on any functions called from the SQL
statements executed by that function or any function it calls. -
How to download firework through the adobe assistant
how to download firework through the adobe assistant
You should be able to add the download to the Adobe Download Assistant by choosing the download option at http://www.adobe.com/cfusion/tdrc/index.cfm?product=fireworks.
-
Is there a call block function for the iPhone 4S?
Is there a call block function for the iPhone 4S? If not, will it be offered in the future? what else can I do to the phishing calls?
No.
Apple has not said.
Don't answer your phone. -
Multi-record block (how do I loop through the block)
I created a two canvas form. On the first canvas, the user enters data and selects 1 - 30
reports that they want to run. When they click on <NEXT> button, I create a multi-record
control block and display each record on the second screen using
go_block;
clear_block;
move data;
create_record;
The user then selects on the second canvas which reports to run now and which to run later via
a LOV. When they press the <RUN> button, I want to start at the first record and either run the
report or schedule it. Then I want to move onto the second and the third until all selected reports
have been handled. I know I should use a loop but can't seem to make it work.
So my question is, How do I loop through the records in a multi-record control block, pass the information
for that one record to a parameter form and then execute the request? Each control block record contains
10 parameter fields.
Thanks.
Bobgo_record(1);
<< do your processing >> -- This is executed only for the first record.
if :system.last_record = 'TRUE' then -- If the 1st record is also the last record.
RETURN;
end if;
LOOP
next_record;
<< do your processing >>
if :system.last_record = 'TRUE' then
EXIT;
end if;
END LOOP;
I created a two canvas form. On the first canvas, the user enters data and selects 1 - 30
reports that they want to run. When they click on <NEXT> button, I create a multi-record
control block and display each record on the second screen using
go_block;
clear_block;
move data;
create_record;
The user then selects on the second canvas which reports to run now and which to run later via
a LOV. When they press the <RUN> button, I want to start at the first record and either run the
report or schedule it. Then I want to move onto the second and the third until all selected reports
have been handled. I know I should use a loop but can't seem to make it work.
So my question is, How do I loop through the records in a multi-record control block, pass the information
for that one record to a parameter form and then execute the request? Each control block record contains
10 parameter fields.
Thanks.
Bob -
Command how many mails when through the mailstore for a specific domain.
I need to get info from the maillog to see how many mails when through the mailstore for a specific domain.
For example all the mails send and received by example.com witch is hosted on that 2005q1 mailserver.
Anyone know the commands to get it out.The data is certainly in the mail.log.
You may want to start with the perl log parsing script, here:
http://ims.balius.com/resources/downloads/files/imslog.pl -
How to call java function through Web Service
Hello Experts,
I want to call a method through Java Web Service in my abap code. Is it possible ? If so, plz guide me.
Requirement: In SD module user enters the PAN, on after entering PAN in want to validate it on NSDL. For that a Web Service has already been deployed on a Web Server. and that the deployed Web Service I want to call in abap code.Hi,
check this link
Re: Call to WS from one backend to other backend
regards
afzal
Maybe you are looking for
-
I've been having this problem for quite a long time now, it's really disturbing since i've tried almost all suggestions of support, but to no avail My Problem started a few days ago, when i docked my iPod to my computer, iTunes gave a notification sa
-
I will change my computer, so I'm going to have to sync my iPhone with the new computer. How not to lose my contacts and calendar?
-
CHANGE DOCUMENT TYPE IN SERVICE PO
Hi, Do you know if is possible (and how) to change Document Type in PO by ME22N transaction in SERVICE purchase order in which you have created at least one services line item. I'm not able to do it because Document type field is grey. If i shall del
-
Can you tell me what this code does?
Can you tell me what this code does? import java.io.*; class Assignment1 public static String[][] tdi = { {"Paris", "418", "Rome", "55"}, {"Liverpool", "121", "Copenhagen", "35"}, {"Liverpool", "4
-
I was trying to update my Ipad to IOS 8, the screen is all black with the apple logo on it and the progress bar is stuck. I can't turn it off, and when i connect it to itunes, it doesn't display