Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is the resolution I used for this issue;</p> <p>Two methods on the report so that when fields are multi-selected on forms, the values are passed to the filter dialog;</p> <pre><code>private void setQueryRange(Common _common) { FormDataSource fds; LogisticsControlTable logisticsTable; QueryBuildDataSource qbdsLogisticsTable; QueryBuildRange qbrLogisticsId; str rangeLogId; set logIdSet = new Set(Types::String); str addRange(str _range, str _value, QueryBuildDataSource _qbds, int _fieldNum, Set _set = null) { str ret = _range; QueryBuildRange qbr; ; if(_set &amp;&amp; _set.in(_Value)) { return ret; } if(strLen(ret) + strLen(_value) + 1 &gt; 255) { qbr = _qbds.addRange(_fieldNum); qbr.value(ret); ret = ''; } if(ret) { ret += ','; } if(_set) { _set.add(_value); } ret += _value; return ret; } ; switch(_common.TableId) { case tableNum(LogisticsControlTable): qbdsLogisticsTable = element.query().dataSourceTable(tableNum(LogisticsControlTable)); qbrLogisticsId = qbdsLogisticsTable.addRange(fieldNum(LogisticsControlTable, LogisticsId)); fds = _common.dataSource(); for(logisticsTable = fds.getFirst(true) ? fds.getFirst(true) : _common; logisticsTable; logisticsTable = fds.getNext()) { rangeLogId = addrange(rangeLogId, logisticsTable.LogisticsId, qbdsLogisticsTable, fieldNum(LogisticsControlTable, LogisticsId),logIdSet); } qbrLogisticsId.value(rangeLogId); break; } } </code></pre> <p>// This set the query and gets the values passing them to the range i.e. "SO0001, SO0002, SO000£...</p> <p>The second methods is as follows; </p> <pre><code>private void setQueryEnableDS() { Query queryLocal = element.query(); ; } </code></pre> <p>Also on the init method this is required;</p> <pre><code>public void init() { ; super(); if(element.args() &amp;&amp; element.args().dataset()) { this.setQueryRange(element.args().record()); } } </code></pre> <p>Hope this helps in the future for anyone else who has the issue I had.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload