Skip to main content
Solved

Data Exchange write out only nondefault values

  • August 9, 2022
  • 2 replies
  • 97 views

bedelillla
AIMMS Partner
Forum|alt.badge.img

Hi,

 

Is there any attribute which can ensure that only nondefault values are written to Excel?

Like axll:WriteTable function has writeZeros argument and if it is set to 1 then zero cells will remain empty.

 

Thanks,

Lilla

Best answer by MarcelRoelofs

Hi @bedelillla 

DEX 1.3.2.46 will now leave all Excel and CSV cells empty for default values, by default. You can overwrite this behavior by setting the write-defaults attribute to 1 for either individual ColumnMappings or for entire RowMappings. 

Prior this DEX 1.3.2.46, default values for regular ColumnMappings did show the defaults, while cells for name-binds-to ColumnMappings were left empty (unless you specified write-defaults). This has now been harmonized.

 

2 replies

gabiservidone
Administrator
Forum|alt.badge.img+6
  • AIMMSian
  • 256 replies
  • August 12, 2022

heey @bedelillla ! 

yes, there is! if you are using axll::WriteTable or axll::WriteTableQuick you can use the argument IncludeEmptyRows, IncludeEmptyColumns or IncludeEmptyRowsColumns to ensure that only nondefault values are used, and the other way around as well. 

axll::WriteTableQuick(
    IdentifierReference     :  , 
    TopLeftCell             :  , 
    RowDimension            :  , 
    WriteZeros              :  0, 
    IncludeEmptyRows        :  0, 
    IncludeEmptyColumns     :  0, 
    IncludeEmptyRowsColumns :  0
)


MarcelRoelofs
AIMMSian
Forum|alt.badge.img+5
  • AIMMSian
  • 107 replies
  • Answer
  • August 13, 2022

Hi @bedelillla 

DEX 1.3.2.46 will now leave all Excel and CSV cells empty for default values, by default. You can overwrite this behavior by setting the write-defaults attribute to 1 for either individual ColumnMappings or for entire RowMappings. 

Prior this DEX 1.3.2.46, default values for regular ColumnMappings did show the defaults, while cells for name-binds-to ColumnMappings were left empty (unless you specified write-defaults). This has now been harmonized.

 



Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator