The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now!
A chart showing the TIBCO Platform vision
Jump to content
Forums
Ask questions and gain insight from discussions

How to add rows dynamically to the VECTOR


Madhavan Sekar

Recommended Posts

Hi All,

I'm using TIBCO data virtualization v 8.2.0

How to add rows dynamically to the VECTOR

Code:

Step 1: DECLARE startPosVARCHAR;

Step 2: DECLARE testVector VECTOR(ROW(startValue VARCHAR,endValue VARCHAR,insideVector VECTOR(ROW (forName VARCHAR,forNumber VARCHAR))));

Step 3: SET startPos='0,1,2,3'; //this comma seperated value would increase or decrease

Step 4 : SET testVector = VECTOR[('','',VECTOR[('','')]),('','',VECTOR[('','')]),('','',VECTOR[('','')]),('','',VECTOR[('','')])];

The testVector is allowing to push data only if testVector is initialized (Step 4).Since data (Step 3) is dynamic ,The Vector to be made in such a way ot accepts data dynamically.

Kindly suggest a solution

Please refer theattached script

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...