AW: O$ $sendall for complex grid

Mischa mischa at
Mon Jun 6 08:35:35 UTC 2022

Hi Paul,

I have a field method $exceptions for eg. my user list, where individual icons and user types are shown:

Calculate mLine as iUserList.$line
Do iUserList.$sendall(mIconRef.[$sendallref.$line].$text.$assign(style(kEscBmp,iUserList.$iconid+k32x32)))
Do iUserList.$sendall(mLabelRef.[$sendallref.$line].$text.$assign(iUserList.$label(2)))
Do iUserList.$sendall(mSubLineRef.[$sendallref.$line].$text.$assign.[pick(iUserList.UserType,'','Notar','Substitut','Kanzleikraft','Sonstige')])
Calculate iUserList.$line as mLine    

The icons are in text fields using the style function


-----Ursprüngliche Nachricht-----
Von: omnisdev-en <omnisdev-en-bounces at> Im Auftrag von Paul Mulroney via omnisdev-en
Gesendet: Montag, 6. Juni 2022 05:00
An: Omnis-dev list <omnisdev-en at>
Cc: Paul Mulroney <pmulroney at>
Betreff: O$ $sendall for complex grid

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       Trading as Logical Developments                   ACN 161 009 374 
Ph: +61 8 9458 3889                                       86 Coolgardie Street
                                                                         BENTLEY  WA  6102

Manage your list subscriptions at Start a new message -> mailto:omnisdev-en at 

More information about the omnisdev-en mailing list