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] Populate Listbox with HTML Painter and SungardHe Banner

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Populate Listbox with HTML Painter and SungardHe Banner
 Login/Join
 
Member
posted
Hello,

I am trying to write a .fex to populate a listbox in HTML. I want to bring back only the faculty name with pidm in table sirasgn. The return full name should look something like this - Adams, Robert T. The spaces between name do not work either. Below is my code but it takes forever to return and it does not work right. Can someone help me with a sample code?

SET HOLDLIST = PRINTONLY
JOIN
SIRASGN.SIRASGN.SIRASGN_PIDM IN SIRASGN TO MULTIPLE
SPRIDEN.SPRIDEN.SPRIDEN_PIDM IN SPRIDEN AS J0
END
DEFINE FILE SIRASGN
FULL_NAME/A45=SPRIDEN_LAST_NAME ||',&|nbsp' || SPRIDEN_FIRST_NAME ||'&|nbsp' || EDIT(SPRIDEN_MI,'9$$$$$$$$$');
END
TABLE FILE SIRASGN
PRINT
'SPRIDEN.SPRIDEN.SPRIDEN_LAST_NAME'
'SPRIDEN.SPRIDEN.SPRIDEN_FIRST_NAME'
'SPRIDEN.SPRIDEN.SPRIDEN_MI'
COMPUTE FULL_NAME/A45 = SPRIDEN.SPRIDEN.SPRIDEN_LAST_NAME||',&|nbsp' ||SPRIDEN.SPRIDEN.SPRIDEN_FIRST_NAME||'&|nbsp' ||SPRIDEN.SPRIDEN.SPRIDEN_MI;
BY 'FULL_NAME' NOPRINT
BY 'FULL_NAME' NOPRINT
WHERE SPRIDEN_CHANGE_IND EQ MISSING;
WHERE SPRIDEN_ENTITY_IND EQ 'P';
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT XML
END

In TOAD, I can do it fine like this:
select distinct spriden_last_name || ', ' ||spriden_first_name || ' ' || substr(spriden_mi, 1,1) as "NAME"
from sirasgn, spriden
where sirasgn_pidm = spriden_pidm
and spriden_change_ind is null
order by spriden_last_name || ', ' ||spriden_first_name || ' ' || substr(spriden_mi, 1,1)

Thanks so much,
Steven

This message has been edited. Last edited by: Kerry,


7.6.4
OS is Windows
HTML, Excel, and PDF


 
Posts: 29 | Registered: November 19, 2008Report This Post
Member
posted Hide Post
I found the solution.

Thanks,
Steven


7.6.4
OS is Windows
HTML, Excel, and PDF


 
Posts: 29 | Registered: November 19, 2008Report This Post
Virtuoso
posted Hide Post
Glad you solved the problem. When you get a minute, kindly post your solution to help someone who might run into a similar problem in the future. Thanks!


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Member
posted Hide Post
The proper syntax to concatenate a full name is like this:

FULL_NAME/A45=SPRIDEN_LAST_NAME ||(', ' | SPRIDEN_FIRST_NAME) ||(' ' | EDIT(SPRIDEN_MI,'9$$$$$$$$$'));

Steven


7.6.4
OS is Windows
HTML, Excel, and PDF


 
Posts: 29 | Registered: November 19, 2008Report 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] Populate Listbox with HTML Painter and SungardHe Banner

Copyright © 1996-2020 Information Builders