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

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

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>
      主站蜘蛛池模板: 武平县| 乐安县| 班玛县| 芜湖县| 怀柔区| 平江县| 微博| 湟中县| 东阳市| 高安市| 阜阳市| 郴州市| 新乡县| 恭城| 濮阳县| 临猗县| 阜平县| 彰化县| 渭源县| 易门县| 乡城县| 顺昌县| 武汉市| 余江县| 黄梅县| 长顺县| 哈密市| 泾阳县| 遂昌县| 赞皇县| 河南省| 镇康县| 宽甸| 洞头县| 晋宁县| 江孜县| 疏附县| 秦安县| 天峨县| 福海县| 彭阳县|