Mon May 23, 2022 2:03 am
Login Register Lost Password? Contact Us

Using WsECL

Comments and questions related to the Enterprise Control Language

Tue Mar 23, 2021 3:18 am Change Time Zone

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?
Posts: 1
Joined: Tue Mar 23, 2021 3:15 am

Tue Mar 23, 2021 8:18 pm Change Time Zone

If you use the stored type of BOOLEAN then it results in something similar to a check box.
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: ... olumnChart
Posts: 61
Joined: Wed Jan 30, 2013 10:18 pm

Return to ECL

Who is online

Users browsing this forum: No registered users and 1 guest