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

Change value of lookup field enters linked old entity #49

Closed
WinniB opened this issue Nov 21, 2017 · 6 comments
Closed

Change value of lookup field enters linked old entity #49

WinniB opened this issue Nov 21, 2017 · 6 comments

Comments

@WinniB
Copy link

WinniB commented Nov 21, 2017

When try to change the value of a lookup the field is clicked a second time to check if the focus is already on field. If the field already has a focus this leads in entering the linked entity and therfore leaving the current page.

@dtu11
Copy link
Member

dtu11 commented Dec 4, 2017

Ok, we'll test this scenerio and provide an update. Which version are you working with?

@WinniB
Copy link
Author

WinniB commented Dec 4, 2017

We use Microsoft Dynamics 365 Version 1612 (8.2.2.136) on-premises

@j621z
Copy link
Member

j621z commented Dec 5, 2017

@WinniB Can you please provide exact steps or elaborate on the issue? Is this consistent or intermittent behavior? Unable to repro this issue.

@WinniB
Copy link
Author

WinniB commented Dec 6, 2017

This always happens when I try to change the value of a lookup field which is already filled with data.

Example steps could be:

xrmBrowser.Entity.SetValue("my_lookup", "TextA"); //Fill for first time
xrmBrowser.Entity.SetValue("my_lookup", "TextB"); //Fill for second time / change value

@j621z
Copy link
Member

j621z commented Dec 6, 2017

@WinniB Please try using this when changing the value of a lookup field. The code you referenced above is used to change a text field. Let me know if this works for you.

xrmBrowser.Entity.SetValue(new Lookup { Name = "primarycontactid", Value = "Rene Valdes (sample)" });

@dtu11 dtu11 closed this as completed Dec 6, 2017
@WinniB
Copy link
Author

WinniB commented Dec 7, 2017

I tried this before, but if the value I want to set does not equal one in the dialog items (but is an valid value for the lookup) I get an invalid operation exception : "List does not have XYZ."

dtu11 added a commit that referenced this issue Dec 21, 2017
Issue #49
Issue #50
Issue #58
Issue #57
Issue #55
Issue #48
Issue #46
Issue #40
dtu11 added a commit that referenced this issue Dec 21, 2017
Issue #49
Issue #50
Issue #58
Issue #57
Issue #55
Issue #48
Issue #46
Issue #40
dtu11 added a commit that referenced this issue Dec 21, 2017
Issue #49
Issue #50
Issue #58
Issue #57
Issue #55
Issue #48
Issue #46
Issue #40
@dtu11 dtu11 mentioned this issue Dec 21, 2017
dtu11 added a commit that referenced this issue Dec 21, 2017
Issue #49
Issue #50
Issue #58
Issue #57
Issue #55
Issue #48
Issue #46
Issue #40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants