Variables & Callbacks on vLookup Views

Forums vLooup for SharePoint Variables & Callbacks on vLookup Views

Viewing 3 reply threads
  • Author
    Posts
    • #34611
      Jonathan Stamper
      Participant

      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:

      1. 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?
      2. 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!

    • #34649
      Alexander Bautz
      Keymaster

      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

    • #34678
      Jonathan Stamper
      Participant

      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.

    • #34687
      Alexander Bautz
      Keymaster

      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

Viewing 3 reply threads
  • You must be logged in to reply to this topic.