PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → embedded query in table control
embedded query in table control
Started by Ravi, Oct., 02 2018 7:25 PM - 1 reply
Posted on October, 02 2018 - 7:25 PM
Hi

I am using a table control to display selected records from a database. The database is used to record visitor entries from different buildings. Each station will see only those records that pertain to the particular building. I am trying to use an embedded query in the table control content section. The building is stored in a global variable gsBuildingQual. The command becomes like this:
SELECT
visitors.VisitorsID AS VisitorsID,
visitors.vis_date AS vis_date,
visitors.vis_title AS vis_title,
visitors.vis_lname AS vis_lname,
visitors.vis_fname AS vis_fname,
visitors.vis_idno AS vis_idno,
visitors.vis_company AS vis_company,
visitors.vis_telno AS vis_telno,
visitors.vis_floor AS vis_floor,
visitors.vis_purpose AS vis_purpose,
visitors.vis_remarks AS vis_remarks,
visitors.vis_timein AS vis_timein,
visitors.vis_timeout AS vis_timeout,
visitors.vis_building AS vis_building
FROM
visitors
WHERE
visitors.vis_building = 'gsbuildingqual'

It is not working. Tried as param also {gsbuildingqual} .
Please help. Thanks
Posted on October, 09 2018 - 10:53 AM
You should simplify the problem.

The first thing you should test it's if the query does works. In the query editor itself.

If it doesn't work then you should simplify it, until it does.

Or maybe it does the query work, but table isn't showing their content? Please tell us...

Regards,
José Antonio.