${result.entityname} doesn't work?
# advancedpdf
m
${result.entityname} doesn't work?
s
I'm not getting the value for the Name (entity) field in the search written on Purchjase Order.
Hence, unable to use ${result.entity}
@Michael King: Can i know any alternative for this? Im not getting the vendor name on the PO search results? how else can i access the result (Vendor name) that i obtained by joining Vendor ??
@NElliott: Any suggestions ?
n
You have a saved search, you have an advanced pdf. How are you using the 2 together?
s
@NElliott: In Advanced PDF Template we have an option to set the saved search as input. In the Advanced PDF Template, we access the saved search results to print the data.
n
Ah I see, I've don't think I've ever done that! 🙂
Maybe you could output the entire result so that you can see all available values maybe it's doing something odd with the fieldnames
s
The saved search is written on the Purchase Order, and it doesn't return value for {entity} field(its blank). Hence, used vendor.altname in the search result. But i dont know how to access joins {vendor.altname} in Advanced PDF.
n
As I see it "result" is your main record object so unless you have somehow managed to define "vendor" that wouldn't work. AFAIK. My money would have been on this format - result.<field_that_is_a_record>.<fieldname_form_record> Which you seem to be doing so I'm afraid I don't know without going away and trying to debug it myself. Again, I'd output the whole result to see if it offers any clues.
s
Got that, thank all. I could access the field directly from the Advanced pdf template "Fields"(+). 🙂