jeudi 7 janvier 2021

Dynamically removing a drop down list in Typescript

I'm trying to remove a LoV (List of Values) dropdown if my selected entity's attribute contains a specific processing type.

I have lots of items in my grid and some of them contain my either "Import" or "Export" within them, based on the selected item from the grid I get it's information and pass it onto other components within my component. Currently I have a bug where, when I try to edit the insert if it's attached to Export it gets all of it's information but if it's anything other than Export it fails to get one column that it shouldn't even get in the first place.

Mainly I'm trying to remove a dropdown from my form definition in this thought process:

  • If =! export: show LoV
  • else: hide LoV

I keep hitting a dead end because I've never dynamically removed a LoV dropdown before.

Aucun commentaire:

Enregistrer un commentaire