Table is not updated

This is code form

[Control("Integer")]
class MCROrderParameters_MCRPriceOverrideLineColor
{
    public void lookup()
    {
        int color = ColorSelection::selectColor(this, MCROrderParameters.MCRPriceOverrideLineColor);
        // allow color to be reset for price override line
        if (color != MCROrderParameters.MCRPriceOverrideLineColor)
        {
            MCROrderParameters.MCRPriceOverrideLineColor = color;
            MCROrderParameters_ds.write();
        }
    }
}

I have set the different color code in “MCRPriceOverrideLineColor” field but its always show the old color code .
I have checked in Table update method

void update()
{
    MCROrderParameters   mcrOrderParameters_Orig = this.orig();
    …
}

In ‘this’ object I always found old value but is wrong here I don’t understand.
Can anybody suggest me .

Hi,

Can you please share some screenshots for better understanding and explain in detail on what you are trying to achieve.

Screenshots.docx (95.1 KB)

For reference, this question is also being discussed in Dynamics Community forum.