KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

What if I need a special logic and screen for new and update record #3370

Open Eugene opened this topic on on Nov 7 - 1 comments

Eugene commented on Nov 7

Hi,

sorry. I ask a lot of question as always :-)

I need specific logic for the screens—for example, making the available values in one field dependent on the value selected in another. The user should first select a department, after which they can choose a division that corresponds to that department. As I understand it, this is not only a logic issue but also involves rendering solution to manage the availability of different fields.

The questions Is not how to realize exactly the logic but how to overwrite the current screens

KoolReport commented on Nov 11

The screens in the Resource can be overwritten. For example, you create a class MyOwnUpdateScreen which derived from UpdateScreen class for example and then you can assign it to Resource like this:

class MyResource extends Resource
{
    protected function onCreated()
    {
        $this->updateScreen(MyOwnUpdateScreen::create());
    }
}

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Dashboard