remove edit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Thiago
    Member
    • Jul 2017
    • 60

    remove edit

    Can someone help me with this?
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello

    if you want to disable inline edit for one field, you need to create a view for Close Date field and set `inlineEditDisabled: true`
    In quote entity -> quoteitems, there is "glyphicon glyphicon-pencil" for the inlineedit. Can I disable/remove only from that entity? If so, which

    In quote entity -> quoteitems, there is "glyphicon glyphicon-pencil" for the inlineedit. Can I disable/remove only from that entity? If so, which


    if you want to disable all fields in Opportunity, add the row "inlineEditDisabled":true to custom/Espo/Custom/Resources/metadata/clientDefs/Opportunity,json

    Comment

    • Thiago
      Member
      • Jul 2017
      • 60

      #3
      this directory does not exist for me.

      Comment

      • Thiago
        Member
        • Jul 2017
        • 60

        #4
        if you want to disable all fields in Opportunity, add the row "inlineEditDisabled":true to custom/Espo/Custom/Resources/metadata/clientDefs/Opportunity,json???

        {
        "dynamicLogic": {
        "fields": {
        "contacts": {
        "required": {
        "conditionGroup": [
        {
        "type": "equals",
        "attribute": "stage",
        "value": "Closed Won"
        }
        ]
        }
        },
        "account": {
        "required": null
        }
        }
        }
        }

        Where can I add the command line?

        Comment

        • tanya
          Senior Member
          • Jun 2014
          • 4308

          #5
          It was an example, not solution. You need to disable inline edit only for one field, right?

          Comment

          • tanya
            Senior Member
            • Jun 2014
            • 4308

            #6
            to the top level, order isn't important
            Code:
            {
            "inlineEditDisabled":true,
            "dynamicLogic": { ////.......
            }
            }

            Comment

            • Thiago
              Member
              • Jul 2017
              • 60

              #7
              Yes, just for the "stage", I made a rule in the contact field and with this quick edit does not work the rule, it only works with the default edit.

              Comment

              • Thiago
                Member
                • Jul 2017
                • 60

                #8

                Comment


                • tanya
                  tanya commented
                  Editing a comment
                  You made field required, not readonly
              • Thiago
                Member
                • Jul 2017
                • 60

                #9
                yes, I want the contact field to be filled if the value is "ganha" in the stage. If editing is fast, the system lets fill the stage, but if editing is complete, the system requires the completion of the contacts field.

                Comment

                • Thiago
                  Member
                  • Jul 2017
                  • 60

                  #10
                  And the command did not work.
                  "inlineEditDisabled":true,

                  Comment


                  • tanya
                    tanya commented
                    Editing a comment
                    Check if file is json valid. Clear Cache or Rebuild in Administration. Refresh page. It works, I checked (tell me your version, by the way)
                • tanya
                  Senior Member
                  • Jun 2014
                  • 4308

                  #11
                  The easiest way is disable inline (fast) edit for Opportunities at all. Don't forget to clear cache

                  Comment

                  • Thiago
                    Member
                    • Jul 2017
                    • 60

                    #12
                    I cleared the cache, but unfortunately it did not work.

                    Thanks!

                    Comment

                    • tanya
                      Senior Member
                      • Jun 2014
                      • 4308

                      #13
                      I reproduced you example with Dynamic Logic as well. After Clear Cache in Administration and refreshing the page (you could also Clear Local Cache in navigator) it works.

                      Comment

                      • Thiago
                        Member
                        • Jul 2017
                        • 60

                        #14
                        Okay, do it again.

                        Comment

                        • Thiago
                          Member
                          • Jul 2017
                          • 60

                          #15
                          I made it inside my VM to be sure, and still nothing.

                          Comment


                          • tanya
                            tanya commented
                            Editing a comment
                            you lost comma, json is not valid
                        Working...