If I'm creating a Sales Order search with mainline...
# suitescript
r
If I'm creating a Sales Order search with mainline = F, is there a way to get the line item description as a column? Is it as simple as a join?
Using the following
Copy code
search.createColumn({
                        name: 'description',
                        join: 'item',
                        label: 'S Reference'
                    })
Gives me the name of the Item on that line rather than the description - can someone point out where I'm being a potato?
Nvm fixed - solution for those who may come across a similar issue. I had to simply create a column for the 'memo' field.
n
I suspect that only works for you because you have the item description stored in the memo field...
r
I don't 🙂 - it returns all line items (which is what I wanted) with the description from the search result.
n
How does using the memo field help you get the description, these are 2 different fields 🧐
r
Yes, they are but alas it works. I haven't read too much into it yet
n
Oh, Memo is just your column label, not necessarily the field.
r
Nope, it's the field name too.
n
OK. 🧩