- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm working on a project with a lot of data in it (3D and Excel)
I manage to extract and convert all the Excel information as metadata witch is in my opinion the best way to reuse or update them on the fly.
I create basic functions that look inside my metadata to extract possibilities like :
Country gives access to specific version:
Version gives access to UI depending on selected country
UI gives access to function depending on country and version
For a POC I display the resulted lists in multiple front plate and it works great, but the text is not clickable to launch a variant set.
Now I need to set a HTML interface and past these list as button.
I tried to use the interface creation that Simon Nigel create, but the problem is that the interface will be recreate every time a variable change.
So I create a static interface with all my possibilities, but I'm not able to send my list in it to show or hide button.
Is there a way to send info from VRED to a web interface in a Frontplate to show hide <li>tag in my HTML interface ?
I will probably need a java script function for that but the main problem for now is to get the information from VRED.
Here is my HTML file :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<style>
</style>
</head>
<body>
<div class="intLeft">
<div class="col Titre">
<h1>MY<br>CONFIGURATOR</h1>
</div>
<div class="col Configurator">
<div class="container">
<ul>
<li class="dropdown">
<a href="#" data-toggle="dropdown">COUNTRIES<i class="icon-arrow"></i></a>
<ul class="dropdown-menu" id="Countries">
<li><button class="button country" value="Country1" onclick="playVSetSimple(this.value)">Country1</button></li>
<li><button class="button country" value="Country2" onclick="playVSetSimple(this.value)">Country2</button></li>
<li><button class="button country" value="Country3" onclick="playVSetSimple(this.value)">Country3</button></li>
<li><button class="button country" value="Country4" onclick="playVSetSimple(this.value)">Country4</button></li>
<li><button class="button country" value="Country5" onclick="playVSetSimple(this.value)">Country5</button></li>
</ul>
</li>
<li class="dropdown">
<a href="#" data-toggle="dropdown">VERSIONS<i class="icon-arrow"></i></a>
<ul class="dropdown-menu" id="Tranches">
<li><button class="button tranche" value="V1" onclick="playVSetSimple(this.value)">V1</button></li>
<li><button class="button tranche" value="V2" onclick="playVSetSimple(this.value)">V2</button></li>
<li><button class="button tranche" value="V3" onclick="playVSetSimple(this.value)">V3</button></li>
<li><button class="button tranche" value="V4" onclick="playVSetSimple(this.value)">V4</button></li>
<li><button class="button tranche" value="V5" onclick="playVSetSimple(this.value)">V5</button></li>
</ul>
</li>
<li class="dropdown">
<a href="#" data-toggle="dropdown">UI<i class="icon-arrow"></i></a>
<ul class="dropdown-menu" id="Softwares">
<li><button class="button software" value="UI1" onclick="playVSetSimple(this.value)">UI1</button></li>
<li><button class="button software" value="UI2" onclick="playVSetSimple(this.value)">UI2</button></li>
<li><button class="button software" value="UI3" onclick="playVSetSimple(this.value)">UI3</button></li>
<li><button class="button software" value="UI4" onclick="playVSetSimple(this.value)">UI4</button></li>
<li><button class="button software" value="UI5" onclick="playVSetSimple(this.value)">UI5</button></li>
<li><button class="button software" value="UI6" onclick="playVSetSimple(this.value)">UI6</button></li>
</ul>
</li>
<li class="dropdown">
<a href="#" data-toggle="dropdown">FUNCTIONS<i class="icon-arrow"></i></a>
<ul class="dropdown-menu" id="Capabilities">
<li><button class="button capability" value="F1" onclick="playVSetSimple(this.value)">F1</button></li>
<li><button class="button capability" value="F2" onclick="playVSetSimple(this.value)">F2</button></li>
<li><button class="button capability" value="F3" onclick="playVSetSimple(this.value)">F3</button></li>
<li><button class="button capability" value="F4" onclick="playVSetSimple(this.value)">F4</button></li>
<li><button class="button capability" value="F5" onclick="playVSetSimple(this.value)">F5</button></li>
<li><button class="button capability" value="F6" onclick="playVSetSimple(this.value)">F6</button></li>
<li><button class="button capability" value="F7" onclick="playVSetSimple(this.value)">F7</button></li>
<li><button class="button capability" value="F8" onclick="playVSetSimple(this.value)">F8</button></li>
<li><button class="button capability" value="F9" onclick="playVSetSimple(this.value)">F9</button></li>
<li><button class="button capability" value="F10" onclick="playVSetSimple(this.value)">F10</button></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<script>
function playVSetSimple(vset){
var vsetString = `selectVariantSet("${vset}")`;
vred.executePython(vsetString);
};
</script>
</body>
</html>
Thanks for any solution or hint
Guillaume
Solved! Go to Solution.