Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Can webfocus call an Excel macro and get a return value?
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Can webfocus call an Excel macro and get a return value?
 Login/Join
 
Member
posted
I wanted to know, if Webfocus can call an Excel macro that returns a value. For example, the macro is a function that does some math. When the macro is done, it returns a number. Can webfocus call that Excel macro and use the number it returns? If so, what's the webfocus syntax.

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


WebFOCUS 8
Windows, All Outputs
 
Posts: 12 | Registered: June 01, 2017Reply With QuoteReport This Post
Virtuoso
posted Hide Post
I doubt it but what's the specific use case? Excel isn't a DBMS but there might be a hack for what you're trying to do.


WebFOCUS 8206, Unix, Windows
 
Posts: 1658 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Member
posted Hide Post
So Webfocus calls the Excel Macro and passes a parameter which is a number. The Excel function crunches some numbers and returns a value.

So basically, I want to send the Excel Macro a number and when it's done, get a number back.


WebFOCUS 8
Windows, All Outputs
 
Posts: 12 | Registered: June 01, 2017Reply With QuoteReport This Post
Virtuoso
posted Hide Post
I know you can do this using an SP in SQL Server.


WebFOCUS 8206, Unix, Windows
 
Posts: 1658 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Master
posted Hide Post
Why can't you use DEFINE FUNCTION in WebFOCUS? What math are you trying to do? If it is not some native to WebFOCUS (like doing differential equations), you can always create your own user written subroutine in another language, compile it, and make it part of your installation. It has been over 25 years ago, so the memory is fuzzy, but I did something like this in PC FOCUS for DOS, so I'm pretty sure that it can still be done. I had an application for a company that does shipping on the Great Lakes and we had a user written subroutine written in Fortran that we'd call to tell us if a ship with X amount of cargo A and Y amount of cargo B would go through the locks on the lakes. It was passed the number and it would calculate the ships displacement (how low/high in water the cargo would make the ship).

Another example is RSTAT. Using RSTAT creates a function written in C, which gets compiled and stored on the Reporting Server. You call it just like any other FOCUS language functions like EDIT, STRREP, etc.

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


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 917 | Location: Oklahoma City | Registered: October 27, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Can webfocus call an Excel macro and get a return value?

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.