How to show array content in dropdown list?
Answers
-
If you want it to grab data you retrieve somewhere, you can create the dropdown menu like this. You can use/adjust this code to make it work for you.const dataNames = [];if (regex) {let match;while ((match = regex.exec(content)) !== null) {dataNames.push(match[1]);}console.log(`🔧 Gevonden ${dataLabel} namen:`, dataNames);} else {console.warn("⚠️ Geen actieve knop gevonden. Kies een knop.");}const optionString = dataNames.length? [...new Set(dataNames)].map(name => `${name}|${name}`).join(";"): `No ${dataLabel || "Data"} found|`;Instance.Select_WeldParametersData.optionItems = optionString;
0
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 359 IRC5
- 77 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 851 RAPID Programming
- 29 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings