Current Position:Home > Datatable info Via Buttons

Datatable info Via Buttons

Update:11-30Source: network consolidation
Advertisement
I am using Lookout 4.5.
I have 300 buttons on my program. I want each button to reference a row of
my excel spreadsheet. I know how to set up a DataTable and I know how the
cursor member works. What I can't seem to manage (in a simple way) is.....
Button 1 moves the table cursor to Row 1
Button 2 moves the table cursor to Row 2
Button 3 moves the table cursor to Row 3
...etc.

The Best Answer

Advertisement
Hi Otto,
It's a good trick but won't work in this case.. 'cos once you release the
PushButton, the Expression will go back to 0.. making the cursor go back
to 1 (the first row).
So, like Loren points out, "each
button needs to latch... then unlatch via a "cancel"... and/or unlatch via
a
"done"... etc.. etc.."
By the way, do any of you use LabVIEW as well? I have written a small VI
which will generate LKS files with such repetitive connections, incrementing
the Object numbers, etc. Comes in pretty handy at times
Regards,
Khalid
"otto" wrote:
Another faster possibility than the nested if statement is cursor=pb1*1+pb2*2+pb3*3+...
the easiest way to generate the expression is to use notepad, use the search
and replace command and paste the whole thing back into the editfield. Better
still use excel to generate the list. Takes about 2 mins. Just to show you...
pb1*1+pb2*2+pb3*3+pb4*4+pb5*5+pb6*6+pb7*7+pb8*8+pb9*9+pb10*10+pb11*11+pb12*12+pb13*13+pb14*14+pb15*15+pb16*16+pb17*17+pb18*18+pb19*19+pb20*20+pb21*21+pb22*22+pb23*23+pb24*24+pb25*25+pb26*26+pb27*27+pb28*28+pb29*29+pb30*30+pb31*31+pb32*32+pb33*33+pb34*34+pb35*35+pb36*36+pb37*37+pb38*38+pb39*39+pb40*40+pb41*41+pb42*42+pb43*43+pb44*44+pb45*45+pb46*46+pb47*47+pb48*48+pb49*49+pb50*50+pb51*51+pb52*52+pb53*53+pb54*54+pb55*55+pb56*56+pb57*57+pb58*58+pb59*59+pb60*60+pb61*61+pb62*62+pb63*63+pb64*64+pb65*6>5+pb66*66+pb67*67+pb68*68+pb69*69+pb70*70+pb71*71+pb72*72+pb73*73+pb74*74+pb75*75+pb76*76+pb77*77+pb78*78+pb79*79+pb80*80+pb81*81+pb82*82+pb83*83+pb84*84+pb85*85+pb86*86+pb87*87+pb88*88+pb89*89+pb90*90+pb91*91+pb92*92+pb93*93+pb94*94+pb95*95+pb96*96+pb97*97+pb98*98+pb99*99+pb100*100+pb101*101+pb102*102+pb103*103+pb104*104+pb105*105+pb106*106+pb107*107+pb108*108+pb109*109+pb110*110+pb111*111+pb112*112+pb113*113+pb114*114+pb115*115+pb116*116+pb117*117+pb118*118+pb119*119+pb120*120+pb121*121+pb122*>122+pb123*123+pb124*124+pb125*125+pb126*126+pb127*127+pb128*128+pb129*129+pb130*130+pb131*131+pb132*132+pb133*133+pb134*134+pb135*135+pb136*136+pb137*137+pb138*138+pb139*139+pb140*140+pb141*141+pb142*142+pb143*143+pb144*144+pb145*145+pb146*146+pb147*147+pb148*148+pb149*149+pb150*150+pb151*151+pb152*152+pb153*153+pb154*154+pb155*155+pb156*156+pb157*157+pb158*158+pb159*159+pb160*160+pb161*161+pb162*162+pb163*163+pb164*164+pb165*165+pb166*166+pb167*167+pb168*168+pb169*169+pb170*170+pb171*171+pb172*>172+pb173*173+pb174*174+pb175*175+pb176*176+pb177*177+pb178*178+pb179*179+pb180*180+pb181*181+pb182*182+pb183*183+pb184*184+pb185*185+pb186*186+pb187*187+pb188*188+pb189*189+pb190*190+pb191*191+pb192*192+pb193*193+pb194*194+pb195*195+pb196*196+pb197*197+pb198*198+pb199*199+pb200*200+pb201*201+pb202*202+pb203*203+pb204*204+pb205*205+pb206*206+pb207*207+pb208*208+pb209*209+pb210*210+pb211*211+pb212*212+pb213*213+pb214*214+pb215*215+pb216*216+pb217*217+pb218*218+pb219*219+pb220*220+pb221*221+pb222*>222+pb223*223+pb224*224+pb225*225+pb226*226+pb227*227+pb228*228+pb229*229+pb230*230+pb231*231+pb232*232+pb233*233+pb234*234+pb235*235+pb236*236+pb237*237+pb238*238+pb239*239+pb240*240+pb241*241+pb242*242+pb243*243+pb244*244+pb245*245+pb246*246+pb247*247+pb248*248+pb249*249+pb250*250+pb251*251+pb252*252+pb253*253+pb254*254+pb255*255+pb256*256+pb257*257+pb258*258+pb259*259+pb260*260+pb261*261+pb262*262+pb263*263+pb264*264+pb265*265+pb266*266+pb267*267+pb268*268+pb269*269+pb270*270+pb271*271+pb272*>272+pb273*273+pb274*274+pb275*275+pb276*276+pb277*277+pb278*278+pb279*279+pb280*280+pb281*281+pb282*282+pb283*283+pb284*284+pb285*285+pb286*286+pb287*287+pb288*288+pb289*289+pb290*290+pb291*291+pb292*292+pb293*293+pb294*294+pb295*295+pb296*296+pb297*297+pb298*298+pb299*299+pb300*300>
  • Datatable info Via Buttons Update:11-30

    I am using Lookout 4.5. I have 300 buttons on my program. I want each button to reference a row of my excel spreadsheet. I know how to set up a DataTable and I know how the cursor member works. What I can't seem to manage (in a simple way) is..... Bu

  • Button don't work in datatable Update:10-11

    Hello, this a strangely problem. I put a button with actionlistener in a datatable, but this button don't work after i click it. The button outside the datatable works fine. I use ObjectListDataProvider in this datatable. I have tested ObjectArrayDat

  • No Button in a specific JSP page fires event.. Update:11-30

    hi I desperately need help in following thing. I wanted to sort a datatable by command links in headers but those were not firing events so i used teh buttons instead. They kept on working fine but now something weird has happened. Neither the button

  • Image in Buttons Update:11-30

    Hi, I'm trying to change the image of a button, im working with datatables in Java Studio Creator. The things is that when my user click a button it have to change the image of the button that was clicked and the others dont have to change. Just one

  • Calling actions from dataTable Update:11-30

    I have a dataTable that contains buttons and some information. When the user clicks one of the buttons I set a hidden form field with the Id of the one that was clicked and call an action. The collection that was used to build the table was in the re

  • Change field value in a table, based on another field value in the same row (for each added row) Update:10-11

    Please Help, I want to change field value in a table, based on another field value in the same row (for each added row) I am using this code : <HTML> <HEAD> <SCRIPT> function addRow(tableID) { var table = document.getElementById(tableID)

  • Could anyone tell me where is the error in this code Update:11-30

    <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head>   <script type="tex

  • How to call action method on commandLink/commandButton Update:11-30

    Faces 1.1 from WebLogic 9.2.2, RichFaces 3.1.3. I'm still getting up to speed with JSF. I'm experimenting with a datatable with "Add" buttons on each row, to give me a new row after the current row (ignoring the problem with inserting at top for

  • UIComponent Update:11-30

    Hi there! I belive it's a very simple question: I have a datatable like this: | Mon | | Tue | | Wed | | Thu | | Fri | | Sat | | Sun | | Delete Project1 | 0:00 | | 0:00 | | 0:00 | | 0:00 | | 0:00 | | 0:00 | | 0:00 | | X Project2 | 0:00 | | 0:00 | | 0:

  • Problem with buttons in datatable header Update:10-11

    Hi I have command buttons in the datatable header .When I display the data in columns there is a gap between buttons .I want the buttons should be stretched automatically along with column data there should not be no gap between buttons regardless ho