SimpleTable adapter...how to use it?

Hallo,
this is my first attempt to use javame, even if i used javase and other programming languages first.
I'm trying to make a simple app that elaborates some data, displays it in a table and then re-elaborate ad refreshes it.
I managed to use the simpleTable table adapter in a midlet, but every try to update data simply does nothing.
This is the actual getter (unmodified)
    public SimpleTableModel getTableModel1() {
        if (tableModel1 == null) {
            // write pre-init user code here
            tableModel1 = new SimpleTableModel(new java.lang.String[][] {
                new java.lang.String[] { "1", "2", "3", "4", "5" }}, new java.lang.String[] { "Exe", "S", "R", "W", "P" });
            // write post-init user code here
        return tableModel1;
    }This is what i tried:
The simpleTableModel is already attached to the table, so i tried to "reconstruct" it with my data upon refresh event.
Same constructor, different data values, ending array is the column headers.
The following code is executed hitting a commandItem. (i used System.out.println to ensure the code is executed)
tableModel1 = new SimpleTableModel(new java.lang.String[][] {
                new java.lang.String[] { "6", "7", "8", "9", "0" }}, new java.lang.String[] { "Exe", "S", "R", "W", "P" });
tableModel1.fireTableModelChanged();No compile nor runtime errors, but no changes!
What am i doing wrong?
I already googled for answers, but unsuccesfully.
If you can head me to the right documentation, it is ok too... i just need to implement the refreshing tables...
Thanks very much!
Luca

First of all, you seem to be using some custom classes as there is no table and no SimpleTableModel in Java ME.
That said,
The simpleTableModel is already attached to the tableSo when you assign the variable reference tableModel1 to a new object, it is the earlier referred object that is still 'attached' to the table, not the newly constructed one.
If you can head me to the right documentationThat would be available from wherever you got the classes.
db

Similar Messages

  • USB Skype Phone Adapter - How to use it?

    Hello everyone,
    I would like to ask regarding USB Skype Phone Adapter, as I am planning to buy it. But, before I buy it I would like to know if I can still use skype to call locally using the land phone line (since it's by contract, and local calls are all free). Can I use the skype keypad to make those calls? Can I have access to my land phone line through skpye to make local calls, even though I might use it from a different country through skype? Please help me with issue. Thank you very much in advance! 
    phoenix

    First of all, you seem to be using some custom classes as there is no table and no SimpleTableModel in Java ME.
    That said,
    The simpleTableModel is already attached to the tableSo when you assign the variable reference tableModel1 to a new object, it is the earlier referred object that is still 'attached' to the table, not the newly constructed one.
    If you can head me to the right documentationThat would be available from wherever you got the classes.
    db

  • Sender Mail Adapter - S/MIME - How to use it?

    Hi guys,
    I am trying to figure out how to use the S/MIME security parameter of the Sender Mail Adapter in PI 7.1.
    Could anyone point me to some useful documentation/examples/blogs ?
    Or perhaps explain what steps are involved when configuring this parameter?
    We are pulling emails from an Microsoft Exchange server.
    Many thanks,
    Aldo

    First of all one sender mail adapter has to be tight with a specific sender email address.
    The email has to be decrypted as whole, you cannot decrypt parts of it.
    Then you store certificates to secure store in J2EE server and point to it in send agreement, this should be equal to HTTPS setup
    Check security guide:
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/f7/c2953fc405330ee10000000a114084/frameset.htm

  • Ipad2 gives me ""accessory is not supported" message w/ VGA adapter that I used lots of times before. Now it's not working. Why? and how do I get it back to normal functioning?

    Ipad2 gives me ""accessory is not supported" message w/ VGA adapter that I used lots of times before. Now it's not working. Why? and how do I get it back to normal functioning?
    I used the (Apple branded) VGA adapter lots of times last year. Now I got back to one place I used it many times and it does not work. When I restart iPad with the adapter connected, I get the "accessory is not supported"message. But that same accessory WAS supported before.
    This is very annoying as I planned a whole bunch of presentations starting this week to do with my iPad2 and that adapter.

    I received the same error message, "Accessory Not Supported"  from both the VGA and DV video adapters I purchased, both were boxed direct from Apple. However, to bypass this problem I  simply clicked on Photos icon on iPad2 and flipped through photos until it displayed on my projector.  I then exited the Photos app and my home screen displayed fine on the projection screen.
    Some logic issue with the video adapters, but launching Apple Photo app initializes the video adapters then they work fine for mirroring after that.
    Platform: iPad2
    IOS: 5.1.1
    Best regards!

  • When using Parallels for Windows 7, I cannot connect to Wi-Fi. I get drop down menu "Real Network Adapter Thunderbolt Bridge used by Virtual Adapter 1 is not connected to the network". How do I fix?

    When I try to connect to internet wirelessly (Parallels/Windows 7 on my Mac Pro) I get a drop down that says "Real Network adapter thunderbolt bridge used by virtual adapter 1 is not connected to the network". I can not figure out how to connect - any help is appreciated!

    Since you are having trouble with Parallels or Windows, did you ask in their respective support forums? If not, you might want to consider doing so.

  • How to use import script with FDM using adapter ERPI?

    Hi,
    I use FDM and ERPI 11.1.2 to load data from EBS R12 to Planning 11.1.2
    Data loaded from eBS are YTD data.
    I have seen that I could use an import script to calculate manually the amount with the periodic_net_cr and periodic_net_dr fields.
    But how to use this import script? Because in my import format in FDM, I don't use a file but directly the adapter, so no "Expression" field.
    Thanks in advance for your help
    Fanny

    Hello Fanny,
    No you will not need to put anything in the BatchAction. If you review the FDM API Documentation posted it will outline all the scripts that will execute for a particular event ... and the order in which they execute. The BatchAciton only affects the execution of the batch ... it does not control processing of data. Processing of data is controlled by many others.
    There is a script that can be written and placed (as Tony mentioned) in the ImportAction that will be able to recaculate the values from ERPi to be YTD values. You can possibly open an SR and a support Engineer can help you .... or you can search the current KM base and use that information there from the v11.1.1.3.00 version to build your own for v11.1.2.x
    Thank you,

  • What's the WS adapter and how to use it?

    Hi,
    When I create Comunication channel, i need to select adapter type.
    one of the adapter types is WS adapter?
    I searched in help portal and sdn, but can't find any information.
    Who know WS adapter and how to use it?
    Could youplease provide such information.
    Thanks in advance,
    Best Regards, Johnney.

    >>In SAP XI / PI, WS adapter is not thier frm standard SAP.
    Are you sure about this?
    WS is a standard adapter shipped along with PI 7.1 installation.
    Quote from help.sap.com
    Using the WS adapter you can configure the communication of systems, which communicate with each other using the Web service runtime either directly (point-to-point) or using the Integration Server
    Refer:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/0d/5ab43b274a960de10000000a114084/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/en/45/37d73b80554c2ce10000000a1553f6/frameset.htm
    If you are not sure about what you are saying, it is better not to say it.

  • Any one knows how to use Axis Framework in the SOAP Adapter Modules

    How to use Axis Framework in the SOAP Adapter?
    How to add custom handler modules?
    http://help.sap.com/saphelp_nw04/helpdata/en/45/a4f8bbdfdc0d36e10000000a114a6b/frameset.htm
    I went through the above link on help.sap.com. But still could not create a working example.
    I have created a wc on some 3ed party app server using apaches axis. I am trying to call that web service from XI using SOAP receiver? I need to add some security related headers to the soap message, SO I am trying to use a handler.  I want to know how to configure this handler in SOAP axis adapter module.
    Thank you
    Moni

    Ravi ,
    I am trying exactly the same. Hers is the scenario.
    ABAP Proxy --> PI (7.0) SP 12 ---> WebService.
    Since This is service is secured, means it is using OASIS web servie securyty user name token,
    I am trying to use AXIS adapter. and I want to configure HandlerBean in which I want to use apache wss4j api to add the userNameToken. I am looking for some documentation on this.
    I need to add SOAP action element too as I can not configure this one on the communication channel.
    Thanks for any inputs in this regard.
    Moni

  • How to use File Adapter Receiver to write attachments

    Hi,
    i have a scenario, in which our own XInotes adapter sends an XIMessage from an IBM Lotus Notes database into XI. This XIMessage contains an XML document as application main document and several PDF files as additional attachments 
    On the receiver side, i must use a File Adapter to write both the XML documents and the PDF attachments into a directory.
    The problem is i don't know how to use the file adapter receiver to write the attachments. In the Channel Monitoring, i can see that all PDF files are transferred to the file receiver. But the file adapter writes only the XML document into the directory.
    I've also tried the AF_Modules/PayloadSwapBean, but it can only swap one PDF file into the application payload. And the file name must be hard coded in the module configuration as swap.KeyName.
    Could anyone give me any ideas?
    thanks a lot in advance
    Xiang

    hi,
    receiver file adapters do not supprt attachments.
    Only File Sender adapter is capable of handling attachments not the receiver.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm
    Configuring the sender FILE adapter
    The sender file adapter is configured to pick the normal payload (file1.xml), which is specified in the File
    access parameters, and the additional image file (file1.jpg) that is to be sent as an attachment is configured
    under the Additional File(s) as shown in the screenshot below. The file type would still remain binary.
    Since, by default, XI sends payload and attachments in XML format, we need to call two beans, namely the
    MessageTransformBean and the PayloadSwapBean to help us is transforming the content to jpeg format
    and also change the file extension.
    The PayloadSwapBean module is used to replace the application payload of the XI message that holds the
    data with another payload which is appended to the message as an attachment. In our case, the payload
    would be file1.xml whereas the attachment would be file1.jpg
    The swap module is denoted in our scenario with the module key ‘swap’. It has two parameters from the
    MIME header.
    regards,
    pradeep.

  • How to use sql variables in jdbc send adapter??

    Hi,
    i wanna use a variable in the sql statement in the jdbc send adapter.
    i know i can key sql statement in the "Query SQL Statement" in the jdbc send adapter.but i dont know how to use variables in the sql statement.
    i mean, for example, the sql statement is "SELECT * FROM t_student WHERE READFLAG = 0", but now i wanna instead of "0"(the value of the READFLAG) using a variable.
    and if i can use a variable to replace the "0"(the value of the READFLAG above sql statement), then how can i send a value to the variable??
    request help in the regard.
    thx in advance.
    Brian

    Hi,
    Use the place holders to pass the data at runtime. Check the below structure for more details.
    Hope this helps.
    Thanks and Regards,
    Kalpesh
    <root>
      <stmt>
        <Student action="SQL_QUERY">
          <access> SELECT * FROM t_student WHERE READFLAG = '$FLAG$ </access>
          <key>
            <FLAG>0</FLAG>
          </key>
        </Student>
      </stmt>
    </root>

  • How to use Stored Procedure Call in Sender JDBC adapter

    Hi All,
             Could someone send me a blog on how to use Stored Procedure call in Sender JDBC adapter?
    Xier

    Hi Xler
    refer these links
    /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    Also, you can check Sriram's blog for executing Stored Procedures,
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    /people/jegathees.waran/blog/2007/03/02/oracle-table-functions-and-jdbc-sender-adapter
    This blog might be helpfull on stored procedures for JDBC
    JDBC Stored Procedures
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    Please go through these threads and see if it helps...
    Re: How to execute Stored Procedure?
    Re: Problem with JDBC stored procedure
    Thnaks !!

  • How to Use SQL Query having IN Clause With DB Adapter

    Hi,
    I am using 11.1.1.5 want to find out how to Use SQL Query having IN Clause With DB Adapter. I want to pass the IN values dynamically. Any ideas.
    Thanks

    invoke a stored procedure, it's safer than trying to put together an arbitrary SQL statement in the JCA adapter

  • How to use File Adapter with hierarchial Structure?

    Hi,
    How to use File Adapter with hierarchial Structure like..
    Data:
    --Header Details:
    Line Item Details:
    Data
    Bcoz I am getting a Flatfile in a hierarchial way as shown below.
    Header Details :1
    Line Item a
    Line Item b
    Header Details :2
    Line Item c
    Line Item d
    Kishore

    Hey Kishore,
    In order to create a structure you need to use the file with convertion mode on the sending communication channel of the file adapter.
    check the link for the needed configuration paramters.
    If the structure is more complexed you can use the Contetnt master(CM) from itemfield which allows to ceate XML file from complex flat files and more.
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm">File sender adapter</a>
    If you have any question i'll be more than happy to assist.
    Nimrod Gisis

  • How to use 45W MagSafe 2 Power Adapter with cable management MagSafe 2 power port macbook air 2013

    How to use 45W MagSafe 2 Power Adapter with cable management MagSafe 2 power port macbook air 2013 there's two plugs do I use both for the safety to work or I just one ? Thanks sorry new macbook air 2013 was given to my daughter fir her 18th bday 2 days ago by my brother

    No, the one is just an extension cord,          just use the 45W charger with its attached thin cord and connect the magnetic magsafe to to the connector on the back left of the macbook Air for use and charging it

  • How To use certificate in SOAP-Adapter

    Hi, well because the invoked external WebService needs a certification in SOAP-Adapter the option <i>Configure Certificate Authentication</i> exists.
    I know that i have to put some values in keystore via VisualAdmin but i only got a certificate key. Do i need to generate some other values?!
    Can somebody provide me with some links or a blog on this issue?!
    br

    See this
    /people/rahul.nawale2/blog/2006/05/31/how-to-use-client-authentication-with-soap-adapter
    Regards,
    Prateek

  • How to use USB Y adapter with HDD 500GB V63700-A

    Hi,
    My external HDD V63700-A500GB has difficulty working in my USB2.0 4 port adapter.
    I thought perhaps it needs more power going into it.
    So I bought a USB-Y but I can not figure out how to use it.
    It has 2 male USB connector wires and a very small narrow one which does not go into the thin wide socket of the above HDD.
    Anybody uses these things to advise me how to?
    ...... thanx
    .....nick

    Thanx Joel,
    definitely looks like the correct one but, can you give me a link on where to get it?
    I keep googling for a "USB-Y cable for external hd" with no luck.
    .........nick

Maybe you are looking for

  • Mavericks Mail Search Not Working

    When I try to search in mail nothing happens. I have rebuilt and reindexed the mail box's still no change. What do I need to do?

  • How to display the rows in to columns and columns into rows?

    DES:- I know by using pivot and unpivot you can convert rows into columns and columns into rows but i don't know how to write the syntax?

  • How to start up MAC mini only in the verbose mode (command line) , no GUI

    Can anyone let me know how I can set up the mac mini to ALWAYS boot into a verbose mode only, no GUI interfaces at all? Mac Mini   Mac OS X (10.4.6)   Mac Mini   Mac OS X (10.4.6)  

  • Finder Screen Sharing

    Add to option 4, Finder Screen Sharing on this tip: http://discussions.apple.com/thread.jspa?threadID=1587927 By the way, are the instructions the same for 10.6? And I assume this is not available for 10.4?

  • Adding new segment to IDoc type DELVRY03

    Hello everybody! I just got a request to add two new segments to an Idoc (type DELVRY03) under the segment E1EDL24. (E1EDL43 and E1EDL41). They told me to use the userexit EXIT_SAPLV55K_004 to add the new segments using the table IDOC_CONTROL since i