My button

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • tanya
    replied
    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/

    Leave a comment:


  • Max
    replied
    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:


  • tanya
    replied
    did you define this view in clientDefs?
    views/record/detail => views/detail - are not the same

    Leave a comment:


  • Max
    replied
    Originally posted by tanya
    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 least
    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:


  • tanya
    replied
    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 least

    Leave a comment:


  • Max
    replied
    I saw this topic but i'm newbie and dont understand.
    pls see screen shots
    Attached Files

    Leave a comment:


  • tanya
    replied
    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:


  • Max
    started a topic My button

    My button

    Hi there,

    I read all forum, but i still don't understand. Can anyone help me step by step?

    I need to add my button for example to contracts and print my form. What do I need to do? thanks a lot.
Working...