Page 1 of 1

Concatenate files in andriod device

Posted: April 4th, 2016, 11:49 am
by bidhu
Hi,

I have created a data entry program and is working fine. I have also written a module to download from dropbox to mobile device. Next, I want to merge files from different keyer into one file and generate frequency in the tablet only. The program I have written for these operations works fine in laptop, but not yielding any result in android device. I was wondering whether CSPro supports generating frequency and concatenation of files in android devices. Your quick response will be highly appreciated.

Re: Concatenate files in andriod device

Posted: April 5th, 2016, 12:46 pm
by josh
The frequency and concatenation tools do not run on Android devices. However, you can use the function fileconcat() in CSPro logic to concatenate files on Android. It is also possible to generate frequencies yourself using CSPro logic although it requires some rather advanced programming techniques. The basic idea is to use the dictionary for the data you want to generate frequencies on as an external dictionary and then use loadcase() in a loop to load every case in the data file one by one and fill in an array of frequencies. You can see an example at: https://github.com/jhandley/cspro-D3-charts. In particular check out the function householdSizeReport().

Re: Concatenate files in andriod device

Posted: April 5th, 2016, 2:42 pm
by copernix2
try with the fileconcat function.

Re: Concatenate files in andriod device

Posted: April 6th, 2016, 5:41 am
by bidhu
Thank you. I will explore and come back to you if I face any problem.

Re: Concatenate files in andriod device

Posted: April 7th, 2016, 10:28 am
by bidhu
Hi Josh,

I could concatenate the files using fileconcat function. I tried to run the D3 charts. I created the data folder within reports folder. However, when I run your program, I see only blank HTML file with title only. However, when I examine the JS file, I see that data has been generated. Can you please suggest what could be the reason?

Regards
Bidhu

Re: Concatenate files in andriod device

Posted: April 7th, 2016, 11:04 am
by bidhu
Okay, I found that if I create the HTML file once again, then it works. Otherwise, it shows empty file. What could be the reason?

Re: Concatenate files in andriod device

Posted: April 7th, 2016, 11:57 am
by bidhu
Hi Josh,

Sorry for bothering you again. Can you also, suggest how can I include another column with percentage?

Re: Concatenate files in andriod device

Posted: April 11th, 2016, 11:04 am
by bidhu
Hey Josh, I have sorted out the problem now.

Will bother you again, if I face a problem. Thanks again

Re: Concatenate files in andriod device

Posted: November 23rd, 2017, 8:40 am
by bhavu8150
Hi,

It was great help if anybody share the application example for how to concatenate data files(.dat files). it's urgent requirement for currently ongoing project.