[EXTERNAL]Icon values in a droplist

Brian A O'Sullivan brian.a.o-sullivan at axalta.com
Tue Mar 1 18:50:19 UTC 2022


Hi Martin,
I have no experience working with js remote forms. The online help info on the style() function mentions some special JavaScript text-escape-codes so the function itself must work, but you may need to make some adjustments for referring to the icon identifiers.

Best regards,

Brian A. O'Sullivan


Sensitivity: Business Internal

-----Original Message-----
From: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> On Behalf Of Martin Obongita via omnisdev-en
Sent: Monday, February 14, 2022 10:48 AM
To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Cc: Martin Obongita <martin.obongita at yahoo.com>
Subject: RE: [EXTERNAL]Icon values in a droplist

Thanks Brian.Will this work in a js remote form?
Rgds, Martin O.

Sent from Yahoo Mail on Android

  On Mon, 14 Feb 2022 at 18:30, Brian A O'Sullivan via omnisdev-en<omnisdev-en at lists.omnis-dev.com> wrote:   Hi Martin,
I've used two different approaches over the years:

1. store the iconid as an integer in the list, and set the display field calculation to convert it to the icon using style():
        Do myList.$cols.$add('iconid',kInteger,k32bitint)
        Calculate myList.iconid as 651+k32x32  ;; add the k-constant for icon-size to the iconid

Then in the list display, set the $calculation for the display column to include style(kEscBmp,myList.iconid)

2. store the icon as styled-text directly in the list:
        Do myList.$cols.$add('iconTxt',kCharacter,kSimplechar,100)
        Calculate myList.iconTxt as style(kEscBmp,651+k32x32)

Then in the list display, set the $calculation to refer to myList.iconTxt

Best regards,

Brian A. O'Sullivan
Axalta Coating Systems, Glen Mills, PA; USA


Sensitivity: Business Internal

-----Original Message-----
From: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> On Behalf Of Martin Obongita via omnisdev-en
Sent: Sunday, February 13, 2022 2:43 PM
To: omnisdev-en at lists.omnis-dev.com
Cc: Martin Obongita <martin.obongita at yahoo.com>
Subject: [EXTERNAL]Icon values in a droplist

Hi Listers,I wish to display icons in a droplist for end user to select.How do I define a variable list to include a column to store the value of icons?What would be the column data type?What would be the value to store the icons?
Kind regards, Martin O.
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com


This communication is for use by the intended recipient and contains information that may be Privileged, confidential or copyrighted under applicable law. If you are not the intended recipient, you are hereby formally notified that any use, copying or distribution of this e-mail, in whole or in part, is strictly prohibited. Please notify the sender by return e-mail and delete this e-mail from your system. Unless explicitly and conspicuously designated as "E-Contract Intended", this e-mail does not constitute a contract offer, a contract amendment, or an acceptance of a contract offer. This e-mail does not constitute a consent to the use of sender's contact information for direct marketing purposes or for transfers of data to third parties. For more information regarding how we collect and use your personal data, and any related rights you may have, please review our Privacy Statement. <https://www.axalta.com/corporate/en_US/privacy.html>
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com


This communication is for use by the intended recipient and contains information that may be Privileged, confidential or copyrighted under applicable law. If you are not the intended recipient, you are hereby formally notified that any use, copying or distribution of this e-mail, in whole or in part, is strictly prohibited. Please notify the sender by return e-mail and delete this e-mail from your system. Unless explicitly and conspicuously designated as "E-Contract Intended", this e-mail does not constitute a contract offer, a contract amendment, or an acceptance of a contract offer. This e-mail does not constitute a consent to the use of sender's contact information for direct marketing purposes or for transfers of data to third parties. For more information regarding how we collect and use your personal data, and any related rights you may have, please review our Privacy Statement. <https://www.axalta.com/corporate/en_US/privacy.html>


More information about the omnisdev-en mailing list