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     [CLOSED] using java script in app studio

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] using java script in app studio
 Login/Join
 
Member
posted
I have a button that runs a report that refreshes the dataset behind an active html page.
The refresh takes a few minutes to run, and i would like to either

a> change the verbiage on the button that runs the refresh from "refresh data" to "refreshing" (maybe blinking in red?)
and then changing back when the refresh completes
or
b> changing the actual report frame from hidden to visibel and back to hidden when the refresh finishes

on-line help warns not to "use custom java on html canvas created objects"

has anyone tried something like this?
are the java "methods" the same as the ones we use in dev studio" (ie getelementbyid.attribute=value?)

are only the "canned" options available for use in app studio?

is there a reference somewhere to get more (any) information on using jave in app studio?

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 7.6.9
Windows
all output (Excel, HTML, PDF)
 
Posts: 28 | Registered: April 27, 2010Report This Post
Virtuoso
posted Hide Post
Does the online help really warn not to use custom Java, or are you misquoting and it actually says Javascript?

Custom Java in HTML is done using Java Applets, a technology that many modern browsers stopped supporting.

Javascript OTOH, can be used safely on HTML canvas created objects. An old version of JQuery comes pre-loaded (as it's used internally by IBI). You can include your own external js files or code directly in the Javascript tab (but I suggest you keep that to a minimum, the built-in javascript editor is IMO not production-ready).

We use javascript extensively in our HTML pages, whether they were created using HTML canvas or written by hand.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Gold member
posted Hide Post
Hi Al

You can use chaning to run a procedure to load another control. The Proceedure will run a table request and HOLD the file for populating reports then write the following code below the HOLD file:

-SET &NoOfRows = &LINES;

DEFINE FILE CAR
ROWS/I9 = &NoOfRows;
END
TABLE FILE CAR
SUM MAX.ROWS
BY COUNTRY
WHERE RECORDLIMIT LE 1;
ON TABLE HOLD FOORMAT XML
END

Now you can chain this control to other controls and hide them until the value is GT 0

or in thee case of a button you can make it visible once there is a value GT 0 in the control.

This is fairly complex so if any assistance is needed open a case and ask for Barry...


WebFOCUS 8103, Windows, App Studio
 
Posts: 80 | Location: NYC | Registered: November 13, 2008Report 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     [CLOSED] using java script in app studio

Copyright © 1996-2020 Information Builders