Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- init:
- //loop dulu data di tabel
- let hasilfilter = [];
- for(var i = 0; i < this.inventory.Length; i++) {
- for(var j = 0; j < this.userData.AccessSettings.Length; j++) {
- if((this.inventory[i].LegalEntityId == this.userData.AccessSettings[j].Id) && (this.inventory[i].BranchId == this.userData.AccessSettings[j].Branches.Id)) {
- hasilfilter.push(this.inventory[i])
- }
- }
- }
- //pake hasil filternya bwt ntr ke ngisi tabel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement