on 2012 Oct 18 2:02 PM
Dear experts,
In IRPT file. I have selection screen Equipment, Date (Single not in range) and Production Area. after selection, when I click get notification detail, system run SQL query and get all record. In Query filter expression having confusion.
Query Detail is given below:
Table Notification detail
Column All column
In SQL query filter expression:
My table have also Equipment, date and production area columns
Notification detail.equipment = '[param.1]' this does not work
Notification detail.date = '[param.2]' this does not work
Notification detail.area = '[param.3]' this does not work
But when I write:
Notification detail.area = 'Crusher' this work
I want to filter data by combination of two fields, 1st equipment number exist and 2nd notification does not exist.
If Equiment number does not exist, system return --- value in equipment column and same for notification.
Thanks
Best Regards,
Muhammad Ashfaq
Request clarification before answering.
Make sure the P in param.x is capitalized inside your query template.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Muhammad,
Are you doing your query in a Query Template as Fixed Query or as Query mode? If you are having trouble in Query mode, you should try writing the straight SQL syntax query in Fixed Query mode to see where the problem with the query originates.
Regards, Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If your fields are numeric in nature, do not use the single tic marks around [Param.X]. You may also want to check your text to make sure the cases are correct.
Also, if you want to directly script the query, you will need to change the mode to Fixed Query from Query. Otherwise Fixed Query will remain greyed out. Once changed to Fixed Query, Query will become greyed out. You can only use one or the other mode. They can't both be active at the same time.
Regards, Mike
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.