for recordViews folder is client\custom\src\views\my\record
for views folder is client\custom\src\views\my
to understand what is what, read templates client/res/templates/ and client/res/templates/record/
My button
Collapse
X
-
I was already tortured))
My main problem that I don't understand how i need to name files
I created a file My.json with text:
{
"views": {
"list": "custom:views/my/list",
"detail": "custom:views/my/detail",
"edit": "custom:views/my/edit"
},
"recordViews": {
"list": "custom:views/my/record/list",
"detail": "custom:views/my/record/detail",
"edit": "custom:views/my/record/edit"
}
}
and what I need to put in define?
Espo.define('custom:views/my/detail', 'views/detail', function (Dep) {
or
Espo.define('custom:views/my/record/detail', 'views/record/detail', function (Dep) {
??
And what folder? "client\custom\src\views\my\record" or "client\custom\src\views\my"
I'm confused
Leave a comment:
-
did you define this view in clientDefs?
views/record/detail => views/detail - are not the sameLeave a comment:
-
I have no result, dont work
I created a file "detail.js" with code like there and put it in "client\custom\src\views\record", is it right path in function define?
Espo.define('custom:views/record/detail', 'views/detail', function (Dep) {
Leave a comment:
-
The first one is row action
The second one is button in detail view. Prev. example shows, how implement this. Try to reproduce it, at leastLeave a comment:
-
-
Hello
list view or detail view? action button or top-right button?
one of example
Hi! I'm trying to implement a custom button with action on it (as entryPoint) The code in detail.js: Espo.define('custom:views/style-expert
Last edited by tanya; 11-07-2017, 01:50 PM.Leave a comment:
Leave a comment: