Setting a ViewCriteria on all instances of a ViewObject

Hello,
ViewObjectMaster
          |
          -- ViewObjectDetailWe've got the setup above and we add filtering dynamically to the ViewObjectDetail.
We do this by accessing the ViewObjectDetail instance using the application module and calling our filterMethod on the ViewObjectDetail instance.
By doing this we filter the instance of ViewObjectDetail used by the application module.
But if we are accessing the ViewObjectDetail by it's accessor in ViewObjectMaster it won't return the filtered ViewObjectDetail if ViewObjectMaster isn't the instance used by the application module.
Hence my question: Is there a way to set this filter on all instances of ViewObjectDetail?
Thanks in advance
Regards
Johan

If the accessor returns a RowIterator (for a 1:m VL) then have you tried to cast that to RowSetIterator and then call getRowSet().getViewObject()?
This should return the framework-generated VO hosting all detail RowSets of that VL.
Setting a VC there should affect all detail RowSets that are returned by that accessor --- in theory.
Sascha

Similar Messages

  • Can I set an mx control property globaly for all instances of the control.

    Is there a way of setting the value of a variable on a control for all instances of the control in the application? 
    For example, I have several instances of an mx:Label and I want to change the enabled property for all instances at once rather than refer to each one individually by id.

    One way is to subclass Button and change its enabled getter to watch some static property.  You don’t really want to change Button itself because Buttons exist in lots of places like ScrollBars.

  • Triggering "exit" event of a drop-down list in all instances of a table row

    I have a drop-down list in a table row with multiple instances that performs a calculation on the exit event. This calculation draws information from 2 other dropdown lists contained above in non-repeating rows of the same table.
    The desired behavior is: should the user change their choices above, all instances of the drop-down list below would perform the "Exit" event script  accessing the new values above.
    My script is:
    RowOptionalCoverage.DdlCoverageType.execEvent("exit");     this works, sort of
    It only updates the first instance of RowOptionalCoverage and none of the subsequent instances. The user can "Tab" through the instances and trigger the Exit event for each instance, but this is not a reasonable solution.
    I have tried using the resolveNodes method without success. I understand, using the resolveNodes method may be necessary when referencing multiple instances of an object:
    this.resolveNodes("RowOptionalCoverage[*].DdlCoverageType[*]").execEvent("exit");     doesn't work
    xfa.resolveNodes("RowOptionalCoverage[*].DdlCoverageType[*]").execEvent("exit");      doesn't work
    No doubt, I must be using the resolveNodes incorrectly or missing something? Probably something simple.
    Any advice is greatly appreciated.
    Stephen

    PERFECT!!! Works right out of the box!
    This has opened my eyes to the essential nature of loops. My form is very large and complex and functions correctly, Yet the coding is lacking in sophistication--no loops, functions, fragments or other code efficiencies. I am teaching myself (with the help here) and I have skipped learning and using some techniques when I could things to work using the  limited skill set I have.
    Sometimes, I just don't "get it". After I fail a few times, I skip it and try something else. Functions are a great example. I could utilize a bunch of these if I could only write one that works. It is frustrating. If I got one to work, I know could write a ton of them. But, there is some essential part of functions I am missing that's preventing me from having my first success with them. (I think it has to do with not understanding arguments completely).
    Anyway, I am overjoyed with the solution you provided and I understand it well enough to be able to use again in other situations.
    Thanks again!
    Stephen

  • In logman, should All Instances include _Total?

    Hello
    If this question has already been asked and answered elsewhere, my apologies.
    I want to collect IIS worker process perfmon data using logman.  When I add counters in PerfMon, choosing All Instances gives all instances (each w3wp process for each application pool, plus _Total).  When I try to get the same in "logman 
    create counter" using
    -c "\w3svc_w3wp(*)\*"
    All I get is _Total, none of the individual instances.
    Through getting the wrong end of the stick about parent/instance#index (from
    http://technet.microsoft.com/en-us/library/bb490956.aspx), I happened into trying
    -c "\w3svc_w3wp(**)\*"
    which gave the individual instances but not _Total.  I've tried a combination of using (**) and (_Total), but that gave the individual instances only.
    I'm sure I'm doing something simple wrong and would appreciate someone telling me what it is.
    Thank you
    dg
    dg

    Hello again
    I've continued trying to collect program counters for all instances, not only _Total, and not only every individual instance bar _Total.
    I thought that it was just Logman that didn't agree with my expectations, but I'm having the same problem with Data Collector Sets made in PerfMon.  When running live in PerfMon, I'm collecting for all the instances, which translates as "*" when adding
    the counters, but specifically names the instances when I look in
    System Monitor Log for that Data Collector Set
    Logman query for that Data Collector Set.
    (Presumably this means that the application pool worker processes would not be picked up if the application pool recycles, thus changing the ID number at the start of the instance name.  But that does not apply to processor instances.)
    But when I look at the binary log file in PerfMon, I'm only seeing counters for instance "_Total".
    So, it seems that the recorded counters are the same whether I use logman and specify instance "*", or whether I use PerfMon and create a new Data Collector Set from the current live counters.  I only get results for _Total, not for individual instances.
    I would appreciate guidance to documentation that explains that this is the expected behaviour, or an explanation of how to collect the counters for the individual instances other than in real time.
    Please help.  Thanks
    dg

  • How can I change the settings of all instances of a particular effect?

    I've applied the same color correction effect to a lot of clips in the timeline. Now I want to fine tune the color correction (same setting for all clips still). How can I change the setting of all instances of the color correction effect without going into each clip manually?
    Looking forward to your thoughts on this!! Go on and save my cold winter editing day ...

    I was first hoping for File> New > Adjustment layer, but it's always greyed out. I thought that would create an adjustment layer, maybe I'm misunderstanding something? Anyway, if I create a black video stump and then right click it and choose "Adjustment layer", it will turn into one, and everything works as it should with that. If the black video become adjustment layer is placed on a video track atop my video, and I add for example color correction to it, it will be applied to the videos below.

  • Can I set Finder to open all folders so I can see all files always

    Is there a way to set Finder to open all files when I click on say "Documents" or "Music" or whichever? As it is set I have to click on every plus sign within a folder or folders themselves to see what is inside, and, for example, in Music, it means hundreds of folders where the individual songs reside.
    Thank you.
    Roxy

    Actually, there is a way to do this on a folder by folder basis: for instance, if you have your home folder open and in list view, if you hold down the option key and click on the arrow in front of the Documents folder, it will open, and every single sub-folder and sub-sub-folder will also open. This produces a pretty unwieldy window, and I can never remember the key combo to get them to all close up again (I'm sure there is one.....), but it does work.
    Francine
    PS--It seems simply clicking the arrow to close the Docs folder does sort it out so a normal click produces a non-opened state of the sub-folders.
    Francine
    Schwieder
    Message was edited by: Francine Schwieder

  • Globally Changing all Instances of a CSS Style to Another

    I'm working with RH6 (HTML). I'm curious if there is a
    method/tool that will allow me to take all instances of a certain
    CSS style and replace it with another (e.g., in the same manner
    that you can using FrameMaker and Paragraph/Character Styles). I'd
    like to be able to do it project-wide, but if it has to be done on
    a topic-by-topic basis, that would be OK... I'm just trying to
    avoid the need to locate each instance of the style and manually
    change it.
    Any help would be greatly appreciated!

    Hey guys... thanks for the feedback. For starters, I
    have created an external CSS (using RH)... So, I'm good
    there. Anyway, my scenario is similar to what Peter pointed out: I
    used a bad naming convention for a style, and applied it to a bunch
    of content pages, and later came up with a better naming convention
    (and a better set up for the style -- I know, I know... poor
    planning on my part). I began applying the new style in future
    documents, and I'd like to apply the style to all applicable
    instances in the existing pages. So, I was wondering if a
    tool/utility existed that would allow me to do so (since one does
    exist in FrameMaker).
    I could just let it go, but we intend to hire a new writer in
    the near future, and I don't want that person to have to deal with
    my inconsistency (not to mention, it would make things a little
    easier when outputting to Word, in that I'll have fewer styles to
    manage).
    The concept of performing a search/replace for all instances
    of the offending style name in the HTML files is a good one, and I
    could try that (why are the simple solutions always the hardest
    ones to realize?) Anyway, I'm assuming that all I would need to do
    is perform a search for "<span class=Old_Style_Name>", and
    change them all to "<span class=New_Style_Name>", correct?
    And you recommend, "FAR" to do that?
    Again thanks for the recommendations!

  • Setting Application Item On New Instance problem

    Trying to set several application items using application computations set to fire On New Instance (ie. new login). None of them are firing on a new login.
    I did successfully fire them when I made page rendering computations after the header, but when I move them to Application level Computations set to ONI nothing fires. Any ideas?
    Thanks

    You could have the main menu page include a before-header process to do the following:  IF :COMPUTATIONS_COMPLETE is null then
          <do all your computations>
          :COMPUTATIONS_COMPLETE := 'Y';    
      END IF;[pre]
    ..where COMPUTATIONS_COMPLETE is an application item.
    Scott                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Get All instance names in the stage

    hi,
    is there any way to get all instance name of the objects presents on the stage ? trace them for example
    thank you

    thank you, it's the correct answer but i still can't solve my problem ,
    the thing is that am using a code from http://www.freeactionscript.com that make enemie follow the player, but i need to do some modification, i need to detect collision between enemies so they will not get the one into the other and the thing that i cannot found their instance name, even when i used your function i only get "player_mc : _level0.player_mc" at the output,
    here is the code, i will be really greatful if you can find a way to help me solve this problem .
    ps :
    am trying to write my own code that make enemie follow the player, coz this one looks very complicated
    thank you
    the code :
    * Game Enemy AI Behavior - Run Away & Follow Player
    * Version:           1.0
    * Author:           Philip Radvan
    * URL:                     http://www.freeactionscript.com
    var enemiesArray:Array = new Array();
    var radians:Number = 180/Math.PI;
    createEnemies(5, "typeA", "e1");
    createEnemies(5, "typeB", "e2");
    createEnemies(5, "typeC", "e3");
    // createEnemies(number of enemies, behavior)
    // use ex: createEnemies(10, "slow", "myLinkedMovieClip);
    function createEnemies(enemyAmount:Number, enemyBehavior:String, enemyLibraryClip:String):Void
              //run a for loop based on the amount of enemies
              for(var i = 0; i < enemyAmount; i++)
                        //set temporary variable that will hold the new enemy attributes
                        var tempEnemy:MovieClip = _root.attachMovie(enemyLibraryClip, "enemy"+_root.getNextHighestDepth(),_root.getNextHighestDepth())
                        //give new enemy a random x/y position based on stage width/height
                        tempEnemy._x = random(Stage.width);
                        tempEnemy._y = random(Stage.height);
                        tempEnemy._rotation = random(360);
                        //set enemy behavior
                        if(enemyBehavior == "typeA")
                                  //define enemy characteristics
                                  tempEnemy.speed = 1
                                  tempEnemy.turnRate = .05
                                  tempEnemy.agroRange = 200;
                                  tempEnemy.mode = "follow"
                        else if(enemyBehavior == "typeB")
                                  //define enemy characteristics
                                  tempEnemy.speed = 4
                                  tempEnemy.turnRate = .5
                                  tempEnemy.agroRange = 200;
                                  tempEnemy.mode = "follow"
                        else if(enemyBehavior == "typeC")
                                  //define enemy characteristics
                                  tempEnemy.speed = 1
                                  tempEnemy.turnRate = .2
                                  tempEnemy.agroRange = 100;
                                  tempEnemy.mode = "run"
                        //define variables that are used to calculate following
                        //*don't change these*
                        tempEnemy.distanceX = 0;
                        tempEnemy.distanceY = 0;
                        tempEnemy.distanceTotal = 0;
                        tempEnemy.moveDistanceX = 0;
                        tempEnemy.moveDistanceY = 0;
                        tempEnemy.moveX = 0;
                        tempEnemy.moveY = 0;
                        tempEnemy.totalmove = 0;
                        //add new enemy to array
                        enemiesArray.push(tempEnemy)
    //Update enemies function
    function updateEnemies():Void {
              //run a for loop based on the amount of enemies
              for(var i = 0; i < enemiesArray.length; i++)
                        //set temporary variable that will hold the new enemy attributes
                        var tempEnemy:MovieClip = enemiesArray[i];
                        //run follow function with temporary enemy as the follower
                        updatePosition(tempEnemy, player_mc);
    // updatePosition(follower, target)
    // use ex: updatePosition(myEnemyMovieClip, playerMovieClip)
    function updatePosition(follower:MovieClip, target:MovieClip) {
              //calculate distance between follower and target
              follower.distanceX = target._x-follower._x;
              follower.distanceY = target._y-follower._y;
              //get total distance as one number
              follower.distanceTotal = Math.sqrt(follower.distanceX * follower.distanceX + follower.distanceY * follower.distanceY);
              //check if target is within agro range
              if(follower.distanceTotal <= follower.agroRange){
                        //calculate how much to move
                        follower.moveDistanceX = follower.turnRate * follower.distanceX / follower.distanceTotal;
                        follower.moveDistanceY = follower.turnRate * follower.distanceY / follower.distanceTotal;
                        //increase current speed
                        follower.moveX += follower.moveDistanceX;
                        follower.moveY += follower.moveDistanceY;
                        //get total move distance
                        follower.totalmove = Math.sqrt(follower.moveX * follower.moveX + follower.moveY * follower.moveY);
                        //apply easing
                        follower.moveX = follower.speed * follower.moveX / follower.totalmove;
                        follower.moveY = follower.speed * follower.moveY / follower.totalmove;
                        //move & rotate follower
                        if(follower.mode == "follow")
                                  follower._x += follower.moveX;
                                  follower._y += follower.moveY;
                                  follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
                        else if(follower.mode == "run")
                                  follower._x -= follower.moveX;
                                  follower._y -= follower.moveY;
                                  follower._rotation = (Math.atan2(follower.moveY, follower.moveX) * radians)+180;
    //onEnterFrame that executes the updatePosition updateEnemies every frame
    _root.onEnterFrame = function(){
              updateEnemies();
    //start/stop drag for player_mc
    player_mc.onPress = function(){
              startDrag(this);
    player_mc.onRelease = function(){
              stopDrag();

  • Call all instances of a symbol

    Hej,
    i need to place 10 different kinds of symbols, a hundred times each on my stage. Theses symbols have the same shape, but different colors. I need to filter them out in a tiny top-menu.
    So, if i click e.g. on a red circle, i want all non red symbols to set there opacity to 0.5.
    It could be simple if i place all red symbols into a container "$color-symbols" and set the opacity to them. But that is not possible, because I need to place each symbol manually. And if they are childs of another symbol, drag and drop is horrible.
    Now i am wondering if it is possible to call all symbols on stage that are instances of a symbol in my library.
    And is there a nice way to call "all-other-colors" instead of
    sym.$("color-1").animate({opacity:0.5},500);
    sym.$("color-9").animate({opacity:0.5},500);
    sym.$("my-own-color").animate({opacity:1},500);
    on every button on stage?

    Thanks for your help,
    i use the classes to specify a target url for each symbol.
    For Example:
    I have three red symbols and three blue symbols.
    The classes for the red-ones are:
    33451, 56789 and 45678
    for the blue ones:
    983, 4, 1002
    Inside of my symbols i have a script:
    var names = (e.target.id).split("_");
    var page = names[2];
    var link = "http://www.url.no/subpage/"+page;
    window.open(link, "_self");
    If i find another way to put a specific ID (and it must be a number) on to each Instance, i could use the way you describe.
    Because your idea is to use the class-names, there is no way to call all instances of a given symbol?
    Is it possible to use wildcards for my array?
    So i could name them "red-33451#1", "red-56789#2", "red-45678#3". And cut out everything between "-" and "#".
    But remember that i need to place a few hundreds of them, which isn't fun. And if i need to insert one later or if i delete another one, i need to verify all my functions.

  • [svn] 1445: compiler: Changing all instances of "ff" to "ild" in SignatureEvaluator.

    Revision: 1445
    Author: [email protected]
    Date: 2008-04-28 15:54:31 -0700 (Mon, 28 Apr 2008)
    Log Message:
    compiler: Changing all instances of "ff" to "ild" in SignatureEvaluator.
    * Okay, okay, StringBuffer to StringBuilder.
    Reviewer: Bruce
    Bugs: n/a
    QA: No
    Doc: No
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SignatureEvaluator.java

    Good reason to use a real editor.
    You're right, that does sound odd.  Was the file created in Geany, or just opened that way?
    ... wait, here's what's going on.  Geany opened a file with Unix line endings.  It displayed correctly because Geany isn't stupid like Notepad, but Geany didn't convert the line endings when you closed the file because you didn't tell it to.  But Vim modelines take effect as if you had typed them in after opening the file.  So Vim detected that the file had Unix line endings, and opened it with fileformat=unix.  Then the modeline set fileformat=dos.  When you hit :w, Vim saved it with DOS line endings.
    The moral of the story?  Don't use modelines, and if you do, don't use them to set the file format.  (Vim detects that automatically.)

  • Co-Loc versus Dedicated In-Role Cache - both available to all instances?

    Trying to confirm that this is true. The only real difference between the co-located and dedicated in-role cache is that the co-located shares the memory with the role whereas the dedicated uses all the memory of the role. I'm assuming that even in a co-located
    cache the cache is synced and not per instance? Meaning if I set up a co-located cache on my web role and that role has multiple instances, the cache will be the same for all instances (objects added to cache from one instance would be available in all instances). 
    Dan

    Hi,
    We can see this from Role Cache FAQ (Windows Azure Cache).
    Here is a snippet.
    What is the difference between co-located and dedicated Caching topologies?
    There are two main ways a role can host In-Role Cache: co-located and dedicated. In the co-located topology, the role that hosts In-Role Cache also hosts other web role or worker role functionality. The memory and resources of the role are shared between
    caching and non-caching application code and services. In the dedicated topology, which is supported for worker roles, the worker role only hosts caching. These Cache topologies differ primarily in the percentage of memory that is dedicated to Cache. For more
    information, see the topics on co-located Caching roles and
    dedicated Caching roles.
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is it possible to automatically unwrap all instancies of a element in Frame 7.2 ?

    Hi all, Is it possible to automatically unwrap all instancies of a element called "Table Cell" in Frame 7.2 ? I can unwrap manually but there are over 400 instanticies!! No longer needed due to a template update. Thanks in advancce

    If you have an XML application set up that supports both import and export, you could
    include a very simple XSLT transform in one direction that does the unwrapping.
        --Lynne

  • Microsoft`s definition of 「All Instance」 for calculating average percentage of CPU usage is a mystery for me !!!.

    Hi, I was looking up in the 「How to Auto Scale」 document
      http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-scale/
    and got stuck in the below paragraph, the part that describes how to calculate the
     average percentage of CPU usage. 
    ==========
    All instances are included when calculating the average percentage of CPU usage and the average is
    based on use over the previous hour. Depending on the number of instances that your application is using, it can take longer than the specified wait time for the scale action to occur if the wait time is set very low. The minimum time between scaling actions
    is five minutes. Scaling actions cannot occur if any of the instances are in a transitioning state.
    ==========
    Does any one know the microsoft`s definition of 「All Instance」 ?
    Whether the virtual machines that are shut down but has been set into auto scaling group count as one of them?
    The question is that the response time, the data shows up in the management portal delays a lot comparing to the
    real time. I was wondering if the definition of the calculation described above is truly what the user`s want or not.
    I`m all ears to any information. Thanks in advance !! 

    Hello Tomo Shimazu,
    Instance is a presence of a service eg :- VM is an instance. Copy of VM is another instance which is 2 instances of VM.
    Although Microsoft’s pricing model is readily available and even offers a simple calculator (http://www.windowsazure.com/en-us/pricing/calculator/advanced/) to assist
    in the process, it may be difficult to know how much of each resource you will need to get an estimate.
    To understand on calculating the compute instances and the VM size, let’s first take a look at the VM role sizes offered by Microsoft.
    The prices per month for each, at the time of writing, are $30, $90, $180, $360, $720 from ExtraSmall to ExtraLarge respectively. So with the exception of the
    transition from ExtraSmall to Small, going to the next size VM is exactly twice the cost, which, is mirrored in the increase of resources you get at each level. With each step, CPU Cores, Memory, Disk Space, and Bandwidth are all doubled from the previous.
    If this is the case, then, is there any advantage to any one of these over the others? The answer is yes. In the majority of cases, the best bet will be to go with the small instance, with the reason being that because all of these resources scale equally
    to cost it is possible to achieve the exact equivalent to a larger VM simply by increasing the number of instances. For example 8 small instances is equivalent to one ExtraLarge instance, with the advantage of the fact that when not needed these small instances
    can be turned off and will cost nothing.
    By hosting the application in this manner, it increases the effectiveness of the number one reason that a business would transition to the cloud anyway – Scalability.
    Obviously 16 smaller instances can be more finely adjusted to the application’s usage than 2 ExtraLarge can. If traffic gets higher or lower than expected, two Small Instances can be added at $180/mo for the time that they are running, versus adding another
    ExtraLarge for $720/mo.
    The only exception to using the smallest instance, is in the case of the ExtraSmall, which offers only 1/20 of the bandwidth of the Small, making it only feasible
    for very lightly accessed applications or, more likely, a QA environment.
    From this point, it becomes much easier to estimate the compute instance requirements of migrating the application to Windows Azure. Take the current server(s)
    total resources (CPU, RAM, etc) and find how many Small instances it would take to recreate it. This gives a good starting point, however, remember that these instances can be turned on and off to meet demand, and beyond the first instance, there is no charge
    when the instances are off. This can lead to significant cost savings, and is the primary incentive to migrating to the cloud.
    For azure pricing information, refer
    pricing details.
    If you still unclear about pricing and billing, you may raise a service request with billing team
    here
    Hope this helps.
    Regards,
    Shirisha Paderu

  • Error on updating Photoshop CC 2014 -- Quit all instances of Adobe Application Manager

    Hi,
    I've been trying to update my Photoshop and Illustrator CC 2014, but the updates fail with a message that tells me to quit all instances of the Adobe Application Manger.  The only problem is when I go into my activity monitor, I don't see that process running at all.
    I'm running on a MacBook Pro, OSX 10.9.5, and Adobe CC 1.8.0.447
    Thanks for any help you can provide!

    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

Maybe you are looking for

  • 790FX-GD70 winki Bad bios checksum (please help!!) unresolved

    I have the 790FX-GD70 winki edition motherboard only for a few weeks, then i went on holiday for a week and when i came back and started up the computer it came up with the error: Bad BIOS checksum. Startin BIOS Recovery ... Checking for USB Devise .

  • Mac OS Configuration Management

    HI everyone, quick question this week Can anyone suggest a good configuraiton management utility for Mac OS? What I want to achieve is, anytime a change is made to my configuration or software installed/removed that it is logged, and a master list ma

  • Xerces2 Schema Validation

    I have read several people with the same problem, and someone provided a code sample that is supposed to work for validating XML Schema using Xerces. I tried this sample, and still get an error with the following code: SAXParser sp = new SAXParser();

  • Aperture 3.0.1 - Adjustments missing in Adjustment Tab

    Under my Adjustment tab I have a histogram, Presets, Adjustments (brushes) and thats it. No white balance, no exposure ..... everything is missing. Anyone have a clue what could be going on? Tried rebooting but no change. Everything was fine until I

  • Illegal seek?!?!?!

    I tried downloading the trial of Photoshop Elements 11.  After waiting forever it said it couldn't install it because it was an "illegal seek".  I had to click okay and now it has been saying "extracting....this may take a while".  This has been goin