Mon Oct 25, 2021 12:38 am
Login Register Lost Password? Contact Us


WsECL output

Comments and questions related to the Enterprise Control Language

Wed Oct 24, 2018 12:35 pm Change Time Zone

Hi,

I, with group members working on a LexisNexis project, successfully used WsECL to have a GUI from which user can input data to search. Now, we would like to customize the GUI like having a drop down menu instead of an editText for example. How do we do that please? or How to customize WsECL forms?

Best,
vzeufack
 
Posts: 41
Joined: Tue Sep 25, 2018 3:52 pm

Wed Oct 24, 2018 1:41 pm Change Time Zone

In ECL, you can use the FORMAT option of the STORED workflow service. The example below shows a couple of variations of droplists:

Code: Select all
STRING ch1 := 'ban' : STORED('ch1', FORMAT(SELECT('apple=app,pear,*banana=ban')));
//banana is default
STRING ch2 := '' : STORED('ch2', FORMAT(SELECT(',apple=app,pear,banana=ban')));
//starts empty, no specified default


See http://cdn.hpccsystems.com/releases/CE- ... f#page=380 for more details.

HTH,

Jim
JimD
 
Posts: 157
Joined: Wed May 18, 2011 1:35 pm

Wed Oct 24, 2018 6:31 pm Change Time Zone

Thanks very much Jim!

We are going to dig deeper into that.
Do we still play with the FORMAT function if we want some fields to not be mandatory. We actually have many research filters but the user must fill them all and in capital letters. We instead would Iike some fields to not be mandatory and also not enforcing capital letters. Does the FORMAT function handles that as well?

Best,
vzeufack
 
Posts: 41
Joined: Tue Sep 25, 2018 3:52 pm

Wed Oct 24, 2018 7:29 pm Change Time Zone

It is probably better to handle case sensitivity in your ECL code.

Let the user enter any case they want and convert their input to uppercase in the code using the Std.Str.toUpperCase method in the Standard Library.

See http://cdn.hpccsystems.com/releases/CE- ... f#page=106

HTH,
Jim
JimD
 
Posts: 157
Joined: Wed May 18, 2011 1:35 pm

Wed Oct 24, 2018 8:32 pm Change Time Zone

Thanks very much Jim!
vzeufack
 
Posts: 41
Joined: Tue Sep 25, 2018 3:52 pm


Return to ECL

Who is online

Users browsing this forum: No registered users and 1 guest

cron