dw_1_windowsetting

For window with window settings:

Here you've the possibility to change all properties by jbscript

In this event the object "ws" is available and this present the datawindow - window settings

 

Object windowsettings

 

This object is only available in the windowsetting event

jbscript-logo-small

 

// Change window settings for dw_1

global function dw_1_windowsetting
#jbs
// ws = instance of windowSettings
end global

 

this object allow to manipulate the window settings

 

ws.set(ColumName as String);
ws.PropertyName=Property as Any;

 

if you want to change the order

ws.sort=x;
ws.sort();

 

Properties

Member

Read

Write

Description

title


x

define title of column

color


x


expression


x

Formula

width


x


visible


x

define visible true/false

format


x


alignment


x


reference


x

yellow arrow

tooltip


x


dropdown


x


summarytype


x


edit


x

field editable? Note: make only field editable, but don't insert logik for update

italic


x


bold


x


sort


x

change sort. At end you must define the sort with ws.sort();

 

Example: External Production

Insert fields for argentina region.

global function dw_1_windowsetting
#jbs
ws.set("userfield1");
ws.visible=true;
ws.title="Letter";
ws.edit=true;
ws.sort=13;
ws.dropdown="A=0,B=1,C=2,E=3,M=4,R=5,T=6,X=7,-=8";
 
 
ws.set("userfield2");
ws.visible=true;
ws.title="Folio From";
ws.edit=true;
ws.sort=14;
 
ws.set("userfield3");
ws.visible=true;
ws.title="Folio To";
ws.edit=true;
ws.sort=15;
 
ws.sort();
 
end global