List Page / query

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
fauzi.mj
User
Posts: 9

List Page / query

Post by fauzi.mj »

Hi,

Appreciate if someone can help... How to list/show record on PO table based on query like below? and the text 'AKLEH' is from company on Table User.

SELECT *
FROM po
WHERE company LIKE 'AKLEH'

Table Setup is like this.

Table PO
PO_id
Name
Description
Company

Table User
UserID
UserName
UserLevel
Company

Thanks.


danielc
User
Posts: 1601

Post by danielc »

fauzi.mj wrote:
WHERE company LIKE 'AKLEH'

Put your "where clause" into Table Filter. See Table Setup in help file about how to setup table filter.

Also read User_LoggedIn server event in "Server Events and Client Scripts" of the help file on how to save the Company of the user as session variable for use in the table filter.


Post Reply