if (mysql_num_rows($myRS) > 0 ) mysql_data_seek($myRS, 0)WA --> if you read this you should add something like that to the code generator.

This already exists. In the server behavior behaviors panel, click the plus button and select webAssist -> Dynamic web Charts -> Reset to First Record


