Menu

Create a new field in a window...

2009-05-30
2013-03-07
  • Beata Székely

    Beata Székely - 2009-05-30

    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)

     
    • Cristina Ghita

      Cristina Ghita - 2009-05-31

      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

       
      • Beata Székely

        Beata Székely - 2009-05-31

        Hi Cristina,

        thanks the answer. Could you tell me, how can I do it?

        Regards,
        Bea

         
    • Beata Székely

      Beata Székely - 2009-06-03

      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

       
    • Beata Székely

      Beata Székely - 2009-06-12

      Hi all,

      Could someone help me on this topic?

      Regards,
      Bea

       
      • Cristina Ghita

        Cristina Ghita - 2009-06-12

        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

         
    • Beata Székely

      Beata Székely - 2009-06-12

      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

       

Log in to post a comment.