Announcements
No record found.
Description:
we need to add reference group into form and need add it under specific Tab name, we know how to add it by design, but we didn't know how to add it by x++ code? so please give me some suggestions if it can be added by x++ code. Thank!
Hi Apple,
Please check the FormBuildReferenceGroupControl and FormReferenceGroupControl class:
FormBuildReferenceGroupControl::addControl()
Please read through the following white paper:www.microsoft.com/.../details.aspx
I hope these will be helpful
devmusings.blog/.../
docs.microsoft.com/.../how-to-add-a-field-group-to-a-form
stackoverflow.com/.../how-to-get-value-of-formreferencegroupcontrol
thinkinginax.blogspot.com/.../reference-group-control-lookup-in-d365.html
gautamax.blogspot.com/.../howto-use-reference-group-in-form_19.html
sebastienayotte.com/.../
ashokkancheti.blogspot.com/.../x-code-to-create-customized-lookup-on.html
Anrini, could you please point out which of your links (if any) is related to the question and delete the rest? Thank you.
Please pay more attention to the quality of your replies.
Thank you for the feedback Martin, I will keep that in mind to improve my answer quality
i know that we can use it, but it cannot display the new added control by code when i use it.
Here is a concrete example:
[Form] public class Form1 extends FormRun { public void init() { FormBuildReferenceGroupControl refGroup = form.design().addControl(FormControlType::ReferenceGroup, 'myRefGroup'); refGroup.extendedDataType(extendedTypeNum(HcmWorkerRecId)); super(); } }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 616
André Arnaud de Cal... 460 Super User 2026 Season 1
Syed Haris Shah 331 Super User 2026 Season 1