Business Rule - Assign text value using rules in cloud (e)pbcs
Hello,
Lets consider the following example;
FIX(FY18, Actual, Jan, Entity_NA)
"Sales" = 100;
ENDFIX
Now if we execute this script, it will assign the value 100 to Sales. Suppose we change the below script (assuming "Sales Description" is text member)
FIX(FY18, Actual, Jan, Entity_NA)
"Sales" = 100;
"Sales Description" = "2018 actual sales for Jan"
ENDFIX
The above script gives an error. What if we want to assign text value? Thats when Planning formula expression comes to help Get ID for String .
FIX(FY18, Actual, Jan, Entity_NA)
"Sales" = 100;
"Sales Description" = [[PlanningFunctions.getIdForString("2018 actual sales for Jan")]]
ENDFIX
Currently it works only on cloud, although it is available for 11.1.2.4 on premises.
You can even pass the run time prompt;
FIX({vYear}, Actual, Jan, Entity_NA)
"Sales" = 100;
"Sales Year" = [[PlanningFunctions.getIdForString({vYear})]]
ENDFIX
It will give error "expression expected after []" which can be ignored, once executed from data form or planning rules it will populate the selected year in the member "Sales Year"
Unfortunately, right now it works only with hard coded text or run time prompt, any dynamic text value like @CONCATENATE("2018", "Sales") doesn't work
Hope you like this :)
Lets consider the following example;
FIX(FY18, Actual, Jan, Entity_NA)
"Sales" = 100;
ENDFIX
Now if we execute this script, it will assign the value 100 to Sales. Suppose we change the below script (assuming "Sales Description" is text member)
FIX(FY18, Actual, Jan, Entity_NA)
"Sales" = 100;
"Sales Description" = "2018 actual sales for Jan"
ENDFIX
The above script gives an error. What if we want to assign text value? Thats when Planning formula expression comes to help Get ID for String .
FIX(FY18, Actual, Jan, Entity_NA)
"Sales" = 100;
"Sales Description" = [[PlanningFunctions.getIdForString("2018 actual sales for Jan")]]
ENDFIX
Currently it works only on cloud, although it is available for 11.1.2.4 on premises.
You can even pass the run time prompt;
FIX({vYear}, Actual, Jan, Entity_NA)
"Sales" = 100;
"Sales Year" = [[PlanningFunctions.getIdForString({vYear})]]
ENDFIX
It will give error "expression expected after []" which can be ignored, once executed from data form or planning rules it will populate the selected year in the member "Sales Year"
Unfortunately, right now it works only with hard coded text or run time prompt, any dynamic text value like @CONCATENATE("2018", "Sales") doesn't work
Thank you, for the detailed explanation.
ReplyDeleteI tried using this function on Hyperion planning 11.2.4 but its not working. Is it available only for cloud?
Hey Sorry for late reply..
DeleteThis function doesn't work for on-premise application though it's available there. It works only on cloud currently.
I don't understand how we can use the rule if we receive an error? I deployed the rule with the error and then tried to launch it from Business Rules I launch it and it never shows in the job queue.
ReplyDeleteHi,
DeleteYes, you can deploy the rule even if you have error, calc manager asks for confirmation the rule has error do you want to deploy?
Are you using cloud ? then it should work as long as you get the error mentioned in the post for other errors it might not work.
Its strange that it doesnt should up in Job Console. Try from data form
This doesn't work in Hyperion Planning, I tried deploying after getting the error message
Deletethanks for the feedback
ReplyDeletethanks for the feedback
ReplyDeleteThis worked, we need to run it as a user from form or Rule not rule editor and it worked. Thanks alot this is very helpful
ReplyDeleteThanks for the details , I have tried it
ReplyDeleteand this works fine with Oracle pbcs cloud
:)
Delete