Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

RAD Tool #4942


User avatar
0
scopiq123 created

We were using the RAD Tool for entity generation and so far everything was working fine... today I noticed that any new entity generated with RAD Tool does not work and gives and error on the GUI. I noticed the code generation pattern has changed and RAD now generates additional VIEW files which were not there earlier..... also noticed that RAD Tool templates are auto updates...

2 issues -

a. The new templates do not work and the code generated gives errors on the angular side... how t fix that? b. how to stop RAD from auto updating templates? how to go back to previous RAD Tool templates?


2 Answer(s)
  • User Avatar
    0
    yekalkan created

    Hi,

    Sorry for the issue. Constructor part is missing in view modal component. import '{{Entity_Name_Here}}Dto' from service-proxies, and add those 2 lines to constructor:

    constructor(
            injector: Injector
        ) {
            super(injector);
            this.item = new Get{{Entity_Name_Here}}ForView(); //1
            this.item.{{entity_Name_Here}} = new {{Entity_Name_Here}}Dto(); //2
        }
    
  • User Avatar
    0
    yekalkan created

    a. The new templates do not work and the code generated gives errors on the angular side... how t fix that?

    What is that error?

    b. how to stop RAD from auto updating templates? how to go back to previous RAD Tool templates?

    There is no benefit of not updating templates. So there is no option to do that. However, if you override all the templates one by one, tool will still use them after update. <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Rad-Tool#how-to-edit-pre-defined-templates-or-create-a-new-">https://aspnetzero.com/Documents/Develo ... ate-a-new-</a>