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] Can webfocus call an Excel macro and get a return value?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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, 2017Report 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: 1853 | Location: New York City | Registered: December 30, 2015Report 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, 2017Report This Post
Virtuoso
posted Hide Post
I know you can do this using an SP in SQL Server.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report 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: 975 | Location: Oklahoma City | Registered: October 27, 2006Report 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] Can webfocus call an Excel macro and get a return value?

Copyright © 1996-2020 Information Builders