Home › Forums › vLooup for SharePoint › Variables & Callbacks on vLookup Views
Tagged: callbacks, global variables, ListView, vlookup
- This topic has 3 replies, 2 voices, and was last updated 4 years, 1 month ago by
Alexander Bautz.
-
AuthorPosts
-
-
September 28, 2021 at 14:40 #34611
I’m looking to implement my vLookups to a view and I have 3…
- Document library that uses global variables in custom JS to generate the file path
- 2 lists that use the ID field for delete/send email buttons on the forms only
A couple questions I wanted to get your expertise on:
- How or can I use the vLookupIsLoadedCallback function in the list view (script or CEWP) to kick off hiding the ID fields that are used for the buttons on the form? Or do I need to utilize the setTimeOut?
- Since the document library references custom JS variables to create the folder structure what’s the best approach to recreating those variables on the list view or should I also bring in my custom JS file in a CEWP?
Hopefully those all make sense and thank you in advanced!
-
September 29, 2021 at 15:37 #34649
Hi,
The callbacks unfortunately only work in a form – not when used in list views. If you use variables you must include those in a CEWP in the list view.Keep in mind that vLookup in a list view only work in classic view because you cannot add custom code to a modern list view.
Alexander
-
October 4, 2021 at 14:48 #34678
That’s a good point. I ended up hosing it for now.
One-off question – does spjs.dffs.alert have a timeout feature? I was going to do an alert popup that would show up for about 3 seconds and then disappear.
-
October 5, 2021 at 15:46 #34687
Hi,
There is no built in auto-hide, but you can use a timeout like this:var dlgId = spjs.dffs.alert({ "title": "Test dialog", "msg": "Auto-hide after 3 seconds...", "noBtn":true }); setTimeout(function(){ spjs.dffs.closeDlg(dlgId); },3000);Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.