Amal Vellappillil

Forum Replies Created

Viewing 15 posts - 46 through 60 (of 63 total)
  • Author
    Posts
  • in reply to: Rule validation along with javascript validaton #29655
    Amal Vellappillil
    Participant

      Hi Alex,

      Thank you very much for clarifying the fact about JS in “Run these functions/evaluate these rules” does not have an impact on rule validation.

      I have been using a generic version of what you had mentioned in your post with another list. I just thought about asking this question and see if there was a better way of getting this done. Here is the sample code. Just putting it out there just in case if it is helpful for others.

      
      
      function queueEmailToBeSent(ruleID) {
          var initval, val, rule;
          
          jQspjs.each(spjs.dffs.ruleObj.ruleArr, function (k, v) {
              if (v.friendlyName === ruleID) {
                  rule = v;
              }
          });
      
          if (!jQspjs.isEmptyObject(rule)) {
              var field = rule.triggerField;
              var type = spjs.dffs.fieldtype[field];
      
              initVal = spjs.dffs.beforeProperties[field];
              val = getFieldValue(field);
      
              if (type === "SPFieldBoolean") {
                  if (val !== initVal && val) {
                      spjs.dffs.handleEmailTemplate(ruleID, true);
                  } else {
                      spjs.dffs.handleEmailTemplate(ruleID, false);
                  }
              }
              else
              {
                  if (val !== initVal && !jQspjs.isEmptyObject(val)) {
                      spjs.dffs.handleEmailTemplate(ruleID, true);
                  } else {
                      spjs.dffs.handleEmailTemplate(ruleID, false);
                  }
              }
          }
      }

      As a follow up can you answer these as well?
      1. Is it possible to find out if a rule is validated or not using JS?
      2. Is it possible to manually evaluate a rule from within JS?

      Thank you for all your help.

      in reply to: Validation utility available? #27975
      Amal Vellappillil
      Participant

        Thank you for the confirmation Alex.

        in reply to: Validation utility available? #27950
        Amal Vellappillil
        Participant

          I meant like if all the required fields are filled or if the user entered text in a number field etc (all the out of the box validations).

          in reply to: Inconsistency with Check Out feature #27940
          Amal Vellappillil
          Participant

            Hi Alex,

            I was able to get the issue resolved. Here are my findings.
            When i tried to display the “CheckedOut” field in a tab i was not getting any value for the label or for the actual value for this field. So this got me thinking and i went ahead and deleted the CheckedOut field from the list and then re-added a new column called CheckedOut to the list. From then on the problem seems to have resolved.

            The initial “CheckedOut” field was created using the button in “MISC” tab in DFFS backend. I am not sure why this would have caused a problem.

            Thank you for working on it and assisting with fixing the issue.

            Amal Vellappillil

            in reply to: Inconsistency with Check Out feature #27819
            Amal Vellappillil
            Participant

              Hi Alex,

              It seems like the issue has been resolved with the latest release from my initial testings. I will keep an eye on it and see if it comes up again when more and more users start using this version.

              Thank you for fixing this.

              in reply to: Inconsistency with Check Out feature #27689
              Amal Vellappillil
              Participant

                Awesome, thank you for working on it.

                in reply to: Inconsistency with Check Out feature #27684
                Amal Vellappillil
                Participant

                  Hi Alex,

                  Were you able to look into this?

                  in reply to: Inconsistency with Check Out feature #27656
                  Amal Vellappillil
                  Participant

                    Sounds good and thank you for looking into it.

                    in reply to: Call a custom js function and use the result in email #26919
                    Amal Vellappillil
                    Participant

                      Hi Alexander,

                      Thank you for your reply. I understand it’s possible to create a variable and use it an email template like {var:variableName}. I was just curious if there was a way to bypass that step of defining a variable and setting the variable.

                      Ex:

                      
                      
                      var fullName = "";
                      function setFullName(firstName, lastName) {
                          fullName = firstName + " " + lastName;
                      }
                      
                      function getFullName(firstName, lastName) {
                          return firstName + " " + lastName;
                      }

                      Instead of calling the setFullName function first then using the variable name fullName in the email template, I was wondering if there was a way to just use getFullName itself in email template.

                      Hope I made things clear.

                      in reply to: Not able to send emails #15599
                      Amal Vellappillil
                      Participant

                        Hi Alex, i found what the actual problem is. In order for emails to work properly, the user needs to have at least contribute rights to the site collection or DFFS_Email list depending on the method being used.

                        Hope this limitation can be worked on to make it work without giving users this much permission. Is it possible to have DFFS plugin work under a specific user that way DFFS doesnt need to rely on users permission?

                        in reply to: Access Denied Error #15254
                        Amal Vellappillil
                        Participant

                          Same with me Kasey. I ended up moving the SPJS document library to the site collection and gave view rights to the top level site in the site collection. After that i havent gotten the error message. Whatever we do, it seems like the only solution is to give access to the root site in the site collection to users to not get this error. Not how i wanted to fix the issue, but since there is no other solutions, I have to deal with it for now.

                          This seems like a bug to me since DFFS allows you to install in just an individual site but also in a site collection.

                          Thank you for sharing your experiences in this thread. Hope the team will be able to take a look at this issue and get it resolved.

                          in reply to: Not able to send emails #15241
                          Amal Vellappillil
                          Participant

                            Hi Alex,

                            I tried the first command you recommended and it returned true. I tried enabling the print active tab option and sending an email, but it failed returning back the same error message as i mentioned above. Let me know what i can do next.

                            Thank you,
                            Amal

                            in reply to: Not able to send emails #15209
                            Amal Vellappillil
                            Participant

                              DFFS v4.4.2.5

                              in reply to: Access Denied Error #15198
                              Amal Vellappillil
                              Participant

                                Hi Alex, I see that i am getting a lot of unauthorized request (401 status code) for all of the DFFS files. The user has full control to the SPJS document library and the list. I am very confused at this point.

                                in reply to: Access Denied Error #15194
                                Amal Vellappillil
                                Participant

                                  Hey Alex, is there anything else you recommend? I really need that annoying pop up to go away. Please help.

                                Viewing 15 posts - 46 through 60 (of 63 total)