zoukankan      html  css  js  c++  java
  • Form Grid Cell color display problem in AX 2009

    In my requirement,.there should be an alert(red color any thing ) on the form as soon as "ID"( field) value cross the Dimension type. How to do ..is there any thing is in existing system.

    Handled as belows:

    override the displayOption method of the data source and specify the color criteria. A sample code is below. (Written on CustTable data source of the custTable
    form).

    代码
    /***
    In my requirement,.there should be an alert(red color any thing ) on the form as soon as "ID"( field) value cross the Dimension type. How to do ..is there any thing is in existing system.

    Handled as belows:

    override the displayOption method of the data source and specify the
    color criteria.
    A sample code is below. (Written on CustTable data source of the custTable
    form).
    */
    public void displayOption(Common _record, FormRowDisplayOption _options)

    {

    QVS_NewDimensions NewDimensions;

    ;

    NewDimensions
    = _record;

    switch(NewDimensions.NewDim)

    {

    Case QVS_NewDim::Brand :


    _options.textColor(winapi::rgb2int(
    255,10,52));

    _options.backColor(winapi::rgb2int(
    122,100,100));

    _options.affectedElementsByControl(Grid_Num.id(),Grid_Description.id());

    break;

    Case QVS_NewDim::Category:


    _options.backColor(winapi::rgb2int(
    10,211,52));

    _options.textColor(
    12582912);

    break;

    default :

    _options.backColor(winapi::rgb2int(
    10,0,52));

    _options.textColor(
    255);

    break;

    }

    super(_record, _options);

    }



  • 相关阅读:
    BFS(广搜训练题目)
    练习赛1(补题)
    练习赛1(AC题)
    codeup 1743: 算法3-4:表达式求值
    数学相关(更新ing)
    c语言常用函数(更新ing)
    大牛的博客(学习不止,更新不止)
    51nod 1005 大数加法
    js1-----预览js内容
    css10---转载---定位,浮动
  • 原文地址:https://www.cnblogs.com/Fandyx/p/1745993.html
Copyright © 2011-2022 走看看