The approach is good, but there are a few errors.
-> You are not uniquely declaring your buttons in the "this.controls" object.
-> I would suggest passing all the information you need to the button event needed in the next view. That way you do not need to go grab it when displaying the "view-sub2"
Taking a look at the unique button elements in the controls object issue:
CODE
//You have
this.controls = new KONtx.control.TextButton({}).appendTo(this);
//Should be
this.controls["button"+x] = new KONtx.control.TextButton({}).appendTo(this);
Explanation: While looping through you are adding 10 buttons that are all linked together under the "this.controls" object. So when you reach the 10th item and set the this.controls.title, it is setting all the other buttons to the same value.
Next is the passing the information into the event for the button
CODE
//You have
KONtx.application.loadView('view-Sub2', { text:description.substr(1) });
//New Loop Segment
for(x=1;x<10;x++){
//Put all your information into one object.
var info = {title: myXML.evaluate( "string(rss/channel/item["+x+"]/title)" ), description: myXML.evaluate( "string(rss/channel/item["+x+"]/description)" ) };
var offsetMove = 35*x;
var guidText = "news"+x;
//Set up each button as an object inside this.controls
//Accesible by using this.controls.button1 and/or this.controls['button1']
this.controls["button"+x] = new KONtx.control.TextButton({
label: info.title.substr(1),
guid: guidText,
events: {
onSelect: function(event) {
//Wjhen the button is clicked it is using the information we attached below
KONtx.application.loadView('view-Sub2', this.info);
}
},
styles: {
fontSize: KONtx.utility.scale(2),
width: Theme.viewSpecs.SIDE_BAR.width,
height: KONtx.utility.scale(35),
vOffset: KONtx.utility.scale(offsetMove),
}
}).appendTo(this);
//Attach the RSS Information before we move on -> Need this later in the button event
this.controls["button"+x].info = info;
}
Explanation: By attaching the information to the button object, you are able to access the info through the event by referencing with "this.info". Also, you will now be able to grab all the RSS information you need in the next "sub-view2" by using "this.persist.info" by adding it to the "info" object in the loop. this.persist.info.title, this.persist.info.description, etc
Also, might want to look at a Grid for running out list of buttons like this. You can customize the appearance and their is built in controls for fillping through pages of the list information.