Focal Point
[CLOSED]How to display the result direct from JavaScript?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5687031496

August 13, 2020, 08:52 AM
nox
[CLOSED]How to display the result direct from JavaScript?
Hi,

I create following code with JavaScript:

 
TABLE FILE GGORDER
SUM PRODUCT_ID
BY STORE_CODE
BY PRODUCT_DESCRIPTION NOPRINT
IF STORE_CODE EQ 'R1250'
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
TYPE=DATA, COLUMN=PRODUCT_ID, JAVASCRIPT=showitem(PRODUCT_ID),$
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
// This function will display the value in the text box
function showitem(string2) {
var replacedString = string2.replace(/[^A-Z]/g, '');
document.write(replacedString);
}
// End the hiding here
</SCRIPT>
</HEAD>

</HTML>
-HTMLFORM END

 


When I run the 'Product Code' column is appear in Hyperlink, when I click on it it should only the Capital letter as result of that column. How can I directly show the capital letter as my report result when report is generated?(without click a hyperlink )

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


WebFOCUS v8.2.06 , Windows
August 19, 2020, 03:03 PM
FP Mod Chuck
Nox

If this is still an issue I recommend you open a case with techsupport.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
August 20, 2020, 06:27 AM
nox
thanks, I'll find another way around.


WebFOCUS v8.2.06 , Windows