Hello,
I go a lot of difficulties with Ideablade and a silverlight application I'm developing.... in the specific I've a
uploads/1136/Untitled.rar that represent an association between script and variables...
I wish to have a page where the user chooses witch variables is assigned to wich script (I've used a ListBox to represent the variables)
My first problem is :
I've got 20 variables ...how do I show the 20 but when saving/loading just show the items that represents the association SCRIPT_VARIABILI? If I bind my template to SCRIPT_VARIABILI I just see the specific, not all the items...
Second problem :
I've tought of delete all the SCRIPT_VARIABILI during the save and just to add the checked ones but it doesn't work.... can someone provide me a sample on how to do so?
Thanks
The code I used for deleting is
public OperationResult DeleteLinkScriptVariables(SCRIPT script,Action onSuccess = null, Action<Exception> onFail = null)
{
foreach (var a in script.SCRIPT_VARIABILI.ToList())
{
// Manager.RemoveEntity(a);
// a.EntityAspect.RemoveFromManager(true); //no one works...
}
EntitySaveOperation op = Manager.SaveChangesAsync();
return op.OnComplete(onSuccess, onFail).AsOperationResult();
}
Thanks