Calling List from MIDlet

Hello all,
i have been working on this code and not able to find the solution................
i am trying to call a list class from a MIDlet........however it gives me an error........i have highlighted only the error, i got and the line too...........
MIDLET
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class ME extends MIDlet {
public void startApp() {
Display display=Display.getDisplay(this);
display.setCurrent(new Listing(this));
public void pauseApp() {
public void destroyApp(boolean unconditional) {
LIST
import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.List;
* To change this template, choose Tools | Templates
* and open the template in the editor.
* @author Hitesh
public class Listing extends List implements CommandListener{
private Display display;
private List list = new List("Menu:", List.IMPLICIT);
private Command exit = new Command("Exit", Command.EXIT, 1);
Alert alert;
MEmidlet;
public Listing(ME midlet) {
super(true); ////////////////////////////////////////////// I'm getting the error here.......saying "Cannot find symbol"
this.midlet=midlet;
list.append("New", null);
list.append("Open", null);
list.addCommand(exit);
list.setCommandListener(this);
throw new UnsupportedOperationException("Not yet implemented");
public void commandAction(Command c, Displayable d) {
if (c == List.SELECT_COMMAND) {
String selection = list.getString(list.getSelectedIndex());
alert = new Alert("Option Selected", selection, null, null);
alert.setTimeout(Alert.FOREVER);
alert.setType(AlertType.INFO);
display.setCurrent(alert);
else if (c == exit)
midlet.notifyDestroyed();
waiting for response......................................

...i gave others as a parameter like.....object and string .....but none worked......I see. You were trying blind shoots. "Try object, try string, try boolean..."
Blind shoots are good strategy. I use it myself and it often works.
But sometimes, this way just stucks. My favorite way to get out in that case is to change blind shoots to another strategy, known as RTFM.
what should be the parameter to pass on here???If you re-read my previous reply, you'll find that words List API make a clickable link.
- If you click this link, it will bring you to documentation page.
-- If you read this documentation, you can find a section called Constructor Summary.
--- If you read this section, you'll see that two words List make clickable links.
---- If you click these links, they will bring you to detailed descriptions on what parameters you can pass on here.
Hope this helps. {color:lightgray} // And if it doesn't, then maybe programming is just not for you? {color}

Similar Messages

  • Calling list from Screen

    I am new in the field of SAP ABAP. So please tell me how to "call list from screen 100". please give small prg. for this

    see below
    This section describes how to switch from screen processing to list processing. It contains a short technical introduction, followed by a recommended procedure.
    Switching Between Screen and List Processing
    Screen processing always involves a screen sequence that you start either using CALL SCREEN or a transaction code. During screen processing, the ABAP program is controlled by the dialog processor. In the ABAP program, the PBO and PAI modules are executed as they are called from the screen flow logic.
    To pass control from the dialog processor to the list processor, you must include the following statement in one of the dialog modules:
    LEAVE TO LIST-PROCESSING [AND RETURN TO SCREEN <nnnn>].
    You can include this statement in either the PBO or the PAI event. Its effect is to start the list processor and display the basic list after the PAI processing of the current screen. The basic list contains any list output from all PBO and PAI modules that have been executed up to that point.
    If detail lists are defined in the corresponding event blocks of the ABAP program (AT LINE-SELECTION, AT USER-COMMAND), user actions on the basic list will lead to the detail list, and further interaction will lead to further list levels.
    You can leave list processing in two ways:
    By leaving the basic list using the Back, Exit, or Cancel function.
    By using the following statement during list processing:
    LEAVE LIST-PROCESSING.
    In both cases, control returns from the list processor to the dialog processor. Each time this occurs, the entire list system is initialized. Any subsequent list output statements in PBO and PAI modules apply to an empty basic list.
    By default, the dialog processor returns to the PBO processing of the screen from which the list processor was called. The optional addition AND RETURN TO SCREEN allows you to specify a different screen in the current screen sequence at whose PBO event you want to resume processing. In particular, the statement
    LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
    can be used to end the current screen sequence and return to the point from which it had originally been called.

  • Call list from Campaign

    How can you create call list from Campaign for a selected target group ? Can anyone help me in this.

    Hi ,
    To generate a call list from the campaign all you need to do is to create your campign and then choose the send target group to channel option the call list will get generated. Please refer the campaign execution link for detials
    http://help.sap.com/saphelp_crm50/helpdata/en/4e/ac6f422f91c153e10000000a1550b0/frameset.htm
    Regards,
    Anita

  • How to call list from memory after submitting RCS13001

    Can anyone help me with this problem? I am submitting RCS13001 and using option exporting list to memory and return. It was successfully displayed the ALV list (which I don't want to see) and return to the caller program. Then when calling function list_from_memory, it short dumped/returned nothing. It seems that nothing is saved in the memory when submitting the program.
    So what I want to get now is call RCS13001 and process the data, don't display the ALV report but save it in memory, and then collect the memory for output.
    Any help is appreciated and points awarded. Thanks in advance
    Regards,
    Eric
    Code:
            SUBMIT ZRCS13001
              WITH PM_MTNRV INCL v_matnr
              WITH PM_WERKS INCL p_werks
              WITH PM_STLAL INCL p_stlal
              WITH PM_CAPID INCL p_capid
              WITH PM_DATUV INCL p_datuv
              WITH PM_EMENG INCL v_emeng
              EXPORTING LIST TO MEMORY
              AND RETURN.
        CALL FUNCTION 'LIST_FROM_MEMORY'
          TABLES
            LISTOBJECT       = alv_stb
        EXCEPTIONS
          NOT_FOUND        = 1
          OTHERS           = 2

    Hi Eric,
    Please check Rich's sample code.
    report zrich_0003 .
    data: begin of listout occurs 0,
          line(1024) type c,
          end of listout.
    * Submit the report and export list to memory
    submit z_your_report exporting list to memory
                and return.
    * Get list from memory and convert to ascii
    perform retrieve_list_from_memory tables listout.
    loop at listout.
      write:/ listout.
    endloop.
    * RETRIEVE_LIST_FROM_MEMORY
    form retrieve_list_from_memory tables reportlines.
      data: list like abaplist occurs 0 with header line.
      data: txtlines(1024) type c occurs 0 with header line.
      clear list.  refresh list.
      clear reportlines. refresh reportlines.
      call function 'LIST_FROM_MEMORY'
           tables
                listobject = list
           exceptions
                not_found  = 1
                others     = 2.
      check sy-subrc = 0.
      call function 'LIST_TO_ASCI'
           tables
                listobject         = list
                listasci           = txtlines
           exceptions
                empty_list         = 1
                list_index_invalid = 2
                others             = 3.
      check sy-subrc = 0.
      reportlines[] = txtlines[].
      call function 'LIST_FREE_MEMORY'.
    endform.
    Also please check this link for more sample codes.
    http://www.sapdevelopment.co.uk/reporting/rep_submit.htm
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Bad Request while calling servlet from MIDlet

    Hi All,
    I am trying to call a servlet(running on Tomcat) thru my MIDP application using HttpConnection. But I am getting "Bad Request" error 400. The code is as given below:
    package myTests;
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class Hello extends MIDlet implements CommandListener {
    private Display display;
    private Form props;
    private StringBuffer propbuf;
    private Command exitCommand = new Command("Exit", Command.EXIT, 1);
    * Construct a new HelloObject.
    public Hello() {
         display = Display.getDisplay(this);
    public void startApp() {
         propbuf = new StringBuffer(50);
         props = new Form("System Properties");
    HttpConnection c = null;
    InputStream is = null;
    StringBuffer b = new StringBuffer();
    try {
    c = (HttpConnection)Connector.open("http://127.0.0.1:8080/gsf/servlet/HelloServlet", Connector.READ);
    c.setRequestMethod(HttpConnection.GET);
    c.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0");
    c.setRequestProperty("Content-Language", "en-US");
    is = c.openInputStream();
    props.append(c.getResponseMessage());
    props.append(c.getURL());
    props.append(c.getRequestMethod());
    props.append((new Long(c.getLength())).toString());
    catch( Exception e)
    props.append(e.getMessage());
         props.addCommand(exitCommand);
         props.setCommandListener(this);
         display.setCurrent(props);
    public void commandAction(Command c, Displayable s) {
         if (c == exitCommand) {
         destroyApp(false);
         notifyDestroyed();
    public void pauseApp() {
         display.setCurrent(null);
         propbuf = null;
         props = null;
    * Destroy must cleanup everything.
    public void destroyApp(boolean unconditional) {
    ANY HELP ON THIS WOULD BE APPRECIATED.
    Thanks,
    Neel

    Hi GaRRy,
    Thanks for responding.
    1) Yes, I want to use the GET method. If I type the url that I've put to Connector.open() in the browser, it gives the following output:
    Servlet invoked!
    Mon Sep 24 12:45:44 EDT 2001
    But when I run the emulator it gives the following output
    OK
    http://127.0.0.1:8080/gsf/servlet/HelloServlet
    GET -1
    2) I don't know why, but the error log does not show any error for this request on the http server. (I am using Tomcat.). Also I am sure that the doGet method of the servlet gets called as it prints the debug message.
    Thanks,
    Neel

  • I accidently cleared my phone call list.  I need numbers from it.  Please help

    I accidently cleared my call list from my iphone 4.   How can I recover cleared call list.

    If you have a recent backup that contains those numbers, you will need to restore your phone from that backup.  Otherwise, you cannot recover those numbers.

  • Campaing management channel telephony automatic call list

    Dear Gururs,
    On my current project we have integrated SAP CRM 2007 ICI with Genesys.
    From the campaign management we are using the channel "Telephony" and a call list is generated. This call list is syncronized with Genesys and in Genesys we are using the Predictive Outbound to call customers.
    When the current call is assigned from Genesys to an agent in IC WebClient I'm receiving the call list id in CAD (as SAP_CALL_ID). This ID is not used by the Interaction Center to identify the call list (I need it because I have a script assigned to the call list from the campaign).
    Do I miss some configuration ?
    Thanks a lot,
    Valentin

    Hi,
    I had a different thread were I have found the solution and the correct understanding for this functionality.
    [You can access it here ...|CRM 2007 - Automated call lists;
    BR,
    Valentin

  • How to enhance call list to show entire list

    Hi
    In SAP standard, only calls witihin the maintained calling hours are displayed in web-ui.
    For example: If the call list is generated for all customers to be called on tuesday, then customer A will show up 9AM if the calling hours are maintained beteween 9AM-11AM.
    We would like to enhance this functionlity to show the entire call list from the beginning.
    Does someone has experience of this and know how to do that?
    BR
    Johan

    Hi,
    In component/view CRMCMP_CLM/ClmCallListDetails you must change DO_PREPARE_OUTPUT method.
    from
    lr_Calls = lr_Call_List->get_Related_Entities( iv_Relation_Name = CL_CRM_APPL_INTLAY_CL=>Co_Rn_Active_Calls iv_Mode = CL_CRM_BOL_ENTITY=>BYPASSING_BUFFER ).
    to
    lr_Calls = lr_Call_List->get_Related_Entities( iv_Relation_Name = 'Calls' iv_Mode = CL_CRM_BOL_ENTITY=>BYPASSING_BUFFER ).
    Hope this helps!
    Best regards,
    Caíque Escaler

  • Call Lists In IC-Web

    Hi All,
    In CRM_IC , when click on Call Lists on the navigation bar and select the Call from the Call list and go to Identify Account, I dont see the Contact Partners associated with the selected Call.
    Can any one help me in displaying the contact partners associated with the call?
    Thanks in Advance.
    Krish

    Thanks for your suggestion.
    Our scenario: We create call list from Campaign not through BP call time. However, when i select call from call list and go to identify account, I only see my Sold-Party (Account). I dont see any of the associated Contact Person with that Account in the <i>Result List</i>. But if i try to search for an account in the Identify account, I can see all the assoiciated contact persons. I was wondering, is there any work around to display the contact person information in the identify account tab when we select a Call from Call list?
    I appreciate your time and guidance.
    Thanks,
    Krish

  • National do-not-call-list with UCCX

    Hi,
    Is it possible to program the UCCX to block automatically number appears in a "do not call list" from the contact campaign list ?  I have found some way do to that with ICM but not with UCCX.
    Thanks,

    No, the documentation specifically states, that you need to do this before uploading the contacts.

  • Call list: no calls to select

    Hi experts,
    I have created a call list from a target group with 8 BP´s, and then I have assigned it to a IC Agent.
    In WebClient, with the IC Agent Rol, I go to call list, and it appears corretly, but when i click in "show calls" button, it shows no calls to select. I have checked my call list at GUI, and  the 8 calls have the Ready status. Anybody knows why don´t appears in WebClient to select?
    Thanks in advance,
    Paco.

    Hi,
    now, appears the calls, and the problem exposed before was fixed. But if calls was created from a campaign, when i try to access to the campaign clicking the "show campaign" button, it have no effects.
    Anybody can help me?
    Thanks in advance,
    Paco.
    Edited by: frgarcia on Jun 26, 2009 1:26 PM

  • Call list: calling hours not taken into consideration

    Hi Gurus,
    I have a question. We are using CRM 7.0 EHP1, and especially marketing functionality.
    We are generating call lists from a marketing campaign. What we see is that the customer calling hours are not taken into consideration when creating the call list.
    However, if we create the call list the "old-fashioned" way (using CRMD_CALL_LIST), we have the option "scheduling... based on calling hours".
    How can I achieve that calling hours are also considered when creating the call list from the campaign?
    Is there a customizing setting, or do I need to activate a BAdi?
    thanks.
    regards,
    Wim Olieman

    Also, keep in mind that MRP calculates availability of inspection stock in two ways.
    Before an inspection lot is created, (i.e. a purchase order or production order is out there and planned already, MRP uses the expected GR date plus the Avg. GR days on the main QM view for the material to determine the availability date.
    Once the inspection lot is created however, MRP uses the end date of the inspection lot which is the lot creation date plus the avg insp. duration in the inspection type setup in the material master.  This can result in some minor differences if you aren't careful in setting your various fields in the material master.
    If a material is going to reside in QI for an extended time, the lab should use QA02 to modify the end date of the inspection lot.
    FF

  • Hub 2.1 Call Lists

    My hub phone shows I have 9 missed calls but when I go to view them it says my call lists are empty. I get the same if I choose the call lists from the menu. Any idea how I get my call lists back ? thanks
    payday loan

    Welcome to the forum. AFAIK new customers are not offered BBT talk. The hub you mention will work, you would need to request a BBT talk number. I'd be interested to learn if they give you one.
    AQ.
    "Welcome to Royston Vasey - You'll never leave."

  • I am recieving calls from a solicitor. Show up as no caller Id. I want to block all calls that do not show caller Id. Can I do that? I am on the do not call list

    How do I block all in coming calls that do not show on my caller Id. Phone says "no caller id" This particular call is from a place selling septic tank cleaner. They leave an automated voice mail. They are calling me over and over. I am on the national do not call list but that's no help. Because the caller id doesn't show anything I can't even report them.
    I remember in the past calling a number and before my call would go thru I would have to enter my phone number so the party I was calling knew who was calling them. That is what I want to do. I want to block all calls from "no caller id" "number unavailable" Just FYI my phone is an IPHONE 5 and I am on Verizon.
    Any help would be appreciated.
    Thanks

        itbitybob, good day!
    Thank you for taking the time to reach out to us today. I know how frustrating it can be getting phone calls from "no caller id" numbers. We do have an option that is called Family Base that will allow you to block unknown numbers, private numbers, or caller id. This link will provide you with the full details of this option. http://vz.to/1gIklla I hope this is able to answer your question. If you have further questions please feel free to reach back out to us at any time.
    KevinR_VZW
    Please follow us on Twitter @VZWSupport 

  • Adding caller with name and number from call list to the contact list only inserts the number and not the name

    I recently bought a BlackBerry Z10 and moved my cell service to Rogers to take advantage of the name display service offered by Rogers (Fido also offers this service).
    Due to the number of calls that I receive from first time clients, I wanted the name display service to help me know who was calling. Evidently it is impossible to add clients to my contact list before they call me so I'm constantly seeing numbers that have no name to help me decide if I want to answer the call.
    When I try to add a caller from my call list to my contact list, only the number gets inserted in the new contact. The name needs to be entered manually.
    I understand and realize that not all call display formats are the same and that it's virtually impossible to parse the first and last names from the name portion of the caller id.
    However, I would like to see BlackBerry add the functionality to insert the name portion of the call entry from the caller list to a "Nickname" entry in the contact list just like it adds the number to a "Home", "Mobile", or "Work" entry in the contact list.
    If a user doesn't have a name display service, there would be no change to how their contacts are added because there is no name variable to copy over.
    Can someone from BlackBerry please let me know if this feature can be added to BB10 and when it can be added? For me it's an obvious feature that should just work.
    I am really enjoying my Z10 but I'm feeling let down that something so logical and helpful is not supported out of the box.
    Regards,
    Marc

    Hey ViciousFerret,
    It appears that you are not aware of the fact that both Rogers and Fido offer name AND number display service (although the name display feature is an add-on service) and have been offering it for many years (since 2006). Here is a link to the name display service description of each provider...
    http://www.fido.ca/web/content/manageyourcalls/calldisplay&lang=en
    http://www.rogers.com/business/on/en/smallbusiness/products/wireless/addons/valuepacks/
    As you can see from the link below, Rogers and Fido have been offering this service since 2006.
    http://www.businesswire.com/news/home/20060914005951/en/Teams-HP-Rogers-Wireless-Fido-Succeed-North
    My BlackBerry Z10 shows both the name and number when someone calls (and the caller is not in my contact list).
    All I would like is for the Z10 (and Q10) to support the addition of the name and number from the caller list to my contact list without me having to type the name. As I mentioned in my original post, to avoid the OS having to parse the first name and last name from the name portion of the caller list entry the name could simply be added to the contact list as a "Nickname". If your provider only has number display, nothing would have to be copied from the name variable in the caller list to the contact list.
    I find it difficult to believe that BlackBerry would not be aware of this name display service since it's been around since 2006 with both Rogers and Fido.
    I hope I have clarified the reasons why I would like to have this feature added to BB10 and how it's surprising that this simple feature is not already a part of the BB10 OS.
    Either way, I don't think this is a difficult feature for the BlackBerry team to add. They're just copying a 2nd variable from the caller list to the contact list.
    I'm surprised that Rogers hasn't asked BlackBerry to add this feature to their phones. I think it would be a popular feature for those who receive a high number of calls from first time callers.
    How can I get this feature request to BlackBerry for their consideration?
    Cheers,
    Marc

Maybe you are looking for

  • Looking for clarification on ADF 12.1.2 WLS support

    What versions of WLS supports ADF 12.1.2? If there is support for 11g, are there any documentation on how to install the ADF 12 Runtime? Oracle JDeveloper 12c Support</title><meta name="Title" content="Oracle JDeveloper 12c Support&q- Application Ser

  • Planned delivery time in purchase agreement (contract)

    Hello, When I create a material contract for a material master without an existing info record, the system leaves the field "planned delivery time" blank. When there is already an inforecord for the material, the system copies the planned delivery ti

  • NOKIA ASHA 309

    nokia asha whats app not working link not available messaage is coming . and also  in nokia all apps are trying to connect to internet . if internet not available nothing is ther in the mobile... so kindly make perfet using the software update....i a

  • Icons for the Reports missing in Workspace after applying patches

    Hello Gurus, I have installed 11.1.2.2 on one of my VM's and then applied the 11.1.2.2.300 patch on it. I have followed the Read Me for all the patches before applying them. After applying the patches however the icons for the Reports in workspace [I

  • Photoshop cs6 extended trial download problem

    i want to download photoshop cs6 extended trial version, but Download Assistant is only showing downloading option for photoshop cs6 standard.