Find a component with his id ? (ex find a Label in a Panel with the Label's id)

Hello, I need to find a children component with his id (so without getchildat ou byname methods)
ex :
<mx:Panel id="panel1" x="10" y="10" title="PANEL 1" width="400" height="300">     
<mx:Label id="label1" x="15" y="15" text="label 1 dans panel 1" />
<mx:Panel id="panel2" x="70" y="50" title="panel 2 ds panel 1" width="100" height="50">
<mx:Label id="label2" x="25" y="25" text="label 2 dans panel 2" />                    
</mx:Panel>                    
</mx:Panel>
with id=label2 or id=panel2 I would like have the Label or Panel, without having to look in children of children
because there is only one single id in application I think it's possible, but don't find how
think's in advance for your ideas !
Dave

hello atta707, think you for you help !
but I need it to find components I create with my methods createLabel and createPanel
> I have found this[id]
it work good for components who are first in application
but it doesn't find components who are created after
for example, with :
<mx:Panel id="firstpanel"></mx:Panel>
this[firstpanel] work
but if I create a new panel in the first panel :
newPanel = new Panel();
this[firstpanel].addChild(newPanel)
this[idNewPanel] doesn't work !
so it seems when you use addChild it add the component in screen and children tree
BUT not in this[id]
and if I try
this[idNewPanel]=newPanel it doesn't work
so I need a method to find NEW components by their id
or to oblige this[id] to register the new components created
any idea ? >

Similar Messages

  • Proxy error-  unable to find software component version for namespace-

    Hi all,
    I need  help  regarding proxy. 
    I am using SAP standard package for one integration  PI 7.0 to SRM. 
    Here we need to use the datatype enhancement for adding some fields.  So I create one extension_datatype  in the datatype enhancement and add the fields . 
    ( I am using Inbount interface, where I am adding the new fields in  PI)
    Now when I go to SRM system and  Run SPROXY system  to regenerate the Proxy.  So that It can reload the New fields.
    Then it reloads and We activate the same. 
    Now at one place when I clicked the data type enhancement object  its giving the error  that  unable to find software component version for namespace" . I did not understand  why  its giving the error.  I added the new fields in the existing  running datatype enhancement.   and reload the reproxy. 
    I have one more datatype enhancement object in the same software component and in the same name space but its not giving the error. 
    Please  help ,  how to resolve it asap. 
    regards
    ram

    1.the datatype enhancement object may not be activated in the same software component .
    for this try these -
    after creating your data types and designing part. First close all the developement objects windows.
    then click on your sw component which you have created and activate it very first.
    then you will be able to activate all other objects
    or when you start activating your data types a new window with list of the objects which you want to activate opens
    in this new window you can see your sw component as the very last object select it first and activate it
    2. update the cache in both system
    i think these 2 reasons.u try it.

  • I've lost my iphone with passcode lock and find my iphone lock on but the wifi n cellular data was turned off so no way i can trace it so the only question remains is will the person who finds it be able to unlock it and use it as his own ?

    i've lost my iphone with passcode lock and find my iphone lock on but the wifi n cellular data was turned off so no way i can trace it so the only question remains is will the person who finds it be able to unlock it and use it as his own ?
    is it possible to change imei number?
    i've tried for so many times n still the phone is offline so i've set it to offline mode with my message but it never shows the last location why?

    If the device is found, nobody can use it without knowing your Apple ID and password.
    The phone will only show it's location if it is connected to cellular network or Wi-Fi. If those options are switched off, you can't locate the phone.
    With iOS 7, Find My iPhone includes a new feature called Activation Lock, which is designed to prevent anyone else from using your iPhone, iPad, or iPod touch if you ever lose it. It starts working the moment you turn on Find My iPhone in iOS 7. With Activation Lock, your Apple ID and password will be required before anyone can:
    Turn off Find My iPhone on your device
    Erase your device
    Reactivate and use your device
    This can help you keep your device secure, even if it is in the wrong hands, and can improve your chances of recovering it. Even if you erase your device remotely, Activation Lock can continue to deter anyone from reactivating your device without your permission. All you need to do is keep Find My iPhone turned on, andremember your Apple ID and password.
    What steps should I take if I misplace my device?
    If you ever misplace your device—whether it’s just lost or you think it may have been stolen—you should put it into Lost Mode immediately using Find My iPhone.
    Lost Mode locks your screen with a four-digit passcode and lets you display a custom message with your phone number to help you get it back. You can also remotely erase your device if needed, and your custom message will continue to display even after the device is erased.
    While Activation Lock works in the background to make it more difficult for someone to use or sell your missing device, Lost Mode clearly indicates to anyone who finds your device that it still belongs to you and can’t be reactivated without your password.
    To put a device into Lost Mode, sign in to icloud.com/find from a Mac or PC or use the Find My iPhone iOS app.
    For more information, read what to do if your device is lost or stolen.
    copied from iCloud: Find My iPhone Activation Lock in iOS 7

  • Recently in the Bahamas where I helped a friend with his new iPad. We could not find Bahamas in initial setup so we used United States and could not enter Visa/MC billing address in Bahamas. iTunes rejected, billing info is not what's on file. What to do?

    Recently in the Bahamas where I helped a friend with his new iPad. We could not find Bahamas in initial setup so we used United States and could not enter Visa/MC billing address in Bahamas. iTunes rejected, billing info is not what's on file. What to do?

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • I have a friend who I was helping out with his iPhone. He has since lost it. I believe I backed it up to my machine but have no idea where to find it. Is it possible to find it and read the back-up file without the original device being connected?

    I have a friend who I was helping out with his iPhone. He has since lost it. I believe I backed it up to my machine but have no idea where to find it. Is it possible to find it and read the back-up file without the original device being connected?

    If he gets another device - you should be able to restore it from your computer to the point where you backed it up
    Otherwise that file cannot be read

  • Need help in finding mpeg2 component number to unlock key so I can burn a dvd?

    Need help in finding mpeg2 component number to unlock key so I can burn dvd?? I have premiere elements 3.0
    Thanks,
    sylvia

    Sylvia,
    I cannot comment on PrE 3, as I did not start until PrE 4. With the latter, when one went to use one of the modules, they were automatically "registered." Based on comments in the Help file, I asked pretty much this same question, back then. All was done automatically, in PrE 4.
    Maybe those, familiar with PrE 3, can be of help to you.
    Good luck,
    Hunt

  • Find underlying component type

    Hi, I have a structure which has few components. Is it possible to find the component type of the components?
    Also is it possible to determine whether the component type is a table-type or a structure?

    Hi Arun,
      You can try out with the help of a join on the tables DD02L and DD03L. In the DD02L, you would be having the tables and it table category (i.e., the type of the component you require INTTAB represents it as a structure and TRANSP represents transparent table.)
    For example, if u have an include structure in a table, first hit the DD02L table and know whether it is a table or structure and then hit the table DD03L to know what are the include structures it is having. In this way, you can play around with it.
    Please don't forget to reward points if the answer is helpful

  • Opening files with Illustrator and photoshop doesn't work, i have to drag the files from finder in to the program. This problem appears after opening 4 a 5 files.

    Opening files with Illustrator and photoshop doesn't work, i have to drag the files from finder in to the program.
    This problem appears after opening 4 a 5 files, rebooting helps another 4 a 5 times and appears again.

    I'd recommend reposting in the Boot Camp forum, that is where the Boot Camp and Windows gurus hang out.
    Good luck.

  • WAMPSERVER 'PDOException' with message 'could not find driver'

    Hi All,
    I'm running wampserver 64 bit version with:
    Apache : 2.4.4 MySQL : 5.6.12 PHP : 5.4.12 PHPMyAdmin : 4.0.4 SqlBuddy : 1.3.3 XDebug : 2.2.3
    I have downloaded the Microsoft Drivers 3.0 for PHP for SQL Server.
    I have put the drivers in my ext folder C:\wamp\bin\php\php5.4.12\ext
    php_pdo_sqlsrv_54_ts.dll
    php_sqlsrv_54_ts.dll
    I have changed my php.ini file to included:
    extension=php_sqlsrv_54_ts.dll
    extension=php_pdo_sqlsrv_54_ts.dll
    I have restarted my PC.
    When I run the following php code:
    <?php
    $database = "master";
    $conn = new PDO( "sqlsrv:server=(local) ; Database = $database", "", "");
    ?>
    I still get the following error message:
    Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in W:\wamp\www\sqlservertestV02.php on line 4
    I have tried everything I can think of but the driver does not seem to load correctly.
    Any help would be greatly appreciated.
    Kind regards,
    Ernst.

    Hello,
    The Microsoft Drivers 3.0 for PHP for SQL Server is used to read and write SQL Server data from within PHP scripts. Since you use MySQL, you should install PDO Driver for MySQL and use pdo_mysql module.
    Reference: http://cn2.php.net/pdo_mysql
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click
    here.
    Fanny Liu
    TechNet Community Support

  • Advice with a query to find Accounts with activities within a given period ONLY

    Hello there,
    I am relatively new to Microsoft T-SQL and I was wondering if someone could help shed some light into a requirement I got...
    I have two tables in a database. One with accounts, and another with activities for such accounts. He is a simple diagram:
    *NOTE: Dates are in the DD/MM/YYYY format.
    Here is what I need to do:
    I need to get a list of all the accounts where the LAST activity was created in a date range, along with a count of activities that fall in such range. The idea behind this is to find out accounts with no activity after a certain period.
    I can certainly accounts with activities in a given range -- but that does not mean that there was no activities after the range.
    For example, if I look for Accounts with activities between Feb/2014 and Mar/2014, this query should NOT return the Contoso account, because it ha an activity after Mar/2014 (i.e.: Meeting with John on 15/Apr/14).
    Another example: If I query accounts with activities from 01/Jan/2014 and 03/Apr/2014, it should ONLY return the Adventureworks account:
    Adventureworks (3)
    [the number in parenthesis is the count of activities in that given time]
    This is because all other accounts had activities after 03/Apr/2014.
    Could someone please advise the best way to construct this query?
    Thanks in advance for the help!
    Regards,
    P.

    SELECT * FROM tbl WHERE CreatiinDate BETWEEN @firstactivities AND  lastactivites
    AND NOT EXISTS 
    (SELECT * FROM tbl t WHERE CreatiinDate>=@lastactivites
    AND
    tbl.AccountID=T.AccountID )
    OR
    SELECT * FROM tbl WHERE
    AccountID  NOT IN (SELECT
    AccountID FROM
    tbl t WHERE CreatiinDate>@lastactivites) 
    AND CreationDate BETWEEN
    @firstactivities AND  lastactivites
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

    How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

    How can I filter to find photos NOT pinned to a map? I have 28,000 phots with many mapped and many not. The Search function does not include GPS data. I haven't found  way to search metadata inside or out of Elements.

  • How to import a image and compare with another image to find their deviation

    i am new to labview , can anyone tell how to import a image and compare  it with another image  to find their deviation
    Solved!
    Go to Solution.

    This is an quite easy task using the Vision Development Module.
    There you can acquire images from cameras or read them form the harddrive, then differntiate them or since VDM 2010 calculate the optical flow between consecutive images.
    Christian

  • What does a folder with alternating ? and finder icons mean?

    After booting my G5, it now goes to a blue screen containing a solitary folder in the center with alternating "?" and "finder" icons in the center of it. They flash for approximately 22 times, stop on the "finder" icon briefly, then start up again. I was told that this is a sign that my hard drive was 'fried'. Can anyone verify this--or perhaps give me other information on what might be occurring. All I want to do is reformat my hard drive and give the unit to my grandkids for researching, word processing, etc.--as it is only running Tiger 10.4.11.  Any help would be appreciated.

    Thanks for the information, Chris. I did run disk one of the system install, buy it would not take me to the hard drive in the G5--only gave me an icon for a remote(online) startup. Any other suggestion as I tried resetting the PRAM and the SMU--both of which did basically anything new?

  • Find a component in TaskFlow Region

    Hi All,
    Jdev version : 11.1.1.6
    I found lot of code to find a component,Using FacesContext, Events etc...
    But in my case its not working.
    Scenario:
    Home.jspx
    <f:view>
    <af:document id="d1" title="Create Proposal">
    <af:form id="f1">
    <af:region value="#{bindings.taskflowdefinition1.regionModel}" id="r1" />
    </af:form>
    </af:document>
    </f:view>
    * taskFlowId="/WEB-INF/uw-createProposal-task-flow.xml#task-flow-definition"
    Takflow Pages:
    Page1.jsff
    <af:pageTemplate viewId="/Template/CreateProposalTemplate.jspx" id="pt1" >
    <f:facet name ="header">
    </f:facet>
    <f:facet name="body">
    <af:commandButton >
    <af:showPopupBehaviour popupid="parentPopup">
    </af:commandButton>
    <af:table id="tb1" >
    </af:table>
    <af:popup id="parentPopup">
    <af:commandButton >
    <af:showPopupBehaviour popupid="childPopup">
    </af:commandButton>
    </af:popup>
    <af:popup id="childPopup">
    <af:commandButton actionListener="{AddInsuranceListener.execute}" />
    </af:popup>
    </f:facet>
    </af:pageTemplate>
    AddInsuranceListener.java
    execute()
    RichRegion a_richRegion = (RichRegion) a_facesContext.getViewRoot().findComponent("*r1*");
    RichPageTemplate a_richTemplate = (RichPageTemplate) a_richRegion.findComponent("*pt1*");
    RichTable a_richTable = (RichTable) a_richTemplate.findComponent("*tb1*");
    sop("table"+a_richTable) // output: RichTable id = tb1
    I can able to find the Table (tb1) from the child popup action event. But i need region id,pageTemplate id.
    Any other alternate way is there to avoid find region and pageTemplate.
    UIComponet root = FacesContext.getCurrentInstance.getViewRoot();
    root.findComponet("tb1"); // this is also not working
    Am I following the correct path.Please suggest how to achieve it? also provide some documents to follow.
    Kindly revert if any clarifications need.
    Thanks
    -Mohanraj

    Hi,
    the command button is in the page fragment, so you can perform a relative search. In your actionListener you receive the actionEvent object to start from
    RichCommandButton button = (RichCommandButton) actionEvent.getUIComponent();
    RichPopup popup = button.getParent();
    RichTable table = (RichTable) popup.findComponent("tb1");
    ...You would only use absolute searches when the search is initiated from the parent page. Otherwise you search relative
    Frank

  • JDeveloper freezes with some searches in "Find in Files"

    With some searches in "Find in Files", JDeveloper simply freezes as it hits a file with the keyword. With other searches, it finishes okay. Any idea why that might be?
    I'm using JDeveloper 11.1.2.2.0.

    hi "942131"
    942131 wrote:
    With some searches in "Find in Files", JDeveloper simply freezes as it hits a file with the keyword. With other searches, it finishes okay. Any idea why that might be?If you have a reproducible scenario for such "freezes", you could consider creating a JIRA issue via http://java.net/projects/adfemg (and refer to it in this forum thread afterwards).
    (tip : You can use "Your Control Panel" to make your name visible in forum posts.)
    success
    Jan Vervecken

Maybe you are looking for

  • External DVD doesn't work via USB on macbook pro

    My old internal DVD drive in macbook pro doesn't work. I want to use my old DVD burner from my old PC. I connect it to enclosure for disk. This stuff i plug in to USB in my macbook. It can read CD/DVD but not burn CD and DVD. What can I do? Is there

  • HP Officejet Pro 8500 Troublesho​oting

    I have an HP Officejet Pro 8500 that went out of warranty in July.  It is scanning and printing my copies in YELLOW.  I cannot find a troubleshooting item for this problem.  Can anyone help?

  • SQD3 select options not fetching all the data?

    Hi abapers, standard SDQ3 tcode is not fetching all the data? In this standard t.code how to find that for different Select-options, different data retrieval queries have been written? where to find the select options conditions are written? thans in

  • The time capsule option in the wifi settings is not appearing in my iPhone

    I recently setup the time calsule at my office and the wifi connection is ok, and when i tried to setup the time capsule on my iphone and ipad there is no option of time capsule on the wifi settings but the option is shown on the apple website http:/

  • Why aren't my software updates updating?

    Today I was trying to install some software updates (13).  The computer was plugged in and restarted, but when I checked to see if the updates had been installed they hadn't been.  What could be the cause of this?  Thanks for your help.