Skip to main content

Wrap character fields using script

Hi,
There is an option to wrap character fields under View. User has to select a column and click on this option to enable it.
I have to show a description field in my output file which is generated through idea script.
Width of this column is 200 and there are some other columns.  While opening the output file, user will not be able to see other columns without moving scroll bar as the width of the column is high. Is there any way to wrap text of this column programmatically?
Thanks,
Shafeer

Brian Element Mon, 10/24/2016 - 07:32

Hi Shafeer,

There is no way to change the field width or look from IDEAScript.  The way to possibly get around this is to create a view to go along with the script and then call the view using this line:

Client.OpenView "LocalEmployee.VW2"

Just redifine the field widths in the view.

Good luck.

Brian

 

Nagaraj Arali Tue, 08/10/2021 - 21:44

Hi Brian,
Hope you are doing good!
Thanks for all your help so far!
I have one more question that I have textbox in dialog and I need to enter numerous numbers in it, Now I need to wrap it up to see all number I entered, currently it's showing one line.
Thanks in advance

Brian Element Sat, 08/14/2021 - 08:52

In reply to by Nagaraj Arali

Hi Nagaraj,

What you have to do is make the text box multiline, allow it to accept enter to go to the new line and have a vertical scroll.  You can do this through the style parameter of the edit box.  In the style the 4 allows for a multiline edit box, the 64 allows you to use the enter key and 4096 allows for vertical scrolling.