Advanced Lookup Options

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
carmina
Posts: 3
Joined: 2015-11-23 15:42

Advanced Lookup Options

Post by carmina » 2015-11-26 02:14

I'm not sure if this is a known bug but the SQL query doesn't works in the Advanced Lookup Options after I modify it.

I always run my queries in the SQL editor to make sure I don't have a syntax error
but even when my sql statement is valid and returns a data set in the SQL Admin tool,
I can't get it to work in app gini.

I don't get any errors or warnings when I generate the project but
In the web page the drop down , it says "Searching" but never returns anything.

For example
this is my modified query

SELECT `challenge_activity`.`id`, `challenge_activity`.`activityDate` FROM `challenge_activity` LEFT JOIN `challenge` as challenge1 ON `challenge1`.`challenge_id`=`challenge_activity`.`challengeID`
WHERE `challenge_activity`.`activityDate`= CURDATE() (this is the only thing I added to the original query)
ORDER BY 2

And the below this is what I get. Anybody else having this issue?

Thanks
Carmina
Attachments
dropdown-error.jpg
dropdown-error.jpg (16.52 KiB) Viewed 3049 times

Bertv
Veteran Member
Posts: 65
Joined: 2013-12-11 15:59

Re: Advanced Lookup Options

Post by Bertv » 2015-11-27 07:49

Hi,
I had the same problem. The reason is a linefeed or cr in the code. All code must be on one row.
Bert
I am using Appgini 5.75

carmina
Posts: 3
Joined: 2015-11-23 15:42

Re: Advanced Lookup Options

Post by carmina » 2015-11-27 14:17

Thank you so much Bert! Problem solved!

Carmina

Post Reply