Summary

This script uses the “substr” command to pull the first 3 characters of the tool (site) and assigns it to the site  question. In this case, the first 3 characters will be the site number. That is how the sites are named in Trial Manager. 


Script

<script scriptId="set-site">
    <body>
        <s:assign>
            <s:question path="/context.site"/>
            <s:substr>
                <s:toolName/>
                <s:number value="0"/>
                <s:number value="3"/>
            </s:substr>
        </s:assign>
    </body>
    <target typeId="site" when="preprocess" shouldReconcile='true'/>
</script>



Need more help?

Please visit the Fountayn Contact Information page.