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

Similar Messages

  • Visual attribute for current item

    How can i set the visual attribute of the current item in multi block form so that when user navigate through item in a form its background colour is changed and user can easily trace where the cursor is ?

    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

  • Visual attribute for records in MULTISELECT block

    Hi,
    For some type of records I need to set background colour yellow.
    The block has property set to QMSSO$MSEL_BLOCK.
    I am using below code for each field in the block displayed:
    POST_QUERY for the block:
    set_item_instance_property('block.column_name',l_cur_rec, visual_attribute, 'QMS$BLACK_ON_YELLOW');
    Also on when-new-record-instance I have added following code for getting the yellow colour on select:
    if upper(:VANN.MESSAGE_NAME) LIKE '%PROB%'
    then
    qms$user_prefs.set_va_selected_record('QMS$BLACK_ON_YELLOW');
    else
    qms$user_prefs.set_va_selected_record('QMS$WHITE_ON_DARKBLUE');
    end if;
    But problem is that when we navigate from record with background Yellow to any other record displayed the visual attribute is change back to Grey (yellow colour disappears).
    This functionality must work for multiselect block. Is there any headstart function/utility which can help me to resolve the problem.

    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

  • Partially apply a visual attribute to an item

    Is there any way to partially apply a visual attribute to an item?
    Currently, I do not have commas for my number formats and of course, now it is required. I am limited for space and adding the comma's will cause design layout issues. I was trying to think of another way to accomplish this -- red999,black999,red999,black999.99
    Any other suggesions or work arounds?
    Lesson learned ;)
    TIA

    Sorry if I was not clear. The colors would represent the positions that would be between the commas so the user could identify, lets say, between 1000.00 and 10000.00 or 1000000.00
    I was just wondering if there was a way to do this or if others have had similiar situations and may have other suggestions for a work around without having to go back and adjust my layout.

  • 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

  • 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

  • Visual attributes of disabled item. plase help

    I have a form where when i disabled an item, this item item became unreadable, the font has blanc shine and when changing visual attributes property, can not find how to fix it. Do you have any idea? Thank you very much for your help. Thnaks.

    Thanks, i think of this but the items are mainly checkbox and radio button, i need to keep enabled to false.
    But would like to know is it possible to change the default visual displaying of disabled items?
    Edited by: Tabit7 on Jul 18, 2011 9:41 AM

  • 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.

  • 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.");

  • 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..

  • Attributes for text items

    Hello,
    i am trying to change the attribute of a text item on a form that displays ten text items at a time...
    i want one type of attribute to be if the text item says "credit o.k." to be a green background and if the text item says "credit bad" to have a red background...
    i can make all of the displayed fields the same attribute but i can't seem to make the individual ones different...
    any suggestions would be great...
    bart

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JAMIE MCPHIE ([email protected]):
    You can use the set_item_instance_property built-in.
    Jamie<HR></BLOCKQUOTE>
    Use the form builtin DIPLAY_ITEM with your desired visual attribute parameter and text field to change visual settings. You can use this in the item instance level triggers
    If any problem, let me know.
    rgds
    Able
    null

Maybe you are looking for