/
dependencyFilter

dependencyFilter

The dependencyFilter is a string property tag that can be added to your model so that the model may automatically retain any record/component/resource needed for the model to run. 

The dependencyFilter's value will search within the graphic and when the model is saved, the dependencyFilter will bring those dependency's with it. 

This is typically done after adding in a Remote Asset or resource library.  

Remote Resource Example:

  1. Add your remote resource into the graphic page
        

    2. Added resources within a graphic can be searched by opening the query control window and searching for "script"

          

   3. Here we've selected our model and added a string tag called "dependencyFilter" and we set the value to "script".

       So when the model is saved, it will also include any "script" available within the time of "saving" the model. 

        


Query Tips

Here are some filter tips: 

script - finds javaScript files within the graphic

style -  finds css files within the graphic

src - this is something that is common in most external script/library files

fileRef - gets added to files that are added into graphic builder/fin stack



Related content

GB JavaScript Tips
GB JavaScript Tips
More like this
Update Bindings
Update Bindings
Read with this
GB FIN Model
GB FIN Model
More like this
GB Components
GB Components
Read with this
Add Remote Assets
Add Remote Assets
More like this
GB Classes
GB Classes
Read with this