How does one determine whether the SmartObjectClientServer.ExecuteScalar method actually returns valid data when SmartObject data is loaded from the SmartBox? The problem that I am trying to solve is to detect the case when the requested SmartObject hasn't yet been created in the SmartBox. To illustrate this with a more concrete example, I have code that looks very similar to that of the following post...
http://k2underground.com/forums/permalink/18568/18574/ShowThread.aspx#18574
OlafWagner://Call the Load Method
soEmployee.MethodToExecute = "Load";
soEmployee.Propertiese"ID"].Value = "1234";
soServer.ExecuteScalar(soEmployee);
Now, suppose the employee with ID 1234 is not yet created, how can I detect this condition after the ExecuteScalar statement in a generic way? Even when the SmartObject does not exist, the ExecuteScalar method returns without throwing any exception, and the input parameter and returned value seems to be the same object. But how do I know that the SmartObject that is returned contains data of an existing SmartObject (with default values) or if the object still needs to be created?
Thanks.