Flex sharing functions between the functions of mxml

Problem is I want to perform a function of a different mxml file.
Possible, but something stupid, if somone can put me on the way...

The solution is the use of parentDocument.
------------------------------------------------------------------------------------------ -------------------------------
MXML that calls the function:
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Canvas xmlns:mx = ' http://www.adobe.com/2006/mxml " width ="400"height ="300">
< mx:Form >
< mx:FormItem label = "Search" direction = "horizontal" >
"" < mx:TextInput id = change "search" = " parentDocument. filterDemo()" / >
"" < mx:Button label = click "Clear search" = " parentDocument. clearSearch()" / >
< / mx:FormItem >
< / mx:Form >
< mx:DataGrid dataProvider = "{dataList}" width = "400" height = "400" >
< mx:columns >
< mx:DataGridColumn headerText = "Name" dataField = "name" / >
< mx:DataGridColumn headerText = "City" dataField = "City" / >
< / mx:columns >
< / mx:DataGrid >
< / mx:Canvas >
-------------------------------------------------------------------------------------
a page that stores the function:

<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "vertical" xmlns:comp = "components.*" creationComplete = "initData ()" >
< mx:Script >
<! [CDATA]
Import mx.collections.ArrayCollection;

[Bindable]
private var dataList: ArrayCollection collection;

private void initData (): void {}
dataList = new ArrayCollection([)
{name: 'Kennedy Memorial hospitals/UMC Stratford', city plan: 'Stratford'},
{name: 'Kennedy Memorial hospitals/UMC Washington Twp', city plan: "Turnersville"},
{name: "Kessler Memorial Hospital" in the city: "Hammonton"},
{name: "Saint reported hospital/Sussex', city plan: 'Sussex'"},
])
}

public function filterDemo (): void {}
dataList.filterFunction = searchDemo;
dataList.refresh ();
}

private void searchDemo(item:Object):Boolean {}
var isMatch:Boolean = false
var tevergelijken:String = weergave.search.text.toLowerCase ();
If (Item.Name.toLowerCase (). Search (tevergelijken)! = -1) {}
isMatch = true
}
return isMatch;
}

private void method clearSearch (): void {}
dataList.filterFunction = null;
dataList.refresh ();
COMP:Weergave. Search.Text = ";
}
[]] >
< / mx:Script >
< mx:ViewStack id = "bookPages' resizeToContent ="true"x ="118"y ="185">
< comp: weergave height = "50%" width = "50%" label = "Weergave" id = "weergave" / >
< / mx:ViewStack >
< / mx:Application >

Problem is I want to perform a function of a different mxml file.
Possible, but something stupid, if somone can put me on the way...

The solution is the use of parentDocument.
------------------------------------------------------------------------------------------ -------------------------------
MXML that calls the function:

http://www.Adobe.com/2006/mxml"width ="400"height ="300">













-------------------------------------------------------------------------------------
a page that stores the function:


http://www.Adobe.com/2006/mxml"layout ="vertical"xmlns:comp ="components.*"creationComplete =" initData () ">"

Import mx.collections.ArrayCollection;

[Bindable]
private var dataList: ArrayCollection collection;

private void initData (): void {}
dataList = new ArrayCollection([)
{name: 'Kennedy Memorial hospitals/UMC Stratford', city plan: 'Stratford'},
{name: 'Kennedy Memorial hospitals/UMC Washington Twp', city plan: "Turnersville"},
{name: "Kessler Memorial Hospital" in the city: "Hammonton"},
{name: "Saint reported hospital/Sussex', city plan: 'Sussex'"},
])
}

public function filterDemo (): void {}
dataList.filterFunction = searchDemo;
dataList.refresh ();
}

private void searchDemo(item:Object):Boolean {}
var isMatch:Boolean = false
var tevergelijken:String = weergave.search.text.toLowerCase ();
If (Item.Name.toLowerCase (). Search (tevergelijken)! = -1) {}
isMatch = true
}
return isMatch;
}

private void method clearSearch (): void {}
dataList.filterFunction = null;
dataList.refresh ();
COMP:Weergave. Search.Text = ";
}
]]>




Tags: Flex

Similar Questions

  • Sharing data between the host computer stores in different groups.

    I read in several places that sharing of data warehouses between the host in different groups is possible, but I don't get the warm and fuzzies when the hosts are different versions.

    vCenter is 4.1

    Group Alpha is 4.0 vmfs 3.33

    Bravo of cluster is 4.1 vmfs 3.46

    My goal is to move the virtual machines that meet the specific criteria of group Alpha for Cluster Bravo then the availability of flowing freely between clusters.

    The only concern I have is when adding Cluster Bravo to the same host of 3PAR alpha value of Cluster sharing all the data store, Cluster Bravo will try to reformat to vmfs 3.46 break Cluster Alpha to see the virtual machines stored in the warehouses of shared data?  I don't want to present the old warehouses of data to the new cluster only break from old cluster.

    Hello vmsjsn

    ESX/ESXi 4.X supports all versions of VMFS file system.

    Using your example of Alpha and Bravo. Kudos to will write more Alpha. you will be able to cross all hosts on the shared storage.

  • Sharing files between the Sierra of MacOS and Windows 10

    I'm using a Mac that runs by the Sierra of the OS and a Windows 10 pc. I want to share my files between for theses on my WiFi network. But I don't know how to set up. Can someone please help me to move forward? Thanks in advance.

    Greetings md firdaus,

    Thank you for using communities of Apple Support. It seems you want to share files from your Mac on a Windows computer.
    I recommend you to read this article, it may be able to help to implement the sharing between two computers.

    macOS Sierra: set up a Mac to share files with Windows users

    Take care.

  • Sharing relationship between the two sectors of activity?

    Hello

    We have two areas of activity: sales and sales with gross Profits.
    Turnover with gross Profits has some columns that don't have sales business district.
    Is it possible to share a relationship between these two trades if the columns used in the report are the same, without any possible problems?

    Thank you

    Hello

    Is it possible to share a relationship between these two trades if the columns used in the report are the same, without any possible problems?

    No, a workbook using elements of one or more folders. The folders used by the workbook is not easily editable. You can of course have the folders used by the workbook in both sectors of activity, but then you'd have 2 versions of the file in the business district, one with additional columns and the other without.

    Rod West

  • Sharing files between the Windows 8 & PC Windows 7 laptop

    I confirmed this W8 notebook and PC W7 are in group work and the two permits to share documents, photos,... all types of files.  I can see the files from PC W7 laptop but cannot open PC lap records and cannot the XFR files.  What Miss me?

    When I try to copy the file from the PC to my knees, I get error: "you must be authorized to perform this action."

    When I try to open the files of laptop PC I can get to the screen of the network that shows the icon of the PC.

    P.S. I just installed 8 on my laptop this morning,

    THX

    Implement a host on your primary computer group and join the Group of home on the other computer. In Windows 8, you must choose the individual files you want to share then installation and how you want to share - read only, read and modify. etc. Right-click on the folder and choose share with.

  • sharing files between 'HST' &amp; 'GST' in the guest only network

    Features of the sharing folder between the guest and host is important when guest only network. Unfortunately, I was not able to find accurate answers and but confusion according to the VWMare Server 2.0 documentation and GUI.

    vmserver2.PDF

    -


    "Shared folder tab.

    VMware Server does not support this feature.

    guest operating system

    -


    "VMWare tools properties.

    Shared folders are currently disbled on this host.

    DialogBox help on guest operating system

    -


    .... To activate the shared folders for the virtual machine, see the documentation for your VMware product...

    I installed VMWare tools on the guest-os (Win2003R2). I started Win2008R2 nine as host and shared folder did not work. I thought that maybe it works with OS experienced as Win2K3 and built a brand new Windows 2003 host and once again no shared folder. Later, I found above document, saying: it is not supported at all then, is there any altarnatives.

    Only way I see is, add a dummy WinXP guest with "bridged" n/w, to play the role of trading place for exchanging files b/w other guests and the host. In my case, it is very important to keep the others invited Win2003 unware of outside n/w.  This strategy XP, just to share the log file is an exaggeration.  I guess people must have solved this problem in a more elegant way, if so please let me know, if there are better ways.

    Thank you

    Riou

    nfall wrote:

    > If the prompt is set to guest only network, then you already have a network connection between the host and the guest. no need for another bridge > network link. So just put in place the traditional Windows file sharing.

    Host is able to ping Guest, but not the otherway, and I think, it's because unless configuration host only the client ethernet adapter is not connected to the physical ethernet adapter of the host.

    Should not be.  Windows is concerned, host-only network is just like a physical NIC connected to a physical LAN.  It's just that in this case, the cards are virtual and the LAN is separate from any other LAN.  In short, your physical host as "two network cards", the physical on and the only host.  The host only one is connected to a virtual switch.  The only other thing connected to this virtual switch is NIC of the virtual machine

    Host is able to ping Guest, but not the otherway, and I think, it's because unless configuration host only the client ethernet adapter is not connected to the physical ethernet adapter of the host.

    As noted above, do not need to connect to the physical NETWORK card because the parameter invited only creates a LAN completely separated between the physical host and the virtual machine.

    If there is procedure to this share windows works, please give me more details. A shared windows is all I need (without resorting to the NAT) to Exchange data between G & H.

    At this point, traditional troubleshooting techniques can be used.  If the comments can not PING host, host has disabled firewall?  But if your goal is to share a file from the guest virtual machine, then PING the host comments is not essential.  Simply the host can display the actions on the guest.  (In fact, PING is not essential whatever it is, as long as you see the shares.)  And you look at one/PINGing by name or IP address?  If you do not need, just use the IP address to remove any DNS resolution problems.

  • There are the functional differences between the trial and the full version?

    There are the functional differences between the trial and the paid version for Labview 2009?  Thank you.

    He described the Labview eval version limitations: Limitations of the Evaluation Version of LabVIEW

    See you soon,.

  • I want to assign the function 'delete' key between the CTRL and ALT keys to the right of the space bar.

    I have a new Toshiba laptop and would like to change a function key.  I thought I remembered reading that this can be done.  Is this possible or am I just hallucinating about that possibility?  I want to change the allocation between the ALT and right CTRL keys right key of the space bar.  Help me, please!

    Hi Marion O.Lawrence,.

    WARNING: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    There are some third party programs to rebuild the key, you must use your favorite search engine and the search for the program.

  • The difference between the expression and the function?

    Could someone please explain me the technical difference? For example, I know CAST is an expression and To_CHAR would be a function, but what differentiates the expressions of functions?

    Hello

    2776946 wrote:

    Could someone please explain me the technical difference? For example, I know CAST is an expression and To_CHAR would be a function, but what differentiates the expressions of functions?

    What is the difference between a bird and an OWL?  An OWL is a special type of a bird.  All owls birds, but not all birds are fun.

    Similarly, a function is a particular type of expression.  All functions are expressions, nut not all expressions are functions.

    In fact, the CAST is a function, but you're not wrong when you say "CAST is an expression.

    Maybe you wanted to say, not MOUNT.  CASE expressions are expressions, but not the functions.

    The technical difference between the functions and the other types of expressions has to do with how they are being implemented and is not all that important to users.  Is DECODE function?  It depends on which version you use.  The Oracle 6, it was a function; in Oracle 8, it wasn't; Since Oracle 9 it is again a function.  I don't know what has changed; Maybe the documentation.

  • (1) now I use Lightrom 5.7 How to level 6 or CC? (2) what is the difference between the 6 and CC vercion? (3) when I used lightromm 3, inEXIF the distance in metres to the object that I took, in the virsions later that the function has disappeared, I coul

    (1) now I use Lightrom 5.7 How to level 6 or CC?

    (2) what is the difference between the 6 and CC version?

    (3) when I used lightromm 3, I could see in EXIF distance in metres to the object that I took, in the virsions later that the function is missing, it is very sad I am stiil waiting and I hope it would be possibble in new versions. Or this indication may possible by setting?

    (1) now I use Lightrom 5.7 How to level 6 or CC?

    Buy the standalone update from here: products

    Download CC version here: Adobe explore desktop apps | Adobe Creative Cloud

    (2) what is the difference between the 6 and CC version?

    See this comparison chart: Lightroom compare versions. Adobe Photoshop Lightroom CC

    (3) when I used lightromm 3, I could see in EXIF distance in metres to the object that I took, in the virsions later that the function is missing, it is very sad I am stiil waiting and I hope it would be possibble in new versions. Or this indication may possible by setting?

    Plugin ExifMeta of Rob Cole displays the distance between the subject field (and much more).  Unfortunately, his Web site seems to be down again.  He has been very active here, but he has not posted in several months.

  • Any difference between the separate function and aggregation in sql query cost?

    Hello
    I've run many models sql stmts - such as:
    one) using a single table
    (b) using the two tables, using simple joins or outer joins

    but I didn't notice a difference in sql stmts in cost and implementation plan...
    In any case, my colleague insists on only using the aggregate function is less expensive compared to
    separate... (something I've not confirmed, that is why I believe that they are exactly the same...)

    For the situation described above under 1 sql... We could for example use
    select distinct deptno
    from emp
    select count(*), deptno
    from emp
    group by deptno
    select distinct owner, object_type from all_objects
    select count(*), owner, object_type from all_objects
    group by owner, object_type
    Have you ever found no difference between the two...?

    Note: I use Ora DB 10g v2.

    Thank you
    SIM

    Alexandre Gelin says:
    function separate and aggregation are for different uses and can give the same result, but if you use the aggregate function to get the separate records, it will be expensive...

    really? I find them almost identical to 11g. Actually GROUP BY is almost always more fast for me in the old days.

    article about this askTom Re: any difference between the separate function and aggregation in sql query cost?
    This applies mainly to the older oracle versions http://www.oracle.com/technology/products/rdb/pdf/distinct_derivedtables_groupby_sort_tech_article.pdf

  • What is the difference between the function declared in the package and the CIP

    What is the difference between the definition of a function in the package and package body?

    Published by: user10641405 on November 19, 2009 13:29

    If you describe a package, you will see only the functions declared in the spec.
    If you declare only in the body but are not available to other packages (they are private to the package, non-public)

  • How to choose between the hours in the field Date IR with the functionality of the search bar?

    Hello

    I have an IR with a Date field (point) and when you use the features of the default IR search bar, it is possible to search for dates between 2 dates (date time), but I can't find a way to be able to allow the user to search between the hours of the date (s). I am interested in using the operator betwenn as I would like to provide to the user the possibility to choose for a period of time in the dates.

    How can I get this feature?

    TIA

    Hello

    Change the Date Format of application at: HH24:MI:SS JJ/MM/AAAA

    Sorry - I actually had this setting in my application (which is not often the case!)

    Andy

  • Share resources between the 2 ESX 4.0 hosts without shared storage

    Hello guys,.

    I have the following question, I want to clarify.

    Imagine that we have 2 host ESX 4.0 with more functional license acquired (HA, VMotion, DRS, etc.)

    The two physical servers are identical. Don t have access to any kind of shared storage (San, no iSCSI, NAS no, etc.)

    In host #1 I installed all the virtual machines using local storage.

    Is it posible to use the host #2 resources (memory and CPU) to give more power to accommodate #1.

    My doubt is if it is posible to have a VM installed in local HD in home #1 and using RAM or / and CPU host # 2.

    Just do a cluster between the two hosts to empower the host #1 resources (not use DRS or functions of Vmotion)

    Let me know if I explained in a good way or not.

    Hope someone can clarify this for me.

    Thanks in advance

    It is not possible, even if you have the shared storage.

    There is no possibility that allows you access to CPU and memory of 2 resources different hosts.

    See you soon,.

    ~ Jean

    ~ Don't forget to points, if you found the useful answer

  • Limitation of the APEX: sharing pages between several APEX applications

    I was hoping if someone with a little more experience architect APEX could comment on some of the limitations that I see and I have to make good decisions, working around the problem.

    Any suggestions are welcome.

    One of the limitations I've seen, it's how APEX handles applications and pages. Each application appears as an island, it has its own set of pages, the processes of connection, templates, CSS, JS, references etc.. Regarding the CSS and Javascript, you can be defined in a central location, but still, every new developed APEX application must be configured to make use of your 'standard '.

    The more traditional web solutions showing each as stand-alone web page and any web page can call/reference any other page and pass information to session between them.

    With APEX, however this doesn't seem to be the case.

    A solution would be to have a huge demand for APEX, where all the pages are the property of this unique application.

    Unfortunately, we use of APEX and EBS R11 (& R12) together; all APEX applications are started in the menus of the EBS. I had drawn a SSO solution between the two (without using oracle SSO). However, each APEX application is unique, as small modules instead of complete applications. In other words, we tend to use APEX as an alternative for Oracle Forms - each APEX application is a standalone program.

    I always wanted to be able to apply the same connection process and look and feel in the brand new APEX app we write.

    The way I went to this subject has been meticulously creating a 'model' APEX application. Embedded in the application of this model are all our shared CSS, JS and models that apply the site appearance. It also contains our custom library of signature unique code and debugging custom logger (think log4j but for APEX).

    So whenever a developer began work on a new APEX application, they start by cloning the model and automatically inherit all the functionally and website presentation.

    My concern is if this is really the best way to do it, or if I'm missing something?

    I am also concerned move forward when I wants to establish the change in appearance across all of our web applications that I need to touch each APEX application since. I'm trying to mitigate this by ensuring that almost all the programming logic is contained in packages of PL/SQL, CSS and Javascript only referenced and external application of the APEX. But this does not always with models, or with a logic that is rooted in the actual pages of the APEX etc.

    At least APEX allows you to easily enough copy pages between applications, but it does compare not just to have a single page shared between all applications of the APEX.

    Is there a better way to go about this?

    Hi attis.

    I think you can't really compare a module with an APEX application forms. I wouldn't say to create an APEX application every time when you have created a module of forms in the past.
    A forms module is just a few pages of an application to the APEX. Then you really should have more then a few pages in an APEX application. Certainly, a huge application is also not the way to go, but I group them for example by logical areas such as HR, logistics, order...

    As Sc0tt already mentioned, you must use the 'Subscribe' mechanism of shared components to make it easier to update all your applications with the model updates. But there is more, you should also share your user name and just have in one place and use the "simple APEX based SSO" that allows all applications within a workspace can share the same session. Simply set the 'Cookie' namesake in your authentication for all your applications and when you bind an application to another and include a valid session id you should not have to log in again and you can also set the session state in that other application.

    So here's what I'd do

    (1) creating a master application that contains
    (a) your theme and other components shared that you want to share
    (b) must be also some basic navigation lists to navigate between your applications...
    (c) create a sign with the name "Redirect to connect main app" and type accounts APEX (no matter) where you define the name of 'Cookie' to 'Cbx_missmost' and the URL of invalid session to the login page of your creation 'hand connection app '. For example: f? p = 9999:101: & SESSION.

    (2) create a model application which is a copy of the claim, but where change you the "subscription" of your models, authentication scheme and components shared in the main application. This will serve as your App developers if they want to create a new application.

    (3) create your 'hand connection app' (eg. app 9999 id) by
    ) a copy of your new model application
    (b) remove the inside authentication scheme (this is just made for this main connection app)
    (c) create a new type to use. But important: set the name of 'Cookie' to 'Cbx_missmost '. This will ensure that all applications have the same session cookie.
    (d) If you use APEX 4.1.1 you will automatically be redirected to the calling application after successful login.

    (4) start to create new applications by copying your 'model' application that contains all subscriptions.

    (5) If you run this application, it automatically redirects to your main connection application if the current session is not valid. This will avoid to have the same logic of authentication in your applications.

    (6) If you need to change your templates or shared components you just do in the "master" application and click on the "publish" button to push the changes for all your applications.

    But still, try to avoid many small applications, I think that make handling just unnecessarily complicated. It is an APEX application has a few hundred pages. For example, our APEX app Builder (app 4000) has more than 1260 pages.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

Maybe you are looking for