Alerts for List Items

Hello All,
I'm trying to create a List with ,say , 7 questions..................and i want to link each question with an answer..........
i tried creating alerts for each of the question however not been able to understand how can i link the question with the answer. Also didn't find any example like this.
Can we link list Items to another Displayable Item as in Alert ???????

Hello.........
i tried implementing the above instruction......this is what i came through ............... and still was not able to get the things working........
import java.lang.String;
import java.util.Random;
import java.lang.StringBuffer;
import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.List;
import javax.microedition.lcdui.StringItem;
* To change this template, choose Tools | Templates
* and open the template in the editor.
* @author Hitesh
public class ListImplicit extends List implements CommandListener{
   // new List menu = new List("Frequently Asked Questions " , IMPLICIT, null, null);
    public Display display;
    Command back = new Command("Home", Command.BACK, 1);
    Command select = new Command("Select", Command.OK, 1);
    public List ListImplicit = new List("Menu:", List.IMPLICIT);
   public Alert alert;
    ListImplicit() {
        super("", IMPLICIT);
        setTitle(" Frequently Asked Questions ");
        /*append("1.     Do you have any service to ensure that I don’t miss any important calls?", null);
        append("2.     How do I activate Missed Call Alerts?", null);
        append("3.     Can you activate Missed Call Alerts for me?", null);
        append("4.     What is the monthly rental for Missed Call Alerts?", null);
        append("5.     Will I be able to get missed call alerts for the previous month?", null);
        append("6.     Are Missed Called Alerts free?", null);
        append("7.     Could you please tell me the renewal date for Missed Call Alerts?", null);*/
        ListImplicit.append("New", null);
        ListImplicit.append("Open", null);
        this.addCommand(back);
        this.addCommand(select);
        this.setCommandListener(this);
       // throw new UnsupportedOperationException("Not yet implemented");
    public void commandAction(Command c, Displayable d) {
      if (c == List.SELECT_COMMAND)
      String selection = ListImplicit.getString(ListImplicit.getSelectedIndex());
      alert = new Alert("Option Selected", selection, null, null);
      alert.setTimeout(Alert.FOREVER);
      alert.setType(AlertType.INFO);
      display.setCurrent(alert);
    //    throw new UnsupportedOperationException("Not supported yet.");

Similar Messages

  • Workflow for list item cancels

    Hello!
    I create item in PWA list via timer procedure (c#).
    I have a workflow configured in SPD on item creation.
    In timer code I open a web from definet user, so item in list creates without any problem (author - this definite user), but workflow stops immediately with error:
    RequestorId: 47da81b9-1361-8e8e-2f05-c8376aa8939c. Details: System.ApplicationException: HTTP 401 {"x-ms-diagnostics":["3001000;reason=\"There has been an error authenticating the request.\";category=\"invalid_client\""],"SPRequestGuid":["47da81b9-1361-8e8e-2f05-c8376aa8939c"],"request-id":["47da81b9-1361-8e8e-2f05-c8376aa8939c"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["29"],"SPIisLatency":["1"],"Cache-Control":["private"],"WWW-Authenticate":["Bearer
    realm=\"2185ffaf-5b35-41d5-89ac-85ba7fd54a3a\",client_id=\"00000003-0000-0ff1-ce00-000000000000\",trusted_issuers=\"00000005-0000-0000-c000-000000000000@*,[email protected]7fd54a3a\"","NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"Date":["Fri, 12 Sep 2014 08:01:33 GMT"]} {"error_description":"The server was unable to process the request due to an ...
    When I run code with elevated privileges, workflow runs without error, but from system account (it looks like this, because workflow can't create Project from item and it creates tasks as Workflow, not as "Workflow from user").
    User profiles servises are running, I can find profile for user in central admin and c I can run full sync.
    I also have restarted IIS for1000s times...
    Help me please, how can I run workflow from specific user (I gave him even app admin permissions, but it still doesn't work)?
    From LOGS:
    The set of claims could not be mapped to a single user identity. Exception 3001002...
    The registered mappered failed to resolve to one identity claim...
    STS Call Claims Saml: Problem getting output claims identity...

    Hello!
    I have found solution.
    I have study dozen forums and sites about SP and this one
    http://stackoverflow.com/questions/6382583/use-credentials-to-interact-with-the-client-object-model-of-sharepoint gave me an idea.
    I had to rewrite my code. I set 
    using (ClientContext context = new ClientContext("http://yourserver/")) {
    context.Credentials = new NetworkCredential("user", "password", "domain");//here my code for list item creation}
    instead of 
    SPSite spsite = new SPSite(siteUrl, spusertoken);
    SPWeb web = spsite.OpenWeb();
    // and so on
    So, now SP has no problem with fiding initiator profile and workflows starts correctly automatically after an item was created.
    Maybe this solution could save somebody's day.
    Kate.

  • FRM-30351: No list elements defined for list item.

    Hello!
    i have a list_item with name NOMBRE and in a NEW_FORM_INSTANCE trigger i have the following pl/sql block to populate it:
    declare
         grp_producto recordgroup := find_group('RECORD_PRODUCTO');
         lst_item item := find_item('PRODUCTO.NOMBRE');
         status number;
    begin
         status := populate_group(grp_producto);
         clear_list(lst_item);
         populate_list(lst_item,grp_producto);
    end;
    when i run the form, this message appear
    FRM-30351: No list elements defined for list item.
    List NOMBRE
    and the list appear without elements
    ...can somebody explain me the solution or if i have to do another thing to populate the list?
    Thanks

    Hi Duncan!
    i rewrote the manually code and agregate the clear_list function that i think you refer with "Make sure that the block is empty before you do this". This work the first time but in the next time a change that i do in the database isn't reflected in the list, i think that my cursor mantain the old information, well, can you indicate me some way to clear the cursor or something similar? or explain me another solution?
    thanks so much!
    declare
    nombre_producto soportebwv2.producto.nombre%type;
    lst_item item;
    i number:=1;
    CURSOR cur IS
    select nombre
    from soportebwv2.producto;
    begin
    lst_item:= find_item('PRODUCTO.NOMBRE');
    clear_list(lst_item);
    open cur;
    loop
    fetch cur into nombre_producto;
    exit when cur%NOTFOUND;
    add_list_element(lst_item, i, nombre_producto, nombre_producto);
    i:=i+1;
    end loop;
    close cur;
    end;

  • No list elements defined for list item.

    hi master
    when i use list item and run then give this error
    FRM-30351: No list elements defined for list item.
    List PRODUCT_NO
    Created form file MODULE1.fmx

    Try posting your question to Forms

  • How to set item level permission for list item in SharePoint 2013

    Hi we had a custom List "ABC".
    List had 2 columns:
    Project Name: (P1, P2, P3, P4, P5, P6)
    Project Leads: (PL1, PL2, PL3, PL4, PL5, PL6).
    All project Leads can have permission to edit only their Project (P1, P2, P3) like
    PL1 can edit P1
    PL2 Can edit P2.....
    But my Question is how to restrict PL2 cannot have permission to edit P1
    is it possible to set permission for this through OOTB in SharePoint 2013.
    Any help will be appreciated......

    Hi
    check this similar post
    http://social.technet.microsoft.com/Forums/ro-RO/e1ea3655-0c6f-4b3d-a336-c42e8eb54c09/rights-to-edit-own-items-for-list-residing-on-publishing-site?forum=sharepointdevelopmentprevious
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Unable to Attach file for list item using SP.File CopyTo Method

    Requirement: I have a document library and list, the requirement is i need to take a document from document library and attach to list item in the list using CSOM only.
    Followed technique: to achieve this requirement i followed below methodology
    clientContext = SP.ClientContext.get_current();            
                    webSite = clientContext.get_web();
                    webSite.AllowUnsafeUpdates =true;
                    var list = webSite.get_lists().getByTitle('Documents');
                    item = list.getItemById(3);
                    file = item.get_file();
                    file.checkOut('Comments',1);
                    file.copyTo("xxxxxxx/Lists/Student/Attachments/4/mahesh.docx","1"); 
    file.checkIn('Comments',1);
                    clientContext.load(file );
                    clientContext.executeQueryAsync(Function.createDelegate(this, this.OnLoadSuccess), Function.createDelegate(this, this.OnLoadFailed));      
    Issue: This functionality is absolutely working fine when list item contains at least one attachment, if list item doesn't have any attachments the code is failing. i tried web.AllowUnsafeUpdates also but not working.
    Could anyone please help me on this.... :(
    Thanks in Advance!
    Regards,
    Mahesh Yamana
    Mahesh@SharepointSolutions

    Hi SK,
    Thank you for your reply!
    We are not allowed to use Visual Studio and the same thing we can use in JavaScript, but file stream takes path as one parameter which is physical location of your file system. When you use it some times users might not have access to the file system then
    our code fails.
    Regards,
    Mahesh Yamana
    Mahesh@SharepointSolutions

  • Search for list items by Created Date using caml

    Hi all,
    I'm trying to find list items with specific attributes using caml.
    I created a caml query that uses Last_x0020_Modified and File_x0020_Size for searching items.
    then i tried adding Created and Created_x0020_Date both either as Lookup or as DateTime to the caml.
    But since i added Created/Created_x0020_Date my query fails with 500 Internal Server Error.
    Can someone tell me what I'm doing wrong?
    here is my complete Entity I'm sending to SharePoint 2013:
    {'query' : { '__metadata': { 'type': 'SP.CamlQuery' }, 'ViewXml': '<View Scope="Recursive">
    <Query>
    <Where>
    <And>
    <Leq>
    <FieldRef Name="Last_x0020_Modified" />
    <Value Type="Lookup">2015-02-25T10:10:03</Value>
    </Leq>
    <Geq>
    <FieldRef Name="File_x0020_Size" />
    <Value Type="Lookup">1</Value>
    </Geq>
    <Leq>
    <FieldRef Name="Created" />
    <Value Type="DateTime">2015-02-25T10:10:03</Value>
    </Leq>
    <Eq>
    <FieldRef Name="FileDirRef" />
    <Value Type="Text">/sites/DennisDevSite/alib/Ordner1</Value>
    </Eq>
    </And>
    </Where>
    </Query>
    </View>' } }
    Thx in advance
    Dennis

    Try appending "Z" to DateTime. Change 
    <Value Type="DateTime">2015-02-25T10:10:03</Value>to <Value Type="DateTime">2015-02-25T10:10:03Z</Value>
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • Populate_list is not working for list item

    i have a list item. i have a record group with a query which will return only one column.
    if i use
    populate_list(list_name,'Rg_val');
    Rg_val is the record group name
    it says error
    FRM-41334: Invalid record group for list population.
    what might be the problem?

    The record group must have at list 2 columns, one is the content of the list item(what you see in the screen) and the other is the value that the list item returns.
    if you create the record group programmatically your query must have 2 columns in the select statement, the first is the visible value of the list item and the other the real value that listitem returns.
    I attach the following code if you want to create the record group at runtime which is the best.
    declare
    additional_payments varchar2(200) := 'select codpros||' || '''. ''||' || 'description,codpros from mis_pros';
    v_rg_id recordgroup;
    v_err NUMBER:= 0;
    BEGIN
    v_rg_id := create_group_from_query('recgrp1',additional_payments);
    v_err:= populate_group(v_rg_id);
    clear_list('codpros');
    populate_list('codpros',v_rg_id);
    delete_group(v_rg_id);
    clear_list('typos');
    populate_list('typos','RECORD_GROUP1');
    delete_group('RECORD_GROUP1');
    go_block('parameters');
    execute_query;
    END;
    Be careful so as the codpros to be VARCHAR2. the 2 columns in the select statement must be of VARCHAR2 type. Try it and it ' ll work.
    If you have any question ask me again.
    Regards ,
    bill.

  • How to override Approve button for list item?

    Hello,
    Is there a way how to override the method that runs after list item is approved / rejected? I know there is a way for the Save button but I can't find how to do it for the Approve button.
    I have a list with approval and workflow. Then I have a page that displays the items from the list in my webpart in a calendar/grid way. The items in the webopart have links leading to the display form with the item ID and Source parameters. Source parameter
    leads back to this page. The background color of the item in the webpart is decided by the approval state of the item.
    When user approves the item and the item form closes user is then sent to the page with the webpart (via the Source parameter) but the workflow takes couple of seconds more to process the aproval so the color is not changed when the webpart renders but if
    the page is refreshed it shows the correct color because the workflow has finished.
    I want to override the Approval method, let it update the item so the workflow can fire and process the approval, delay the form a bit and then continue as usual so when the user is redirected to the webpart page it would render with the correct state.
    I can make a delay page that redirects to the webpart page and change the Source parameter in the items link to go there but it doesn't look that great.
    Or maybe there is a way how to do it in Javascript? I am using it in the new item form using the SP.UI.ModalDialog.showModalDialog(options) function where the dialogReturnValueCallback refreshes the windows after 3 seconds.
    dialogReturnValueCallback: function(dialogResult) {
            if (dialogResult == SP.UI.DialogResult.OK) {
             setTimeout(function(){window.location = "MyPageUrl"}, 3000)
    Thanks for any tips and ideas!

    you can try to achieve this via separate responsibility by personalizing the form by display false on the particular control button..

  • Can we give a select statement for list items

    HI
    I am new to forms please help me out...
    My question is can we give a query to list item instead of specifying the values.
    i want to fetch the values from the lookups so i need to write query which can fetch the meanings of lookups in the list...
    Thanks
    Sandeep.G

    Hello,
    See the online-help (ctrl-h) of the Forms Builder concerning the following:
    Create_Group_From_Query()
    Populate_Group_From_Query()
    Populate_List()
    Populate_List_From_Query()Francois

  • Silence Lenovo Solution Center Alerts for specific items via registry/config file.

    I need to be able to customize the alerts generated by LSC.  Like disabling alerts for updates and backups (I handle those for end users via other tools).  Is there a registry setting or file I can edit to change these alerts?  Requesting my end users open up LSC and disable specific alerts isn't an option.
    Thanks for any advice in advance!

    Hello everybody,
    I have set DECLINE_SECURITY_UPDATES=true but still have the problem.
    David D'Acquisto's response-files, don't help in my case because I need a completely silent installation with all necessary information inside. But his files are largely empty. So I can't figure out with entry in it causes the problem.
    Metalink contains the following "solution":
    "Cause
    The name of one environment variable contains spaces and the installer is not able to convert them internatelly. For instance, there is a variable called "PATH ".
    Bug 8995616 "DB INSTALLER VALIDATES EMAIL AND FAILS".
    Solution
    - Check the Environment variables and be sure that none contains spaces or special characters on its name
    - retry the installation
    I don't see any problem in my environment variables, or which ones should I check?
    Many thanks in advance,
    Xenofon

  • Reg: visual attribute for list item

    hi frs,
    i have created a listitem i have used
    APP_ITEM_PROPERTY2.SET_PROPERTY('list4',VISUAL_ATTRIBUTE, 'color');
    in keylistval Trigger.
    when i select one particular item in the list it should have background color mentioned in the VISUAL_ATTRIBUTE 'color'.
    but what is happening is when i select one particular item visual attribute is set to all items in list.
    why it is so?
    how can i solve this problem.
    any one help pls.
    Thanks
    Rajesh

    1- I have three list box on the form as well so whether post-text-item works over therei have no issues with this and it is working fine in my forms list box
    2- and i have 3 datablock among which 2nd and thid datablock is multirecord datablock where i set current record visual attribute so what is the behaviour @ run time either current record Visual attribute override current item VA or it works fine
    it is working perfectly in multi record also..you need to remember in post text trigger use the same visual attribute used for current record visual attribute

  • Get value from fields for list items using CSOM SP 2013 and C#

    Hi.
    I added a few columns (e.c. Column1, Column2 and ...) for the List in SP 2013. In the List there are a few records. How to get data entry and display them in a table. For example:
    ClientContext ctx = new ClientContext(ServerUrl);
    List lists = ctx.Web.Lists.GetByTitle(List_name);
    ListItemCollection items = lists.GetItems(CamlQuery.CreateAllItemsQuery());
    ctx.Load(lists);
    ctx.Load(items);
    ctx.ExecuteQuery();
    DataTable table = new DataTable();
    table.Columns.Add("ID");
    table.Columns.Add("FieldValue1");
    table.Columns.Add("FieldValue2");
    foreach (ListItem item in items)
    table.Rows.Add(item.ID, item["Column1"], item["Column2"]);
    Thanks!

    Hi,
    Thanks for your sharing. It will help others who stuck with the similiar issue.
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Create several forms in infopath 2013 for list item

    Hi
    I have a list
    I would like to create SEVERAL view
    in infopath 2013 each indepanate
    view to another by URL
    For exemple :
    i have "list costumers",
    And i have (
    forms 1 = www.msdn.com/liste/form1
    forms 2 = www.msdn.com/liste/form2
    forms 3 = www.msdn.com/liste/form3
    Said WAHID

    Hi,
    You can create the multiple views in the InfoPath form and switch the view based on the rule.  In our scenario, you can switch the rule based on the list view.
    Please refer to the following article.
    Add, delete, and switch views (pages) in a form
    InfoPath 2010 – one form, multiple views
    Please mark it answered, if your problem resolved.

  • DW CC release. Styles for list items-LINKS.

    Hi.
    I am trying to make a side Menu. I created a class called ".linksMenu" which I want to apply to several menus, because I may have a lot of menus on my site., it could be
    Appearently it is good, but when you click to am particular link, all the other links become purple color, instead of just the one I clicked. why?
    This is the code of my page:
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Untitled Document</title>
    <style type="text/css">
    @import url("../Estilos/propios.css");
    </style>
    <link href="styles.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <ul>
      <li class="linksMenu"><a href="#" class="linksMenu">Apart Hotel ***</a></li>
      <li class="linksMenu"><a href="#">Tarifas</a></li>
      <li class="linksMenu"><a href="#">Reservas</a></li>
      <li class="linksMenu"><a href="#">Promociones</a></li>
      <li class="linksMenu"><a href="#">Ubicación</a></li>
      <li class="linksMenu"><a href="#">Política</a></li>
      <li class="linksMenu"><a href="#" class="linksMenu">EMail</a></li>
    </ul>
    <p> </p>
    </body>
    </html>
    An this is the styles.css page: THE .linksMenu style I want to apply to all my menus.
    @charset "UTF-8";
    /* CSS Document */
    .linksMenu
    a {
      color: #C19E02;
    a:visited {
      color: #682E93;
    a:hover {
      color: #746D6D;
    a:active {
      color: #E90B0E;
    Well, thanks for your patience. If I don't solve this, I will have to apply all compound selectors for every menu.

    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>Untitled Document</title>
    <style type="text/css">
    .linksMenu li a {
        color: #C19E02;
    a:visited {
        color: #682E93;
    a:hover {
        color: #746D6D;
    a:active {
        color: #E90B0E;
    </style>
    </head>
    <body>
    <ul class="linksMenu">
        <li><a href="#">Apart Hotel ***</a></li>
        <li><a href="#">Tarifas</a></li>
        <li><a href="#">Reservas</a></li>
        <li><a href="#">Promociones</a></li>
        <li><a href="#">Ubicación</a></li>
        <li><a href="#">Política</a></li>
        <li><a href="#">EMail</a></li>
    </ul>
    </body>
    </html>

Maybe you are looking for

  • A workflow creates an item but doesn't start another list workflow on that new vreated item

    Scenario is as follows: I have a Workflow A (starts manually) and a Worklow B (starts when item is created). First I create an item in the list after that I start worklow A manually on that item and of course workflow B is already running on that ite

  • Sawtooth DVI to HDTV

    I have a HDTV with DVI input. I have Sawtooth 10.4 (upgraded to 1.8Ghz, 1G RAM) with the following video card. Do I just hook the DVI output to the HDTV or is there more? ATY,Rage128Pro: Chipset Model: ATY,Rage128Pro Type: Display Bus: AGP Slot: SLOT

  • No Journal entry when AR Return posted

    Forum, I have an 8.81 system where each time an AR Return is raised, either manually (not linked to a delivery) or otherwise, once added there is no journal entry option to drill down on under the 'Accounting' tab. This is also the case when raising

  • Can I set FIREFOX to choose between two different homepages or websites?

    I know that Firefox will open any number of web sites when you start it. I want to have the ability to choose between opening a preset number of sites and just one. For instance at the beginning of the day I want all my banking sites available when I

  • AQueue Message Manipulation in BPEL

    I have configured a AQAdapter for dequeuing messages from a AQ . after that configuration , in BPEL i am seeing 3 elements in Input structure "EVENT_NAME" ,"FLIST_BUF","LARGE_FLIST_BUF" . but as per vender communication they have put 7-8 required ele