public function toJS($intDynamicPosition = 0)
    {
        $strReturn = "";

        foreach ($this->__fields as $field) {
            $strReturn .= $field->toJS($this->__dynamic);
        }

        $strReturn .= $this->conditionsToJs($intDynamicPosition);

        return $strReturn;
    }