Forum Replies Created
-
AuthorPosts
-
September 13, 2024 at 14:52 in reply to: Modern DFFS not loading for some users- ‘listBaseTemplate’ #38090
Hi,
I was able to get the same error when having a list in a web part in a modern sitepage. I’ll look into it and try to figure it out.Alexander
There is most likely a compatibility issue with the old config. If you could email me the form configuration for the form that is not working that would help me identifying the problem.
You can find the config by opening this list (it is hidden from site contents so you must type in the URL):
/sites/your_site/lists/DFFSConfigurationList/
Send me both the FormJSON and the RulesJSON.
You can find my email address in the Contact tab at the top of the page.
Alexander
I found an article online (an old one from 2022 – link) mentioning that different “complex” field types like lookups or managed metadata will stop syncing of that list. Microsoft has most likely changed the functionality since that article, but I assume it might be something like that preventing you from finding the “stop syncing” option.
Alexander
Not sure what that could be. Did you see any errors in the developer tools (F12 > Console)?
Also, does your list load with the “New modern UI” or the “Old modern UI”?
Did you try turning off “Sync” as described in the first post in this thread?
You can email me any screenshots or other information.
Alexander
No problem,
I’ll fix the issue related to lists with content types turned on later tonight. If you only use the Item content type in your list you can turn it off under “List settings > Advance settings > Allow management of content types”.Alexander
Are you sure you have DispForm configured with DFFS for the list? – the title-click only opens DFFS if DFFS is configured.
Please note that it looks like the “Sync” feature must still be turned OFF for the command-set-extension to load – read more here.
Alexander
-
This reply was modified 6 months ago by
Alexander Bautz. Reason: Fixed link
It looks like the “new item” button is different when you have the “Settings > Advance settings > Allow management of content types” turned on.
I’ll look into it and fix it. If you don’t actually use content types you can turn it off to fix the problem.
Alexander
Hi Wayne,
I’m not able to recreate this issue. I have tried both with “single action” button and “double action” where you get a dropdown to select item or folder.Can you give me some more information (and possibly a screenshot)?
Best regards,
AlexanderI have released a new version of the Modern DFFS that should fix the problem with the new Modern UI that Microsoft have pushed on September 4, 2024.
Read more here: https://spjsblog.com/2024/09/04/modern-dffs-v1-0-66-0-has-been-released/
Please let me know how it works out – and let me know if you have any questions.
Best regards,
AlexanderThanks for letting me know. Now that the new UI is rolled out and the command set extension can be properly tested, there are some changes I need to do to make it properly override the out of the box form.
Right click > Edit still works, but click on title and … does not.
I’ll look through it and try to get it fixed later today or tomorrow and release a new version.
Alexander
Hi,
I suspect this is because the user don’t have read access to the SPJS document library where the DFFS code files are located.Alexander
Sorry, I missed your reply. The problem is that you in the “Build query” part queries the child list for items where the field _vLookupParentID is equal to the current items ID, but you are not transferring the ID to the child item in the “Prefill values in child”.
If you want to use the parent items ID to link to the child items you must change this line
From _vLookupID to _vLookupParentID
to
From ID to _vLookupParentID
Alternatively you can change the Build query “Search value” from [currentItem:ID] to [currentItem:_vLookupID]
Alexander
1. To do this you can use the function dffs_vLookup_callback (see this post for instructions). If the field you want to read back to the parent item is not in your vLookup table you can include it in the “Include additional fields for use in customizer functions” dropdown at the bottom of the Build the table tab.
This function will show you all the child items as an array and you can loop through them to get the value you want.
Alternatively you can add a PreSaveAction like this in your child form:
dffs_PreSaveAction = function(){ child_status = getFieldValue("Status"); return true; }
This variable (because it is not defined with var, let or const) will be available in Custom JS in the parent item. You can use the dffs_vLookup_callback function to pick up the variable and write it to a field in the current item.
2. There is no built in support for nested vLookups so that must be done using custom js.
Alexander
Not sure why it did not work when you used a file, but based on the fact that you use the old JSLink installer, I assume you use an older version of DFFS. If you hover over the Enhanced with DFFS link below the form and click the License and version information link you can see the version numbers.
The SP Services license is an OEM license for the core functionality that they deliver. This means you cannot use that license for additional lists that are not part of the package delivered by SP Services.
If you want to use DFFS in additional sites you must purchase a site or site collection license.
Alexander
I have created a test config that you can import into a list. It will show you how to use the custom js and call one of the functions from a HTML section.
Create a new list with only the title field and install DFFS. Go to the Export, import and restore tab and import the config by copy pasting from the attached file.
Please note that the function will obviously not work in this test list because the target fields are missing.
It looks like my attachment plugin suddenly blocks txt files – trying again with a zip.
Alexander
-
This reply was modified 6 months, 3 weeks ago by
Alexander Bautz.
Attachments:
-
This reply was modified 6 months ago by
-
AuthorPosts