FYI: There is a simpler solution to tell if the table data is empty without modifying your web service at all.
Just take the expression that is bound to the ‘Value’ property of the table control.
For example, if the value expression of the table control is bound to this:
#{YourDefaultViewView.tableContent}
If that expression resolves to an Array or List of rows, then you can simply use the “not empty” operator of the expression language to check if that list or array is empty.
For example, set the ‘Rendered’ property to an expression that is something like this:
#{not empty YourDefaultViewView.tableContent}
Or if the value expression of the table control resolves to a table content provider, then you can simply use the provided getRowCount() method of the table content provider model to get the number of rows and check if it is greater than zero.
For example, set the ‘Rendered’ property to an expression that is something like this:
#{YourDefaultViewView.tableProvider.rowCount > 0}
#webMethods#webMethods-BPMS#MWS-CAF-Task-Engine