Michal Riha

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 49 total)
  • Author
    Posts
  • Michal Riha
    Participant

      Hi Alexander,
      works perfect! Thanks
      Michal

      in reply to: Multivalue #12411
      Michal Riha
      Participant

        Hi Alexander,

        thanks a lot, vLookupPresetFromUrlDone works fine!

        Ad peoplepicker – no, I do not use ac plugin on peoplepicker field,
        some people has multiple entries but some has only one entry.
        In any case – peoplepicker is not important for me now, I will not use it. Thanks.

        Michal

        Michal Riha
        Participant

          Hi Alexander,

          any success?

          Thanks

          Michal

          in reply to: Multivalue #12352
          Michal Riha
          Participant

            Adds to the previous post:

            behaviour of prefilled fields depends on the field type and if vLookup new child is opened to popup or not.

            See attachement:
            Autocomplete multivalue field – opened to popup: OK
            Autocomplete multivalue field – opened to same window: NOK (not recognized as keywords)
            User or Group field – opened to popup: NOK (multiple entried matched..)
            User or Group field – opened to same window: OK

            Is it possible to fix it?

            Thanks

            Michal

            in reply to: Multivalue #12350
            Michal Riha
            Participant

              Hi Alexander,

              after one week testing – multiselect works perfect.

              We are encountered only one issue: When prefill autocomplete field (we use copy from parent (vlookup) to child item) – it is prefilled as item1; item2; item3 and it is not possible to work with this field – not possible to add new keyword because of “item1; item2; item3” – no items match your search…
              Is it possible to run some javascript “refresh” this prefilled autocomplete field – to avoid the need to select every keyword from “dropdown”?

              Michal

              in reply to: Side-by-side – shading odd columns #12348
              Michal Riha
              Participant

                Hi Alexander,

                thanks, it works (for every “table” cell) I suppose that shade odd colums must be done via Field CSS..

                Michal

                in reply to: Side-by-side – shading odd columns #12265
                Michal Riha
                Participant

                  Hi Alexander,

                  is there any simple way how to do it in display form?
                  I consider that there is only one possibility – use field CSS (for each individual field)…

                  The aim is to show display form in the same visual style as edit form = like “form” – values are in a frame (like in screenshot attached).

                  Michal

                  Michal Riha
                  Participant

                    Hi Alexander,
                    automatically create folder would be nice, but it is not critical (I can create folders before manually).

                    I am using onprem 2013 (foundation).

                    Michal

                    Michal Riha
                    Participant

                      I solved it. For child document library – delete document. It is not possible delete via item ID but you need exact document url.
                      Here it is – JS in textarea:

                      
                      
                      function init_delete_vLookuChild(a,item){
                      	return "<span style='cursor:pointer' onclick='deleteItem2(\""+ item.get_item('FileDirRef') + "/"+ item.get_item('FileLeafRef') + "\")'>Smazat</span>";
                      }
                      
                      function deleteItem2(URL,fin){
                      	var r = confirm("Smazat přílohu:" + URL);
                      	if (r == false) return;
                      	var clientContext;
                      	var oWebsite;
                      	var fileUrl=URL;
                      	clientContext = new SP.ClientContext.get_current();
                      	oWebsite = clientContext.get_web();
                      	clientContext.load(oWebsite);
                      	clientContext.executeQueryAsync(
                      		function () 
                      		{
                      			this.fileToDelete = oWebsite.getFileByServerRelativeUrl(fileUrl);
                      			this.fileToDelete.deleteObject();
                      			clientContext.executeQueryAsync(
                      				Function.createDelegate(this, successHandler),
                      				Function.createDelegate(this, errorHandler)
                      			);
                      			 }, errorHandler);
                      	function successHandler() {
                            $("#vLookupManualRefresh_vLookupOpravneni").click();
                            $("#vLookupManualRefresh_vLookupUcet").click();
                            $("#vLookupManualRefresh_vLookupExistence").click();
                            $("#vLookupManualRefresh_vLookupDramaturgickyPlan").click();
                            $("#vLookupManualRefresh_vLookupLiterarniUkazka").click();
                            $("#vLookupManualRefresh_vLookupPodrobnyPopis").click();
                            $("#vLookupManualRefresh_vLookupZivotopis").click();
                            $("#vLookupManualRefresh_vLookupProspekty").click();
                            $("#vLookupManualRefresh_vLookupPrehledAkci").click();
                            $("#vLookupManualRefresh_vLookupScenar").click();
                            $("#vLookupManualRefresh_vLookupVyrocniZpravy").click();
                      	}
                      	function errorHandler()   {alert("Error"); }
                      }

                      I have several vLookups in parent list and I only do not know, how to call “refresh” for particular vLookup – according to vLookup in which I use delete function. Therefore I call vLookupManualRefresh for all of them.
                      Alexander, do you have some idea, how to refresh only current vLookup?
                      Michal

                      Michal Riha
                      Participant

                        Hi,
                        I have no error, but nothing is deleted.
                        I try change listName “New Task(s)” to my name of document library but with no success.

                        var dRes = spjs.utility.deleteItem({"listName":"New Task(s)","id":id});

                        Michal

                        Michal Riha
                        Participant

                          I suppose that document library folder is only part of url.
                          And when uploading document – just not upload to /DocumentLibrary but to /DocumentLibrary/Folder.. “Folder” is known in advance (it is parent ID)

                          Current solution “Show upload button…” is not usable for me.

                          Is it possible to use this (part of) code?: https://msdn.microsoft.com/en-us/library/office/dn292553.aspx

                          Michal

                          in reply to: Side-by-side – shading odd columns #11987
                          Michal Riha
                          Participant

                            Solved:
                            .sbs_tdIndex_2 input, .sbs_tdIndex_4 input, .sbs_tdIndex_6 input, .sbs_tdIndex_8 input { background-color:#fbe4e5 !important; }

                            Michal

                            in reply to: Error HRESULT: 0x80131904 #7803
                            Michal Riha
                            Participant

                              Behaves same.
                              I try to remove options from vLookup configuration, try to pull back “ID” field in the ViewFields, but the same.
                              When user is SC admin – all works fine.
                              🙁

                              in reply to: Error HRESULT: 0x80131904 #7796
                              Michal Riha
                              Participant

                                Here it is.
                                Thanks
                                Michal

                                in reply to: Manually set the location of the configuration list #7380
                                Michal Riha
                                Participant

                                  Hi Alexander,

                                  thanks for good news!
                                  Workaround works!

                                  Thanks and best regards

                                  Michal

                                Viewing 15 posts - 31 through 45 (of 49 total)