Difference between revisions of "ZK Window X2"

From iDempiere en
m
Line 105: Line 105:
  
 
And Please assign it to a menu.
 
And Please assign it to a menu.
 +
 +
 +
== Callout of Matrix Window ==
 +
 +
{{{
 +
public class DefaultMatrixWindowCalloutFactory implements IMatrixWindowCalloutFactory {
 +
 +
@Override
 +
public IMatrixWindowCallout getCallout(String tableName, String columnName) {
 +
 +
if(tableName.equals("JP_ReferenceTest") && columnName.equals("C_BPartner_ID"))
 +
{
 +
return new MatrixWindowSampleCallout();
 +
}
 +
 +
return null;
 +
}
 +
}
 +
 +
}}}
 +
 +
  
  
 
[[Category:JPPS]]
 
[[Category:JPPS]]

Revision as of 11:57, 13 August 2015

JPiere
OSS ERP Solutions
  • Creator: Hagiwara Hideaki in JAPAN(I'm sorry for my poor English. Please modify correctly if my English expressions are mistaken.)
  • SPONSOR: OSS ERP Solutions in JAPAN
  • Current Version: beta (It is in development)
  • License: GPLv2 - Free as in Freedom not Free Lunch
  • Source: BitBucket repository JPiere(Plugins for Japan + iDempiere)


About Matrix Window

  • ZK Window X2 introduces more rows within a row(I call this plugin Matrix Window)
  • Matrix Window can create a denormalization window from normalization table.
  • Matrix Window can create by parameter setting only.

MatrixWindowImage.png

WindowX2.png


Basic operations

Constitutions of Matrix Window

BasicOperations1.png


Keyboard operation

  • Cursor that Edit Fields Area of matrix Window can move horizontally by Tab key and can move vertically by Enter key.

BasicOperations2.png


Restriction of Matrix Window

  • Can't use Callout

Now, Matrix window can not use Callout. Please use beforeSave() method in Model class instead of Callout.

But I think that I can develop similar to the Callout in Matrix Window.

Preparations in advance

Pack in 2Pack.zip under META-INF folder(Derectory)

WindowX2 2.png

2Pack restore "Matrix Window Configuration" Menu and window,table and so on.


Please set "Matrix Window Configuration" at System Client

Note.gif Note:
  • Appropriate unique constraint is necessary.
  • Best unique constraint is Matrix Column key,Matrix Row Key,Mandatory Search Field.
  • Please create unique index at table index tab of Table & Column window.

Matrix Window Configuration

  • You must create normal window in advance. Matrix window is need the window setting.
  • Table that is setting a tab must have “Table name + _ID" Column. And the reference(Display Type) of the column need to "ID"


WindowX2 3.png

  • Window…Select Window.
  • Tab…Select Tab in Window that you want to create Matrix Window.If tab is read only, Matrix Window become a read only window.
  • Page Size…Set Page Size
  • Column key Field… Select field to be key column.
  • Row Key Field…Select field to be key row.
  • Length…Display Length of Field that is Matrix Row Key
  • Quick Entry Window…Select Window that is setting quick Entry Window.
  • Quick Entry Window conf…For continuous input,

・01:Column info only/02:Row info Only/03:Column and Row info


WindowX2 4.png

Select Fields that you want to update.

  • Sequence…Field display order. Ascending.
  • Field…Edit Field in Matrix Window.
  • Length…width of Column. 0 is better because of min width.
  • Calculate Sum(Σ)…Summarize Value and display it column. Display Type of Number、Qauntity、Amount、CostPrice、Integer are valid.


WindowX2 5.png

Select Search Fields

  • Sequence…Search Field display order.Ascending.
  • Field…Search Field.
  • Mandatory…Mandatory Search Field or not. If Mandatory Field have to (complex) unique constraint with Column Key Field and Row Key Field).
  • Default Logic…Default Logic for search field initial Value.
  • XPosition…search field position.
  • Column Span…search field width. 2 is better.

Control of Sort Column and Row

  • When reference of Matrix Column Key field is “Table” or “Search”, Sql ORDER By” at Table validation is applied.
  • In case of the other, Value of Matrix Column key field in ascending order.
  • When reference of Matrix Row Key field is “Table” or “Search”, Sql ORDER By” at Table validation is applied.
  • In case of the other, Value of Matrix Row key field in ascending order.



Create Form and Classname set "jpiere.plugin.matrixwindow.form."+"Value(Search key) of Matrix Window"

WindowX2 6.png

And Please assign it to a menu.


Callout of Matrix Window

{{{ public class DefaultMatrixWindowCalloutFactory implements IMatrixWindowCalloutFactory {

@Override public IMatrixWindowCallout getCallout(String tableName, String columnName) {

if(tableName.equals("JP_ReferenceTest") && columnName.equals("C_BPartner_ID")) { return new MatrixWindowSampleCallout(); }

return null; } }

}}}

Cookies help us deliver our services. By using our services, you agree to our use of cookies.