Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

Jump to content

How to add rows dynamically to the VECTOR


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...