国产视频中文字幕,精品国产_亚洲人成在线高清,亚洲天堂手机在线

產品中心 業內新聞 案例中心 視頻中心

Mobox低代碼開發-數據屬性獲取 Mobox低代碼開發-數據屬性獲取

Mobox低代碼開發-數據屬性獲取

分類:二次開發 產品中心 低代碼 409

1. 數據屬性獲取/設置

1.1 getCurEditDataObjAttr

說明:獲取當前Lua腳本正在處理的數據對象屬性
使用頻次:高

getCurEditDataObjAttr?(strLuaDEID, strAttrName1, strAttrName2,… )

輸入參數:

序號 參數 必有 說明
1 strLuaDEID Y Lua C++數據交換區標識, 是一個GUID
2 strAttrName1 N 數據屬性1
3 strAttrName2 N 數據屬性2

注意: 如果只輸入一個參數,系統返回當前編輯數據對象中所有屬性

輸出參數:

    1. nRet?= 0 表示成功, 非零失敗
    1. strRetInfo?返回結果
        [ 
            {"attr":"attr1","value":"xxx1"},
            {"attr":"attr2","value":"xxx2"},
            ...
        ]

Example

    -- 獲取入庫原材料批次號、紅票重量
    local nRet, strRetInfo

    nRet, strRetInfo = mobox.getCurEditDataObjAttr( strLuaDEID, "S_B_CODE","F_RT_WEIGHT" )
    if ( nRet ~= 0 or strRetInfo == '' ) then
        mobox.error( strLuaDEID, "無法獲取入庫原材料批次號!")
        return
    end

    local retAttrs = json.decode( strRetInfo )  
    local strBCode = retAttrs[1].value                -- 原材料批次號
    local fRTWeight = tonumber( retAttrs[2].value )   -- 重量

標簽:手冊 上一篇: 下一篇:
展開更多
預約軟件體驗

loading...

    <noscript id="7lhqw"><i id="7lhqw"><legend id="7lhqw"></legend></i></noscript>
    <u id="7lhqw"><optgroup id="7lhqw"><listing id="7lhqw"></listing></optgroup></u>
    1. <blockquote id="7lhqw"><center id="7lhqw"></center></blockquote>
      <address id="7lhqw"></address>
      主站蜘蛛池模板: 永宁县| 营口市| 岳西县| 平湖市| 澄江县| 南通市| 陇西县| 壤塘县| 宜君县| 松滋市| 施秉县| 寿宁县| 株洲县| 日土县| 闽清县| 凤冈县| 化隆| 定兴县| 宁安市| 博爱县| 东丽区| 同心县| 大洼县| 凌云县| 岳池县| 龙川县| 安国市| 咸丰县| 尼玛县| 衡阳县| 赫章县| 贵阳市| 曲松县| 鄱阳县| 大姚县| 自治县| 富蕴县| 枣庄市| 上栗县| 盐边县| 淮南市|