I' d like to create a new field: duedate in a Invoice (customer) window. It was succesfull, but when I wanted to do a new invoice, I didn't save it. When I saved a rekord the system wrote that's succesfull, but when I'd like to create invoice line the invoice wasn't in the datebase.
The field is already included in the database in a paymentschedule table.
I copied the settings from there.
Please, help me!
Thank,
Bea
ps:
The payment schedule can't add the payment deadline. Can't saved the data.
LOG:
----------------------
===========> GridTab.getTrxInfo: OrderSummary={0} Sor(ok) - {1,szám,#,##0.00} - Összesen: {2,szám,#,##0.00} {3} = {4,szám,#,##0.00} [13]
java.lang.IllegalArgumentException: unknown format type at
at java.text.MessageFormat.makeFormat(Unknown Source)
at java.text.MessageFormat.applyPattern(Unknown Source)
at java.text.MessageFormat.<init>(Unknown Source)
at org.compiere.model.GridTab.getTrxInfo(GridTab.java:1578)
at org.compiere.apps.APanel.dataStatusChanged(APanel.java:1060)
at org.compiere.model.GridTab.fireDataStatusChanged(GridTab.java:2089)
at org.compiere.model.GridTab.dataStatusChanged(GridTab.java:2045)
at org.compiere.model.GridTable.fireDataStatusChanged(GridTable.java:2784)
at org.compiere.model.GridTable.setValueAt(GridTable.java:944)
at org.compiere.model.GridTable.setValueAt(GridTable.java:865)
at org.compiere.grid.GridController.vetoableChange(GridController.java:1182)
at java.beans.VetoableChangeSupport.fireVetoableChange(Unknown Source)
at java.beans.VetoableChangeSupport.fireVetoableChange(Unknown Source)
at javax.swing.JComponent.fireVetoableChange(Unknown Source)
at org.compiere.grid.ed.VLookup.actionCombo(VLookup.java:725)
at org.compiere.grid.ed.VLookup.setValue(VLookup.java:555)
at org.compiere.grid.ed.VLookup.propertyChange(VLookup.java:594)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
From the first link, you are interested by the section Generate Model, but I think that is useful also the sections about creating new columns because you will understand why is need to generate the models.
Regards,
Cristina Ghita - www.arhipac.ro
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have one more question.
In which cases should be regenerate the model? It's depends on the reference of column?
That I was asking, because when I inserted into the column (note), which is a text, without any generation of model the system worked.
Thank you in advance.
Regards,
Bea
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I added a new column, note (text type ) without any model generation the system was worked.
What is the difference between the two types of field?
Thanks,
Bea
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I' d like to create a new field: duedate in a Invoice (customer) window. It was succesfull, but when I wanted to do a new invoice, I didn't save it. When I saved a rekord the system wrote that's succesfull, but when I'd like to create invoice line the invoice wasn't in the datebase.
The field is already included in the database in a paymentschedule table.
I copied the settings from there.
Please, help me!
Thank,
Bea
ps:
The payment schedule can't add the payment deadline. Can't saved the data.
LOG:
----------------------
===========> GridTab.getTrxInfo: OrderSummary={0} Sor(ok) - {1,szám,#,##0.00} - Összesen: {2,szám,#,##0.00} {3} = {4,szám,#,##0.00} [13]
java.lang.IllegalArgumentException: unknown format type at
at java.text.MessageFormat.makeFormat(Unknown Source)
at java.text.MessageFormat.applyPattern(Unknown Source)
at java.text.MessageFormat.<init>(Unknown Source)
at org.compiere.model.GridTab.getTrxInfo(GridTab.java:1578)
at org.compiere.apps.APanel.dataStatusChanged(APanel.java:1060)
at org.compiere.model.GridTab.fireDataStatusChanged(GridTab.java:2089)
at org.compiere.model.GridTab.dataStatusChanged(GridTab.java:2045)
at org.compiere.model.GridTable.fireDataStatusChanged(GridTable.java:2784)
at org.compiere.model.GridTable.setValueAt(GridTable.java:944)
at org.compiere.model.GridTable.setValueAt(GridTable.java:865)
at org.compiere.grid.GridController.vetoableChange(GridController.java:1182)
at java.beans.VetoableChangeSupport.fireVetoableChange(Unknown Source)
at java.beans.VetoableChangeSupport.fireVetoableChange(Unknown Source)
at javax.swing.JComponent.fireVetoableChange(Unknown Source)
at org.compiere.grid.ed.VLookup.actionCombo(VLookup.java:725)
at org.compiere.grid.ed.VLookup.setValue(VLookup.java:555)
at org.compiere.grid.ed.VLookup.propertyChange(VLookup.java:594)
Hi Beata,
I think that happened this becasue you did not regenerate the model when you added the new column.
Regards,
Cristina Ghita - www.arhipac.ro
Hi Cristina,
thanks the answer. Could you tell me, how can I do it?
Regards,
Bea
Hi Bea,
Here you can read about this.
http://www.adempiere.com/index.php/NewWindow
and
http://en.wikiversity.org/wiki/Extending_ADempiere#Model_Classes_.28lookup.29
From the first link, you are interested by the section Generate Model, but I think that is useful also the sections about creating new columns because you will understand why is need to generate the models.
Regards,
Cristina Ghita - www.arhipac.ro
Dear Cristina,
That was the solution of the problem, thank you.
I have one more question.
In which cases should be regenerate the model? It's depends on the reference of column?
That I was asking, because when I inserted into the column (note), which is a text, without any generation of model the system worked.
Thank you in advance.
Regards,
Bea
Hi all,
Could someone help me on this topic?
Regards,
Bea
Hi Bea,
Every time when you add a new column or you make a change that implies the table's structure , you have to regenerate the model.
Regards,
Cristina Ghita - www.arhipac.ro
Hi Cristina,
When I added a new column, note (text type ) without any model generation the system was worked.
What is the difference between the two types of field?
Thanks,
Bea