Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Browse button as parameter
kratos
Hi,
is there any pluggin that display a browse button on the screen of request parameters?
thanks
Find more posts tagged with
Comments
kclark
If you're making a custom parameter page you could use some code like this<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<script type="text/javascript">
function performClick(node) {
var evt = document.createEvent("MouseEvents");
evt.initEvent("click", true, false);
node.dispatchEvent(evt);
}
</script>
<a href="#" onclick="performClick(document.getElementById('theFile'));">Open file dialog</a>
<input type="file" id="theFile" /></pre>
<br />
Then pass the value of the selected file to a hidden report parameter.
kratos
kclark ok, works fine, but as I access the field "thefile", that is,How can put the file selected in xml
example:
<name="instancemodels"> <property resource/NPTron21_Emision platform
/ [file selected] </ property>
thanks