2015-11-13 20 views
1

我在這裏有這段代碼。效果很好。這是父項目的子項目。只顯示子項目的名稱。getCurrentAttribute指向父項的鏈接? Netsuite

<span class="item-list-cell-name"> <%=getCurrentAttribute('item','displayname')%></span> 

我想這個鏈接回item.but我在與該鏈接有問題的父母。

<A href="<%=getCurrentAttribute('item','storeurl')%>"></A> 

的<%= getCurrentAttribute似乎是NetSuite公司已經創建的自定義語言。我不知道如果我想要它鏈接回父母('item','storeurl'),看起來應該如何。

任何想法都會有幫助。

+0

注意getCurrentAttribute在NS幫助解釋。 – bknights

回答

0

你的意思是你有一個子項目,你想要它的父項目下鑽頁面?如果是這樣,就一般的答案而言,你運氣不佳。如果你想一下就回到父類,你可以使用:

<a href="<%=getCurrentAttribute('sitecategory','canonicalurl')%>">Up</a> 

如果這是你想,那麼你可以做的是對項目記錄創建自定義的超鏈接字段,並用填充它的父項鍊接腳本。

+0

這是一個子項目,我想鏈接到父級向下頁面。看起來也很簡單。長號 – gx2g

0

看起來像最簡單和最好的解決方案將子項目鏈接到netsuite中的父項目。

  1. 在父項目上創建一個自定義字段。
  2. 將urlcomponent複製到該自定義字段。

那麼你可以拉回來,在這樣的位置,

<A href="<%=getCurrentAttribute('item','customfield')%>"><span class="item-list-cell-name"> <%=getCurrentAttribute('item','displayname')%></span></A>