Focal Point
[CLOSED] Javascript

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

November 30, 2010, 03:59 PM
Mike Miles
[CLOSED] Javascript
Is there a way to obtain values out of a FOCUS query, display them in a Javascript window with the ability for the user to select one of the options in the window, and then pass that value back to FOCUS?

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


WebFOCUS 5.1
Windows
Excel, HTML and PDF
November 30, 2010, 04:07 PM
Francis Mariani
Yes.

You may wish to provide more detail of what you'd like to do.

You can write a WebFOCUS program (fex) that runs another WebFOCUS program that contains HTML and JavaScript. The HTML and JavaScript in this second program can call a third WebFOCUS program, passing the selections.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
November 30, 2010, 04:09 PM
Waz
Are you talking about parameters for the WebFOCUS job ?

If so there is a lot about Autoprompt.

You cna also build your own launch page. A little HTML and Javascript knowledge would be needed.

As you are on WebFOCUS 5.1 your options are limited.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

November 30, 2010, 04:10 PM
Waz
Francis, you are too quick.

Or is it I spent too much time fixing my spelling errors.

Big Grin


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

November 30, 2010, 04:17 PM
Francis Mariani
quote:
fixing my spelling errors


You cna also

Really?

Big Grin Big Grin


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
November 30, 2010, 04:18 PM
Francis Mariani
I did not see that "5.1" version!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
November 30, 2010, 04:29 PM
Waz
I wonder if a spell check could be added to the forum ? Smiler

As for 5.1, all the calls should still be the same, things like Autoprompt will be very simple.

I think an HTML page in a Fex is the best way to go.

Are there any more spelling errors ?, I think my fingers have dementia. Confused


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

December 03, 2010, 02:13 PM
Mike Miles
This is the code I am trying to modify.

TABLE FILE PASSWORD
PRINT FILE_NAME USER_TYPE USER_ID
WHERE USER_ID EQ '&WF_REMOTE_USER';
ON TABLE HOLD AS SECURITY
END

-IF &LINES GT 0 GOTO KEEPGOING;

-*
-* HTML page displayed if WF_REMOTE_USER is not in the authorization database
-*
-HTMLFORM BEGIN



You are not authorized to access this application. Please contact Mike Miles for authorization.



-HTMLFORM END

-EXIT

-KEEPGOING

-SET &FILE_NAME = ' ';
-SET &USER_TYPE = ' ';
-SET &USER_ID = ' ';
-SET &FILLER = ' ';

-READ SECURITY &FILE_NAME.A05. &FILLER.A03. &USER_TYPE.A04. &USER_ID.A08.

SET PERMPASS = '&FILE_NAME'

-* Changed from APP APPENDPATH NFIP to APP PATH baseapp NFIP to prevent
-* concatenation of an additional "NFIP" to the APP PATH each time a drill
-* down was done.

-*APP PATH baseapp NFIP

APP APPENDPATH data

There are multiple records in the PASSWORD file for the same USER_ID each with a different type of access to the data. I want to be able to display them all on a screen or in a Javascript window and allow the user to select what identity they want to use during the particular session.


WebFOCUS 5.1
Windows
Excel, HTML and PDF
December 15, 2010, 10:53 AM
Francis Mariani
If you require help with your code, please modify your posting, adding
[code]
at the top and
[/code]
at the bottom of your code.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server