User Profile & Activity

Bill Gower Member
Page
of 3
Posted: December 1, 2010 2:18 PM

Jimmy, can I email you directly? I would like to discuss a book project that I am working on involving building LOB apps with Silverlight and using ClientUI and Devforce as the 2 main tools in the book.

 

Bill

 

Posted: December 1, 2010 3:29 AM

Nope that didn't make a difference. Since Silverligtht is ideal for LOB apps, this should be a very simple fix. A lot of business rules require that after an object is created it uses a next id of some sort like nextInvoiceNo, nextReceiptNo etc.

In your devforce-clientui sample, your code calls a create method in the repository which instantiates an object and then passes the object back to the calling routine to be passed to the editor class and displayed. since your code is not calling any asynchronous calls in the repository to create the obejct, it returns quickly and is instantiated before the editor is called.

 

in my code, I am doing the same except I am retrieving a next id from a table to populate the key field in the object. I just want to ensure that the object is instantiated before the code modes to invoke the editor. There must be way to prevent the editor from being called until the object is fully instantiated.

Posted: November 30, 2010 3:32 PM

Here is the error that I am getting. It occurs just as the dialogbox is finished being displayed. It likes fine, displays for a few secnods and then the OOB window just turns white and the app ppppppppppppppppppppppppppppppppppppppppppp

{System.InvalidOperationException: Collection was modified; enumeration operation may not execute

"   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)\r\n   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()\r\n   at System.Collections.Generic.List`1.Enumerator.MoveNext()\r\n   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()\r\n   at IdeaBlade.Core.EnumerableFns.ForEach[T](IEnumerable`1 items, Action`1 action)\r\n   at IdeaBlade.EntityModel.PendingEntityMap.Update(EntityWrapper pendingWrapper, EntityWrapper realWrapper)\r\n   at IdeaBlade.EntityModel.ScalarEntityReference`1.InformPendingEntityOfRealEntity(EntityWrapper realEntity)\r\n   at IdeaBlade.EntityModel.ScalarEntityReference`1.QueryCallback(EntityQueryOperation op)\r\n   at IdeaBlade.EntityModel.BaseOperation`2.OnCompleted()\r\n   at IdeaBlade.EntityModel.BaseOperation`2.IdeaBlade.EntityModel.IHasAsyncEventArgs.OnCompleted()\r\n   at IdeaBlade.EntityModel.AsyncProcessor`1.<>c__DisplayClass2.<.ctor>b__0(TArgs args)\r\n   at IdeaBlade.EntityModel.AsyncProcessor`1.Signal()\r\n   at IdeaBlade.EntityModel.AsyncProcessor`1.<Execute>b__5(Object x)"

Posted: November 30, 2010 12:11 PM

The open method is a method in the JobHistoryEditor class. I am using the sample app created between Intersoft and Ideablade as my guide. The open method of the editor class calls the dialogboxserverprovider and gets an instance of it and so forth.

Posted: November 30, 2010 12:27 AM

No it happens whether it is in browser or OOB. When I move the JobHistorEditor.Open call back to its original locattion as in the sample app, the View displays properly and does not crash. Unfortunately it displays before the object is created and will crash in the constructor because I start using the object there but it is still null. Is there a better way to pause the UI so that the new view does not display until the object being passed to it in this case jobHistory is instantiated properly?

 

Bill

 

All times are GMT -5. The time now is 7:09 AM.
Previous Next