KoolReport's Forum

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

Dashboard Admin: Not showing View and Edit detail #2772

Open Issac Rosa opened this topic on on Jul 28, 2022 - 4 comments

Issac Rosa commented on Jul 28, 2022

I'm using the Admin Resource when I click the View or Edit Icon, I don't get any details. How do I get it to display the details?

<?php
//MileageResource.php

use \koolreport\dashboard\admin\Resource;
use \koolreport\dashboard\fields\ID;
use \koolreport\dashboard\fields\Number;
use \koolreport\dashboard\fields\Date;

class MileageResource extends \koolreport\dashboard\admin\Resource
{
    protected function onCreated()
    {
        $this
            ->manageTable("mec_mileage")
            ->inSource(MECLogs::class)
            ->listScreen()
            ->adminTable()
            ->pageSize(20);
    }

    protected function fields()
    {
        return [
            ID::create("mileageId")
                ->showOnCreate(false)
                ->showOnIndex(true)
                ->showOnUpdate(true),
            Date::create("mileageDate")
                ->sort("desc"),
            Number::create("mileage")
                ->decimals(1),
        ];
    }
}
KoolReport commented on Jul 29, 2022

Hi, so there is no response when you click to the View icon. Could you please open the Inspector tool of chrome browser and let see if there is any error showing.

Issac Rosa commented on Jul 29, 2022

Hi, the View and Edit screens open but the data for that ID is not showing. I don't see any errors in Inspector.

KoolReport commented on Jul 29, 2022

Are you using MySQL or other db?

Issac Rosa commented on Jul 29, 2022

MySQL

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