dark_mode EN
  • Data WFetch :hJsParams
  • Type Hash
  • Initial value {=>}

Hash with the parameters that the JavaScript function will receive. The key of the Hash elements corresponds to the control ID and the value of each element refers to the name of the attribute that is intended to be used. See also method AddJsParam.

From the CGI itself, in most cases we do not have to know the parameters with which the call to a web service will be made, since it almost always depends on values ​​that the end user has entered in a form. xaWeb solves this problem with this property that allows our JavaScript function to receive the information that interests us and to be passed to the URL of the web service.

You can pass an attribute as the element's value even if it doesn't actually exist in the control. In that case, xaWeb will search for that value in its dataset, and if it finds it, it will be received as a parameter with the key: 'detail-<value>'. This is the case with fetch operations when using the WTable:OnRowClick event, in which the 'recno' of the selected record is received in this way.

For further information consult the programming guide.

Previous chevron_left Next chevron_right