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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

FormTableControl not updating view

(0) ShareShare
ReportReport
Posted on by 81

Hi,

I have a FormTableControl that I am populating from a query. Here is a small example, however the view never updates:

FormTableControl resultsTable = element.design().controlName('FormTableControlResults');
resultsTable.clear();
int numOfRows = 2; 
resultsTable.columns(4);
resultsTable.rows(numOfRows);
resultsTable.setColLabel(1, "Sku");
resultsTable.setColLabel(2, "MfgPartNo");
resultsTable.setColLabel(3, "BusinessUnit");
resultsTable.setColLabel(4, "MatchType");
resultsTable.update();              
              

I have the same question (0)
  • Suggested answer
    huijij Profile Picture
    19,811 on at
    RE: FormTableControl not updating view

    Hi PhillyNJ,

    It is recommended you check the allowEdit property settled on the container control which determines whether the user can modify the contents of the control. The following example shows how to return and set the value of the allowEdit property.

    // Return the value. 
    info (strfmt("allowEdit: %1", this.allowEdit())); 
    // Set the value. 
    this.allowEdit(false);

  • PhillyNJ Profile Picture
    81 on at
    RE: FormTableControl not updating view

    resultsTable.allowEdit(false);

    Hi,

    Unfortunately. getting and setting the allow edit property did not work.

  • huijij Profile Picture
    19,811 on at
    RE: FormTableControl not updating view

    Maybe you can set the control 'FormTableControlResults' as "AutoDeclaration" to YES.

  • PhillyNJ Profile Picture
    81 on at
    RE: FormTableControl not updating view

    Judy,

    Unfortunately setting the control 'FormTableControlResults' property  "AutoDeclaration" to YES did not help.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 585 Most Valuable Professional

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 565

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans