Custom list / custom queries, changes to conditional logic

If you think that something doesn't work in Aware IM post your message here
Post Reply
joben
Posts: 230
Joined: Wed Nov 06, 2019 9:49 pm
Location: Sweden
Contact:

Custom list / custom queries, changes to conditional logic

Post by joben »

We just moved one of our applications from v 8.3 to V 9.
We had some custom queries / custom lists with HTML and conditional logic.
The conditional logic that broke looked similar to this:

Code: Select all

# if(data["ExtraInfo"] != undefined) { #	
    <div>{ExtraInfo}</div>
    # } #

# if(data["ExtraInfo"] == undefined) { #	
    <div>No info</div>
    # } #
It works again after we made this change:

Code: Select all

# if(data["ExtraInfo"] != "") { #	
    <div>{ExtraInfo}</div>
    # } #

# if(data["ExtraInfo"] == "") { #	
    <div>No info</div>
    # } #
Regards, Joakim

Image
Jaymer
Posts: 2454
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Custom list / custom queries, changes to conditional logic

Post by Jaymer »

Thanks, that really sucks.
One more thing I’ve got to update when converting two apps to V9. 🙁
I’ll update this example page:
https://www.awareim.com/forum/viewtopic.php?f=1&t=11009
Last edited by Jaymer on Fri Mar 22, 2024 12:21 pm, edited 1 time in total.
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
joben
Posts: 230
Joined: Wed Nov 06, 2019 9:49 pm
Location: Sweden
Contact:

Re: Custom list / custom queries, changes to conditional logic

Post by joben »

Thanks. I am sure I have used your examples when constructing my first custom queries.
Regards, Joakim

Image
Post Reply