diff --git a/content/feed/support-diagnostics/index.md b/content/feed/support-diagnostics/index.md index 0731b1f..9f6f5dd 100644 --- a/content/feed/support-diagnostics/index.md +++ b/content/feed/support-diagnostics/index.md @@ -64,16 +64,26 @@ Those are the services that run customer code. The viewer's `viewlibs`, `viewtab ## Reading them in a hook -A hook script is `%include`d into the running service, so it shares the service's WORK library and can read the tables directly. A URL parameter by name: +A hook script is `%include`d into the running service, so it shares the service's WORK library and can read the tables directly. Take an embedded editor opened at: + +``` +https://datacontroller.io/#/editor/SASHELP.CLASS?labels=true&embed=va +``` + +`browser_url_vars` then holds a row per parameter - `labels=true` and `embed=va` - and a hook can read either by name: ```sas %let labels=N; +%let embed=N; %if %sysfunc(exist(work.browser_url_vars)) %then %do; proc sql noprint; select value into :labels from work.browser_url_vars where name = 'labels'; + select value into :embed + from work.browser_url_vars + where name = 'embed'; quit; %end; ``` diff --git a/content/feed/support-diagnostics/support-diagnostics.jpeg b/content/feed/support-diagnostics/support-diagnostics.jpeg index 822f5f2..7eaedcf 100644 Binary files a/content/feed/support-diagnostics/support-diagnostics.jpeg and b/content/feed/support-diagnostics/support-diagnostics.jpeg differ