Page 1 of 1

Writecase issue

Posted: June 1st, 2017, 4:31 pm
by htuser
Dear all,
Trying to write some items to external dictionary using writecase it display errors/warning:
DEPRECATION: The writecase variable list is no longer supported and will be ignored. Cases will be written using the values stored in OTHERS_DICT's ID items.
The example WriteExt (Cspro installation example folder) display the same error/warning...

I use codes

Code: Select all

COD_VICQ=CODEVICQ;	
ID_ITEMS = NUMERO_RAPPORT;
writecase(RAPPORT_EXT_DICT,COD_VICQ,ID_ITEMS);
Where COD_VICQ and ID_ITEMS are items from external dictionary and
CODEVICQ and NUMERO_RAPPORT are for the main dictionary.

Cases has been written to external file in spit of warning. But, i would like to know the new way and avoid warning.

Thanks in advance for help!

Re: Writecase issue

Posted: June 2nd, 2017, 2:01 am
by khurshid.arshad
Dear htuser

Please try this:

Code: Select all

COD_VICQ=CODEVICQ;   
ID_ITEMS = NUMERO_RAPPORT;
writecase(RAPPORT_EXT_DICT);

a.

Re: Writecase issue

Posted: June 3rd, 2017, 3:18 am
by josh
It seems that CSPro 6.3 and earlier was not correctly using the id items passed as parameters. Instead it uses the current values of the id variables for the dictionary being written. So you can simplify your code as khurshid.arshad says.

Re: Writecase issue

Posted: June 3rd, 2017, 2:46 pm
by htuser
Thanks to you: khurshid.arshad and Josh!