Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Can you SET amper variables to the output of a javascript function?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Can you SET amper variables to the output of a javascript function?
 Login/Join
 
Gold member
posted
Can you use a javascript variable to set an amper variable?


WF 5.3.5 / SOLARS 2.9 / Apache / Tomcat / Oracle (9.2/10g)
 
Posts: 62 | Location: Rochester, NY | Registered: September 30, 2005Report This Post
Virtuoso
posted Hide Post
Can you explain a little bit more what exactly you are trying to do?


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
Fex:
-DEFAULT &RPT_NAME='report_01'
-HTMLFORM annotate_comments  


Html:
<SCRIPT type=text/javascript>
function postComments(formObj) {
  // some javascript ...
   var keysValue1 = ("!IBI.AMP.RPT_NAME;" + "                    ").substring(0,20);
  // some more javascript ....
}
</script>
  


Just bang in the ampher variable anywhere you need it using the !IBI.AMP.varname;


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Gold member
posted Hide Post
So it looks like I can create a simple report in WebFocus that has two columns. Column A has some attribute that I'd like to reselect (like a machine serial number) and Column B has a COMPUTE statement that generates a Checkbox with an OnClick event that updates an IBI Amper variable.

So the user wants to run a report for a customer and sees that a few of the machines look to be poor performing based on summary/key metrics. They can then select the serial numbers in question by checking the check boxes. The onlick will update the list they have selected and then if they click on a link or button to drill-across to get detail on those machines the amper variable can be passed.

If all of my jibberish above is true then we should be able to do a multi-selected drill through to another report correct?

Thanks for the insights so far!


WF 5.3.5 / SOLARS 2.9 / Apache / Tomcat / Oracle (9.2/10g)
 
Posts: 62 | Location: Rochester, NY | Registered: September 30, 2005Report This Post
Virtuoso
posted Hide Post
Johnny5;

Maybe this will help:

Create a FOCEXEC containg the following code:

TABLE FILE CAR
PRINT COUNTRY
COMPUTE CHKBOX/A250='<INPUT TYPE=CHECKBOX NAME=COUNTRY VALUE=' | COUNTRY | '>';
ON TABLE HOLD FORMAT HTMTABLE AS CHKBOX
END
-RUN
-HTMLFORM BEGIN
<HTML>
<BODY>
<FORM METHOD="GET" ACTION="/cgi-bin/ibi_cgi/webapi.dll">
<INPUT TYPE=HIDDEN NAME="IBIF_ex" VALUE="CHKDRL">
!IBI.FIL.CHKBOX;
<INPUT TYPE=SUBMIT>
</FORM>
</BODY>
</HTML>
-HTMLFORM END


Create a second FOCEXEC called "CHKDRL" with the following code:

-IF &COUNTRY0.EXISTS GOTO MULTICHK;
-TYPE &COUNTRY
-GOTO SHOWCNTY
-MULTICHK
-REPEAT SHOWCNTY FOR &CNTR FROM 1 TO &COUNTRY0 STEP 1
-TYPE &COUNTRY&CNTR.EVAL
-SHOWCNTY


Now run the first FOCEXEC, select your COUNTRYs and then click the submit button. you will need to account for when a person does not select anything.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Gold member
posted Hide Post
Yes, that did help a bit. I'm just new to using the -HTMFORM command. I think I have it understood now I'm trying to limit what I can potentially do with it.

ps. can you attach images here?


WF 5.3.5 / SOLARS 2.9 / Apache / Tomcat / Oracle (9.2/10g)
 
Posts: 62 | Location: Rochester, NY | Registered: September 30, 2005Report This Post
Virtuoso
posted Hide Post
Johnny5,

You cannot post images directly onto Focal Point. You need to post the image on the internet somewhere and then include an HTML image tag with the URL to your image on the internet in your Focal Point post.

By the way, I grew up in Poughkeepsie NY. I see you are located in Rochester NY.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Can you SET amper variables to the output of a javascript function?

Copyright © 1996-2020 Information Builders