|
Hi Francesco,
You can take as example the bussines partner multiple selector [1], that is used for example, in sales dimensional report[2][2b].
The grid has an extra column that is a concatenation of all values to return, concatenated by '#'. This column is filled in the sql, and is splited in an array in a javascript method 'depurarSelector' in BusinessPartnerMultiple.html.
After some values are selected, and press the OK button of the selector, the values are stored in the fields specified in the onClick method, of the button that call the selector (for example in sales dimensional report):
onclick="openMultiSearch(null, null, '../info/BusinessPartnerMultiple.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBPartnerId_IN');return false;"
In this example, the values returned by the multiple bussines partner selector will be stored in the html field with id="inpcBPartnerId_IN".
Then, if you save or print the page, this field will be send to the java/servlet, and recibed with:
String strcBpartnerId = vars.getRequestInGlobalVariable("inpcBPartnerId_IN", "ReportSalesDimensionalAnalyzeJR|partner");
[1] src/org/openbravo/erpCommon/info/BusinessPartnerMultiple
[2] src/org/openbravo/erpCommon/ad_reports/ReportSalesDimensionalAnalyzeJR
[2b] Sales Management || Analysis Tools || Sales Dimensional Report |
|