InventProductDimensionLookup form display method issue

Hi,

i have a display method on a form which shows data only if i switch from Configurations to Onhand, from Onhand to Configurations tab pages,

display method is added to first grid in first tab page (Configurations tab page)

why is happening so ? how to fix it and make it with data once opening the lookup form rather than after switching tabs ?

my display method is on InventDim Datasource and looks like:

public display Description getConfigIdDesc(InventDim _inventDim)
{
    EcoResConfiguration ecoResConfiguration;
    EcoResProductMasterConfiguration ecoResProductMasterConfiguration;
    EcoResProductMasterDimValueTranslation ecoResProductMasterDimValueTranslation;
    ;

    select firstOnly * from ecoResConfiguration where ecoResConfiguration.Name == _inventDim.configId
    join ecoResProductMasterConfiguration where ecoResProductMasterConfiguration.Configuration = ecoResConfiguration.RecId &&
                                                ecoResProductMasterConfiguration.ConfigProductDimensionAttribute == EcoResProductDimensionAttribute::inventDimFieldId2DimensionAttributeRecId(fieldNum(InventDim, ConfigId)) &&
                                                ecoResProductMasterConfiguration.ConfigProductMaster == InventTable::find(element.inventDimSetupObject().callerItemId()).Product
    join ecoResProductMasterDimValueTranslation where ecoResProductMasterDimValueTranslation.ProductMasterDimensionValue == ecoResProductMasterConfiguration.RecId;

    return ecoResProductMasterDimValueTranslation.Description;
}

Related
Recommended