Enterprise-ng: Lookup: When used in a form array the lookup only works for the last row in the array

Created on 25 Nov 2020  路  4Comments  路  Source: infor-design/enterprise-ng

Describe the bug
When using an input field with lookup in a reactive form array the lookup only work for the last row in the array.

To Reproduce
Steps to reproduce the behavior:

  1. I have a reactive form array with one input field with a lookup.
  2. When adding a new row in the array the lookup only works for the last row but not for the preceding rows.

Expected behavior
The same lookup should be displayed for all lookup fields in the form array regardless if it's the last row or not.

Version

  • ids-enterprise: 4.32.0
  • ids-enterprise-ng: 7.6.0

Screenshots
My dynamic form array with a lookup field:
Screenshot 2020-11-25 at 17 10 37

I press the lookup button and the lookup is displayed:
Screenshot 2020-11-25 at 17 11 37
I then add a new row:
Screenshot 2020-11-25 at 17 12 06
After that I press the lookup button on the same row as before:
Screenshot 2020-11-25 at 17 13 11
But this time the lookup contains this:
Screenshot 2020-11-25 at 17 13 48
But if I press on the lookup button on the last row in the array it works, but not for the preceding rows:
Screenshot 2020-11-25 at 17 20 47
Screenshot 2020-11-25 at 17 21 22

This is how the generated html looks like if that can be to any help:
Screenshot 2020-11-25 at 17 26 02

[5] type

All 4 comments

Can you make / attach a replication (stackblitz?) as im not sure we would be able to solve this given the current info.

Do we have an existing stackblitz workspace I can use? Would be nice if we could have i.e. IdsEnterpriseNgQuickstart available on stackblitz to ease the burden of setting up a new project.

Yes i made one off the quickstart as mentioned you can fork from here https://stackblitz.com/edit/ids-quick-start

The issue was with passing the value to the lookup component. I solved the issue in my code so no further action is required.

Was this page helpful?
0 / 5 - 0 ratings