简体   繁体   中英

How to get Datatable row value and map it to another Datatable?

I'm a newby in DataTables and I have a challenge right now on how to map the ID of my first table to my second table.

This is my sample table:

First Table
P_ID   |  Desc   | Unit
A.1    | Samp1   | SampUnit1
A.2    | Samp1   | SampUnit1

Second Table
S_ID   |  Desc   | Unit
A.1(a)  | Sub1   | Sub1

What I need is to map A.1 to A.1(a), because currently my script loads A.1(a) to both A.1 and A.2.

通过为“父母ID”添加新列来获得正确答案。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM