Detecting changes to managed collection

If I have autoSync enabled on a DataService, how do I detect
synchronisation events on a filled collection? I am using an
Assembler. On my initial fill:
this._ds.fill(listCollection, rest);
I get a CollectionChanged event as expected on
listCollection. When the fill is subsequently executed on the
server, I can see my fill method being called on the server, but
the CollectionChanged event is not being fired in response on the
client.
I am doing things this way because I want an external RPC
call to update a data object on the server, resulting in changes on
the managed server data objects. The RPC call creates a
transaction,
tx = DataServiceTransaction.begin(false);
tx.refreshFill("cdApps", null);
tx.commit();
This correctly results in the Assembler fill method being
called -
public Collection fill(List fillParameters)
But, alas, no indication at all on the client that a change
has happened in the remote collection (I am tracking all the
DataService events, but none are being fired).

I guess the question here is simply - can objects in a manged
DataService collection be updated by a non-Flex client, in such a
way that changes can be pushed to clients through DataService? T
his post in this forum
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=583&threadid =1201197&highlight_key=y&keyword1=push
seems to suggest it is, but I have spent many hours and
although I can get the server fill() method to fire, and although
the client collection is showing up as managed, the two things
never connect...

Similar Messages

  • Query vs Toplink managed collection and cascade persist

    A fairly simple situation: I have a 1-N relation which is managed by Toplink: 1 relation can have N calendars (I know, badly chosen class name, but alas).
    If I access the collection through the Toplink managed collection, make a change to one of the calendars and then merge the relation, the change in the calendar instance automatically is detected and also persisted.
    However, if I use a query (because I do not need all calendars) to find the same instance and make the same change, then it is not persisted. Appearantly the "cascade persist" is not done here.
    There are a few ways around this:
    1. fetch the original collection and by compare-and-remove emulate the query
    2. do a setRelation(null) and then setRelation(xxx) of the relation
    3. do a merge inside the transaction (a merge outside does not work)
    The funny thing is, workaround #2 really sets the same relation again!
    Is there a way to have the result of a query also cascade persist?

    Well, I do not want to do it in a transaction, because then the changes are written to the database immediately and that will result in all kind of locking problems (this is a fat client situation). What want is fairly simple: the user modifies entities in an object graph in memory and at the end of his work either presses "cancel" and clears all changes, or presses "save" and stores all changes. When he presses "save" I expect the EM to persist every changed entity.
    This approach works ok for all scenario's I have implemented up until now. The current one is different in that I get related entities not by traveling the object graph (so via Cascade.PERSIST collections), but via a query. There is one major difference between these two: the entities from the collections are automatically persisted, the ones from a query are not.. BUT they are -for all means and purposes- identical. Specifically: the collection gives me ALL calendars associated with the relation, the query only those from a timespan but still associated with the relation.
    For some reason I expected the entities to also auto-persist, BECAUSE they also are present in the collection.
    Ok then, so I understand that entities fetched through a query are unrelated to any other entity, even though they also exist in a Cascade.PERSIST collection. (I still have to test what happens if I, after the query, also access the collection: will the same object be present?)
    That being as it as, I need to merge each queries entity separate and thus I expect the EM to remember any entities merged outside a transaction, but it does not. That I do not understand.
    Now, I already have a patched / extended EM because of a strange behavior in the remove vs clear dynamics, so this was a minor add-on and works perfectly (so far ;-). But if you have a better idea how to remember changes to entities, which are to be merged upon transaction start... Please!

  • Document for Change request Management in Solution Manager

    Hi,
    We are setting up Solution Manager. I know service desk configuration. But I need a document on how to configure change request management in Solution Manager.
    Also I need a steps or a document for monitoring of EP 6.0 from Solution Manager.
    Thanks a ton for help in advance.

    Hi,
    Check out these links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/b4406827-0a01-0010-3da2-f56b36d88510
    BI and Portals 2006 [original link is broken]
    very good collection of eclasses. for making use of solution manager.
    Feel free to revert back.
    --ragu

  • Problem while reordering a managed collection

    Hello,
    I'm trying to implement a feature that allows users to freely
    re-arrange items into a
    managed collection, using Drag and Drop. I'm using a
    TileList object, which already has built-in support for Drag and
    Drop, provided by Flex.
    A FDS destination (implemented by a Java class) is used to
    fill the collection with data (the fill method gets called).
    The problem is when the user tries to re-arrange the items in
    the list, using DnD. The Flex client sends to FDS a "delete"
    operation message, followed by a "create" one. I don't really want
    to do a "delete" and a "create" on the server side / (FDS's managed
    collection and the uunderlying database), as there's no really a
    delete and a create, it's rather a "move" sort of thing that should
    happen.
    What I want FDS to do is to ignore the list of changes
    ("delete" and "create") on it's sync method, somehow manage to
    re-arrange it's managed collection, and send an OK back to the
    client, without doing any auto-refresh. that is, I don't need any
    database trip to happen here for now.
    I'm having trouble making these to happen. I tried various
    approaches so far, with no success. Any ideas?
    Thanks,
    Robert

    don,
    Did you realise that your IntegerSet class isn't very useful?
    Why? you ask... Well the only change to the behaviour of java.util.HashSet is that your [add method|http://java.sun.com/javase/6/docs/api/java/util/HashSet.html#add(E)] throws IntegerAleadyExistsException, instead of just returning false.
    Rule of thumb: If you can return a meaninful value (instead of throwing an exception) then that's the way to go... because it simplifies the calling code.
    the return value solution ...
      if ( !set.add(item) ) {
        System.err.println("Item "+item+" allready exists. Guess again.");
    ... verses the exception solution ...
      try {
        set.add(item);
      } catch (ItemAleadyExistsException e) {
        System.err.println("Item "+item+" allready exists. Guess again.");
      }Which do you think is "cleaner" easier to maintain?
    Also: HashSet is generic (meaning that it can be used to hold a set of any-type) whereas your class is limited to holding Integers... so it's much less broadly "useful".
    You're writing this class for the learning experience, not for the usefulness of it, right? Cool... but it might be good for you (in the long run) to know that such a "limited" class is... ummm... a waste of code; and you should think about when to throw an exception, and when not to. Exception handling is an important and much-over-looked aspect of good system design.
    Cheers. Keith.

  • Detecting changes in the replication site list

    Is there a way, when using the replication manager, to detect changes in the replication site list without having to continuously call repmgr_site_list()?
    Even if you still need to call repmgr_site_list() to determine just what changed, it would still be useful to only call it when the result would be different than the previous call.

    Currently, no. However, we are working on an enhancement for a future
    release that would include such a feature.
    Drop me an email, if you like. My address conforms to the Oracle
    convention: [email protected]
    Alan Bram
    Oracle

  • What are detected changes in tfs vs 'changes'

    Hello,
    I've done a lot of changes in our tfs collection like creating different branches and renaming/moving stuff, and change our primary workspace from server to local (vs2013).
    After checking in EVERYTHING from inside VS, when I'm issuing the command 'tf status', it returns a lot of changes, and the final line tels me "0 change(s), 3858 detected change(s)"   (every change is an 'add' type) . I've never seen
    that. what does it mean, that difference betwee 'changes' and 'detected changes' ? When I check from pending changes from VS it shows ZERO changes.
    Also, I've seen that 'tf status' has a toogle '[/nodetect]' that our beloved docs at msdn do not explain, they only mention it (https://msdn.microsoft.com/en-us/library/9s5ae285.aspx)... What's the point for that option ?
    Thanks in advance,
    Roger Tranchez

    Hi Roger,
    take a look at this blog post (http://blogs.msdn.com/b/phkelley/archive/2013/05/29/server-workspaces-vs-local-workspaces.aspx)
    While edits in a local workspace can be pended implicitly just by editing the file, adds and deletes still must be explicitly pended. However, TFS version control’s workspace scanner also detects new files which are ‘candidates’ for addition, and missing
    files and folders which are candidates for deletion. The Team Explorer’s Pending Changes Page has a link which shows the number of detected adds and deletes, and provides a link to the Promote Candidate Changes dialog which can be used to pend ‘real’ adds
    or deletes on these items. This is called “promoting” the candidate adds and/or deletes – because they become real pending changes.
    Detect Changes comes from local Workspace.
    Regards,
    Daniel

  • Creating a New Task in SOLMAN Change request Management

    Dear all,
    We are using SOLMAN 4.0 and scm functionality.In the change request screen we have a create follow up task(+ icon on top left).What is the use of this task,can we asign a task to some particular person?for example can i assign task to tester?If the task has not completed the task,while closing the correction will it give error?
    Please give your suggestions.
    Thanks in advance,
    Avinash.

    Hi,
    Pls click the check button(next to activate button)
    see the SLG1 log generated remove the errors shown in red.
    One it is done u press the refresh button & thn u cn create the task list
    chk
    https://websmp202.sap-ag.de/~sapdownload/011000358700000657692007E/ECTS_CHARM_SP12.PDF
    /people/dolores.correa/blog/2008/07/26/first-steps-to-work-with-change-request-management-scenario
    http://help.sap.com/saphelp_sm32/helpdata/en/0c/5b2160f6fa4b83a3674a210b1cdeb0/content.htm
    Regards
    Prakhar

  • Help me configure Change request management !!!

    Dear friends,
    I am Going to Configure Change request Management, so just to ensure that the configuration is not erronous, i would need Expert advise..
    Just want to know Clear few things before i proceed..
    I am also refering SPRO and related notes
    Scenario :
    I have two SYSTEMS SAP ECC 6.0 with System id R03 and Soluiton manager with SYSTEM id SOL,
    R03 has 3 clients, 300 600 700..
    In R03 300 is the development client, 600 is quality client, 700 is the production client.
    SOL has 2 clients, 100, 200
    With 200 as the production client.
    Q.1) <b>Do i have to configure CHARM in both the client (100 and 200 of SOLMAN).</b>
    Q.2) Initially I had tried to set CHARM in client 100 of solman, but later on realized that it has to be set up in client 200.
    When i logon to client 200 and  Execute IMG activity Spro-> sap soltion manger->basic settings-> sap solution manager system->activate integration with change request management.
    Then by default it take the previous client ( client 100) as the change request management client.
    ( as we know there are three steps in the above activity ), the other activity are executed properly, only prblem being that the default client is always set to 100, which should not be the case).
    I do get the prompt saying ( "The change request clent is set to clent 100, do u want to change to client 200, on clicking yes, still it is always set the same client 100 as charm client ")
    <b>Plz let me know what do i do to set the change request client to 200??</b>
    Q.3) Regarding TMS, we have local domain controller in solman and local domain in R3.
    We are planing to establish domain links between the two systems( ie both the domain controllers) ??
    Is this the right strategy ??
    <b>Any other method that u can recommend  ??</b>
    Q.4)One of the IMG activity says, Generate Destinations to client 000 of all the domain controllers..
    Whenever i do this these, destinations are created with errors, i am not able to create trusted RFC destinations without errors.
    When i logon to satellite domain controler and excecute sm59 there are 2 destinations created Trusted and BACK.
    These destinations works well,
    but when i logon to Solman, got to sm59 , when i test the TMW and TRUSTED rfc destinations  i test these destinations using Remote Logon i get error,
    " no authorization to logon as trusted system"
    I went thru one note which recomended Kernel upgrades to solve the problem,
    I r3 my kernel relaese is 700 with patch level 56, the note recomends to apply patch 80, did u have these problems??
    <b>what is your kernel patch levels in sateliite and solman systems.</b>
    Q.5) TO be able to raise tickets from R3 to solman we create RFC destinations.
    We also create RFC destinations to client 000 of all the sateliite system,
    <b>dont u think these RFC destinations might interfere with each other??</b>
    Q.6) Is there anyone who has successfully configured CHARM. Can you plz share the  configuration documents with me..
    Please note :
    <b>All the contributors would be handesomely rewarded with points .</b>

    Hi,
    Check this
    Note 128447 - Trusted/Trusting Systems
    For your Q4.
    Q3.)
    Establishing Domain link - That's the right way. Go ahead.
    These are the steps.
    <b>1.Define Transport Routes for System Landscape</b>
    assign exactly one development system to a production system, and that these two systems are connected by exactly one unique transport track. If a development system and a production system are connected by more than one transport track, this may lead to inconsistencies within the transport distribution. This type of transport configuration cannot be supported by Change Request Management, and may cause inconsistencies within the tools involved.
    <b>2. Activate Extended Transport Control</b>
    The CTC parameter should be '1'
    <b>3.Configure Transport Strategy</b>
    Deactivate the QA Approval.
    <b>4. Activate Trusted Services.</b>
    5.Activate Domain Links.
    You have to activate domain link between systems.
    6. Generate RFC Destinations to Client 000
    Hope this helps.
    feel free to revert back.
    --Ragu

  • SOLMAN- Change Request Management

    we have a request from one of our customers a big insurance company, to use the "change request management" out of the SOLMAN for non-SAP solutions.
    is it possible ? what are the advantages and disadvantages?
    thanks
    Amnon

    Hello Amnon,
    SAP Solution Manager as the name suggests is for managing the whole gamut of SAP and Non-SAP solutions in the IT Landscape of an organisation. It provides you the tool, content and gateway to create, operate, manage and monitor your solutions over time.
    Please use the following links which may help you in a better way....
    Manually registering a non-SAP system in SMSY
    http://www.sappro.com/downloads/NonSAPsystems.pdf
    SAP Solution Manager Ready
    SAP Solution Manager Ready
    A General overall discussion on Solution Manager http://www.sap.com/platform/netweaver/components/solutionmanager/index.epx
    Hope it helps.
    Cheers,
    Satish

  • Solman Change Request Management Issue - about create task list

    Dears,
        We are now using Solman ChangeRM. I have created a maintainance project and maintained its logical component and IMG project. when I want to create a task list for this project, a message"The project is not released. Hence cycle can not be created" poped. The message no. is /TMWFLOW/CONFIG_UI017. Where can I release the project?
    Thanks
    Roger

    Hi,
    Pls click the check button(next to activate button)
    see the SLG1 log generated remove the errors shown in red.
    One it is done u press the refresh button & thn u cn create the task list
    chk
    https://websmp202.sap-ag.de/~sapdownload/011000358700000657692007E/ECTS_CHARM_SP12.PDF
    /people/dolores.correa/blog/2008/07/26/first-steps-to-work-with-change-request-management-scenario
    http://help.sap.com/saphelp_sm32/helpdata/en/0c/5b2160f6fa4b83a3674a210b1cdeb0/content.htm
    Regards
    Prakhar

  • Change Request Management  "There is no task list for this project"

    Hello!
    I would like to use the functionality of CharM in SOLMAN 4.0.
    When I enter the Tcode /n/tmwflow/proj I receive the waring/error "There is no task list for this project" (/TMWFLOW/TRACK_N114)
    If I create my own task list via Task list --> create
    I get the warning "You cannot change task lists in the SAP namespace"
    What are the steps to define task list for my project?
    Do I need to configure SPRO ... --> Extended Configuration --> Schedule Manager?
    The second warning I get: "NO CTS projects created yet" or
    "The Solution Manager project does not have an active CTS project yet".
    How can these warnings/errors be corrected?
    Thank you very much!
    regards

    Hi,
    Pls click the check button(next to activate button)
    see the SLG1 log generated remove the errors shown in red.
    One it is done u press the refresh button & thn u cn create the task list
    chk
    https://websmp202.sap-ag.de/~sapdownload/011000358700000657692007E/ECTS_CHARM_SP12.PDF
    /people/dolores.correa/blog/2008/07/26/first-steps-to-work-with-change-request-management-scenario
    http://help.sap.com/saphelp_sm32/helpdata/en/0c/5b2160f6fa4b83a3674a210b1cdeb0/content.htm
    Regards
    Prakhar

  • Change of systemlandscape in Change Request Management

    Hi,
    We have a Systemlandscape with 4 SAP Systems. Now we would like to reduce the landscape to 3 systems. We use the Change Request Management and we work with urgent corrections. Which are the problems by changing the landscape?Which is the best approach to get from 4 to 3 Systems without loosing any transports?
    Best regards, S.Blaser

    Stefan,
    Have you checked SAP note 987927? It can help.
    Regards,
    Raquel Cunha

  • Change Request Management in Implementation projects or not?

    Hello guys,
    We are starting a Change Request Management project at a customer.  We discuss  in the blueprint phase whether we should be using it only for maintenance activities, and not for implementation projects.  We have some people that can be working both in maintenance and also in projects at the same time.
    We want to understand whether that scenario is possible and also whether is advisable.  We want to have control over the process, and therefore we should be restricting the creation of Transport Orders through SE01 so that we know that transport requests are created only by change document action.
    What are the drawback, difficulties, considerations you may consider in making that decision?  Is it logic to work that way or is it better just to implement it for the whole installation, including implementation projects?
    Esteban Hartzstein
    Edited by: Esteban Hartzstein on Jan 20, 2010 3:37 PM
    Edited by: Esteban Hartzstein on Jan 20, 2010 3:39 PM

    We want to have control over the process, and therefore we should be restricting the creation of Transport Orders through SE01 so that we know that transport requests are created only by change document action.
    this you can do either via SE03 / Display/Change Request Attributes  / SAP_TMWFLOW     Request created using Change Manager          X          X / Defaul for all client = Mandatory
    or
    you can achieve this by just activating the CHaRM in SolMan ( solar_project_admin / system landscape / CHARM)
    Nesimi

  • Change request management in solution manger release 7.1 or 7.0

    Hi All,
    Can any body please explain me how to configure change request management in solman release7.1 and if it is possible please send document to my below maild Id.
    And please let me know what are the steps needs to be done satellite systems, we have EP7.0 landscape also there .do we have to do any additional configuration for that in solman side?
    I appreciate for your prompt response
    Thanks in advance
    My Id: haritechies gamil.com
    Regards,
    Hari Prasad . L

    Hi
    Adding more to it
    Use the following link,
    /people/dolores.correa/blog/2008/07/26/first-steps-to-work-with-change-request-management-scenario
    https://websmp202.sap-ag.de/~sapdownload/011000358700000657692007E/ECTS_CHARM_SP12.PDF
    Regular correction
    https://websmp202.sap-ag.de/~sapidb/011000358700000086572008E.sim
    Later login to solman enter tcode SPRO and goto scenario specific Change Request management node and start configuring by
    going through the IMG Help and as per requirement.
    Create a maintenance project and Activate Charms
    https://websmp202.sap-ag.de/~sapidb/011000358700005479242006E.sim
    Regards
    Uday

  • HT5628 After running bootcamp, DVD drive is detected by Windows 8. But after installing drivers, no longer can detect. Device Manager shows that DVD drive is unplugged! Drivers in Bootcamp "removed" the DVD drive!

    After running bootcamp, DVD drive is detected by Windows 8. But after installing drivers, no longer can detect. Device Manager shows that DVD drive is unplugged! Drivers in Bootcamp “removed” the DVD drive. I think there is an issue because I reinstalled Windows 8. If I don't install driver, then I have reduced functionality (no Apple keyboard, no sound etc), but once I install driver, I lose my DVD drive.

    Hi, guys, I have had the exact same problem since the summer of 2010. Here's what I was able to find out.
    Deleting upper/lower filters, running all those Fix Ya programs and other Microsoft crap is useless. This problem is most certainly has nothing to do with registry of any software on your computer. I took my HP 9620us to a couple of repair places and, they tried a lot of things and it appears that the root of this problem is a faulty motherboard connection. Of course, it costs about 400 bucks to fix it so I'm not sure I want to pay this kind of money.
    Anyway, if somebody was able to fix it PLEASE post here to let us know. Again I am 99 per cent sure it's some piece of hardware in the motherboard.

Maybe you are looking for

  • Two ipods on one account - how do i intro new one?

    i just bought a new 30GB and tried updating it using my existing itunes, which supports a 1 generation ipod. now my new ipod just shows a folder with an ! mark. how do i make my new one work? any help would be much appreciated.

  • Adding a Lightroom action to Export Actions folder

    Despite endless monitor calibration with Spyder, my prints from Mpix come out much darker than they appear on my Intel iMac monitor (running OSX 10.5.5). I have tried using Shades to darken my monitor, but I don't like my screen looking that dark all

  • Problem with Merge into stmt

    Dears, I m using 10g XE. I am using merge into stmt, to inesrt non matched records and to update matched records with respect to primary key. I have two uers in oracle. (TMP and REAL) I have n number of tables with same definition in both users. I wi

  • JTabbed+Jscroll+JTable...

    Hi all, I have a problem mixin all this components: I have a JTabbedPane with some tabs. Each tab has a JscrollPane in it, and each JScrollPane has a JTable. The JTable is not allowed to resize its width so all the other components should arrange its

  • CRM-IC freezes during warm transfer

    Hello again, I have a problem with our integrated IC/Contact Centre setup.  We have several of our Agents who are reporting an intermittent issue whereby the IC web interface is freezing when they are completing a warm transfer.  There doesn't seem t