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 have a simple FEX where the define will not work in Dev Studio on my PC. The same code runs perfectly on a Linux server.
On the PC I get 'The fieldname is not recognised; YRMONTH'. The other two fields, CCODE and COUNTRY work fine. CCODE is a real field and COUNTRY is defined in the MFD. If I put the define for YRMONTH in the MFD it will also work on the local PC. I'm not really keen to do that because I don't plan to use it all that much.
I have tried hand coding the define as YRMONTH/MtrYY WITH ONUM = ODATE; but that doesn't help either.
I'm also intrigued that Dev Studio puts single quotes around the right-hand-side of the WHERE statement for YRMONTH but not for the others.
Any suggestions?
DEFINE FILE NEWORDER
YRMONTH/MtrYY=NEWORDER.ROOT_SEG.ODATE;
END
TABLE FILE NEWORDER
SUM
'NEWORDER.ROOT_SEG.ODATE'
'NEWORDER.ROOT_SEG.INVDATE'
'NEWORDER.ROOT_SEG.PO'
'NEWORDER.ROOT_SEG.CIFOT'
BY 'NEWORDER.ROOT_SEG.CCODE'
BY 'NEWORDER.ROOT_SEG.ONUM'
PRINT
'NEWORDER.PRODUCTS.PDESC'
'NEWORDER.PRODUCTS.PQTY'
'NEWORDER.PRODUCTS.FOB'
'NEWORDER.PRODUCTS.CIF'
BY 'NEWORDER.ROOT_SEG.CCODE'
BY 'NEWORDER.ROOT_SEG.ONUM'
BY 'NEWORDER.PRODUCTS.PSCODE'
HEADING
"RECENT ORDER DETAIL"
FOOTING
""
WHERE NEWORDER.ROOT_SEG.CCODE EQ &CCODE.(AND(FIND CCODE IN NEWORDER)).CCODE.;
WHERE NEWORDER.ROOT_SEG.COUNTRY EQ &COUNTRY.(AND(FIND COUNTRY IN NEWORDER)).COUNTRY.;
WHERE NEWORDER.ROOT_SEG.YRMONTH GE '&YRMONTH.(FIND YRMONTH IN NEWORDER).YRMONTH.';
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
...styling ..
END
Try removing the "NEWORDER.ROOT_SEG" from the "NEWORDER.ROOT_SEG.YRMONTH" as "YRMONTH" is a DEFINEd field not in your MFD. Or, is it? If so, use a different fieldname in your DEFINE.
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005