PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
embedded query in table control
embedded query in table control
Started by Ravi, Oct., 02 2018 7:25 PM - 1 reply
Connect yourself…
Ravi
#1
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
Report
0
0
Jose Antonio Garrido
#2
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.
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text