You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using grails version 2.5.0. I have created two similar domain classes namely PurchaseOrder and SalesOrder. Scaffolding was used to generate views and controllers for both. It was successful on generating views for PurchaseOrder but failed to produce correct _form.gsp for SalesOrder.
Here is my SalesOrder.groovy
packagecom.troutbird.pharmatics.orderclassSalesOrder {
Long id
String salesOrderNumber
Date dateCreated
Date lastUpdated
static hasMany = [salesOrderLineItems:SalesOrderLineItem]
static constraints = {
salesOrderNumber nullable: false
}
static mapping = {
id generator: 'sequence', params: [sequence: 'seq_so_id']
}
StringtoString() {
salesOrderNumber
}
StringgetSalesOrderNumber(){
return (id? ("SO - "+String.format("%d", id)):'Not Saved')
}
}
Here is the _form.gsp created by scaffolding which has only one line
I am using grails version 2.5.0. I have created two similar domain classes namely PurchaseOrder and SalesOrder. Scaffolding was used to generate views and controllers for both. It was successful on generating views for PurchaseOrder but failed to produce correct _form.gsp for SalesOrder.
Here is my SalesOrder.groovy
Here is the _form.gsp created by scaffolding which has only one line
Whereas the generated for _form.gsp was fine.
Here is my PurchaseOrder.groovy
The generated form template (with minor edits required by my application)
Note: i have tried generate-all and generate-controller+ generate-views combination. Both had same results.
The text was updated successfully, but these errors were encountered: