What is wrong with PBO (table control)

Hi,
Another beginner's question. Unable to fill table control.
Following in my Program
report  test_tab_con.
controls flights type tableview using screen 100.
data:  ok_code type sy-ucomm,
       save_ok type sy-ucomm.
data: fill type i,
      begin of itab_con occurs 0,
      id type i,
      name(10) type c,
      address(20) type c,
      end of itab_con.
data: wa_itab like line of itab_con.
perform populate.
form populate.
  itab_con-id = 1.
  itab_con-name = 'ABCD'.
  itab_con-address = 'Test Area'.
  append itab_con.
  itab_con-id = 2.
  itab_con-name = 'XYZ'.
  itab_con-address = 'Come again'.
  append itab_con.
  call screen 100.
endform.
module fill_table_control output.
  move-corresponding wa_itab to flights.
endmodule.                   
module status_0100 output.
  set pf-status 'SCREEN_100'.
  describe table itab_con lines fill.
  flights-lines = fill.
endmodule.
and my screen PBO is:
process before output.
  loop at itab_con into wa_itab with control flights.
    module fill_table_control.
  endloop.
  module status_0100.
But finally I see empty table control. There is some option of w/ selColumn (i m not using this - is it mandatory for display?).
Regards,
Arpit

Still no luck. I am sure it is not being refresh onto the final screen. Just don't know how to get it done
Steps taken to create the UI using screen painter:
- Create screen
- Drag & drop the Table control element
- Press F6 to open dictionary/program fields view, selected itab_con and its fields. Dragged them on to the table control to create it.
- For all the three fields ID, Name, Address - double clicked on the table control and in screen painter attribute marked them as Input Field (possible). Tried it also by marking as Output field.
Do I need to do anything part of the screen painting?
I get three rows in the UI but the text is not visible. What else can be a miss here?
Regards,
Arpit

Similar Messages

  • What is wrong with the table om page 2 (see attached file)

    What is wrong with the table om page 2 (see attached file)

    MySpecialSceenName wrote:
    But there are several empty lines under the text...........
    I'm guessing that by that you mean space for several lines, not empty paragraphs. This could be caused by any number of things, but not allowing hyphenation, or hyphantion rules that are too restictive might cause ID to be unable to break a line which would cause it to go into overset, as would possibly some combinations of Keep Options if there is more than one paragraph in the cell or if there is not enough room to fite the entire paragraph and you are just one line short with keep options requiring at least two lines be kept together at the end, for example. Applying No Break to a sting too wide for the cell would do it too.

  • C# - What's wrong with a table called JOBS? :(

    Post Author: Gee
    CA Forum: .NET
    Hi
    I've just moved up to .NET 2005. and am having a big problem right now with one report in particular.
    The report uses an Oracle table called "JOBS". It worked just fine in .NET 2003. Now though, it comes up with the dreaded field name not known error.
    So, I tried to just do a completely new report with just ONE field from the JOBS table on it. It doesn't want to know!
    I then copied (so it was IDENTICAL) the table structure and data to a new one called "JOBSTEST". The simple report worked (once I'd changed it to use the JOBSTEST fields of course)
    I deleted the original JOBS table, copied a new JOBS table from the JOBSTEST table and... it didn't work again!
    So, what's wrong with having a table called "JOBS"? Because that seems to be the problem!
    Oh... it works ok on the development machine. Just not any other. ALL other reports work fine!
    Thank you so much for your time in helping me

    Post Author: Gee
    CA Forum: .NET
    Hi
    I've just moved up to .NET 2005. and am having a big problem right now with one report in particular.
    The report uses an Oracle table called "JOBS". It worked just fine in .NET 2003. Now though, it comes up with the dreaded field name not known error.
    So, I tried to just do a completely new report with just ONE field from the JOBS table on it. It doesn't want to know!
    I then copied (so it was IDENTICAL) the table structure and data to a new one called "JOBSTEST". The simple report worked (once I'd changed it to use the JOBSTEST fields of course)
    I deleted the original JOBS table, copied a new JOBS table from the JOBSTEST table and... it didn't work again!
    So, what's wrong with having a table called "JOBS"? Because that seems to be the problem!
    Oh... it works ok on the development machine. Just not any other. ALL other reports work fine!
    Thank you so much for your time in helping me

  • What is wrong with as3

    this is not a question about 'how i do X'. is rather a 'discussion' (flame or whatever, but to defend or argue about aspects, not people) about 'what is wrong with as3' and what aspects whould be taken into consideration for updates. right now i am using as3, and since i paid for this license, i choose this tool over some alternatives and i am using it to do stuff for other people who pay me to do it, i think it can be helpful for all of us if some actions are started in the right direction. i have already posted about 'all people in adobe are dumbasses that do not know how to make a scripting tool and are messing up my work', but i was pissed at the time (i still am pissed) but i believe this is not the right aproach. instead, if this goes to the right people in adobe, we all may get something in the future, like better and easier todo apps and web presentations.
    pre: not only about the as3 specification, but COMPLY with the specification that you set. for example, some time ago there were problems with matrix transforms. this was corrected later with a patch. but this means it is not even doing what is is supposed to do
    1. scriptable masks and movement, sprites and child sprites: there is a sprite with a mask, the mask is a shape drawn via script, something like
    somemask=new shape();
    somemask.graphics.beginfill();
    (...etc)
    somesprite.mask=somemask;
    just like that. now add some child sprites to 'somesprite', and make 'somesprite' move, scale and rotate. there you will have something like a kaleidoscope, but not what you expected to do with your script. as the child sprites move in the parent mask, you will see that the child sprites appear or dissapear kind of randomly, and if the child sprites are textfields, it may be that the text is rendered outside the mask, or partially rendered outside the mask (as in only part of the text), rendered with the wrongf rotation or in the wrong place. some child sprites are clipped correctly, some dissapear totally when only a part should dissapear (clipped) etc.
    way around: have not tried it yet, but i have the impression that bitmaps have different criteria for clipping, so i am thinking of trying this: appli an empty filter (a filter with params so it does not have any effect on the sprite or in the textfield) so the sprite is rendered as bitmap before doing anything else with it. as i said, i have not done it yet, but it may be a way around this problem, to avoid all this inconsistency with clipping
    1-b. inconsistency between hierarchy and coordinates, specially masks: you apply a mask to a sprite, yet the sprite has a set of coordinates (so 'x' in the sprite means an x relative to its container), yet the mask applied to the very same sprite, as another reference as reference for coordinates (like the stage)
    2. painting via script: in any other languaje, in any other situation, something like:
    beginFill(params);
    (...stuff 1)
    endFill();
    beginFill(params);
    (...stuff 2)
    endFill();
    (...etc)
    means: render region of block 1, then render region of block 2 etc, and no matter what, it should be consistent, since there is noplace for ambiguity. if you read it, you may think what that means, even if you dont run it you may have an idea of the picture you want to draw, but not with as3. as3 somehow manages to screw something that simple, and mixes all the blocks, and somehow uses the boundaries of one block as boundaries for other block. is like all blocks are dumped into whatever, and then uses all lines defined into it as boundaries for a unique block. it changes all boundaries and generates inconsistency between what is shown and redraw regions of the resulting picture, like lines that go to the end of the screen and then dont go away in the next frames, even tough the beginfill endfill block should prevent it
    3. event flow: i dont know what was the policy behind as3 event flow design. it is in no way similar or an extension to previous event flow, neither with any event flow in any other plattform. i dont know how most people start with as3; in my case, i unpacked, installed and when i tried to do something with what i already knew i could not, so i started reading the as3 docs, and since is like 800 pages long, i just read the basics and the rest i would 'wing it'. in the part of the event flow, there was something about bubbling and stuff, it was not clear at all and when i tried to do what is was said in the documentation (like preventing events to 'bubble', as is called in the documentation), i could not see any effect but i could see it was a mess. flash is not the only thing out there to work with pictures or to work with mouse events, but is the only one that deals with things like 'target' and 'currentTarget'. my first experience on needing this was when i was dealing with my own event handlers (so the only thing that had control over mouse was the stage, and i would admin everything via script). there were events generated everywhere, the stage got events that were not genrated directly over the stage, but got there not with stage coordinates but the coordinates relative to the sprite that generated the event. so if i hover the mopuse over the stage, and the stage has some things on it how does it work? i get multiple event calls, like it was hovering multiple times over the stage in a single frame, but in each call with different coordinates? and what if i set all child sprites as mouseenabled=false or compare like 'if (event.target != event.currenttarget)', what if i move the mouse over a child, does it prevent the move mouse event at all? or does it filter only the event call with only stage coordinates? in my case, every time i move over another clip (with mouseenabled = true), the stage gets it as 'mouse up', even tough there was never a mouse release, what the hell? do even the people at adobe know how to handle events with their own tool when they require it? why does an event 'bubble' when i have not specifically tell it to do it? mi thought is that this event flow was very poorly conceived, and tough the intention may have been that there were different cases and it shopuld cover all cases, they actually introduced new problems that were not present in traditional ways to handle it, and it is neither the easier way to handle things, and this way, a very simple problem turns into a very ugly thing because it must handle things that were not neccesary to handle, or were implicit in other situations.
    4. legacy: since as3, all interaction is different, and if you want to do things in the new plattform, using the new features, what you already knew just goes to the garbage can. when a new tool arrives, it should be an extension to previous tools (which is a reason to update instead of just buying a new tool from a different vendor). if everything i had or knew just means nothing from now on, then i can not say 'i know flash script', and my previous knowledge gives me no advantage when aproaching the new version. as3 is a new aproach that requires doc reading and stuff, even if you knew something about previous as specifications or other oo languajes. if you decide to change things from now on, like the things mentioned in this post, instead of just throwing away everything the users alerady knew about the tool, do like in java releases, they mark some things as 'deprecated', they keep working as they should, give a warning, but also a message saying this feature is deprecated, we suggest you use this library instead.
    5. lack of previous functionality: if you 'update' something, it meand all previos functionality is still there (probably improved, but not with bugs if it was working fine), plus something else. now it seems backwards, there are some things that could be done in previous versions but not in this one, like 'duplicatemovieclip'
    6. inconsistency with scripting/programming paradigms: (ok, fancy work, but fits perfectly here): as3 proposed ways to handle things, but the people who designed it got 'too creative', and they did something that is not consistent neither with previous versions of as or with other languajes. the documentations is full of things like 'it looks like x languaje or languaje family, but instead of using XXX word, you must use YYY'. great, what is this? namespaces 'work like', but 'differently' for example from java, .net, .c. its got the idea that a namespace means a grouped functionality but there are rules about where should be placed the file (ok, java has this also, .net takes care of it automatically if all files are registered in the project), but what you got is a mess that 'if you know other languajes you got the general idea, but nonetheless, even if you knew this or previosu versions of as, you still have to read whatever we decided arbitrarily just to be different'. namespaces, event handling, vars definition which is not like previous scripting neither like fully typed languajes.. is just a mess.
    7. lack of scripting and graphics integration: unlike flash and adobe tools that just got on the graphics side leaving all the scripting integratuion apart, most tools from other vendors integrate very well interacton with what is on the screen. the script editor: very poor. autocompletion? a drop down list that does not heklp at all, appears in the wrong places, and when you need it to go, it does not go (so if i want to move away from the uncalled drop down list, i have to click somewhere else, making developement slowewr instead of helping, so the drop down list does not capture all events when i dont want to). in other ides you double click somewhere and it will go to the part of code relevant to that event or whatever. for example microsoft tools, ok i am antimicrosoft, and one of the reasons was that when windows 95 got to market proposing itself as the ONLY pc os you could use if you wanted to keep useing the apps you already had, it was a lousy product full of flaws but you had to keep using it because you had no choice. what is so different from what is happening with flash just now? yet the ide of c# is awesome, works very well and seems reliable.
    adobe people: not all user are designers that just make pretty pictures. if it is not intended for scripting then why is it there. and if there are corrections to be done, they should patch all versions, not only the last one. previous version users also paid for their versions.

    Well, there is no point in arguing.
    I personally believe AS3 does exactly what it promises to do within limits (read: reasonable limits) of ECMA type of language. And sometimes it doesn’t do what we expect it to for it cannot possibly emulate everyone’s thinking process. The task, I guess, is to learn to think in terms of AS3 – not to try to make AS3 think like us. No language covers all the grounds. And no, it is not Java - with no negative or positive connotation. It is what it is. Period. I just hope that AS5 will be more Java like.
    You are right about the fact that it is not necessary to know all the aspects of language in order to perform the majority of tasks. But it is paramount to have a clear idea about such fundamental concepts as display list model and events. For instance, depth swap has no meaning in terms of AS3 because display list object stacking is controlled automatically and there is no need for all these jumping through hoops one has to perform in order to control depth in AS2. There no more gaps in depths and one always know where to find things.
    Similarly, there is no point in having duplicateMovieClip method. More conventional OOP ways of object instantiation accomplishes just that and much more. Just because OOP object instantiation needs to be learned doesn’t mean past hacks have place in modern times. duplicateMovieClip is a horse carriage standing next to SUV. What one should choose to travel?
    Events are implemented to the tee in the context of ECMA specifications. I consider Events model as very solid, it works great (exactly as expected) and never failed me. True, it takes time to get used to it. But what doesn’t?
    By the way, speaking about events, contrary to believe in Adobe’s inconsideration to their following. Events are implemented with weakly reference set to false although it would be better to have it set to true. I think this is because there are smart and considerate people out there who knew how difficult it would be for programming novices to deal with lost listeners.
    I think AS3 is million times better than AS2. And one of the reasons it came out this way is that Adobe made a very brave and wise decision to break totally loose from AS2’s inherent crap. They have created a totally new and very solid language. If they had tried to make it backward compatible – it would be a huge screw up, similar to how our friends at Microsoft are prostituting VB and VBA – extremely irritating approach IMHO.
    Also, Flash legacy issues shouldn’t be overlooked. Flash did not start as a platform for programmers. Entire timeline concept in many ways is not compatible with the best OOP practices and advancements. I think for anyone who is used to writing classes the very fact of coding on timeline sounds awkward. It feels like a hack (and AS2 IS a pile of hacks) – the same things can be nicely packaged into classes and scale indefinitely. As such I wouldn’t expect Adobe to waste time on hacking timeline concept issues by making smarter editor. They have made a new one – FlexBuilder – instead. Serious programmers realize very soon that Flash IDE is not for developing industrial strength applications anyway. So, why bother with channeling great minds into polishing path to the dead end?
    I would like to state that all this is coming form a person who knew Flash when there was no AS at all. And I applaud every new generation of this wonderful tool.
    I believe Adobe does a great job making transition from timeline paradigm to total OOP venue as smooth as possible. And no, they don’t leave their devoted followers behind contrary to many claims. They are working on making developing Flash applications as easy as possible for people of all walks. Welcome Catalyst!
    Of course there is not enough information about AS3 capabilities and features. But, on the other hand, I don’t know any area of human kind activities that does.

  • What's wrong with this SQL?

    what's wrong with this SQL?
    Posted: Jan 16, 2007 9:35 AM Reply
    Hi, everyone:
    when I insert into table, i use the fellowing SQL:
    INSERT INTO xhealthcall_script_data
    (XHC_CALL_ENDED, XHC_SWITCH_PORT, XHC_SCRIPT_ID, XHC_FAX_SPECIFIED)
    VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N'
    FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION
    SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
    I always got an error like;
    VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT,
    ERROR at line 3:
    ORA-00936: missing expression
    but I can't find anything wrong, who can tell me why?
    thank you so much in advance
    mpowel01
    Posts: 1,516
    Registered: 12/7/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:38 AM in response to: jerrygreat Reply
    For starters, an insert select does not have a values clause.
    HTH -- Mark D Powell --
    PP
    Posts: 41
    From: q
    Registered: 8/10/06
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:48 AM in response to: mpowel01 Reply
    Even I see "missing VALUES" as the only error
    Eric H
    Posts: 2,822
    Registered: 10/15/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:54 AM in response to: jerrygreat Reply
    ...and why are you doing a UNION on the exact same two queries?
    (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
    jerrygreat
    Posts: 8
    Registered: 1/3/07
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:55 AM in response to: mpowel01 Reply
    Hi,
    thank you for your answer, but the problem is, if I deleted "values" as you pointed out, and then execute it again, I got error like "ERROR at line 3:
    ORA-03113: end-of-file on communication channel", and I was then disconnected with server, I have to relogin SQLplus, and do everything from beganing.
    so what 's wrong caused disconnection, I can't find any triggers related. it is so wired?
    I wonder if anyone can help me about this.
    thank you very much
    jerry
    yingkuan
    Posts: 1,801
    From: San Jose, CA
    Registered: 10/8/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 9:59 AM in response to: jerrygreat Reply
    Dup Post
    jerrygreat
    Posts: 8
    Registered: 1/3/07
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 10:00 AM in response to: Eric H Reply
    Hi,
    acturlly what I do is debugging a previous developer's scipt for data loading, this script was called by Cron work, but it never can be successfully executed.
    I think he use union for eliminating duplications of rows, I just guess.
    thank you
    jerry
    mpowel01
    Posts: 1,516
    Registered: 12/7/98
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 10:03 AM in response to: yingkuan Reply
    Scratch the VALUES keyword then make sure that the select list matches the column list in number and type.
    1 insert into marktest
    2 (fld1, fld2, fld3, fld4, fld5)
    3* select * from marktest
    UT1 > /
    16 rows created.
    HTH -- Mark D Powell --
    Jagan
    Posts: 41
    From: Hyderabad
    Registered: 7/21/06
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 10:07 AM in response to: jerrygreat Reply
    try this - just paste the code and give me the error- i mean past the entire error as it is if error occurs
    INSERT INTO xhealthcall_script_data
    (xhc_call_ended, xhc_switch_port, xhc_script_id,
    xhc_fax_specified)
    SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
    hh_switchport, hh_script, 'N'
    FROM tmp_healthhit_load
    WHERE hh_script != 'BROCHURE'
    UNION
    SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
    hh_switchport, hh_script, 'N'
    FROM tmp_healthhit_load
    WHERE hh_script != 'BROCHURE';
    Regards
    Jagan
    jerrygreat
    Posts: 8
    Registered: 1/3/07
    Re: what's wrong with this SQL?
    Posted: Jan 16, 2007 11:31 AM in response to: Jagan Reply
    Hi, Jagan:
    thank you very much for your answer.
    but when I execute it, I still can get error like:
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    so wired, do you have any ideas?
    thank you very much

    And this one,
    Aother question about SQL?
    I thought I already told him to deal with
    ORA-03113: end-of-file on communication channel
    problem first.
    There's nothing wrong (syntax wise) with the query. (of course when no "value" in the insert)

  • What is wrong with my battery?

    What is wrong with it? I have nothing open, other than this one app. It is only a month old, and Mountain Lion seems to have made it this way?
    http://i49.tinypic.com/28hkard.png
    Only 3:20 of battery life?

    1. If the computer is on, turn it off.
    2. Reset the power manager by simultaneously pressing and then releasing Shift-Control-Option-Power on the keyboard. Do not press the fn (Function) key while using this combination of keystrokes.
    3. Wait 5 seconds.
    4. Press the Power button to restart the computer.
    I followed these directions, but the computer turned on when I initially pressed the power button while holding Option, Shift, and Control, so I don't know if it worked properly or not. I'm currently letting my battery drain, though.

  • What is wrong with my nokia e72!!!???

    Hi I recently purchased the e72 it's really nice but it has so many problems! I am clueless on what to do! Can anyone help me please!
    1) My phone dose not upgrade each time it says it failed to install.
    2) When I select the ovi store application on my phone it just does not work.
    3) I go on the ovi store online and I try to download apps it either says the certificate I am getting is too old but I still accept it. And when I do accept to download it just fails.
    4) The gps is just not working every time I connect it to my pc it gives me this error saying i have to disconnect my phone enter maps quit maps and then connect my phone to the computer again. But it keeps giving me the same error and asking me to repeat the steps.
    5) And every time I try to do anything regarding nokia it keeps saying it is giving me a certificate that is out of date.
    Can someone please help me I really don’t know what is wrong with my phone I haven’t done anything to it it's the first time this has happened to me with any nokia device.

    Right on!! Am enjoying my Lumia 900 and looking foward to a 920 later on this year! I find the windowsphone os quick, clean & easy to use and the multi size live tiles ( 7.8 ) make the interface way more innovative & attractive than the dreary grid of icons of the bloated android & overpriced and overrated Ios! although I buy my phones for my own use & satisfaction whenever I use it in company the appearance always brings interest & positive comment. Windowsphone is a "young" os and will hopefully go on to get smarter & better. Yes the tight control that microsoft keep over it causes a few limitations - but if u can't live with that don't buy it! Presumably anyone buying a top range smartphone does at least a little research first! Personally im happy that there's no danger of my handset being killed by a virus, I bought a windowsphone coz having looked around - thats what I wanted and the only handset i'll swap my 900 for will be a 920!!

  • What is wrong with my iBook?

    I have a G4 1.xx ghz iBook. It's about 14 months old, and it just stopped working a few days ago.
    It no longer powers up. I can hear what sounds like the fan when I push the power button, but nothing happens. The display worked just fine right before this happened, but now the display doesn't even turn on when I click on the power. It doesn't even make the startup sound.
    I have to click on shift control alt and power to shut it down. It once started up normally since this happened, but it turned itself off after about 10 minutes.
    What is wrong with my iBook? I've been using Windows again in the past week or so at home, and I really hate it.
    Please provide me some suggestions...
    Is this the infamous logic board problem? I thought those would only occur on the G3.
    iBook G4   Mac OS X (10.4.7)  
    iBook G4   Mac OS X (10.4.7)  

    Now it's working just fine. I am using my iBook now.
    I thought that the Apple Care was only good for 12 months. I am on my 14th or 15th month of owning it.
    iBook G4   Mac OS X (10.4.8)  

  • What is wrong with my Iphone 4s when it won't alert me by sound when text is received

    What is wrong with my Iphone 4s when it wont alert me by sound when text is received?

    You use the side control and make sure your phone isn't on vibrate.  Up is for ringer down is for vibrate.

  • What's wrong with my code? compliation error

    There is a compilation error in my program
    but i follow others sample prog. to do, but i can't do it
    Please help me, thanks!!!
    private int selectedRow, selectedCol;
    final JTable table = new JTable(new MyTableModel());
    public temp() {     
    super(new GridLayout(1, 0));                         
    table.setPreferredScrollableViewportSize(new Dimension(600, 200));     
    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);     
    ListSelectionModel rowSM = table.getSelectionModel();
    rowSM.addListSelectionListener(new ListSelectionListener() {
    public void valueChanged(ListSelectionEvent e) {
         //Ignore extra messages.
    if (e.getValueIsAdjusting()) return;
    ListSelectionModel lsm = (ListSelectionModel)e.getSource();
    if (lsm.isSelectionEmpty()) {
         System.out.println("No rows are selected.");
    else {
         selectedRow = lsm.getMinSelectionIndex();
    System.out.println("Row " + selectedRow+ " is now selected.");
    JScrollPane scrollPane = new JScrollPane(table);
    add(scrollPane);
    createPopupMenu();
    public void createPopupMenu() {       
    //Create the popup menu.
    JPopupMenu popup = new JPopupMenu();
    // display item
    JMenuItem menuItem = new JMenuItem("Delete selected");
    popup.add(menuItem);
    menuItem.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
              System.out.println("Display selected.");
              System.out.println("ClientID: "+table.getValueAt(selectedRow,0));
              int index = table.getSelectedColumn();
              table.removeRow(index);     <-------------------------------compliation error     
         }}); //what's wrong with my code? can anyone tell
    //me what careless mistake i made?
    MouseListener popupListener = new PopupListener(popup);
    table.addMouseListener(popupListener);
    public class MyTableModel extends AbstractTableModel {
    private String[] columnNames = { "ClientID", "Name", "Administrator" };
    private Vector data = new Vector();
    class Row{
         public Row(String c, String n, String a){
              clientid = c;
              name = n;
              admin = a;
         private String clientid;
         private String name;
         private String admin;
    public MyTableModel(){}
    public void removeRow(int r) {    
         data.removeElementAt(r);
         fireTableChanged(null);
    public int getColumnCount() {
    return columnNames.length;
    public int getRowCount() {
    return data.size();
    public String getColumnName(int col) {
    return columnNames[col];
    public Object getValueAt(int row, int col) {
         return "";
    public boolean isCellEditable(int row, int col) {   
    return false;
    public void setValueAt(Object value, int row, int col) {}
    }

    Inside your table model you use a Vector to hold your data. Create a method on your table model
    public void removeRow(int rowIndex)
        data.remove(rowIndex); // Remove the row from the vector
        fireTableRowDeleted(rowIndex, rowIndex); // Inform the table that the rwo has gone
    [/data]
    In the class that from which you wish to call the above you will need to add a reference to your table model.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • What's wrong with my macbook pro (15" early 2011) when i connect it with TV via hdmi

    What's wrong with my macbook pro (15" early 2011) when i connect it with TV via hdmi

    Hello Alex,
    It sounds like you are getting excessive CPU usage when connecting an external display via HDMI to your computer. I would try the troubleshooting steps outlined in the article named:
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    When using an external display be sure to check the following:
    If you're using an Apple notebook, confirm the AC power cable or adapter is securely connected to the computer and the cable providing power to the display is also secure. It is always good to have your notebook connected to AC power when an external display is in use.
    Confirm display adapters are fully seated in their respective connections and that they are supported models and for the computer and display. Refer to these articles to assist you with adapter compatibility and further configuration information:
    Monitor and Display Adapter Table
    About Mini DisplayPort to HDMI adapters
    Apple Mini DisplayPort adapters: Frequently asked questions (FAQ)
    Thunderbolt ports and displays: Frequently asked questions (FAQ)
    Remove all display cable extenders, KVM switches, or other like devices and retest to determine if the issue is resolved.
    Try unplugging the video adapter or cable and then plug it back in.
    If more than one video adapter is in use (or "daisy-chained"), troubleshoot by using only one adapter.
    Example: A mini DisplayPort to DVI adapter connected to a DVI to HDMI adapter is an unsupported configuration because there is a series of adapters in use.
    If available, try using a different display and or adapter (or use a different connector by using DVI instead of VGA, for instance).
    Reset the systemYou can reset the Mac's parameter RAM and SMC.Reset the resolutionStart by resetting the Mac's parameter RAM. If the display does not come up, was previously set to an unsupported resolution, and still results in no video:
    Start up in Safe Mode.
    From the Apple () menu, choose System Preferences.
    Choose Displays from the View menu to open the preferences pane.
    Select any resolution and refresh rate that your display supports.
    Restart your computer.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • What's wrong with my vi

    What's wrong with my VI?
    When i'm using a string control to select on the case structure, my vi  is working as expected. But when i'm using the output of the read visa which outputs exactly the same string as the one i used in control string, the vi is not working as i expect it.
    The output of the read visa string is "HP8593E", an id query from agilent spectrum analyzer.
    thank you for your help..
    JLS
    Solved!
    Go to Solution.

    altenbach wrote:
    crossrulz wrote:
     I recommend using a Trim Whitespace on the string going into your case selector to remove this End Of Line.
    I agree that trim whitespace should be all you need. For good measure, you should also set the case structure for case insensitive matching.
    The instrument's FW has a 50 char buffer for the ID response.  Without knowing the exact FW on the device the ranged case is recommended.   HP has a nasty habit of adding fields where buffers exist (And sometimes even entire alternate language support SCPI) so, a response of "ModelID, FWVER, SER" is to be expected in later FW  "HP8593E..HP8593E\FF" permits this flexibility.  (Especially since the instrument is obsolete and you don't know what FW is on the next device you can buy.)   It may cost just a bit in performace Really? a nanosecond or two for each ID?  we don't ID? the device a million times, it will not impact test cycle time.  Yes a Case insensitive match would be perfered.  Match pattern may be better.
    Its not all that often I would disagree with the two of you...But in this instance
    Jeff

  • I don't know what's wrong with my 3GS. It only shows the black screen with white apple. Turning it on then off doesn't help.

    I don't know what's wrong with my 3GS. It only shows the black screen with white apple. Home button and turning the phone off then on doesn't seem to do anything.

    Thanks Lucas,
    I've tried doing that with no results. Same screen keeps showing. Maybe it'd be more helpful if I told you a bit more info.  My phone was randomly playing music, and the voice control would also suddenly start without me touching the phone.  Then I let the battery die and started to recharge when on the screen it indicated to plug into my computer/iTunes, I tried to restore but was getting an error message (can't remember what it said now). Battery died and now my current issue of the black screen with white apple.  I'd love to be able to restore my phone but now its not showing as a device on my iTunes. HELP! Any other suggestions?

  • What's wrong with the code?

    public void run()
    try
    {     for(;;)
         mgr = (RTPManager)RTPManager.newInstance();
         mgr.addSessionListener(this);
         mgr.addReceiveStreamListener(this);
         try{  /*****port1 = port2 = 29261, which port is only used in here
         localAddr = new SessionAddress(InetAddress.getLocalHost(), port1);
         destAddr = new SessionAddress(ipAddr, port2);
         }catch(Exception e)
              System.out.println(e + " 4");
         try{
         mgr.initialize(localAddr);
         }catch(Exception e)
         System.out.println(e + " 5");
         //set buffer
         bc = (BufferControl)mgr.getControl("javax.media.control.BufferControl");
         if (bc != null)
         bc.setBufferLength(20);
         try{
              mgr.addTarget(destAddr);
         }catch(Exception e)
         System.out.println(e + " 2");
    catch(Exception e)
         System.out.println(e+ " 3");
    the error when i run the code is like that:
    javax.media.rtp.InvalidSessionAddressException: Can't open local data port: 29261
    5
    java.io.IOException: Address already in use: Cannot bind 2
    which means there is error in :
    mgr.initialize(localAddr);
    mgr.addTarget(destAddr);
    But i don't know what's wrong with the code,
    can any one help me?

    I do not find any problem using the same ports for local and destination address with several unicasts. My problems are others.
    But note that the error is even at constructing the localAddress, I mean before trying the destinationAddress. Thus the reason cannot be the former is already in use. In fact I think the later belongs to a remote hosts. Likely, it is trying to access the destinationAddress through the localAddress, but this has not been constructed properly.

  • Problem with a table control

    Hi gurus,
    I´ve a problem with a table control. It has 3 columns which one is a checkbox.
    I can fill all fields but in the moment I mark the checkbox this line must be unwritable. How can I do it?
    Thanks for all
    Dani

    Assign a function code to the checkbox column....
    so when u check / uncheck any entry, PAI + PBO will be triggered....
    In the PBO during the loop of table control, check the checkbox field value. if it is 'X', make the row readonly
    by looping at screen and setting screen-input = 0 for rest of the columns.
    like ...
    LOOP AT tc_itab
           WITH CONTROL tc_test
           CURSOR tc_test-current_line.
       module set_row_readonly. " loop at screen and set input = '0' if checkbox is checked...
    ENDLOOP.

Maybe you are looking for

  • Facebook event overload in iOS 6 Calendar.

    I like the idea of easily having events that I am going to synced in my Calendar, but, apparently, it adds events that you've been invited to even if you haven't decided to go.  I don't need my Calendar filled with potential events, I only want the o

  • RSA SecurID no longer available on Nokia N8 Belle

    Just upgraded my Nokia N8 and was shocked to see that RSA SecurID is no longer available I wonder how can such an important business app can be missed ! Lucky for me I have an Andriod Tab, but other N8 users beware. Solved! Go to Solution.

  • Copy & paste to new document doesn't preserve World Ready attributes

    I am running ID CS 2014 under Windows 7. I have 2 documents and am copying and pasting text from one to the other. Both have paragraph & character styles with identical names but different definitions. I want the pasted text to retain the styles from

  • How to get space between two values in a single cell of a table.

    hello,         how to get space between two values in a single cell of a table. thanks a lot. kailash.

  • Object living with servlet/jsp container

    How do I make an Object live until the servlet container lives? I mean I want an Object to be instantiated once in the lifetime of the webserver session and its has to be singleton and should live alive until the webserver dies? How can I make this p