Zaruba.Ivan

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Switching between lookupLists #20772
    Zaruba.Ivan
    Participant

      No, I just “killed” previous version. Maybe It is not absoutely clear, but handling “undefined” in the snippet solved problem. Thank You very much.

      Ivan

      in reply to: Switching between lookupLists #20760
      Zaruba.Ivan
      Participant

        Hi,
        thank You for reply. If I switch from Source A to Source B, It works properly. if I switch from Source B to Source A, there is error: “TypeError: Cannot read property “thisListFields” of undefined”. After pressing OK, cascade is rebuilt. I have two different “Filed_name_of_first_thisListFields_column”.

        Thank You

        Ivan

        Attachments:
        in reply to: Switching between lookupLists #20665
        Zaruba.Ivan
        Participant

          Hi,
          Thank You for reply. I have two rules and if I change field value, it switch between function CCDD_One or CCDD_Two. There is different amount of fields in functions.

          
          
          CCDD_One(); //Default Init CCDD_One
          
          function CCDD_One(){
              spjs.casc.init(
                   {
                   "manualMode":true,
                   "dataSource":"",
                   "lookupList":"listName_List1",
                   "lookupListBaseUrl":"/sites/prj/pmo",
                   "lookupListFields":["field1_List1","field2_List1","field3_List1"],
                   "thisListFields":["field1","field2","field3"],
                   "dropDownDefaultvalue":"",
                   "filter":"",
                   "hideEmptyDropdowns":false,
                   "autoselectSingleOption":true,
                   "clearInvalidSelection":false,
                   "addOwnValue":false,
                   "addOwnValueMouseover":"",
                   "cancelOwnValueMouseover":"",
                   "sideBySide":true,
                   "debug":false,
                   }
              );
          }
          
          function CCDD_Two(){
              spjs.casc.init(
                   {
                   "manualMode":true,
                   "dataSource":"",
                   "lookupList":"listName_List2",
                   "lookupListBaseUrl":"/sites/prj/pmo",
                   "lookupListFields":["field1_List2","field2_List2","field3_List2","field4_List2","field5_List2"],
                   "thisListFields":["field1","field2","field3","field4","field5"],
                   "dropDownDefaultvalue":"",
                   "filter":"",
                   "hideEmptyDropdowns":false,
                   "autoselectSingleOption":true,
                   "clearInvalidSelection":false,
                   "addOwnValue":false,
                   "addOwnValueMouseover":"",
                   "cancelOwnValueMouseover":"",
                   "sideBySide":true,
                   "debug":false,
                   }
              );
          }

          Thank You

          Ivan

          in reply to: "Author" value #20630
          Zaruba.Ivan
          Participant

            Hi,

            You are right. Field {Author} works of Course. Sorry, it was my mistake in email account configuration.

            Sincerelly,

            Ivan

            in reply to: Next and previous item by ID #20628
            Zaruba.Ivan
            Participant

              Hi,
              I have a lot of document libraries, and I need to traverse documents and edit custom fields in EditForms. Can I get GUID of the current list view as variable?

              var res = spjs.utility.queryItems({ "listName": _spPageContextInfo.pageListId, "viewName": "{8E016900-8594-45D0-8837-4AFD952C3375}", "viewFields": ["ID"] });

              Thank You.

              Ivan

              in reply to: "Author" value #20610
              Zaruba.Ivan
              Participant

                Hi,

                is it possible to get current item author email? I would like to use it as an email recipient in e-mail template for use with DFFS rule.

                Thank You,

                Ivan

                in reply to: Display a calculated column display value in edit form? #17993
                Zaruba.Ivan
                Participant

                  Hi,

                  Thank You very much. You are right, wrapping the function call helped.

                  var qRes = spjs.utility.getItemByID(
                  	{
                  		"listName":_spPageContextInfo.pageListId,
                  		"id":spjs.dffs.data.thisItemID,
                  		"viewFields":["TestFormula"]
                  	}
                  );
                  
                  setTimeout(function(){
                   $("span.promenna").html(qRes["TestFormula"].split(";#")[1]);
                  },500);

                  Ivan

                  • This reply was modified 7 years, 2 months ago by Zaruba.Ivan.
                  in reply to: Display a calculated column display value in edit form? #17969
                  Zaruba.Ivan
                  Participant

                    Hi Alexander,
                    your code worked perfectly in previous version of DFFS, but not in my current version DFFS Backend v4.4.3.10|CSS version: 4.37 / |spjs-utility version: 1.309.

                    html:

                    <h2>Value: <span class="promenna" /></h2>

                    Custom JS:

                    var qRes = spjs.utility.getItemByID(
                    	{
                    		"listName":_spPageContextInfo.pageListId,
                    		"id":spjs.dffs.data.thisItemID,
                    		"viewFields":["PodilEUx"]
                    	}
                    );
                    $("span.promenna").html(qRes["PodilEUx"].split(";#")[1]);

                    I have tried replace jQuery instead of $, but no success.

                    Am I wrong? Any idea?

                    Thank You,
                    Ivan

                    • This reply was modified 7 years, 2 months ago by Zaruba.Ivan.
                    in reply to: Next and previous item by ID #11807
                    Zaruba.Ivan
                    Participant

                      Hi Alexander,

                      excellent work, that’s what I (and users of course) dreamed about.

                      Thank you!

                      Ivan

                      Zaruba.Ivan
                      Participant

                        Hi,
                        can You help me please, how to get more calculated fields (numbers) and format them to keep only two decimals?
                        Is it possible to add extra button to reload Editform with recalculated fields?

                        Thanks Ivan

                        in reply to: DFFS sum multiple fields in a totals field #11080
                        Zaruba.Ivan
                        Participant

                          Hi Alexander,
                          thank You, but there is a still NaN error.
                          It works when I replaced lines that look up the value – like this:

                          a = Number(parseFloat($("#dffs_NumField1 input").val().replace(/\s/g, "").replace(",", ".")));
                          b = Number(parseFloat($("#dffs_NumField2 input").val().replace(/\s/g, "").replace(",", ".")));
                          c = Number(parseFloat($("#dffs_NumField3 input").val().replace(/\s/g, "").replace(",", ".")));

                          Ivan

                          • This reply was modified 8 years, 7 months ago by Zaruba.Ivan.
                          • This reply was modified 8 years, 7 months ago by Zaruba.Ivan.
                          in reply to: DFFS sum multiple fields in a totals field #11058
                          Zaruba.Ivan
                          Participant

                            Hi Alexander,

                            excellent code. Thank You. It helped me a lot. How can I avoid error alert in EditForm, when it reloads original values with thousands separator?

                            Ivan Zaruba

                          Viewing 12 posts - 1 through 12 (of 12 total)