Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 9244

CRM 2011 : Silverlight save platform call

$
0
0

Hi,

Recently I have been in issue in understanding while doing some troubleshooting with silverlight although I am not having deeper knowledge of silverlight terminology of crm Platform operations. I would like to share some details to get idea from you.

I have a silverlight component on opportunity form which displays all the opportunity products for that opportunity. While retrieving we are using following call to store all the opportunity products on viewmodel to display on page as follows.

TheMainViewModel.OpportunityProducts = new DataServiceCollection<OpportunityProduct>(results.EndExecute(result));

Upon showing, user then made field changes on some opportunity product with inline silverlight editing feature.

Upon finishing with all the modification, user presses, "save" which then sends all the opportunity product array in viewmodel ( which contains some unchanged and some modified opportunity products ). call is used as following.

_context.BeginSaveChanges(OnSaveOpportunityProductsComplete, TheMainViewModel.OpportunityProducts);

Which then calls to web service in respective datacontext class as follow.

public IAsyncResult BeginSaveChanges(AsyncCallback callback, object state);
 

At this point, I am not sure whether BeginSaveChanges will update all the opportunity products or only one which is modified.

If it updates all, is there any way to differentiate between the opportunity products which is modified with the one is unchanged ?

All the replies are well appreciated,

Thanks,

Hiren Solanki.


Thanks and regards,
Hiren Solanki.
Please vote or mark as a answer if it helped you.


Viewing all articles
Browse latest Browse all 9244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>