Hi All,
I have a requirement in which, I need to read row wise data from a data source.
for eg:- I have a data source naming YABC_SAMPLE (DS_SAMPLE) and its structure is as shown below:
EmpID EmpName Designation Address 1 Address 2 Salary
1011 Ravi Developer Bangalore India 25000
1012 Ashok Team Lead Chennai India 40000
1013 Shankar Manager Mumbai India 65000
I need the result as,
1011
Ravi
Developer
Bangalore; India
25000
How I can achieve this in SAP Design Studio. I want to populate this record in a Text Box or List Box with scroll enabled.
I tried the following code, but I am able to get only the column headings or the Dimension name of the objects
var Dim_Array_Rows = DS_SAMPLE.getDimensions(Axis.ROWS);
var Rows = "";
Dim_Array_Rows.forEach(function(element, index) {
Rows = Rows + element.name +" ("+element.text+");";
});
APPLICATION.alert("Dimensions in Row:\n"+Rows);
Result:
EmpID(EmpID);EmpName(EmpName);Designation(Designation);Address 1(Address 1);Address 2(Address 2);Salary(Salary)
Kindly help me in this to solve it.
Regards,
Arun Krishnan.G