Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Getting data from the second row
DEV SAHU
Hi All,
In our DataSet the data comes in multiple rows.
we are able to fetch the data of the first row with
row["COLUMN_NAME"]. how can with fetch the data
of Second row.
for eg.
EMP_ID EMP_NAME DEPT_ID
1001 DAVE 10
1002 MARVERIK 20
2001 LOREN 10
if we write row["EMP_NAME"] we get DAVE
how can we get MARVERIK???
Thanx in advance.
Find more posts tagged with
Comments
bricombs
Good Day
Where in your report are you wanting to get the data from the second row? What is it that you are trying to accomplish?
DEV SAHU
<blockquote class='ipsBlockquote' data-author="'bricombs'" data-cid="115384" data-time="1364231267" data-date="25 March 2013 - 10:07 AM"><p>
Good Day<br />
Where in your report are you wanting to get the data from the second row? What is it that you are trying to accomplish?<br /></p></blockquote>
<br />
<br />
<br />
Hi Britcombs,<br />
<br />
greetings of the day,<br />
<br />
we are adding the data set to the report.<br />
and trying to assign the value from the 2nd row<br />
to a label.
bricombs
Good Day
Is there a reason why you cannot use a table with a Dynamic Text or Data control in the detail row?
DEV SAHU
<blockquote class='ipsBlockquote' data-author="'bricombs'" data-cid="115390" data-time="1364241941" data-date="25 March 2013 - 01:05 PM"><p>
Good Day<br />
Is there a reason why you cannot use a table with a Dynamic Text or Data control in the detail row?<br /></p></blockquote>
<br />
<br />
Hi.Britcombs ,<br />
<br />
Greetings of the day.<br />
<br />
<br />
We can use use Dynamic Text or Data control as well but we want to show the value other than detail row.<br />
There is a separate grid which we are adding data control<br />
And trying to show the value from 2nd row of the data set.<br />
We are new to gory and we don't know how to achieve this<br />
We tried a lot of Googling but didn't got any ideas.
bricombs
Good Day
Do you have example of what you are trying to do that you can post.
Hans_vd
Hi Dev Sahu,
Did you bind the data set directly to a grid?
Remove the grid and try binding the data set to a table element instead.
Regards
Hans
DEV SAHU
<blockquote class='ipsBlockquote' data-author="'Hans_vd'" data-cid="115432" data-time="1364367646" data-date="27 March 2013 - 12:00 AM"><p>
Hi Dev Sahu,<br />
<br />
Did you bind the data set directly to a grid?<br />
Remove the grid and try binding the data set to a table element instead.<br />
<br />
Regards<br />
Hans<br /></p></blockquote>
<br />
<br />
Hi Britcombs,Hans,<br />
<br />
Thanx for you support.<br />
The Problem is solved now.<br />
for anyone who faces the same problem as mine here is the solution what I did.<br />
1. On Initialize of report<br />
declare a array and a count variable;<br />
myArray = [];<br />
count = 0;<br />
<br />
2. onFetch of dataSet<br />
myArray[count] = row['COLUMN_NAME'];<br />
count++;<br />
<br />
1st point we are creating two global variables myArray and count.<br />
2nd point we are adding the value of the column row wise to the array.<br />
<br />
this array will be available to all the child element of the report to do any processing/Calculation.<br />
<br />
you can fetch the value of your required row like below.<br />
<br />
for(i=0;i<myArray.length;i++)<br />
{<br />
if(myArray
== "DEV")<br />
return true;<br />
}