Using WsECL
Hello I’m working on putting the finishing touches on a group project and I have a question about using WsECL. How would I add checkboxes to the WsECL form? I know that using the following code produces a dropdown menu:
STRING3 FruitSelection := 'Fruit' :STORED('Fruit', FORMAT(SELECT('*ALL=ALL,Apple=Apple,Orange=Orange,Banana=Banana')));
But what would I do if I want to create checkboxes instead?
STRING3 FruitSelection := 'Fruit' :STORED('Fruit', FORMAT(SELECT('*ALL=ALL,Apple=Apple,Orange=Orange,Banana=Banana')));
But what would I do if I want to create checkboxes instead?
- khaldrogo
- Posts: 1
- Joined: Tue Mar 23, 2021 3:15 am
If you use the stored type of BOOLEAN then it results in something similar to a check box.
Normal HTML checkboxes don't allow for using the default value for the query... so WsECL generates a tri state input providing choices of "true/false/default".
If you really want you can completely provide your own html form that calls back into the query. The html and other resources are added by using a manifest file with the same name as your ECL file. Here's a really old example:
https://github.com/hpcc-systems/ecl-sam ... olumnChart
- Code: Select all
BOOLEAN myoption := false : STORED('myoption');
Normal HTML checkboxes don't allow for using the default value for the query... so WsECL generates a tri state input providing choices of "true/false/default".
If you really want you can completely provide your own html form that calls back into the query. The html and other resources are added by using a manifest file with the same name as your ECL file. Here's a really old example:
https://github.com/hpcc-systems/ecl-sam ... olumnChart
- anthony.fishbeck
- Posts: 61
- Joined: Wed Jan 30, 2013 10:18 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest