How to set the viewport view name parameter via its sheet name

I read 2 issues here:

  • “its refusing to write the info back into the View Name parameter”
  • "I lost the relation to the list of elements"
    I don’t have much time at the moment to look at it but I (or someone else) will. For the first question, you probably need to verify the type of data required as an input. For the second issue, you can first take a look here:
    Inconsistency by filtering