Expand my Community achievements bar.

aBill
aBill
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • HiDid you get it working? I found there is an issue where thesubmitted client didn't get update message. I think the workaroundis the submitter refill after the result event. Would like to hearfrom you. Please free feel to email me if there is anything which Ican help. wichan@adobe.comWilliam Chan

    Type

    Discussions

    Views

    920

    Likes

    0

    Replies

    1
  • Hi,I think you can useorg.apache.commons.collections.CollectionUtils. When you run yourfill method, put all winners to a collection. At the end of thefill method compare lastWinnders collection byCollectionUtils.subtract(winners, lastWinner) if lastWinnerscollection is not null. You can get new winn...

    Type

    Discussions

    Views

    920

    Likes

    0

    Replies

    0
  • Hi,I made a mistake in previous message. It should use thecurrent transaction inside the create, since there is already adatatransaction. DataServiceTransaction dt =DataServiceTransaction.getCurrentDataServiceTransaction();You don't need to call commit in this case. I suggest to putthe updates in th...

    Type

    Discussions

    Views

    920

    Likes

    0

    Replies

    2
  • HiSuggest to have a previousWinner stored in your assembler,when there is an update, delete or create. Run your logic todetermine who is the winner.public void pushNewWinner(){ Member previousWinner = winner; winner = findWinner(); if (winner.id == previousWinner.id) return; DataServiceTransaction d...

    Type

    Discussions

    Views

    920

    Likes

    0

    Replies

    4
  • HiDid you check the DataServiceTransaction API. I think youshould push the new winner by using the update methodWilliam Chan

    Type

    Discussions

    Views

    920

    Likes

    0

    Replies

    1
  • HiFor the comboBox, you can bind it to a managedcollection(filled by dataservice)<mx:ComboBox id="cb" dataProvider="{allIndustries}"labelField="name" change="company.industry = cb.selectedItem asIndustry" selectedItem="{comboBoxSelect(allIndustries, 'name',company)}" prompt="Select an Industry"/>pri...

    Type

    Discussions

    Views

    429

    Likes

    0

    Replies

    1
  • Hi, You should have another industries destination and yourcompany should have a industry property. In your destination, youshould have its association defined<metadata> <identity property="id"/><!-- it is many companies map to same industry --> <many-to-one destination="allIndustries"property="indu...

    Type

    Discussions

    Views

    429

    Likes

    0

    Replies

    0
  • Hi,How your xml look like? Does your xml contain repeatingelement? example<mydata> <name>abc</name> <name>abc</name> <name>abc</name></mydata>lastResult.mydata.name is an array. If name just appears one,it won't be converted as array. I am not sure it is the problem ornot. William Chan

    Type

    Discussions

    Views

    1.1K

    Likes

    0

    Replies

    2
  • Hi,Did you modify your destination to use your https channel? Orit is still using non-secure channel? Can I see yourremoting-services.xml?William Chan

    Type

    Discussions

    Views

    1.6K

    Likes

    0

    Replies

    2
  • Hi,If your xml only has one child, you can just use Objectinstead of ArrayCollection. Inside a xml, only same name tags areconvert to array, otherwise, it is an object. If it is an object,you cannot bind it to DataGrid. You have to create an Array (orArrayCollection) to make it work. For example:<Da...

    Type

    Discussions

    Views

    589

    Likes

    0

    Replies

    0