<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Scripts_contexts on</title><link>https://platform-docs.slingr.io/scripts_context/</link><description>Recent content in Scripts_contexts on</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://platform-docs.slingr.io/scripts_context/index.xml" rel="self" type="application/rss+xml"/><item><title/><link>https://platform-docs.slingr.io/scripts_context/action_after_executed_script/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://platform-docs.slingr.io/scripts_context/action_after_executed_script/</guid><description>Parameters Name Type Description record sys.data.Record The record where the action will be executed.
This variable is only available if the type of the action is One record or if you are appliying the action to many records.
query sys.data.Query A query object with filters to find all records afected by this action. Only for type Many records. action sys.data.Action Action object to access parameters of the action. job sys.jobs.Job This is the job object, which is only available when the action is executed in background.</description></item><item><title/><link>https://platform-docs.slingr.io/scripts_context/action_init_script/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://platform-docs.slingr.io/scripts_context/action_init_script/</guid><description>Parameters Name Type Description record sys.data.Record The record where the action will be executed.
This variable is only available if the type of the action is One record or if you are appliying the action to many records.
query sys.data.Query A query object with filters to find all records afected by this action. Only for type Many records. action sys.data.Action This allows access to the parameters of the action. When the action is executed from the UI, changes made here will be reflected in the UI.</description></item><item><title/><link>https://platform-docs.slingr.io/scripts_context/action_precondition_script/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://platform-docs.slingr.io/scripts_context/action_precondition_script/</guid><description>Parameters Name Type Description record sys.data.Record The record where the action will be executed. Returns boolean - true if preconditions are met, false otherwise. Samples //preconditions of the action are met if type is &amp;#39;a&amp;#39; and current user is in group &amp;#39;test&amp;#39; return record.field(&amp;#39;type&amp;#39;).val() == &amp;#39;a&amp;#39; &amp;amp;&amp;amp; sys.context.getCurrentUser().containsGroup(&amp;#39;test&amp;#39;);</description></item><item><title/><link>https://platform-docs.slingr.io/scripts_context/action_script/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://platform-docs.slingr.io/scripts_context/action_script/</guid><description>Parameters Name Type Description record sys.data.Record The record where the action will be executed.
This variable is only available if the type of the action is One record.
oldRecord sys.data.Record The record before linked parameters are merged.
This variable is only available if the type of the action is One record.
query sys.data.Query A query object with filters to find all records afected by this action.
This variable is only available if the type of the action is Many records.</description></item><item><title/><link>https://platform-docs.slingr.io/scripts_context/action_validation_script/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://platform-docs.slingr.io/scripts_context/action_validation_script/</guid><description>Parameters Name Type Description record sys.data.Record The record where the action is executed. You can use this information on your validation rules. This parameter is only available when action type is ONE_RECORD query sys.data.Query A query object with filters to find all records afected by this action. This parameter is only available when action type is MANY_RECORDS action sys.data.Action The action to validate. Returns object[] - You should return an array of errors, something like this:</description></item><item><title/><link>https://platform-docs.slingr.io/scripts_context/action_visible_script/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://platform-docs.slingr.io/scripts_context/action_visible_script/</guid><description>Parameters Name Type Description record sys.data.Record The record where the action will be executed. This variable is only available if the type of the action is One record. Returns boolean - true if conditions are met, false otherwise. Samples //make the action visible if the type is &amp;#39;a&amp;#39; return record.field(&amp;#39;type&amp;#39;).val() == &amp;#39;a&amp;#39;;</description></item><item><title/><link>https://platform-docs.slingr.io/scripts_context/app_settings_init_script/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://platform-docs.slingr.io/scripts_context/app_settings_init_script/</guid><description>Description This is a script that will be executed during start up process and after every clear cache in runtime. It can access all JS API.
Samples //initialize some settings of the app app.settings.init();</description></item><item><title/><link>https://platform-docs.slingr.io/scripts_context/calculated_value_script/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://platform-docs.slingr.io/scripts_context/calculated_value_script/</guid><description>Parameters Name Type Description record sys.data.Record This is the record associated to the operation. If field is inside an entity field, this will be the record that contains the field.
If the field is an action parameter, this will be the record where the action is being executed.
parentField sys.data.Record This variable is only available when this is a field inside a nested field and it is based on the variable record or action (the same rules apply then it is an action parameter or an entity field).</description></item><item><title/><link>https://platform-docs.slingr.io/scripts_context/calendar_view_title_script/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://platform-docs.slingr.io/scripts_context/calendar_view_title_script/</guid><description>Parameters Name Type Description record sys.data.Record The record where the event title is being calculated. Returns string - You should return a string to be used as event title. Samples //builds the title using last name and description return record.field(&amp;#39;lastName&amp;#39;).val() + &amp;#39;: &amp;#39; + record.field(&amp;#39;description&amp;#39;).val();</description></item><item><title/><link>https://platform-docs.slingr.io/scripts_context/cards_view_highlight_script/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://platform-docs.slingr.io/scripts_context/cards_view_highlight_script/</guid><description>Parameters Name Type Description record sys.data.Record The record that the card is representing and that will be evaluated to see if it has to be highlighted. Returns boolean - You should return true if the record has to be highlighted, false otherwise. Samples //the task will be highlighted if it is urgent return record.field(&amp;#39;urgent&amp;#39;).val() == true;</description></item></channel></rss>