Missing parial/view/custom.html

I try to implement custom view as documented here https://docs.axelor.com/adk/5.0/dev-guide/views/custom.html
But it seems that the view template is missing (custom.html) where can i find it ?

You have to define your own template

here is my custom view :

<custom title="Custom" name="custom-grid">
        <dataset type="jpql">
            select period, employee, shiftDate, shiftName from Attendance
              <report-table data='data' columns='period, employee, shiftDate, shiftName'></report-table>
<action-view name="view-hr-attendance-timesheet" title="Timesheet"
         <view type="grid" name="custom-grid"/>

do you have sample custom.html file ?

It is directly defined on angularjs directive https://github.com/axelor/axelor-development-kit/blob/master/axelor-web/src/main/webapp/js/view/view.custom.js#L237

but it keep looking for custom.html file
the error stacktrace :

HTTP Status 404 – Not Found
Type Status Report

Message /myapp/partials/views/custom.html

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Apache Tomcat/8.5.24

Issues is here in action-view, type here must be “custom” not “grid”. Also direct opening of custom view from menu is not supported. You can add custom view on dashlet or panel-dashlet only.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.