PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
Related table not populating
Related table not populating
Started by James, Jun., 17 2011 3:12 PM - 2 replies
Connect yourself…
James
#1
Registered member
11 messages
Posted on June, 17 2011 - 3:12 PM
I have this query below for a table on a Company Page. It is suppose to populate with a list of related contacts but the table remains empty.
I have verified the query returns a result in a test but fails on the page. I think the table is not loading records because it cannot link to the parameter. I have checked and the parameter pCompanyID has a value.
PROCEDURE PAGE_Company_Home (pCompanyID is int,gsCompanyName is string)
Apart from having the query reference the param is there another step to having the data load into the table?
I was surprised I couldn't find any master & child examples included in the example sites.
Thx. James
QUERY:
SELECT
Contact.FirstName AS FirstName,
Contact.LastName AS LastName,
Contact.Mobile AS Mobile,
Contact.Email AS Email,
Contact_Company.ContactPosition AS ContactPosition,
Contact_Company.ContactID AS ContactID_Co,
Contact_Company.CompanyID AS CompanyID
FROM
Contact,
Contact_Company
WHERE
Contact_Company.ContactID = Contact.ContactID
AND
(
Contact_Company.CompanyID = {pCompanyID}
)
Report
0
0
lk
#2
Posted on June, 22 2011 - 12:32 PM
You could fill the table by programming with TableAddLine.
Report
0
0
James
#3
Registered member
11 messages
Posted on July, 04 2011 - 3:21 PM
As it turns out it was user error. I did not modify the code of the table, I was modifying the code of the page.
Report
0
0
→ Go back to WEBDEV 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