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.
I want the transpose of the column to rows in the following format
1 2 3 4 5 6 7 ---------------------------------------------------------------------------------------------------------------------------- media_id on off on off on off on off on off on off on off -------- ------------ ------------ ------------ ------------ ------------ ------------ ------------
so the newfield can vary in length as I do not know how many VALUE exist per ID.
I had defined:
NEWFIELD = IF ID EQ LAST ID THEN (LAST VALUE | VALUE) ELSE VALUE;
but this doesn't continue to add the values together since it doesn't know that the previous field is now different. This would only save the current Value and the previous Value, but not remember any of the other values.
Anybody tackle this before?
Prod: WebFOCUS 7.6.4 - Self Service - Windows Server2003 - Apache Tomcat 5.5 Dev: WebFOCUS 7.6.4 - Self Service - Windows XP SP2 - Apache Tomcat 5.5
I figured it out about 5 minutes after posting the question... is it just me or you have to put yourself out there before coming out with a solution yourself.
I ended up with: NEWFIELD/A200 = IF ID NE LAST ID THEN VALUE ELSE LJUST(200, LAST NEWFIELD, 'A190') || (' ' | VALUE);
The issue I had was with the length of field (which both solutions solve) and the other was with the weak concatenation. Once I put the strong concatenation it worked like a charm!
Prod: WebFOCUS 7.6.4 - Self Service - Windows Server2003 - Apache Tomcat 5.5 Dev: WebFOCUS 7.6.4 - Self Service - Windows XP SP2 - Apache Tomcat 5.5