Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

grails dynamic scaffolding - skip a field to render in view

Is there any way to make some fields of a domain invisible in dynamic scaffolding view?

like image 827
gtiwari333 Avatar asked Feb 03 '26 12:02

gtiwari333


1 Answers

I found it myself:

We can use the display constraint to achieve this.

source : http://grails.org/doc/latest/ref/Constraints/Usage.html

class {
    String notToDisplay
    ...

    static constraints = {
        ...
        notToDisplay(display:false)
    }
}
like image 121
gtiwari333 Avatar answered Feb 05 '26 05:02

gtiwari333



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!