iT邦幫忙

第 11 屆 iThome 鐵人賽

DAY 28
0
自我挑戰組

Aras PLM 學習分享系列 第 28

[Day28]頁籤欄位取得表單資料

本篇紀錄從頁籤欄位如何取得表單資料

1.打開關聯類型,"On New Related Option"可以調整頁籤執行動作,"Grid Events"有三種事件可以選擇,下方已"OnInsertRow"做示範。

2.這裡將"必填輸入"的內容儲存起來,頁籤新增時帶入資料。

3.簡易方法

var inn = new Innovator();
var tmpThisItem = typeof(parent.document.thisItem) == "object" ? parent.document.thisItem : parent.thisItem;
var thisRel = tmpThisItem.getItemsByXPath("//Item[@id='" + relationshipID + "']").getItemByIndex(0);
var require = tmpThisItem.getProperty("test_require","");
try{
thisRel.setProperty("test_norelin", require);
}catch(e){
    console.log(e);
}
grid.items_Experimental.set(relationshipID, "value", "test_norelin_D", require);

4.輸入完資料後,新增頁籤後,可以馬上看到必填輸入的資料寫入無關聯頁籤值。


上一篇
[Day27]搜尋欄鎖定指定欄位
下一篇
[Day29]安裝12版注意事項
系列文
Aras PLM 學習分享30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言