[ 2531451 ] Delete selection doesn't show line no value
This commit is contained in:
parent
61aef1416c
commit
d5a5a6e1d5
|
@ -1160,16 +1160,31 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
||||||
// Display the first 5 fields data exclude Organization, Client and YesNo field data
|
// Display the first 5 fields data exclude Organization, Client and YesNo field data
|
||||||
Vector<String> columnNames = new Vector<String>();
|
Vector<String> columnNames = new Vector<String>();
|
||||||
GridField[] fields = curTab.getFields();
|
GridField[] fields = curTab.getFields();
|
||||||
for(int i = 0, count = 0; i < fields.length && count < 5; i++)
|
if(curTab.getField("DocumentNo")!=null){
|
||||||
|
columnNames.add(curTab.getField("DocumentNo").getColumnName());
|
||||||
|
}
|
||||||
|
if(curTab.getField("Line")!=null){
|
||||||
|
columnNames.add(curTab.getField("Line").getColumnName());
|
||||||
|
}
|
||||||
|
if(curTab.getField("Value")!=null){
|
||||||
|
columnNames.add(curTab.getField("Value").getColumnName());
|
||||||
|
}
|
||||||
|
if(curTab.getField("Name")!=null){
|
||||||
|
columnNames.add(curTab.getField("Name").getColumnName());
|
||||||
|
}
|
||||||
|
for(int i = 0, count = columnNames.size(); i < fields.length && count < 5; i++)
|
||||||
{
|
{
|
||||||
GridField field = fields[i];
|
GridField field = fields[i];
|
||||||
if(field.getColumnName().equalsIgnoreCase("AD_Org_ID")
|
if(field.getColumnName().equalsIgnoreCase("AD_Org_ID")
|
||||||
|| field.getColumnName().equalsIgnoreCase("AD_Client_ID")
|
|| field.getColumnName().equalsIgnoreCase("AD_Client_ID")
|
||||||
|| field.getDisplayType() == DisplayType.YesNo)
|
|| field.getDisplayType() == DisplayType.YesNo)
|
||||||
continue;
|
continue;
|
||||||
|
if (!columnNames.contains(field.getColumnName()))
|
||||||
|
{
|
||||||
columnNames.add(field.getColumnName());
|
columnNames.add(field.getColumnName());
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Vector<String> data = new Vector<String>();
|
Vector<String> data = new Vector<String>();
|
||||||
int noOfRows = curTab.getRowCount();
|
int noOfRows = curTab.getRowCount();
|
||||||
|
|
Loading…
Reference in New Issue