cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a short to develop a "Publish button" in SAC Planning story?

kashif_abbas1
Explorer
0 Kudos

Hi there,

i am currently working with SAC Planning stories. The only ways to publish data is in data action configuration, or prompt appearance when leaving the story. Is there a way i can develop a button within the story for publishing data after i am done adjusting the plan values?

LaurentS
Explorer
0 Kudos
hello, I think it could be done via button and one line script. could it be the solution for your case?

Accepted Solutions (0)

Answers (1)

Answers (1)

murllimaraati
Participant
0 Kudos

Try the below steps

1. Insert a button element in the story
2. Access its script editor by clicking 3-dots on the button then --> edit Scripts and OnClick function
3. add the below script

Table_1.getPlanning().getPublicVersion("Actual").publish();

let me know if this helps.

kashif_abbas1
Explorer
0 Kudos

Hi Murallimaraati,

the provided solution didnt work. I get this message to which i am not sure.

kashif_abbas1_0-1707724741800.png

 

murllimaraati
Participant
0 Kudos
It should be working. Try to create another version. edit / modify it and change the version it should be working.