Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007547Openbravo ERP07. Sales managementpublic2009-02-13 11:322011-02-04 09:15
FrancescoFinamore 
rmorley 
normalminorN/A
acknowledgedopen 
20rPath Linux
 
 
Core
No
0007547: Ajax Grid in Create Lines From in the Sales Invoice
When i launch from a Sales Invoice the process "Create lines from"
it shows a form with a grid with the multi-check column but that haven't columns resizable. How can modified the html to have the columns resizable ?
I thinked to use the grid used for example in Search of Business Partner but it haven't the first column with checkbox . Can you suggest me something ?
Thanks
ReleaseCandidate
Issue History
2009-02-13 11:32FrancescoFinamoreNew Issue
2009-02-13 11:32FrancescoFinamoreAssigned To => rafaroda
2009-02-13 16:51rafarodaAssigned Torafaroda => pjuvara
2009-02-13 16:59rafarodaSummarySales Invoice => Editable grid in manual windows
2009-02-16 11:53iciordiaNote Added: 0013515
2009-02-17 12:50FrancescoFinamoreNote Added: 0013562
2009-02-17 18:36pjuvaraStatusnew => acknowledged
2009-02-17 18:36pjuvaraSummaryEditable grid in manual windows => Ajax Grid in Create Lines From in the Sales Invoice
2009-02-17 18:37pjuvaraTag Attached: ReleaseCandidate
2009-02-18 18:18gorka_gilNote Added: 0013688
2009-02-18 19:28FrancescoFinamoreNote Added: 0013697
2009-02-19 16:13FrancescoFinamoreNote Edited: 0013697
2011-02-04 09:15jpabloaeAssigned Topjuvara => rmorley

Notes
(0013515)
iciordia   
2009-02-16 11:53   
In the following wiki documentation you have functional and technical documentation to use dynamic data grid in manual windows:

http://wiki.openbravo.com/wiki/Projects/Ajax_Grids [^]

Ismael
(0013562)
FrancescoFinamore   
2009-02-17 12:50   
I read the wiki but i dont understand how read in the java class the ids that the grid turns to the main window.
(0013688)
gorka_gil   
2009-02-18 18:18   
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
(0013697)
FrancescoFinamore   
2009-02-18 19:28   
(edited on: 2009-02-19 16:13)
Thanks a lot.
The problem that i have is a little more complicated ,
in this example you start from a list reportCBPartnerId_IN on the html page.
I must start from a process so i dont have a html control where associate the procedure OpenMultiSearch , but from the process i must open the window with multiple selection. So i dont understand how read from the servlet of that process the values of rowkey that the window turn to the process.