Announcement

Collapse
No announcement yet.

My button

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    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.

    Comment


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

      Comment


      • #4
        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

        Comment


        • #5
          Originally posted by tanya View Post
          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) {

          Comment


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

            Comment


            • #7
              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

              Comment


              • #8
                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/

                Comment

                Working...
                X