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 am having coders block. I have a scenario that I can not seem to figure out what I need to do: I have 4 records, each have a transaction#, sorted by highest (4, 3, 2, 1), if trans#2 has a specific DEFINEd value in it, then I need to retrieve a date value from trans#3 and return that date to the row that contains trans#2, this is Excel or html output. Any ideas or suggestions?This message has been edited. Last edited by: ERINP,
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
RSquared..I attempted your approach to resolve my issue but when I use the 'LAST' in the DEFINE it does not return any data. I tried the following: 1) CARRY_OVER/MDYY = IF LAST DEFINED_FIELD EQ 'Y' THEN LAST DATE_NEEDED; returns no data to CARRY_OVER. 2) CARRY_OVER/MDYY = IF DEFINED_FIELD EQ 'Y' THEN LAST DATE_NEEDED; returns no data to CARRY_OVER 3) CARRY_OVER/MDYY = IF LAST DEFINED_FIELD EQ 'Y' THEN DATE_NEEDED; returns no data to CARRY_OVER 4) CARRY_OVER/MDYY = IF DEFINED_FIELD EQ 'Y' THEN DATE_NEEDED; returns the date but it is for the record that contains the 'Y'. I'm not sure why the LAST funvtion does not work for any of the 3 attepts that I tried...??...
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
Francis, those are four seperate attempts to retrieve data from a previous record not four consecutive lines of code therefore the ELSE would not be required. Unless you mean to make them a blank if the conditionis not true like ELSE ''; at the end? the data is sorted by highest transaction number (4, 3, 2, 1). in my report trans#2 has a DEFINEd value EQ 'Y' if this value EQ 'Y' then I need to retrieve a date value from trans#3 to display it in the row of data for trans#2. But when I apply RSquared logic to my program the LAST function does not return any data. What am I missing here?? Thanks, Erin
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files
Francis and RSquared, Upon further attempts and adding the ELSE '' logic to my code I was able to retrieve the proper data. I used the following code to retrieve data from another record: CARRY_OVER/MDYY = IF DEFINED_FIELD EQ 'Y' THEN LAST DATE_NEEDED ELSE ''; In my example above this returns a date value from trans#3 to the data for trans#2 when the DEFINEd field has a value EQ 'Y'. I believe the lack of the ELSE logic was the reason the LAST function was not working previously. Thank you for helping me with my coders block.
Erin
WebFOCUS 7.6.9
Reporting client Windows 2003 Service pack 2 using IIS and TomCat 5.5 Reporting Server OS/400 V5R4M0 Outputs: HTML, Excel, PDF, CSV, and Flat Files