Writecase issue

Discussions about CSEntry
Post Reply
htuser
Posts: 632
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Writecase issue

Post 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!
G.VOLNY, a CSProuser from Haiti, since 2004
khurshid.arshad
Posts: 572
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: Writecase issue

Post by khurshid.arshad »

Dear htuser

Please try this:

Code: Select all

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

a.
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Writecase issue

Post 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.
htuser
Posts: 632
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Writecase issue

Post by htuser »

Thanks to you: khurshid.arshad and Josh!
G.VOLNY, a CSProuser from Haiti, since 2004
Post Reply