Alexander Bautz

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 4,756 total)
  • Author
    Posts
  • in reply to: Item link bug in email action #38548
    Alexander Bautz
    Keymaster

      Hi,
      I have confirmed a bug where “[[item:link_disp]]” and “[[item:link_edit]]” fails to pick up the ID of the item from NewForm and also fails to get the correct PageType. I’ll get it fixed and publish a new version tomorrow.

      You can construct the link manually like this – I think it should work in the current version also:

      https://contoso.sharepoint.com/sites/your_site/_layouts/15/SPListForm.aspx?PageType=4&List=your_list_guid&ID=[[fieldValue:ID]]
      

      Alexander

      Alexander Bautz
      Keymaster

        This should be fixed by adding min-width in the new version v1.1.5.0.

        Alexander

        Alexander Bautz
        Keymaster

          I think I found what caused the bug, but cannot tell exactly why it suddenly started to fail after 15 years – it must be a browser issue I guess.

          Let me know if the new version (DFFS v4.4.5.54 / vLookup v2.2.167) makes any difference.

          Alexander

          in reply to: DFFS Install to Form – “URL is not for this web” #38517
          Alexander Bautz
          Keymaster

            OK, one option is to manually add the Content Editor Web Parts that loads DFFS to the forms (NewForm, DispForm and EditForm). Just open the form and edit the page and insert a CEWP above and one below and refer a working list to copy the Content Link URL. Set both the webparts as Hidden.

            This will “install” DFFS without using the DFFS Installer.

            Alexander

            in reply to: DFFS Install to Form – “URL is not for this web” #38514
            Alexander Bautz
            Keymaster

              Did you try my suggested solution (installing DFFS in the subsite and installing it from there)?

              Alexander

              in reply to: async functions not working #38513
              Alexander Bautz
              Keymaster

                Can you email me the external js-file (or at least an example of a function) so that I can see the relationship between the custom js function and the one loaded in the external file?

                I tried going back to v1.0.50.0, but still could not get a function in Custom JS marked as async to load from a rule, or from a call from an external file.

                Alexander

                in reply to: async functions not working #38510
                Alexander Bautz
                Keymaster

                  Hi,
                  I have tested and I’m not able to call a function marked as async from a rule in v1.0.83.0 either.

                  I’m not sure why you would mark the function as async in the first place – can you explain what you are trying to do?

                  I tested calling a synchronous function that again calls an asynchronous function and it works as expected.

                  I tested using this custom js:

                  async function asyncFn(){
                    console.log("Running async function...");
                    return "This is a message from the async function...";
                  }
                  
                  function syncFn(){
                    console.log("Running sync function...");
                    asyncFn().then(message => {
                      console.log(message);
                    });
                  }
                  

                  I called the “sync” function from a rule and this is the console output:

                  21:56:01.431 VM92546:25 Running sync function...
                  21:56:01.431 VM92546:20 Running async function...
                  21:56:01.435 VM92546:27 this is a message from the async function...
                  

                  Alexander

                  in reply to: Modern DFFS v1.1.4.0 has been released #38501
                  Alexander Bautz
                  Keymaster

                    You must turn it on in the Miscellaneous tab in the DispForm configuration – see screenshots.

                    Alexander

                    in reply to: Modern DFFS v1.1.4.0 has been released #38497
                    Alexander Bautz
                    Keymaster

                      I deleted the one I had in my app catalog and downloaded the latest one from here:

                      It shows as 1.1.4.0 – see attached image.

                      Can you try deleting it from the app catalog and then empty the recycle bin and add it again?

                      Alexander

                      Attachments:
                      in reply to: Bug found in 1.1.3.0 #38494
                      Alexander Bautz
                      Keymaster

                        Hi,
                        I have released a new version that I think should fix the web selector issue in vLookup. Check out the change log here: https://spjsworks.com/changelog/

                        Alexander

                        in reply to: get ID from Lookup #38490
                        Alexander Bautz
                        Keymaster

                          Can you email me some more details / screenshots so I’m sure I fully understand what you mean?

                          Alexander

                          in reply to: PostSaveAction in Modern #38489
                          Alexander Bautz
                          Keymaster

                            Hi,
                            I’ll add this info as a third parameter (boolean) to the function in the next version – so you can use it like this from v1.1.4.0:

                            function dffs_PreSaveAction(exit, autosave, goToEditForm){
                              // Your own code here
                            }
                            

                            I hope to get the new version out later this week.

                            Alexander

                            in reply to: append file name to avoid duplicate uploads #38484
                            Alexander Bautz
                            Keymaster

                              I’m sorry, but I don’t have any method for doing that. The vLookup code uses the default upload control and it is not possible to inject any code there to change the document name.

                              It is possible to add the documents to folders that can have unique names – for example pulled from a field in the current item. See the vLookup config “Add new items to this folder” field.

                              Alexander

                              in reply to: Modern DFFS v1.1.x has been released #38481
                              Alexander Bautz
                              Keymaster

                                My initial approach of using a List view command set extension to override the default form proved to be a bit unreliable and I had no choice but to change it to the officially approved method using a Form customizer extension. The slower loading is unfortunately a side effect of using the official method as it is opening the page /_layouts/15/SPListForm.aspx and renders the form there.

                                I’m continuously looking for ways to improve DFFS, but until Microsoft offers another way to open a custom form in for example a side-panel I cannot really doo anything about it.

                                The link format you used should still work, but for new links you can either use this format:

                                .../Sites/YourSite/Lists/YourList/DispForm.aspx?ID=123
                                

                                Alternatively you can use the format used by SharePoint on this format:

                                .../Sites/YourSite/_layouts/15/SPListForm.aspx?PageType=4&List=[GUID OF YOUR LIST]&ID=[ITEM ID]
                                

                                PageType 4 = DispForm, PageType 6 = EditForm and PageType 8 = NewForm

                                Restoring a previous version requires that you check the “Show link to open the default version history page to enable restoring previous versions” button in the Misc tab – it gives you a link to the Standard SharePoint version log (it’s not possible to restore a version using custom code).

                                Alexander

                                in reply to: DFFS Install to Form – “URL is not for this web” #38479
                                Alexander Bautz
                                Keymaster

                                  Hi,

                                  I’m not able to recreate this issue. Can you email me some screenshots of the URL when you get this error message so I can try to recreate it?

                                  Also include the browser you are using.

                                  Alexander

                                Viewing 15 posts - 16 through 30 (of 4,756 total)