0

Option set Field を Populate に設定するのに問題があります。親アカウント タイプが施設かベンダーかによって、子アカウントのオプション セット値を施設またはベンダーのいずれかに設定する必要があります。

function SetOptionSetField(accountType)
{
    var options = Xrm.Page.getAttribute(new_type).setValue(100000002, 100000003);

    if (accountType === 100000000) {
        new_type.setValue(100000002);
    }
    else if (accountType === 100000001) {
        new_type.setValue(100000003)
    }
}
4

1 に答える 1

1

new_type属性の名前だと思います。これを試して:

function SetOptionSetField(accountType)
{
    var typeField = Xrm.Page.getAttribute("new_type");

    if (accountType === 100000000) {
        typeField.setValue(100000002);
    }
    else if (accountType === 100000001) {
        typeField.setValue(100000003)
    }
}
于 2015-09-14T19:28:42.940 に答える