Показать сообщение отдельно
Старый 20.12.2007, 20:30   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
gatesasbait: FieldId switch-case on an table's array-type field
Источник: http://gatesasbait.spaces.live.com/B...B9F5!169.entry
==============

 
Good morning
 
Yesterday, my boss (-1 to Yvan) wanted to switch-case in a tables's modifiedField() method on a member of a field of an array type. Since 'fieldNum()' returns a single fieldId for an array of fields, you need to use the 'fieldId2Ext' to get the fieldId of an array member. He had forgotten that. So here is a quick reminder:
 
public server boolean validateField(fieldId _fieldId) //or modifiedField(fieldId _fieldId)
{
    fieldId fldId;
    fieldId fldIdExt;
    int i;
    boolean retVal = super(_fieldId);
    ;
 
<div>    if (retVal)
    {
        fldId = fieldnum(*MyTable*, *MyArrayField*);
        for (i = 1; i
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.