Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Master File Issue

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Master File Issue
 Login/Join
 
<msam>
posted
Hi,
I have a master file with CODE and DESC fields.
I'm using the CODE in the Value filed and DESC in display field in the Resource Layout Painter.
But the issue is the description is not coming in alphabetic order.
CODE DESCRIPTION
01 Company
02 Branch
04 Agent

I need only CODE to be passed to the launch page and I want description to be in alphabetic Order.

Regards,
MSAM

This message has been edited. Last edited by: Kerry,
 
Report This Post
Expert
posted Hide Post
You will have to populate the dropdown box with a procedure. Here is an example that I just did this week:
TABLE FILE filename
SUM CODE
BY DESC
ON TABLE HOLD FORMAT ALPHA
END
TABLEF FILE HOLD
PRINT  CODE DESC
ON TABLE PCHOLD FORMAT XML
END


Put this in a focexec and reference it for the variable. The reason I had to do it that way is because it is the first column in the XML is the one passed to the program. If you sort by the description, by default it becomes the first column.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
<msam>
posted
I can not use the XML format as the it is to be refresed with other master files -INCLUDE file and I did try for XML . I need other option for this problem
Further help would be appreciated..

Regards,
MSAM
 
Report This Post
Expert
posted Hide Post
You misunderstood me. The master is regular text. You write a program that looks like the one in my post. You go into the HTML Layout Painter and in the control for the dropdown box, you select procedure and then point to that little program. When you run the page, WebFOCUS runs the little program and your dropdown box gets populated with the data in the right order.

Couldn't you at least try my suggestion before dimissing it out of hand?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
<msam>
posted
Hi Ginny,
I cannot use the procedure as we have a .mas and .foc file and it is included in the main procedure which is scheduled to run daily from database. I hope you got my issue.

Regards,
MSAM
 
Report This Post
Expert
posted Hide Post
I don't really understand. If you have a master and a FOCUS file, why can't you write a procedure against them to produce the dropdown box in the order that you want then reference that procedure in the Resource Layout Painter control for the dropdown box?

Have you even tried this to see if it would work?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
<msam>
posted
yes I did that ..that's the basic step and I want to use other than XML.

Regards,
MSAM
 
Report This Post
Expert
posted Hide Post
The WebFOCUS required format for putting stuff in a dropdown box from a procedure is XML. You won't see it as XML. You will see it as DESC sorted in the correct order. If you don't want to do this in this easy manner, then I can't help you.

Maybe someone else can. Sorry.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
<msam>
posted
thanks for the info...
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Master File Issue

Copyright © 1996-2020 Information Builders