Shared variables may be set and retreived using standard getter/setter methods:

<sxh DSQL; gutter: true;>

 if( component.getVariable('result') == '0' ) {        
     component.setVariable('error_msg', 'No dependencies for Resource..');
     component.refresh();
     return;
     }

</sxh>

