Focal Point
[SOLVED] Javascript - Need to Pass Parameter from 1 Fex to another Panel in BIP

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

July 16, 2020, 11:18 AM
Brandon Andrathy
[SOLVED] Javascript - Need to Pass Parameter from 1 Fex to another Panel in BIP
Hello,

I'm trying to pass a parameter from one fex to another in a Portal when the .fex finishes loading. I'm planning on using Javascript for this since the Wait for Completion animation in HTML Composer seems to be unreliable when running procedures.

Here is my code below. What I want to do is pass &CLAIM_FEX to Panel_3_1. How might I do this?

 

-SET &CLAIM_FEX = 1;

-HTMLFORM BEGIN
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #report1{
            width:100vw;
            height:100vh;
        }
    </style>
</head>
<body onload="myFunction()">
    <script>

		function myFunction()
		{
		var frameArray = [ "Panel_3_1"];
		parent.BipIframeInterface.refresh(parent.BipIframeInterface.REFRESH_ARRAY, name, frameArray);
		}
    </script>
	<form name=test>
	<input type="hidden" name="CLAIM_FEX" value="1">
	</form>
</body>
</html>
-HTMLFORM END


 

This message has been edited. Last edited by: Brandon Andrathy,


WebFOCUS 8204
July 16, 2020, 11:58 AM
FP Mod Chuck
Try this...

<input type="hidden" name="!IBI.AMP.CLAIM_FEX;" value="1">


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
July 16, 2020, 12:06 PM
Brandon Andrathy
Hey Chuck,

Thank you for your response. That makes sense but didn't pass the parameter how I expected it to.

Should I put the Input Type tag in a different spot of the HTML code?


WebFOCUS 8204
July 16, 2020, 02:04 PM
Brandon Andrathy
I figured this out. I created an HTML canvas and copied the code and modified. I can share what I came up with when done.

Thanks for the help!!


WebFOCUS 8204