O$ $sendall for complex grid

Paul Mulroney pmulroney at logicaldevelopments.com.au
Mon Jun 6 02:59:30 UTC 2022

Hi $all,

I have a complex grid, and I want to show an icon on certain lines and not others.

I have a test window that has this code in the $construct:

Do ilData.$define(ibSelected,inStatus,isText)
Do ilData.$add(kFalse,1,'Line 1')
Do ilData.$add(kFalse,2,'Line 2')
Do ilData.$add(kTrue,0,'Line 3')
Do ilData.$add(kTrue,0,'Line 4')

I want to do something like this, to set the icon based on the status.  If the status is zero, don't show an icon.  If it's 1, show a warning, if it's 2 show a stop sign.   However, this doesn't work:

Do $cwind.$objs.ilData.$sendall($ref.$objs.btnIcon.$iconid.$assign(pick($sendallref.inStatus,0,1117+k16x16,1152+k16x16)))

This will set the icon to a warning, but for all lines.  I can't figure out how to set it for specific lines:

Do $cwind.$objs.ilData.$objs.$sendall($sendallref.$iconid.$assign(1117+k16x16),$ref.$objtype=kPushbutton)

Any help much appreciated!


A man rushed into the doctor’s office and shouted, “Doctor! I think I’m shrinking!”
The doctor calmly responded, “Now, settle down. You’ll just have to be a little patient.”
Paul W. Mulroney                                            We Don't Do Simple Pty Ltd 
pmulroney at logicaldevelopments.com.au       Trading as Logical Developments
www.logicaldevelopments.com.au                   ACN 161 009 374 
Ph: +61 8 9458 3889                                       86 Coolgardie Street
                                                                         BENTLEY  WA  6102

More information about the omnisdev-en mailing list