Datagrid columnnames and widths

JR Wright jr_wright at directline-tech.com
Wed Jun 8 12:19:32 EDT 2016


Bob -

There are many notation calls in the Java Script that require the method be
run on the client side to obtain the properties of the object.

Instead of using $construct, you should use $init and make it a client side
method.  If what you are trying to do is not supported on client side
method, you can then call a Server Side Method with a "Do method" to
complete you process.  

$init (client side)
  Do iColumnWidths.$assign($cinst.$objs.DATA_GRID.$::columnwidths)
  Do iColumnNames.$assign($cinst.$objs.DATA_GRID. $columnnames)
  Do method $ServerSideDoStuff


---------------------------------
JR Wright, CTO
DirectLine Technologies, Inc.
https://directline-tech.com
1-209-491-2020 ext. 6312

-----Original Message-----
From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf
Of bob at maxolution.nl
Sent: Wednesday, June 08, 2016 8:12 AM
To: OmnisDev List -
Subject: Datagrid columnnames and widths


Hi all,

In 'FAT' client I can get and set the values of the $columnnames and
$columnwidths of a (Headed) List.

In a JavaScript form i can get in the event evColumnsResized of a datagrid a
parameter pColumnWidths width the new values.
However i want to fetch the current widths of the columns when the window is
opened.
Where Calculate lColWidths as $cwind.$objs.ListName.$columnwidths in FAT
client provide the widths of the columns, is this not happening in
JavaScript Forms. This is also with the column names.
The error message is that the notation is not supported.

I tried it several ways in a method in the datagrid with $cobj.$columnwidths
or $cfield.$columnwidths also with () after the function, but always the
message not supported.
Also from outside the object with
$cinst.$objs.datagridname.$columnwidths() i get a notation error.

Does anyone knows the way to get the columnwidths and columnnames of a
datagrid or is it simply not possible?

Thanks,

Bob

_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com




NOTE: This email message and any attachments are for the sole use of the intended
recipient(s) and may contain confidential and/or privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited. If you are
not the intended recipient, please contact the sender by replying to this email,
and destroy all copies of the original message.




More information about the omnisdev-en mailing list