{"id":23406,"date":"2016-01-28T14:06:54","date_gmt":"2016-01-28T13:06:54","guid":{"rendered":"http:\/\/help.qualiware.it\/qw-help\/?p=23406&#038;lang=en"},"modified":"2016-01-28T14:18:14","modified_gmt":"2016-01-28T13:18:14","slug":"fd-dataview","status":"publish","type":"post","link":"https:\/\/help.qualiware.it\/qw-help\/fd-dataview\/?lang=en","title":{"rendered":"DATAVIEW OBJECT"},"content":{"rendered":"<h4 id=\"ipt_kb_toc_23167_1\" align=\"left\"><a name=\"progettazione_form_proprieta\"><\/a><span lang=\"en\">Description<\/span><\/h4>\n<p lang=\"en\">The Dataview object, available from <span style=\"color: #993300;\"><strong>release 2015.03<\/strong><\/span>,\u00a0allows read-only view of the data retrieved from the database using a query.<\/p>\n<div class=\"msgBody\">\n<h4 id=\"ipt_kb_toc_23167_1\" align=\"left\"><a name=\"progettazione_form_proprieta\"><\/a><span lang=\"en\">Specific properties<\/span><\/h4>\n<p>In addition to <a href=\"http:\/\/help.qualiware.it\/qw-help\/fd-common-properties\/?lang=en\">common properties<\/a> contains the following properties:<\/p>\n<p><span style=\"color: #993300;\"><strong>BrowseQuery:\u00a0<\/strong><span style=\"color: #333333;\">It contains the query used to display the data. Such queries can contain parameters whose names, preceded by the character &#8220;:&#8221;, may correspond to field names linked to objects on the form or object names. Upon opening of the form, the query will be executed and will be assigned the parameters to field values and \/ or objects.<\/span><\/span><\/p>\n<p style=\"padding-left: 60px;\">\n<h4 id=\"ipt_kb_toc_23167_2\" align=\"left\"><a name=\"progettazione_form_proprieta\"><\/a><span lang=\"en\">Specific events<\/span><\/h4>\n<ul>\n<li><span style=\"color: #800000;\"><strong>ChangeRowEvent<\/strong><\/span><br \/>\nEvent triggered with every change of the row selected by the user.<br \/>\nIt can be used to take actions such as upgrading of other objects on the form based on the values of the row on which you have placed.<\/li>\n<\/ul>\n<p><span lang=\"en\">For more information about Events click\u00a0<a href=\"http:\/\/help.qualiware.it\/qw-help\/events\/?lang=en\">here<\/a><\/span>.<\/p>\n<\/div>\n<h4 id=\"ipt_kb_toc_23167_3\" align=\"left\"><a name=\"progettazione_form_proprieta\"><\/a><span lang=\"en\">Properties that can be used by code<\/span><\/h4>\n<h5><a name=\"progettazione_form_proprieta\"><\/a>C\/S\u00a0<span lang=\"en\">Properties<\/span><\/h5>\n<p>None<\/p>\n<h5><a name=\"progettazione_form_proprieta\"><\/a><span lang=\"en\">Web properties<\/span><\/h5>\n<p>None<\/p>\n<h4 id=\"ipt_kb_toc_23167_4\" align=\"left\"><a name=\"progettazione_form_proprieta\"><\/a><span lang=\"en\">Methods that can be used by code<\/span><\/h4>\n<ul>\n<li><span style=\"color: #800000;\"><b>Count()<\/b>:\u00a0It returns the total number of lines in the grid.<\/span><\/li>\n<li><span style=\"color: #800000;\"><b>EndOfRows<\/b>:<\/span> It returns true if the current row pointer is beyond the last row<\/li>\n<li><span style=\"color: #800000;\"><strong>MoveFirst()<\/strong>:<\/span> move your pointer to the rows on the first line, returning false if the operation failed, for example because there are no lines<\/li>\n<li><span style=\"color: #800000;\"><strong>MoveLast()<\/strong>:<\/span> move your pointer to the rows on the last line, returning false if the operation failed, for example because there are no lines<\/li>\n<li><span style=\"color: #800000;\"><strong>MoveNext()<\/strong>:<\/span> move your pointer to the rows on the line after the current one, returning false if it was the last line and the pointer it went beyond the end of the set of lines<\/li>\n<li><span style=\"color: #800000;\"><strong>MovePrevious()<\/strong>: move your pointer to the rows on the line before the current, returning false if it was on the first line and the pointer he went before the start of the set of rows.<\/span><\/li>\n<li><span style=\"color: #800000;\"><strong>ReadField(&lt;field&gt;)<\/strong>:<\/span> It returns the value of the specified field in the parameter, for the current row.<\/li>\n<li><span style=\"color: #800000;\"><strong>setVisible(&lt;bool&gt;)<\/strong>:<\/span> if it called setting <em>false<\/em><i>,\u00a0<\/i>hides the grid, if you pass <em>true<\/em> displays it.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Description The Dataview object, available from release 2015.03,\u00a0allows read-only view of the data retrieved from the database using a query. Specific properties In addition to common properties contains the following properties: BrowseQuery:\u00a0It contains the query used to display the data. Such queries can contain parameters whose names, preceded by the character &#8220;:&#8221;, may correspond to&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ngg_post_thumbnail":0,"footnotes":""},"categories":[56],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/23406"}],"collection":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/comments?post=23406"}],"version-history":[{"count":0,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/posts\/23406\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/media?parent=23406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/categories?post=23406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.qualiware.it\/qw-help\/wp-json\/wp\/v2\/tags?post=23406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}