Posted in XPages

Use Keyboard Right/Left to Navigate pager in xPages

add this scriptblock in your page to enable the keyboard left and right keys when you want to move around the view.

<xp:this.value><![CDATA[var pagerID = “#{id:pager1}”; // <– Enter the ID of the pager control here which would change based on left / right arrow keys

pagerID = pagerID.replace(/:/g, “\\3A”);
dojo.connect(document.body, “onkeydown”,
function(evt) {
switch (evt.keyCode) {
case dojo.keys.LEFT_ARROW:
var previousLink = dojo.query(“#” + pagerID + ” .xspPagerNav.xspPrevious a”)[0];
if (previousLink != null) {;
case dojo.keys.RIGHT_ARROW:
var nextLink = dojo.query(“#” + pagerID + ” .xspPagerNav.xspNext a”)[0];
if (nextLink != null) {;

Posted in XPages

How to Append and Prefend using Javascript in xPages

create a function like this on your page

function addToList(thisdoc:NotesXspDocument, fieldname:string, newVal:string, atype:string) {
var newArr = new Array(thisdoc.getItemValue(fieldname));
switch (atype) {

case ‘append’:
case ‘prepend’:
thisdoc.replaceItemValue(fieldname, newArr);
return true;

And to use the function:

addToList(document, “foo”, “blah”, “append”)

Posted in Stocks


Practise chart observation. Correct me if im wrong.

Setup ko is Stochastic, here yung red line di pa umaangat but its good na nasa baba sya

RSI wala pa sa 30 para maging oversold pero data shows na foreign is buying now.

It is near the immediate support of 29.90 so pwede mag test buy dito

Note: wala ako nito, just practising charts 🙂

Posted in Gadget

Dtv with bluetooth, fm and mic

 Got a hand on this digital tv box, it’s similar to other tv box but with additional functions like bluetooth, FM station, has microphone plug. HDMI is also in place, and supports audio output so you can extend the sound to your home theater or any sound system you have. You can also play usb up to terabyte, well i have’nt tested it yet.

What i dont like is the built in speakers, i think it has no bass in it, when the salesman demo it to me it sounds awful 🙂

But overall i think this is great compared to other tv box because of the additional function it has.

Posted in Gadget

Kata box unboxing

After opening i immediately check for upgrade of firmware and there is one.


The controller is easy to use but its kinda slow when charging


The Kata box. Looks very similar to apple tv


It has a remote controll that can also be used in games

After looking around the settings i installed Beach Buggy Blitz

It is playable although it hangs in the middle of my run. Didnt know what happen and it stop reaponding so i shutdown the console.

Played crossy rode, this one is so fun to play but seems the remote is a bit delayed on a click. You have to count ur click to avoid over clicking.

I also check the soccer game but this one is very little in figures, much better if the player is bigger since it is displayed on a wider screen.

Then the bomb squad. This i enjoyed alot, i have no idea what this game is i just click on punch and run around to avoid the bomb thrown at me.

Spotify: good but needs fast internet connection to download my playlist.

Youtube: again need fast internet to enjoy it.

Video: all format is playable. I still need to check if the console can detect my sata hdd.

Overall: its a good media player.
Gaming Console: you need to check on games if its playable via controller since most of the games in android is on touch mode