Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I've read similar threads to this, but nothing that quite answers my question. I'm trying to create a tJava that takes in a table and outputs a table for use by a tmap that will grab data from other tables. I need it to do this:
for (in_row : plan_row) {
for (int i = in_row.StartYear;i <= in_row.EndYear;i++) {
out_row.plan_id = in_row.id;
out_row.year = i;
makeThisARow(out_row);
}
}
So input can look like this:
plan_id start_year end_year
1, 2016, 2018
And output like this:
1, 2016
1, 2017
1, 2018
I don't understand how to interact with the components connected to the tJava. How do I tell it 'give me each row' and 'create a row'?
rhall_2.0 wrote:
I think this might lead you in the right direction. You just need to change the code in the tJavaFlex to accommodate your requirements.
rhall_2.0 wrote:
That code should work. What error are you getting?
You will see a "code" tab in the bottom left hand corner of the design window. Click that to see the code.