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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Custom field values are not loading until i do the form refresh

(1) ShareShare
ReportReport
Posted on by 6
Hi Experts,
 
I have a CUS_SalesQuotationTable which is an extension table of SalesQuotationTable. I have added this custom table as a datasource on the SalesQuotationTable form, Also added all the custom fields on the header level of this form. Whenever user tries to update any sales quotation which was already created or enter some values into the custom fields, the reference of sales quotation will be created in CUS_SalesQuotationTable and saves the custom fields . Till here everything is fine
 
Now the new requirement is I need to add the CUS_SalesQuotationTable as a datasource on to the SalesCreateQuotation form. This form is used to create a new sales quotations. Whenever the user wants to add custom fields on to this SalesCreateQuotation form, they can personalize and add the required custom fields and give them some values and create a sales quotation. After the sales quotation created successfully, system will directly open that sales quotation, the form name is SalesQuotationTable. Now the custom fields are not showing until i refresh the form.
 
I am using datasource SalesQuotationTable write () and datasource CUS_SalesQuotationTable init().
 
Is there any way to fetch the values right away after creating the sales quotation. Is there any method that i should call for the fetching the values directly
 
Note: The custom data source link type property is "Outer join " in both the forms.
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,037 Super User 2025 Season 2 on at
    Hi Sai,

    Can you share how you linked your custom table to an existing data source? What exact code have you added on the methods you mentioned in your question?
  • Sai Cherukuri Profile Picture
    6 on at
    [ExtensionOf(formDataSourceStr(SalesCreateQuotation, SalesQuotationTable))]
    public final class CUS_SalesCreateQuotation_Extension
    {
        void write()
        {
            next write();
            FormDataSource fds = this;
            FormDataSource  fdsCUSSalesQuotationTable= fds.formRun().dataSource(formDataSourceStr(SalesCreateQuotation, CUS_SalesQuotationTable));
            if (fdsCUSSalesQuotationTable)
            {
                SalesQuotationTable salesQuotationTable = this.cursor();
                CUS_SalesQuotationTable cusSalesQuotationTable  = fdsCUSSalesQuotationTable.cursor();
                 
                if (SysExtensionSerializerExtensionMap::isExtensionEnabled(tableNum(CUS_SalesQuotationTable)))
                {
                    linSalesQuotationTable.SysExtensionSerializerExtensionMap::insertAfterBaseTable(salesQuotationTable);
                }
            }
        }
    }
     
    [ExtensionOf(formDataSourceStr(SalesCreateQuotation, CUS_SalesQuotationTable))]
    public final class CUS_SalesCreateQuotationDS_Extension
    {
        public void init()
        {
            next init();
            FormDataSource  CUS_SalesQuotationTable_DS = this;
            FormRun formRun = CUS_SalesQuotationTable_DS.formRun();
            FormDataSource  SalesQuotationTable_DS  = formRun.dataSource(formDataSourceStr(SalesCreateQuotation, SalesQuotationTable));
            SysExtensionSerializerFormRunHelper::construct().addExtensionTablePair(SalesQuotationTable_DS.cursor(), _SaCUSlesQuotationTable_DS.cursor());
        }
    }
     
    I have used the above code on SalesCreateQuotion form.  On SalesQuotationTable we have added the write() method on SalesQuotationTable datasource same as the above the write() method
  • Layan Jwei Profile Picture
    8,112 Super User 2025 Season 2 on at
    Hi,
     
    Do you mean you used "table extension framework"?
    Or you just right clicked on the table and clicked create extension?
     
    And yes please show us all the code you added on table level and form level. And also show us the form datasource properties of the new table u added

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans