Is it possible to call the function in the module through function of interface component

Hello

I see this in the livedocs.

"In general, if you want to set properties on controls in the module using external values, you must create the variables that may be related. Then, you set the values of these variables in the methods implemented in the interface. If you try to set properties of the controls of the module directly using the external values, controls may not be instantiated by the time the module is loaded and the attempt to set the properties may fail. »

I have a component in a module. I have to call this component of the interface function funcion. That is to say my main application call the function of interface, and that interface funcion must call funcion of the component. Is this possible. I get error that the element is null, if I try this. Is it possible to do so.

Thanks in advance.

Hi, yes I got your problem now when I have your code.

See it here:

MOD = modInfo.factory.create (like TestInterface);
var el: IVisualElement = modInfo.factory.create () as IVisualElement;
this.addElement (el);

It won't - you create 2 separate instances of the module, which you create - 'el' and the other a not - "mod".

It should look like this:

var el: IVisualElement = modInfo.factory.create () as IVisualElement;
Note: I usually use var el: Module = modInfo.factory.create () like Module; Does not need at least for the moment to cast as IVisualElement but I know that it is not bad, I read in some articles before getting if I remember correct it does not give access to some methods, but not sure.

MOD = el like TestInterface;

addElement (el);

First, you create the instance of the module with the factory.create (), and then cast you to the interface.

F

Tags: Flex

Similar Questions

  • Is it possible to call the function Document disinfect since a JavaScript?

    Hi, I hope that this should be easy, but a link back are not the results of the research in the SDK from Adobe live. Is it possible to call the functions Document disinfect or remove hidden information of in a javascript script? Here pointers would be GREATLY appreciated.

    This command opens the dialog window Document disinfect, but you will still need to run it manually, and you will also need to run it from a context of trust.

    app.execMenuItem("DIGSIG:SanitizeDocument")

  • Is it possible to call the api native playbook of QT creator?

    Hello

    I'm currently learning the playbook with Qt development.

    For this I use Qt creator to develop the specific application of the user interface.

    I want to know that is it possible to call the api natives of the application that is, I do in QT creator.

    As I want to include a video and audio player in my application.

    It is easier in the native api for use of this feature.

    In QT, I found it in the QT mobility and with phonon, but two of them are not supported on Playbook.

    So please guide me with my problem.

    Thanks in advance.

    bskania.

    Sorry, drop the. at the end: http://qt-project.org/wiki/QNX

    I never used the BB expected build but it's a bit old so it would be logical that you must use Q_OS_QNX vs Q_OS_BLACKBERRY. You can post the results of compilation using Q_OS_QNX?

  • Calling a function in a component

    Hi, I know it's simple, but I can't it works I have looked for example but come uo with nothing

    I want to call a function in a component

    I created a label-based acompoinent

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Label

    ' xmlns:mx = ' http://www.Adobe.com/2006/MXML " >

    < mx:Script >

    <! [CDATA]

    public var mp3:String;

    private var soundChannel:SoundChannel;

    This function will load and play the sound

    public function playSound():void{}

           var urlRequest:URLRequest = new URLRequest (mp3) ;

          var sound: sound = new Sound();

    sound. load (urlRequest);

    stop no. device sound turns

         if (soundChannel! = null ) {}

    soundChannel.stop ();

    }

    soundChannel = sound.play().

    }

    This function stops the sound of the game, this need tos work on the sound channel

    private function stopSound():Sub

    {

    soundChannel.stop ();

    }

    []] >

    < / mx:Script >

    < / mx:Label >

    call looks like

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Application

    ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "layout =" " absolute "xmlns:uofs =" " UofS.* " >

    < uofs:ulable " text = ' Hellow " id=" B21 " x=" 200 "y =" 300 "mp3 =" jazz.mp3 "click ="playSound ()" / >

    < / mx:Application >

    also how wolud you pass a string in the click

    "Click =" playSound (jazz.mp3) "or click =" playSound ("jazz.mp3").

    do not work

    You call the function in the main folder of the application; not the component.

    Change the code like this:

    B21.playSound ('whatever')

  • Satellite M70: Is it possible to repair the MBR through recovery CD?

    Hi, I do not know where should I post. I have Toshiba Satellite M70 and I want to ask if it is possible to repair the MBR through recovery CD) just as you can do with the XP CD.

    Thank you.

    Hello

    As far as I know that something like this is not possible. Recovery media can be used to restore the BONES together. This is an image and there is not some kind of repair option as the CD-ROM of Microsoft full version installations.

  • Is it possible to export the modules TMSPE?

    Is it possible to export the modules TMSPE?

    We have hundreds of users manual that had been migrated for the provision of the legacy and are now running on TMSPE.

    Now, we must export the user information to fill a spreadsheet to download a new UC Jabber (CUCM) environment.

    Any ideas?

    PS: This client have no AD/LDAP. All modules are stored in TMSPE DB.

    Thank you.

    I am not a SQL admin so I can't tell how to export the data, but you can get this information from the tmspe database in the dbo.ur_user table.  Passwords will be hashed, exporting are so useless.

    Columns of the table in the dbo.ur_user that will be relevant to what you want are:

    • username
    • E-mail
    • first name
    • last_name
    • title
    • company
    • Department
    • office_phone
    • Mobile_phone
  • Is it possible to call a function in a parent of a child component component in Flex 3?

    It is probably a very basic question, but ask for this for awhile.

    I need to call a function in a parent component and the appeal of its child element in Flex 3. Is there a way to access an element functions of the child element parent? I know that I can send an event for children and add a listener in the parent to call the function, but just wanted to know if could also directly call a function of parent of a child (similar to how you can call a function in the main mxml file using Application.application). Thank you

    There are no performance issues, but it's ok if you use the child component in a single category. Suppose that you want to use the same component as a child to a lot of parents then if all the following

    public interface IParentImplementation{
    
         function callParentMethod();
    }
    

    and the parent of the class has to implement this 'IParentImplementation '.

    usually to the next line

     public class parentClass extends Canvas implements IParentImplementation{
              public function callParentMethod():void{
         //code
              }
         }
    

    in children, you should do something like that.

    (this.parent as IParentImplementation).callParentMethod();
    

    Here the use of Interfaces, we're to decouple the parent and child

    If this post answers your question or assistance, please mark it as such.

  • Is it possible to call the method in the PL/SQL AM?

    Hi all

    I have a really strange requirement, i.e. I want to know if I can call a method in an existing AM which is in the OPS database applications.

    Basically the method is called and worked very well for the controller but we also want to perform some batch process and want to know
    If you call the same method of PL/SQL somehow pass the parameters that we pass throgh the controller...?

    If this is not possible, can someone give me some alternatives... any help would be really appreciated.

    Thank you

    Hello

    Unable to correctly understand what you are trying to reach. But if you want to call a method of AM. What you can do is to join a competitor of Java program in Apps & then call this concurrent program front-end or via FND_REQUEST. SUBMIT_REQUEST... Front end you can even schedule this program too...

    It could be useful!

    Thank you
    AJ

  • Is it possible to call the Parent of a callback sequence?

    I would like to add additional logic to the my test sequence error handler. In particular, I would like to create a SequenceFilePostStepRuntimeError callback that sends the error message as an email addresses. The sending of an e-mail item is not a problem. What IS a problem is that I'd rather not have to re - write the TestStand error dialog box. Is this all I can write a sequence of reminder that will carry out my code AND then call the default behavior?

    I'm sure that you will still see the error message will appear even if you replace this reminder.  At least, I did it!

    Have you tried out?  Just throw it down the recall and place your email code in there have a step in your MainSequence generates an error.

  • Is it possible to change the State through several buttons?

    If I have already created, say, 100 identical buttons, and I want to change the State 'down' to a new color other than black. is it possible to do it quickly? I use 9 Captivate.

    Because you talked about "buttons" I assumed that you were pointing to the InBuilt States: Normal, rollover and down. The situation with styles is a little confusing IMO concerning States. You cannot set the States in Manager of Style of the object, as was the case of the Captivate 8 buttons. Since 9 Captivate, you will need to define States in the Panel object, for custom reports also state in regard to integrated States. Part of the InBuilt says are really integrated in the style: this is the case for all of the State for the Image buttons, for the background/outline for other types and form buttons. The labels on the buttons (text, system and form) are not part of the style. The exception are the image buttons because you have to put the text in the images. If you add objects in integrated States, they wil not be part of the style.  Even for States custom: they are not part of the style. I have problems with this configuration of confusing. It would be much easier, I think, if everything was recorded in an object style could be edited and changed in the Object styles Manager.

    The button menu "three lines", also called the hamburger or hot dog button, has opportunities to save changes to an existing style, to create a new style to apply a style to objects with a different style by default (as long as you override, leading + sign to appear).

    This no doubt confused answer: the workflow, I proposed with object styles, does that for characteristics that are saved in an object style (there no real explanation to help him as far as I KNOW). Now, I understand your last answer (sorry) that you are talking about a State that isn't integrated, but custom. In this case, you cannot change this State for all buttons at the same time. Only way is to duplicate the buttons. My apologies, I may have to write a blog about the object styles and its Director. I've heard several trainers proclaiming that they never use the OSM.

  • Is it possible to stop the conversion through the management network?

    Our management 172.16.0.0/16 network and our production network 10.0.0.0/8

    When we try to make the P2V conversion, all traffic through the firewall that we use for routing between 2 networks, that really is not set up to deal with a lot of traffic and that is what is extremely slow conversion.

    Is it possible to get the converter to push this traffic through the network of production instead?

    the system is 3 ESXi hosts grouped in vcenter 5.5.  Is the storage on a San

    ESX expose NFC (network file copy) as a service that uses a converter to perform conversions and NFC uses the management network. As far as I know, it cannot be changed.

    There is one exception, if--if you do Linux P2V, cloning goes through the network of the virtual machine and you will not have this problem.

    I think you may have a more general with this configuration problem, as the NFC is used not only by the converter (for example, SRM, VMotion, etc...). See this: why vMotion uses the management rather than the network vMotion network?-frankdenneman.nl for something completely different, but which may sometimes cause a problem with this Setup.

    Kind regards

    Plamen

  • Lost the original files, is it possible to recover the project through preview files?

    Crashed my hard drive with windows but I have files preview and project on the other drive. Is it posible to recover my project?

    Depending on how the bad hard drive is, you might be able to plug it as a secondary drive and specify files off of it or send them to a service to extract the files. I don't think there is anyway to recover the files through something that first creates.

  • ITS POSSIBLE TO CALL A FUNCTION WHEN THE LINES ARE ALREADY MET?

    Hello, I'm new in pl sql and I learn.
    My requirment is:

    I made a function for calculating the values of cumulative of the account period.

    My problem is:

    I have this data

    amount of the account
    12 100
    12 50
    13 200

    and I have this simple query

    SELECT flat, account, acumulated_amount (period)
    THE F1
    GROUP account, the period

    I get

    amount of the account
    12 150
    13 200

    I want to add is to add a column that is calculated by a function. This function calculates the cumulative amount of previous years of account.
    If I insert this select statement so that it will calculate the cumulative amount each online account and what I want is show the amount acumullated after the grouped data

    For example: my accumulated amount of the 12 is 1000 and based on my request I will receive

    account amount acumullated
    12 150 2000
    13 200

    because the cumulative amount in each line and I need perform the calculation only when data are collected. Something like this:


    account amount acumullated
    12-150-1000
    13 200

    Someone has an idea how to do this?

    Thanks in advance

    Paulo Duarte

    Hi, Paulo,

    user4256563 wrote:
    Hello, I'm new in pl sql and I learn.
    My requirment is:

    I made a function for calculating the values of cumulative of the account period.

    My problem is:

    I have this data

    amount of the account
    12 100
    12 50
    13 200

    Whenever you have a problem, please psot of CREATE TABLE and INSERT statements for your sample data, even if it's only 3 rows.
    Always say what version of Oracle you are using (for example, 11.2.0.1.0).

    and I have this simple query

    SELECT flat, account, acumulated_amount (period)
    THE F1
    GROUP account, the period

    I get

    amount of the account
    12 150
    13 200

    You have 3 columns in your SELECT statement, but only 2 columns in the output. Is one of the output NULL columns?

    I want to add is to add a column that is calculated by a function. This function calculates the cumulative amount of previous years of account.
    If I insert this select statement so that it will calculate the cumulative amount each online account and what I want is show the amount acumullated after the grouped data

    For example: my accumulated amount of the 12 is 1000 and based on my request I will receive

    account amount acumullated
    12 150 2000
    13 200

    Sorry, I don't see how you get 1000 or 2000 for examples of data that you said that you have. Can you explain, step by step, how to get this figure?

    because the cumulative amount in each line and I need perform the calculation only when data are collected. Something like this:

    account amount acumullated
    12-150-1000
    13 200

    That's what you want, or you want the results given just before her, with accumulated = 2000?
    Whatever it is, I still don't see how you get 1000 or 2000 of 100, 50 and 200.

    Someone has an idea how to do this?

    Analytical functions can do what you want. When you use analytical functions and aggregation in the same query, the GROUP BY clause is applied and aggregate functions are calculated before the analytical functions are started.

    You can write (or analytical) global functions defined by the user. For a simple (and very useful) example, called STRAGG, see
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:2196162600402

  • Is it possible to make the modules to activate as needed rather than turn to the browser start or disabled?

    Extensions and Plug-ins have a disable or remove the button, not a sleep button. Is it possible to put these to use when the application needs instead of either on or off? It seems that Firefox starts with them all turned on, my browser startup time increases considerably. I don't need to plugin Quick Time or Windows Presentation Foundation to start the browser, but perhaps need them during the session, according to request.,.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

    It is possible that your security (firewall, antivirus) software blocks or limit Firefox or the process of plugin-container without you inform, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox and the plugin-container in the permissions list in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.

    See:

  • Is it possible to divide the block through a transparent partition?

    I have 2 cubes - one who possesses the only sales and who has full P & l (including accounts of sales)

    I would like to make users data from loading in the Sales database and that segment transparent in the P & L data base.  The reason is that they are at a lower level of budgeting in the Sales database so the data is summarized, and then returned to the P & L.

    I tried partitioning and it brings more data perfectly.  Unfortunately, when I run an agg, (even outside auditors coming via the transparent partition), the agg is always RPC calls to the Sales database.  I am partitioning stored members only, so it is not calculated dynamically, but some partitioned are full hierarchies to a specific dimension.  (once again, no dynamic Calc)

    I guess my question is can I part of the block of partition and I agg ignored accounts coming from the Sales database?

    Look at the REMOTECALC setting in the tech reference

Maybe you are looking for

  • Product key lost for my computer toshiba laptop

    I need to reload the windows vista, but I lost my product key for my computer toshiba laptop.Does anyone know if I can get a replacement and that I have to pay.

  • HP All In One: Lost power option after upgrading windows 10

    Before upgrading Windows 10, I could hold my cursor to the right of my screen and I'd be shown options to turn off or put my computer to sleep. After upgrade, I am unable to get this to fall down. How to turn off my computer or set mode 'sleep'?

  • Timestamp with milliseconds to double

    I need to get my updated timestamp in the form (including to the millisecond) in a double format. I use the channel scan. Any format I use the double issue is always truncated and shows only a reolution of a tenth of a second. I need my date/time to

  • 1 GB clip won't boot to the top

    Hi, im new here, but I want to first start by saying that this miniature mp3 playback device has been a great product for me. Ive been using it for over a year now and ive been very impressed. However, over the past two days ive been a problem out of

  • No inplace upgrade from vista home premium to pro 7.

    Why don't you support an upgrade to windows 7 pro to windows vista home premium on-site?  I bought a download from Microsoft.com upgrade only to find out that I can't use it.