In the past, I've created a simple component to call Web Port JavaScript to move the "slider" dividing the left hand side (form) and right hand side (results) automatically when a protocol is run. This enables one to use the entire available display area for the contents in either the left or right hand side.
For those of you who have installed or upgraded to Pipeline Pilot 2024, you will notice that the look and feel of Web Port has changed somewhat as has the JavaScript.
I have attached a protocol containing a component to move the slider all the way to the right or left of the main display area in Pipeline Pilot 2024. This protocol can be saved somewhere under:
Protocols/Web Services
in the Pipeline Pilot Professional Client if you would like a trivial example of the functionality in Web Port. Also, if you would like to save the component for later reuse, right-click on the "Move Web Port Slider 2024" component and choose "Save As..." to save it to your XMLDB.
Here are some details:
- as the name would suggest, the component in "Move Web Port Slider 2024.zip" will only work with Pipeline Pilot 2024.
- the component can be safely used in protocols run form the client, without throwing either a Pipeline Pilot or JavaScript error.
- the most common use case I've encountered is to move the slider all the way to the left once the form is submitted, so that the results take up all the available space. This would mean that if you have both a Form and Work Protocol, you want to use the component in the Work protocol.
- Another possibility would be to use the component in both the Form and Work protocols, moving the slider all the way to right and left in those protocols, respectively. This way, the form content would use the entire display area when it is run, then the results will do the same when they are returned.
PS. I am also attaching a version that works in pre-2024 versions of Pipeline Pilot in a separate ZIP file. In this case, the protocol contains only the component that moves the slider.
I hope you'll find this useful!
Craig
