Picture Attribute - UNDEFINED in forms - combo-boxes

If you think that something doesn't work in Aware IM post your message here
Post Reply
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Picture Attribute - UNDEFINED in forms - combo-boxes

Post by weblike »

1. First BO
TemplateLanguageBO
Name (plain_text)
Flag (picture_ stored in database)

In Flag field I upload a .png file like this:
gb.png
gb.png (599 Bytes) Viewed 6222 times
2. Second BO
TemplatesOrderBO:
Language_attribute (Type of TemplateLanguageBO -> non peer -> combo-box -> displayed columns "Flag")

Inside the form the combo-box is not displaying the image -> just text "undefined"
Selection_533.png
Selection_533.png (3.15 KiB) Viewed 6222 times

Is there a limitation or a bug ?
The image is displayed ok in Queries.
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Picture Attribute - UNDEFINED in forms - combo-boxes

Post by Jaymer »

George
Check server & tomcat output AND
Open browser Inspector to see any JS errors.

I’m sure this is doable using a Custom Template on the combo box.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Picture Attribute - UNDEFINED in forms - combo-boxes

Post by weblike »

With custom template, indeed the image flag is displayed when the user wants to select(expands the combo-box), but selected choice display "undefined" word(when the combo-box is closed) (seems that displays what is indicated in "Displayed Columns").
Bug || Limitation || I don't know what I'm doing :) ?
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Picture Attribute - UNDEFINED in forms - combo-boxes

Post by aware_support »

"Undefined" is displayed when the value of the attribute you are referring to in the template has no value
Aware IM Support Team
Post Reply