How to get value from Custom columns while loading...
# suitescript
n
How to get value from Custom columns while loading saved search. If i want to get value of "trandate" field. How i get it??
b
that is the correct syntax for getting a value from a search result
you probably want to run the search in the ui first to see what it looks like
id also question why you are even bothering to load an existing search, you overwrite every filter and column on it
n
it shows the log of columns that are used in Saved search as a result. But not showing the value of columns which are in the array. If I add "date" in the result tab in a saved search, then it shows in saved search. @battk
b
i can already tell that your search in the ui is not the same as the one in the code
make them match exactly
that means setting the filter in the ui search to Memo is Updated
and changing the columns to Date and entity
n
Thanks @battk
n
Replace
mySearch.column = columnsCust
->
mySearch.columns = columnsCust
or better yet,
mySearch.columns = mySearch.columns.concat(columnsCust)