var result:int;
if(observerButton.selected == true)
result = assignMemberAsObserverToEvent(dataGrid.selectedItem.id_event,dataGrid2.selectedItem.id_person,assignmentDescription.text);
else if(adminButton == true)
result = assignMemberAsAdministratorToEvent(dataGrid.selectedItem.id_event,dataGrid2.selectedItem.id_person,assignmentDescription.text);
else
alert("please select the assignment type");
There is error on two assign function calls. The error is: Description Resource Path Location Type 1067: Implicit coercion of a value of type void to an unrelated type int. AssignUser.mxml /pui2/src line 149 Flex Problem
Here their declarations:
protected function assignMemberAsAdministratorToEvent(id_person:String, id_event:String, description:String):void
{
assignMemberAsAdministratorToEventResult.token = actions.assignMemberAsAdministratorToEvent(id_person, id_event, description);
}
protected function assignMemberAsObserverToEvent(id_person:String, id_event:String, description:String):void
{
assignMemberAsObserverToEventResult.token = actions.assignMemberAsObserverToEvent(id_person, id_event, description);
}