Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Creating Array from dataset accounting for parameter input
Migrateduser
<p>Hello,</p>
<p> </p>
<p>I am trying to create an array and populate it with values from my dataset. I will then do some operations with the array. I am using Tririga, so everything comes through as Java Objects, hence the .getNativeValue() function appended to the row.</p>
<p> </p>
<p>In the 'Initialize' step, I declare my array:</p>
<p>myArray = [];</p>
<p> </p>
<p>In the 'onFetch' step, I populate the array:</p>
<div>arrayLength = myArray.length;</div>
<div>myArray[arrayLength] = dataSetRow["triProject__triREProject____triIdTX"].getNativeValue();</div>
<div> </div>
<div>I called the array in a Dynamic Text object on my report to see what it spits out:</div>
<div>myArray;</div>
<div> </div>
<div>The issue I am running into is that the array seems to not take into account the parameters I prompt for that filter out information based upon the record's Received Date. I am, instead, just getting the ID numbers of all the records that pop out from the Tririga system.</div>
<div> </div>
<div>Am I missing some steps in my array creation or usage? Should I be putting the code in different steps of the report creation?</div>
<div> </div>
<div>Thanks for the assistance!</div>
Find more posts tagged with
Comments
There are no comments yet