You are not logged in.

Dear visitor, welcome to Palo Community Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

MDeaves

Intermediate

  • "MDeaves" started this thread

Posts: 8

Date of registration: Jun 5th 2012

  • Send private message

1

Wednesday, August 1st 2012, 3:30pm

Updating database with calculation performed on a separate workbook using a macro

Within my Palo Web file manager I have a bunch of different workbooks. All but one of them are custom designed workbooks, and our clients have access to some or all of them. One of them is the 'calculations' workbook, which takes inputs from the database, that have been modified by our clients on their own customized pages, re-calculates the values, and writes the outputs to the database using palo,setdata(). These output values can then be displayed on the clients workbooks.

My question is how to update the calculations in a different workbook using a macro. The clients would change some number, the client would hit the button "update forecast", the macro would find the calculations workbook, refresh the data and do the calculations, re-write the outputs to the database, and then the clients workbook would update with these new values.

I imagine it would look sort of like this,

workbooks('calculations')->calculate;



and I have tried all sort of combinations of syntax but nothing seems to do anything.


Thanks,


Michael

kratzer

Master

  • "kratzer" is male

Posts: 87

Date of registration: Feb 23rd 2006

Location: Karlsruhe

Occupation: IT

  • Send private message

2

Wednesday, August 1st 2012, 9:25pm

Not the answer to your question, but why don't you use rules to do the calculations inside the database, maybe with support cubes? All users then only need to refresh their views. I mean this is a very important feature of Palo.

MDeaves

Intermediate

  • "MDeaves" started this thread

Posts: 8

Date of registration: Jun 5th 2012

  • Send private message

3

Wednesday, August 1st 2012, 9:34pm

I had thought about that but the calculations I need to do are pretty complex. They are project payback calculations and there are a lot of variables involved.

Rate this thread