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);

    }



  • 相关阅读:
    记忆力训练今天早上有了点小进步
    刻意练习
    12.12周计划
    12.6周总结
    The Power of Reading Insights
    Storytelling with Data
    nexus私服和快照正式版本etc
    springboot启动流程分析
    容器启动getBean的流程分析
    canal简介
  • 原文地址:https://www.cnblogs.com/Fandyx/p/1745993.html
Copyright © 2011-2022 走看看