[使用javascript和crm数据在html中创建表

问题描述 投票:0回答:1

在我的JavaScript文件中,我正在尝试使用html创建表。

我有一个实体的记录列表,其中包含诸如合同编号,名称,地址等字段。>

var filter = "?$select=*&$filter=_plus_franchisee_value eq " + serviceProviderID;
PlusCRM.RetrieveMultiple("plus_franchiseecontracts", filter, function (records) {
        $("#tblNewAssignments").find("tbody").empty();
        console.log("vendorcontracts list....................");
        console.log(records);
        });

在表格的第一列中,我想显示一个下拉列表,其中应显示所有合同编号。选择ID后,第二列和第三列应分别填充其名称和地址。填满后,第二行应出现,并且下拉列表应再次显示帐户列表。

html:

<body onfocusout="parent.setEmailRange();" style="overflow-wrap: break-word;">
    <div class="row">
        <div class="col-md-12">
            <h5>New Assignments</h5>
            <hr>
            <div id="divNewAssignments">
                <table id="tblNewAssignments">
                    <thead>
                        <tr>
                            <th>Vendor Contract</th> (this should be drop down)
                            <th>Volume Purchased</th>
                            <th>% Fulfilled</th> 
                            <th>Volume Owed</th> 
                            <th>Vendor Amount</th> 

                        </tr>
                    </thead>
                    <tbody></tbody>
                    <tfoot></tfoot>
                </table>
                <div class="inline-loader"></div>
                <div class="no-records" style="display: none">No records found</div>
            </div>
        </div>  
    </div>
</body></html>

请帮助我实现这一目标。

谢谢

在我的JavaScript文件中,我正在尝试使用html创建表。我有一个实体的记录列表,该实体具有诸如contractid,名称,地址等字段。var filter =“?$ select = *&$ filter = ...

javascript html drop-down-menu crm
1个回答
0
投票

不确定,这可能对您有帮助。add-a-drop-down-in-a-table-using-html

© www.soinside.com 2019 - 2024. All rights reserved.