Hi,
I'm new to running queries. Infor Support pointed me to this place, as they do not support any questions regarding the Report Builder extended queries. I'm running 9.0.8 and just learned about using extended queries in the reports. The powerpoint presentation that Support gave me seems like it's out of date. The instructions tell me to put the extended query in the Report Overrides menu, and still has a button for it. But what I've discovered is that you need to place a function called SQLQUERY in the actual QRP itself with the SELECT statement into a Variable. I hope that is the right way to do it? I would have thought that you would merge the table with the query, but it seems as if it will query this on every line/record that it pulls, so I'd imagine this will be very costly if the query was complicated and the records were large? It's almost like a subreport in Crystal.
So what I seem to have an issue with is linking the PART table with the VMCSTBOM.QRP report. So let's say for this report I wanted the QTY_ON_HAND column, I would do this in the SQLQUERY function:
'SELECT QTY_ON_HAND FROM PART WHERE ID = :SUBORD_PART_ID INTO :QOH'
The problem is that SUBORD_PART_ID seems to have either spaces or tabs in front of it, so it will not be a perfect match. So a part that is 'PART-123' will look like ' PART-123' as the SUBORD_PART_ID. I tried to do a LTRIM(:SUBORD_PART_ID) but that fails.
Does anyone have any suggestions?
Thank you!!