cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Script Logic

Former Member
0 Likes
151

Hi,

My requirement is, whenever the data is saved using an input form,

1. Data needs to be multiplied by 2, (All dimensions values are same) and needs to be saved.

2. Same data needs to be saved for for the next month.

Source Data for both scenarios

AccountEntityCategoryTimeSKFSIGNDATA
GL100100PC1234BUDGET2016.01RENTED100

Expected Data for requirement 1.

AccountEntityCategoryTimeSKFSIGNDATA
GL100100PC1234BUDGET2016.01RENTED200

Expected Data for requirement 2.

AccountEntityCategoryTimeSKFSIGNDATA
GL100100PC1234BUDGET2016.02RENTED100

Need you help in writing the script logic for this.

-- Selva.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member186338
Active Contributor
0 Likes

The script is simple, but the requirements are strange:

*FOR %T%=%TIME_SET%

*XDIM_MEMBERSET TIME=%T%

*WHEN TIME

*IS *

*REC(EXPRESSION=%VALUE%,TIME=TMVL(1,%T%)

*REC(EXPRESSION=%VALUE%*2)

*ENDWHEN

*NEXT

Vadim

Former Member
0 Likes

Hi Selva,

Is this only for one input sheet? or all input sheets for the model?

if its only one input sheet then use a hidden sheet that saves doubled up data for this month and next month.

if for the whole model then use default logic.

What is the reason to double it up?

Andy