Focal Point
[SOLVED] Change the name of SEG01

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

June 23, 2014, 08:16 AM
gregv
[SOLVED] Change the name of SEG01
Does anyone have a way to change the name of a segment when holding a FOCUS file?

The default is SEG01, SEG02...SEGnn.
I would like to code a custom name for each segment, such as SEG01='Region' and SEG02='Product', SEG03='Item', etc.
I don't want to edit the MFD because the fields in the master could change.

Thanks.

This message has been edited. Last edited by: <Kathryn Henning>,



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
June 23, 2014, 05:25 PM
Waz
The only way I can think of doing this is to write the MASTER file out and MODIFY the record into the FOCUS file.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

June 24, 2014, 08:51 AM
gregv
Yea, Waz, I thought of that too but I was hoping for a more direct solution, e.g.
BY COUNTRY SEG01 AS 'Country'
BY CAR SEG02 AS 'Car'
Thanks!



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
June 24, 2014, 08:59 AM
Tony A
quote:
write the MASTER file out and MODIFY the record

... or build your own version on the fly by interrogating the SYSCOLUM table. Everything you need is there and changing one element such as the segname should be easy.

I've done this before so if I can locate the code (some hope!) I'll share.

Incidentally, why do you want "nice" segnames? Just curious ... Wink Is it for segment lists in IA or something?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
June 24, 2014, 09:09 AM
gregv
Yes, the customer is looking for something meaningful for their users in IA.
Is it possible to edit/update SYSCOLUMN from WF?



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
June 24, 2014, 10:19 AM
Tony A
quote:
Is it possible to edit/update SYSCOLUM from WF?

Wouldn't recommend it!!

Try using code to build what you want and then overwrite the one in your app folder - then see if SYSCOLUM has been updated?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
June 25, 2014, 09:55 AM
<Emily Duensing>
How about using a Business View to make it look nice and neat for the users? That way you can things whatever you want and they don't see the underlying Master elements.
June 26, 2014, 08:27 AM
gregv
That's the ticket, Emily!
I hide the foclist fields and added descriptions to the segments.
Then I put the master where it won't be overwritten.
Thanks, all, for the good suggestions.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8