Wrap character fields using script

4 posts / 0 new
Last post
mohamed
Offline
Joined: 07/27/2015 - 03:45
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's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

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
Offline
Joined: 07/09/2017 - 05:58

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's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57

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.