Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Formcontrol in the grid populated while moving the cursor

Posted on by 560

Hi,

I have created a form in which i have placed a  formcontrol and its unbound control  and whenever i give some values in that field and if i drag my mouse pointer over the below fields those fields are also getting the same value.

Can you please suggest what is the cause for this issue.

regards,

AX Techie2210 

*This post is locked for comments

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Formcontrol in the grid populated while moving the cursor

    It's not possible to utilize usage data for this. Usage data is intended for storing settings such as form personalization and query criteria.

    Your field will start working normally when you bind it to a data source. Without that the form is not able to distinguish between different rows for this field (the field is not linked to a row/record), and you see already how it works.

  • AXTechie2120 Profile Picture
    AXTechie2120 560 on at
    RE: Formcontrol in the grid populated while moving the cursor

    Hi,

    Just for learning purpose i did that  to store the formcontrol value in the usage data form,But  i value in repeated in the full column,

    please help me how to prevent  the manupulating of same data all over the column

    Regards,

    AXTechie

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Formcontrol in the grid populated while moving the cursor

    Like I said, the field should refer to a data source. Otherwise it will not work.

    Why would you want to store it in usage data? What is your actual business requirement?

    I don't know if this has any relevance for you, but you can also use an edit method if you want to perform some logic before reading or writing the value to database: docs.microsoft.com/.../using-the-edit-method-modifier

  • AXTechie2120 Profile Picture
    AXTechie2120 560 on at
    RE: Formcontrol in the grid populated while moving the cursor

    Hi,

    Thank you for your reply.

    I have a datasource for the all fields except the SAVEEDIT_BK field which can be clearly seen in the above screenshots. But  the problem is that when ever i enter the data and move my mouse the below fields of the same column are also getting populated.

    I tried an unbound data source field to store the field value in the cache in the usage data form.

    Please advise.

    Regards,

    AX Techie

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Formcontrol in the grid populated while moving the cursor

    You can't use unbound controls on a grid. A grid must have a data source and the grid fields must be related to a record in a data source.

  • AXTechie2120 Profile Picture
    AXTechie2120 560 on at
    RE: Formcontrol in the grid populated while moving the cursor

    2018_2D00_10_2D00_17-16_5F00_31_5F00_28_2D002A20_Microsoft-Dynamics-AX_2C20_-_2D00_-_0E202A20_Karya-Technologies-_2800_India_2900_-Pvt-Ltd_2C20_-_5B000E202A20_DYNAXT_2C202A205F00_-_0E202A20_S.png2018_2D00_10_2D00_17-16_5F00_31_5F00_28_2D002A20_Microsoft-Dynamics-AX_2C20_-_2D00_-_0E202A20_Karya-Technologies-_2800_India_2900_-Pvt-Ltd_2C20_-_5B000E202A20_DYNAXT_2C202A205F00_-_0E202A20_S.png

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans