We are trying to understand how to call a Server domain function from a portable client screen and return the contents of a Server domain template tag populated by the function call.
I had thought this would not be difficult .. but haven’t been able to find a method to return Tatsoft template tag types.
The method we are using at the moment calls the Server domain function, which populates a Server domain tag, and then copy the Server domain tag to a Client domain tag of the same type. So the equivalent of:
Is this the only way of doing this? I had hoped that Tatsoft templates would be recognised as standard Types within the development environment .. but can understand that this may not be possible. In short, is it possible to have:
Hi Greg Shearer,
The main issue with what you’re trying to accomplish stems from the Server-to-Client communication model.
Since server-side functions cannot “see” client-side tags, sending the return value of a server domain function to a client domain tag will necessarily require a middleman (as you’re currently doing with the Server_templateTag).
If you’d like, you could use a .NET object to achieve this instead, but it would be very similar to what you’re already doing with the tags.
Thanks for your response, which is very clear, and in line with the conclusion I had drawn.
I think part of the problem myself and a colleague are having is that we are not always sure .. when preparing a class .. whether it will be able to be used as either Server domain, Client domain, or both.
Of course, we soon find out based on compilation and/or runtime issues, and we are certainly now developing a clearer understanding. In this particular case, it was clear that the class must be Server domain, and your response has answered my question regarding the transfer of data to Client domain tags.