Business Entity Lookup Control
 
Forums / SmartComponent Library - Developer Forum / Business Entity Lookup Control

Business Entity Lookup Control

4 posts, 1 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    04 Feb 2020
    Link to this post
    Is there anyway to assign field values from the lookup dialog to properties in the class? I know you can map fields to UI controls on the form but I would like to map them to a simple property.

    I am thinking maybe in the LookupComplete event extracting the field values and assigning them to my properties. Is this possible?
  2. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    04 Feb 2020 in reply to Roger Blanchard
    Link to this post
    It looks like I could use the LookupAdditionalFields to set the other fields I want and then extract the values from AdditionalLookupFieldValues in the LookupComplete event.
  3. Mike Fechner
    Mike Fechner avatar
    319 posts
    Registered:
    14 Sep 2016
    Answered
    05 Feb 2020 in reply to Roger Blanchard
    Link to this post
    Yes. But you should also handle the AfterPerformLookup event.
  4. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    05 Feb 2020 in reply to Mike Fechner
    Link to this post
    I had to add the same code to AfterPerformLookup as well as LookupComplete that would use AdditionalLookupFieldValues:GetValue to extract the value
4 posts, 1 answered