Focal Point
Saving value of Length more than A256 in FOC file

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1891073722

May 10, 2007, 12:45 PM
Code Digger
Saving value of Length more than A256 in FOC file
Hi,

The issue I have is that I have to achieve personalization of the filter screen. so for that I am saving the data currently selected by user into a FOC file. At the time of loading the HTML next time user logs in I need to read the FOC file to see what values were selected by user the last time he/she visited the screen.

Since few fields on the page are multiselect I have to save then as comma separated in my FOC. But since MAS file allows a max of A256 chars for an alphanumeric field I cant save a string of length more than A256 in my FOC file.

So is there a better and simpler approach available???

Please help.

Thanks,
CD
May 10, 2007, 01:15 PM
Alan B
CD

What release and platform are you on?

With 7.1 you can have A3968 in plain FOCUS files and much much more in XFOCUS files.


Alan.
WF 7.705/8.007
May 10, 2007, 02:00 PM
Code Digger
hi Alan,

I am working with 7.1

But can we have A3968 in the MAS file also, since I need to access the FOC file I want to have a MAS file.

Thanks
CD
May 10, 2007, 02:41 PM
Alan B
Yes, the alpha field can now be 3968 characters. The MFD (.MAS) should be:
FIILENAME=PROFILE,SUFFIX=FOC
SEGNAME=PROFILE, SEGTYPE=S1,$
FIELD=theUserId,ALIAS=UID,FORMAT=A16,$
FIELD=myFieldName,ALIAS=MFN,FORMAT=A3952,$

Whilst the alpha field can be 3968, that is also a segment size limit.

I find this increase really useful, one of the best bits of 7.1 for me. Have a try, any problems come back.


Alan.
WF 7.705/8.007
May 10, 2007, 03:04 PM
Code Digger
thank Alan...thanks a ton