We would like to display the name of person who last changed a quote (QuoteHed.ChangedBy). The table joins seem to work, but the field is empty when the report is previewed. Have done the following:
Created a copy of the base RDD
Linked the custom version of the report to the new RDD
In the new RDD,
a. Added UserFile as a data source
b. Unexcluded the necessary fields:
In the field expression, tried two expressions, neither of which returned a value:
a. =First(Fields!UserFile_Name.Value, āQuoteā)
b. =Fields!UserFile_Name.Value
Hope I am missing something easy. I have followed this process with other tables in other RDDs and it seems to workā¦
One thing that I notices ā this is Erp.UserFile. there is also Ice.UserFile. Is there a difference? That is my next thing to try if I havenāt missed something in the process.
Update ā not really much of one. I submitted it to Epicor and someone at least looked at it before they did the usual āyou can pay us to tell you whatās wrong.ā
The only hint I got was that the case was retitled āQM What expression to use to include added table and fields, custom QuotForm, in Report Builder?ā so I think the problem is in the expression itself. Will keep looking at that.
They also asked for the .xml version and the correct field IS there. Going to see if I can make sense of that.
As Brandon pointed out, your field source is wrong. In the query youāre just calling it āNameā from the T4 table, then in the Fields list youāre asking it to pull a column called āUserFile_Nameā which doesnāt exist.
I would also change the join - company is almost always required to ensure that you pull the correct data, and even in single company to ensure you hit the sql index for performance reasons. In this case you donāt want to link to CurComp, if it is/was multi company you would only get a name back some of the time depending which company the user is working in. So just join on ChnagedBy and DcdUserID.
Thanks so much, both of you. Changing to āNameā in all three places (query, data source and expression) put the actual name on the base Quote form.
We have only one company, so I did not change the join on CurComp.
Still not sure why other fields (QuoteDtl_QuoteComment, for example) do include the table name, but that is a task for another day.
It will include the table name either if itās being pulled through a Linked table, or if the field names clash. Both QuoteHed and QuoteDtl have a QuoteComment field.