通过 URL 传递值以从记录中搜索

Passing value to search from a record through URL

我正在尝试向所有采购订单表单添加一个按钮,该按钮打印特定字段以形成基于采购订单 ID 的搜索。为此,我创建了一个搜索,其中包含一个可用过滤器作为 PO #、一个坚持它的 PDF 模板和一个包含要打印的 HTML 按钮的交易正文字段。

这是我用来创建 inLINE HTML 按钮的代码

<button type="submit" formaction="https://system.netsuite.com/app/common/search/searchresults.csv?searchid=4041&csv=Export&printtemplate=110&Transaction_INTERNALID=',{id},'">Print Special Labels</button>

但我无法通过 URL.

将 PO # 正确传递到已保存搜索中的可用过滤器

任何想法...

尝试使用 {tranid} 而不是 {id} 并将 URL 的过滤器部分设置为

....Transaction_NUMBERTEXT='+{tranid}+'........ 在这里尝试加号而不是逗号

在保存的搜索中将过滤器设置为 Document Number/ID

我也做了同样的事情,但是使用表单上的内联 html 字段而不是字段默认值为按钮的高级 PDF 打印运输标签:

'<a href="https://system.netsuite.com/app/common/search/searchresults.csv?printType=SEARCH&l=T&e=T&id=164&Transaction_NUMBERTEXT='||{tranid}||'&style=NORMAL&Transaction_NUMBERTEXTtype=CONTAINS&report=&grid=&searchid=164&dle=&sortcol=Transaction_NUMBER_raw&sortdir=ASC&pdf=&size=50&twbx=F&csv=Export&printtemplate=124" style="font-size:10pt;color:blue;" target="_blank">Shipping Labels</a>'