Object Query

An Object Query action can perform an object query of a mobile business object by using the FreeMethodAction method to delegate to the object query operations of the mobile business object, as shown in the following sample code for the Object Query action:

Sybase.UnwiredPlatform.Windows.Action.Action namedQueryAction = 
       Sybase.UnwiredPlatform.Windows.Action.ActionFactory.CreateFreeMethodAction(
      	   delegate(Object[] args,out string message )
      	   {
      	      System.Int32 p_Id = Convert.ToInt32(@"100");
      	      IList<Customer> findById_List = CustomerDataStore.Instance.FindByPrimaryKey(p_Id);
      	      
      	      this.SetTable1Datasource(findById_List);
      	      message = "";
      	      return false;
      	   }
      	   );
 namedQueryAction.Execute();