Assigning value in info log

Hi friends,

I wrote below code like that

ProductDetails productdetails;

str s;

;

productDetails = ProductDetails ::find(this.text());

info(productDetails);

Here i got Error Argument ‘txt’ is incompatible with the required type. How can i solve this problem…I want to display the value of productDetails in info() method or else…

pls help me

ProductDetails is a table, while info() accepts a string, therefore you have to create a string value first. If you want to show a single text field, say Name, call info(productDetails.Name);.

Thank you Mr.Martin