Writing Custom Data Into Tables
Writing Custom Data Into Tables
Community
Krzysztof Korościk
Nov 26, 2020 at 09:18 AM
Hello!
Wanted to ask - is it possible to write data into tables in SAC Analytic Designer?
Using Table.getSelection i can download the cell position without any issues. However, browsing thru Api and google i
cannon't find any functions that would allow me to put a value into that cell.
Kind regards,
https://answers.sap.com/questions/13196502/writing-custom-data-into-tables.html 1/5
1/6/24, 9:40 AM Writing custom data into tables | SAP Community
Chris
Assigned Tags
table
script
put
scri
Similar Questions
Mass Upload Excel Transaction Data Via Analytic cloud using Custom Widget
Kamal Kaushik Sep 25, 2023
1 Answer
Best Answer
Vadim Kalinin
Nov 26, 2020 at 09:29 AM
Easy!
1
https://answers.sap.com/questions/13196502/writing-custom-data-into-tables.html 2/5
1/6/24, 9:40 AM Writing custom data into tables | SAP Community
{
for(var i=0;i<selectionArr.length;i++)
{
var selection = selectionArr[i];
//console.log(selection.length);
var dimcount=0;
for(var dimensionId in selection)
{
dimcount++;
}
if (dimcount>1)
{
var data_cell = Table_1.getDataSource().getData(selection);
var table_value=data_cell.rawValue;
if (table_value !== "–")
{
var planning=Table_1.getPlanning();
var num_cell_value=ConvertUtils.stringToNumber(table_value);
var driver_value=ConvertUtils.stringToNumber(InputField_1.getValue())
planning.setUserInput(selection,ConvertUtils.stringToNumber((num_cell_
}
}
planning.submitData();
}
}
The mentioned code is attached to the button. It will multiply selected cells with the value contained
in InputField_1
8 comments
https://answers.sap.com/questions/13196502/writing-custom-data-into-tables.html 3/5
1/6/24, 9:40 AM Writing custom data into tables | SAP Community
Before answering
You should only submit an answer when you are proposing a solution to the poster's problem. If you want
the poster to clarify the question or provide more information, please leave a comment instead, requesting
additional details. When answering, please include specifics, such as step-by-step instructions, context for
the solution, and links to useful resources. Also, please make sure that your answer complies with our Rules
of Engagement.
Rules of Engagement
Please provide a distinct answer and use the comment option for clarifying purposes.
10 characters required.
Find us on
Trademark
https://answers.sap.com/questions/13196502/writing-custom-data-into-tables.html 4/5
1/6/24, 9:40 AM Writing custom data into tables | SAP Community
Newsletter Support
https://answers.sap.com/questions/13196502/writing-custom-data-into-tables.html 5/5