Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Optionset field '***' does not exists #1428

Open
7 tasks
Zannpo opened this issue Aug 12, 2024 · 2 comments
Open
7 tasks

[BUG] Optionset field '***' does not exists #1428

Zannpo opened this issue Aug 12, 2024 · 2 comments
Labels

Comments

@Zannpo
Copy link

Zannpo commented Aug 12, 2024

Bug Report

I keep getting an error that Option Set field doesnt exist. It exists on the form. I keep checking its Xpath but for some reason UCI cant find it and Im unable to set or get its value.

EasyRepro Version

  • Microsoft Dynamics 365 Online Version 8.2 (8.2.x) (DB 8.2.x) online
  • Microsoft Dynamics 365 Online Version 9.0 (9.0.x) (DB 9.0.x) online
  • Microsoft Dynamics 365 Online Version 9.0.2 (9.0.2) (DB 9.0.2) online
  • [ x] Microsoft Dynamics 365 Online Version 9.1 (9.1.x) (DB 9.1.x) online

UCI or Classic Web

  • [ x] UCI (XrmApp)
  • Classic Web (XrmBrowser)

Online or On Premise

  • [x ] Online
  • On Premise

Browser

  • [ x] Chrome
  • Firefox
  • IE
  • [ x] Edge

xrmApp.Entity.SetValue(new OptionSet() { Name = "nameofthefield", Value = "valuewhichisthere" });

@Zannpo Zannpo added the bug label Aug 12, 2024
@don-matese
Copy link

don-matese commented Aug 28, 2024

Having the same issue with the new look enabled, if I disable the new look (revert to the old UCI interface) then it works as expected.

@Zannpo
Copy link
Author

Zannpo commented Sep 2, 2024

With the new look I've found the option set by using xpath for data-id='{controlName}.fieldControl-option-set-select'. So the new look clearly uses a different xpath than the old one. The framework needs an official fix for this type of field but my case is now solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants