web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to transfer new added formControl value on SalesQuotationProjLinkWizard from a SalesProjectQuotation to a field in project

(0) ShareShare
ReportReport
Posted on by 65

Hi,

I am following the process of creating a project from a Project Quotation. on the below wizard, I have added one new formControl SiteId on CreateProject Tab.

Also, I have created a siteID field on ProjTable form, I want to fill this siteID field of new Project will be created from the SiteId field created on SalesQuotationProjLinkWizard.

I am not getting which method I can extend in form or any class.

QuotationForm.jpg

Thanks,

Dinesh

I have the same question (0)
  • Verified answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi Dinesh, Can you check 'createProject' method in SalesQuotationProjLinkWizard class.

  • Verified answer
    GirishS Profile Picture
    27,833 Moderator on at

    Hi Dinesh,

    You need to write COC for createProject method of "SalesQuotationProjLinkWizard" form - Inside that form they are calling the seperate class which is SalesQuotationProjLinkWizard.

    So I think its unable to update the site id from that class.

    Instead of doing that you can write COC for createProject method and update the ProjTable with site field.

    Thanks,

    Girish S.

  • Dinesh Tyagi Profile Picture
    65 on at

    Hi Girish,

    I have write this COC on form but value is not inserting in siteId field of new Project created.

    [ExtensionOf(formStr(SalesQuotationProjLinkWizard))]
    final class HSHTSalesQuotationProjLinkWizardForm_Extension
    {
        protected void createProject()
        {
            ProjTable projTable;
    
            next createProject();
    
            FormStringControl siteId = this.design().controlName(formControlStr(SalesQuotationProjLinkWizard,HSSiteId));
            projTable.HSHTSiteId = siteId.text();
        }
    
    }

    Thanks,

    Dinesh

  • Dinesh Tyagi Profile Picture
    65 on at

    Hi Mohit,

    I have tried to write COC for SalesQuotationProjLinkWizard class but have no idea that how to get that formControl HSSiteId in a Class COC.

    Thanks,

    Dinesh

  • Verified answer
    GirishS Profile Picture
    27,833 Moderator on at

    You need to add select statement from ProjTable and then updated it.

    [ExtensionOf(formStr(SalesQuotationProjLinkWizard))]
    final class HSHTSalesQuotationProjLinkWizardForm_Extension
    {
        protected void createProject()
        {
            ProjTable projTable;
    
            next createProject();
    
            FormStringControl siteId = this.design().controlName(formControlStr(SalesQuotationProjLinkWizard,HSSiteId));
            /get the value of the project id similar to site id.
            FormStringControl projId = this.design().controlName(formControlStr(SalesQuotationProjLinkWizard,ProjId));
            select forupdate * from projtable
                where projtable.ProjId == projId.valuestr();
            if(projTable)
            {
                ttsbegin;
                projTable.HSHTSiteId = siteId.valuestr();
                projTable.update();
                ttscommit;
            }
        }
    
    }

    Thanks,

    Girish S.

  • Dinesh Tyagi Profile Picture
    65 on at

    Hi Girish,

    Thanks for the quick reply.

    your above suggested solution gets worked.

    I have one more question regarding this thread, suppose I wrote COC for SalesQuotationProjLinkWizard class or any other class then how can I fetch any formcontrol in class, is it possible to fetch!

    Thanks,

    Dinesh

  • Verified answer
    GirishS Profile Picture
    27,833 Moderator on at

    I don't think you cannot fetch form control in  SalesQuotationProjLinkWizard class unless you have caller object as parm method as Form Run. Check whether there is any parm method available in that class.

    If it's not available, then there is no other way to fetch form control in SalesQuotationProjLinkWizard  class.

    Thanks,

    Girish S.

  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    Glad it worked for you, please don't forget to mark answer Verified so someone can refer it.

  • Dinesh Tyagi Profile Picture
    65 on at

    Hi Girish,

    Their is no such parm method exist in SalesQuotationProjLinkWizard class.

    Thanks,

    Dinesh

  • GirishS Profile Picture
    27,833 Moderator on at

    Then I think its not possible to get the form control.

    Thanks,

    Girish S.

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 509 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 375

#3
Adis Profile Picture

Adis 268 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans