The name of the current list item

hi
i have a table that stores the users names and the available button for him (list item)
i want to create a function that returns a value
in the display condition of the list item to show or hide the item .
my function should receive two parameters one of them is the current user which is the :APP_USER. variable and the other parameter is the current list item which its display condition execute the function .
so how can i get the current item ?
thanks

Ayman,
You could hard-code it in each function call within each list item's condition.
Scott

Similar Messages

  • How can I get an item and it's attachments from the current list using SP's JavaScript Client Object Model on newform.aspx?

    I only recently learned/read about SharePoint's JavaScript Client Object Model. I'm reading online trying to figure this out but not having much luck.
    On newform.aspx (and dispform.aspx) I want to get the
    current list,
    the last item created, and it's attachments. I now the CAML query I need to get the last item created, but first I have to get the current list and I am not sure how to do that.
    I tried this but it returns null:
    SP.ListOperation.Selection.getSelectedList()

    Hi,
    For your issue, you can get the list name from the new form url and retrieve the list last created item :
    https://social.msdn.microsoft.com/Forums/office/en-US/b90a64f8-2255-41b0-9d91-78335dd4a4cf/get-list-name-from-list-url-through-javascript?forum=sharepointdevelopmentprevious
    http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Create a list style with unique space after the last list item?

    I should start by saying that I'm a web designer and therefore extremely used to using CSS for type setting to the point that I now become frustrated when going back to the print world
    So here's what I'm trying to achieve:
    - I want to create a list style for bullet lists
    - I want there to be 3pt space after and space before paragraph breaks
    - I want there to be 9pt space after the entire list (or last list item)
    I can't for the life of me figure out how to do this short of overriding the space after amount on the last item each time I use my style.

    Hi supportneeder
    Welcome to the forum.
    Try this link:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=179&mforum=iworktips ntrick
    Pay attention to how +"styles work by example"+. Form up the list levels the way you want them and then select them to make the list style.
    Personally I can't help remarking on the obtuse behavior of programmers that they manufactured all the problems on the internet and only now, more than a decade later, patch together "solutions" they struggle to implement due to the legacy of all the awful standards we never needed to have in the first place.
    Peter
    btw The last list item is always a problem in typesetting. Usually you deal with it by having a particular style for that or the paragraph afte,r all of which can take multiple forms.

  • Reading text file and display in the selectOnechoice list item In ADF.

    Hi,
    I have a requirement to read the text field which have list of strings and that string display in the SelectOneChoice List item component on page load.
    I am using Jdeveloper 11.1.2.3 version.
    Any suggestion will highly appreciated..
    Thanks in advance.
    Regards

    Hi,
    Google will produce you with hints on how to read content of a file from Java (ideally the file uses some delimiter). Then in a managed bean, you read the file and save its content in a list of SelectItem. So your managed bean should have the following property and setter/getter pairs
    ArrayList<SelectItem> listFromFile = new ArrayList<SelectItem>();
    public void setListFromFile(ArrayList l){ //you don't need this }
    public ArrayList<SelectItem> getListFromFile(){
       //read file content and iterate over the file list entries
      for(i=0, i < fileContent.length, ++i){
         SelectItem si = new SelectItem();
         si.setValue(... the value to update the list of value with ...);
         si.setLabel("... the label to show in the list ...");
         listFromFile.add(si);
      return listFromFile;
    }The af:selectOneChoice component should look as follows
    <af:selectOneChoice id=".." value="...attribute to update with selection ..." ...>
       <f:selectItems value="#{managedBean.listFromFile}"/>
    </af:selectOneChoice>Frank

  • What is system variable to find the current list line in list processing

    hi
    what is system variable to find the current list line in list processing

    Hi,
    Please find below the system variable related to list processing
    LILLI    INT4     10     Processing lists       List line selected
    LINCT  INT4     10     Creating lists           Page length in a list
    LINNO INT4     10     Creating lists            Current line
    LINSZ  INT4     10     Creating lists          Line width in a list
    LISEL  CHAR     255     Processing lists       Contents of the chosen line
    LISTI    INT4     10     Processing lists       Index of the chosen list
    Thanks,
    Muthu.

  • SPD 2013 - Copy Document action - how do you update the copied list item's metadata?

    SharePoint 2013 Designer no longer has the Copy List Item Action, it only has a Copy Document action. It seems that this action provides no way of saving the copied documents list item ID. How do you update the list item after it has been copied??
    Any help is appreciated.
    Greg Pierson

    Hi,
    According to your post, my understanding is that you wanted to copy the list item in SharePoint 2013.
    The Copy List Item is
    available only on the SharePoint 2010 Workflow platform, you can create a SharePoint 2010 workflow using the SharePoint 2010 workflow platform to achieve it.
    You can also use the Content and Structure to copy the list items: Site Settings->Site Administration->Content and Structure.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • The Create List Item workflow action does not work in document library with document template

    My end goal is more complex but below is a basic example of the issue I’m having that just simply does not work.
    I'm trying to use a site workflow to create an item in a document library that has a document template applied to it but the file that gets created by the workflow is corrupt and cannot be opened.
    I created a document library and edited the document template by adding some text to the header and changing it to a Word docx file instead of a Word dotx file. I tested the document template by clicking the files tab in the ribbon and then clicking new
    document which opens the document template in Word and allows me to edit and save the document back to SharePoint. Then I created a SharePoint 2013 site workflow in SharePoint Designer that contains a single Create List Item action, and that action creates
    an item in the document library with the name field statically defined. I published the workflow and then manually start it on the site. The workflow completes successfully and when I navigate to the document library the document has been created by the workflow.
    When I click on the document to open it in the Word Web App it throws the error pictured below and if I open it in the Word client application it just opens a blank document and not the correct document template.
    I also tried using a SharePoint 2010 workflow with pretty much the same results. Opening the document in Word Web App gives the same error as above and opening the document in the Word client application gives the error pictured below.
    Come on Microsoft creating a Word Document in a SharePoint Document Library from a SharePoint Workflow should just work! Is this a bug or does anyone have any ideas on what is causing the this issue?

    I had the same problem with corrupted document - this worked for me:
    1. Create a 2010 Workflow which creates the list element in a document library
    (you may start this workflow from your 2013 workflow if applicable)
    2. In the Create New List Item properties - make sure to set ContentTypeId to your content type
    ("Id for indholdstype" is Danish for "Contenttype ID")
    3. Your Content Type template should be a ".docx" file - NOT a ".dotx" file...!
    (I have always created my templates for content types as .dotx files - seems Microsoft wants us to use ordinary .docx files as template files for content types)
    Hope this helps you!

  • Get the max count of the column list item

    Hi,
    I have a list with the 'TO' column of type people. My task is to get persons name who is featured the max number of time in the 'TO' column.
    What is the best possible solution OOB. I dont want to go with custom solution.
    Thanks,
    Ankit

    Hello Ankit,
    I understand that you want to get total of "To" column. I would suggest you modify the current view of list and use "Group By" and Total section to get Max number of that column. Just try this and check whether it fulfils your need or
    not.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How do I get the list index for the selected list item

    How can I obtain the list index for the currently selected
    element in a list item? I'm trying to move the label and value
    from on list box to another by using the add_list_element built-
    in and it requires the list index.
    Thanks for your help...

    Hi,
    You can`t get the Index for the selected item..
    you can get the Value of then Tlist using :Block.ListName .
    maybe theis code will help you..
    PROCEDURE pr_PasarElementos(ls_Origen           varchar2,                    ls_destino          varchar2,          cValor                    varchar2 default null) IS
         nCont_Orig     number := 0;
         nCont_Dest     number := 0;
    begin
    nCont_Orig := GET_LIST_ELEMENT_COUNT(ls_Origen);          nCont_Dest := GET_LIST_ELEMENT_COUNT(ls_destino);
         Add_List_Element(ls_destino,nCont_Dest+1,cValor,cValor);
         for rec_Orig in 1..nCont_Orig loop
         if GET_LIST_ELEMENT_VALUE(ls_Origen,rec_Orig) = cValor then
         delete_list_element(ls_Origen,rec_Orig);
         end if;
         end loop;
    end;
    you can call the procedure with :
    pr_pasarElementos('control.ls_activos','control.ls_inactivos',:CONTROL.ls_activos);
    here I`m working with the Value equal to the Label... you would need to look for the Label of the origin (ls_Origen) list using the Value (cValor) you already have.
    I hope this help you.

  • How to Get the required List Item values by using Where Clause

    I have two tables named "TAX_RULES","BILL"
    1. " Tax_Rules" (Sub_Head_Code,Tax_ID,Tax_Percentage)
    { While "Sub_Head_Code" field is unique,
    Tax_ID describes that there are two kinds of Tax_IDs based on Tax_percentage which is 6% for some Sub_Head_Codes and 3.5% for the remainng Sub_Head_Codes. I have given Tax_ID 1 for 6% and Tax_ID 2 for Sub_Head_codes having 3.5%. }
    2. "BILL" (Bill_ID,Sub_Head_Code,Tax_ID,Bill_Amount)
    {While "Bill_ID" describes unique Bill Identification Number,
    Sub_Head_Code and Tax_ID are behaving like composite foreign key from Tax_Rules table}
    I have design form for both tables.
    In BILL form i am trying to get values of Tax_ID from Tax_Rules table at run-time by using WHEN-NEW-FORM-INSTANCE.
    For this whenever i select a Sub_Head_Code in Bill Form, all the Tax_IDs that i have recorded against each Sub_Head_Code which is either 1 or 2 against 6% and 3.5% respectively.
    But I want that whenever i select a "Sub_Head_Code", Only that Tax_ID which is associated with that Sub_Head_Code ahould come in the LIST ITEM.
    I have used WHERE clause but that is useless.
    Following is the Code that i have applied in the WHE-NEW-ITEM-INSTANCE Trigger at FORM LEVEL
    <CODE>
    DECLARE
         rg_n1 VARCHAR2(40) :='TAX_ID';
         rg_idn1 RecordGroup;
         gc_idn1 GroupColumn;
         errcode NUMBER;
    BEGIN
         CLEAR_LIST('BILL.TAX_ID');
         rg_idn1 := Find_Group(rg_n1);
    IF      Id_Null(rg_idn1) then
              rg_idn1 := Create_Group(rg_n1);
         gc_idn1 := Add_Group_Column(rg_idn1,'EXPLAIN',CHAR_COLUMN,60);     
              gc_idn1 := Add_Group_Column(rg_idn1,'TAX_ID',CHAR_COLUMN,3);
         END IF;
         errcode := Populate_Group_With_Query(rg_idn1,'select TAX_ID,TAX_ID from TAX_RULES');
         POPULATE_LIST('BILL.TAX_ID',RG_IDn1);
    END;
    </CODE>

    In the Tax Rules table, you state:
    "Sub_Head_Code" field is unique
    In the Bill table, you state:
    Sub_Head_Code and Tax_ID are behaving like composite foreign key from Tax_Rules table
    If the Sub_Head_Code is unique, then it's acting as a primary key, so Sub_Head_Code and Tax_ID in the Bill table are not behaving like a composite foreign key. The Sub_Head_Code is a foreign key, and the Tax_ID is irrelevant as far as keys are concerned.
    It is not clear what it is you want to do.
    If you want to display the Tax_IDs from the Bill table when you select a Sub_Head_Code from the Tax_Rules table, then change your query to:
    select TAX_ID, TAX_ID from BILL where Sub_Head_Code = :Tax_Rules.Sub_Head_Code
    If you want to display the Tax_IDs from the Tax_Rules table when you select a Sub_Head_Code from the Bill table, then change your query to:
    select TAX_ID, TAX_ID from TAX_RULES where Sub_Head_Code = :Bill.Sub_Head_Code
    If this is not what you want, then clarify what it is you want to do. Don't say:
    "I want that whenever i select a "Sub_Head_Code", Only that Tax_ID which is associated with that Sub_Head_Code"
    because it is not clear what tables you are referring to.

  • HT1386 Recently I updated iTunes on my PC and now the "Summary" for syncing my iPhone no longer appears near the top of my iTunes Window. The Summary lists items that I can sync with my iPhone such as "Music, Photos, Apps" etc.

    Recently I updated iTunes on my PC and now the "Summary" for syncing my iPhone with iTunes no longer appears near the top of my iTunes window.  "Summary" lists items I can sync such as "Music, Photos, Apps", etc with drop-down boxes I can use to manage how I sync those items.  An icon for my iPhone does appear near the top right corner of the iTunes window; however, when I click on the icon, the sync automatically begins and there is no display of what is syncing or how much space has been used or how much space is left for syncing music, photos, apps, etc. The new iTunes window no longer lists "Devices" on the left-hand side of the window.  Has anyone had the same issue?

    In iTunes go to View>Show Sidebar.

  • How to resize the poplist List Item

    How can I resize a poplist List Item so that when it's expanded all of my item choices are displayed and the user doesn't have to use a scroll bar to move up and down the list of choices?

    The number of choices that are displayed in a poplist (or combo box) is determined by Forms and cannot be specified. However, if you use a t-list you can expand the list by using the height property.
    Message was edited by:
    Mark Roberts

  • Global package variable for the current rendering item

    I like to define a generic plsql function which handles all the page 0 item conditions. I will place this function call in all page 0 item conditions.
    Now I need a global (htmldb_application) package variable which I can use to identify for which item condition the function is executed.
    Which global variable can I use for this purpose or is there an other way to do this.
    I dont't want to give the the item names hardcode as argument of the function.

    Scott,
    I will try to clarify my question.
    I have lot of page 0 items.
    I like to give every item the same plsql condition such as htmldb_pck.show_item or
    htmldb_pck.show_item('#CURRENT_ITEM#').
    In my own htmldb_pck.show_item function I have all the display coding of the generic items.
    My problem is that I have to know from which item the function is called.
    Thanks,
    Fred.
    May be this is something for an enhancement. Not only for the items, but also for the buttons, tabs, tab sets and report columns. So you know in generic pl/sql from which object the pl/sql is called.

  • To get the guid of the current line item in report

    Hi,
    I am creating reporting program  for inserting new line item to a quotation.
    Using header guid (Hardcoded value) i am able to insert new line item and product.
    in order quantity value i need current line item guid.
    How can i get current line item guid so that i can insert quantity value to current line item?
    Thanks in advance
    Anil

    Hi Anil,
    You can get current item guid by using FM CRM_ORDERADM_I_READ_OB, but it will of no use. If you try to do this then in this case you have to call maintain FM 2 times, which is not recommended. First you have to create item and then you have to maintain quantity. You have to do all this in one maintain call.
    Regards,
    Bhushan

  • How to send current list item URL in email by using sharepoint 2010 workflow?

    Hi All,
    I had created sharepoint workflow usind SPD 2010. when new item is created it sends the email with link. But it sends current list link not the current item link.
    I tried to use Encoded Absolute URL but this like
    http://asdf.com/Lists/abc/10.00
    but i need something like this
    http://asdf.com/Lists/abc/DispForm.aspx?ID
    I have grow thorough some post and i found that,
    Statically i can write http://asdf.com/Lists/abc/DispForm.aspx?ID= and from Add lookup i can get ID by choosing current item.
    The link which i get is partially hyperlink like this
    http:aasdf.com/Lists/abc/DispForm.aspx?ID=10 (here 10 is not hyperlink)
    when i copy and paste this link it works fine but by clicking it i am not getting true result.
    Please help me to solve this issue.
    Thanks.

    Hi Raymond,
    It works for me. Thank you so much.
    I also have another issue related workflow. If you can help me, i really appreciate you.
    I already configured AAM. I have two Share Point Address which are:
    Default : http://default.com
    Internal : http://intranet.com
    I have List workflow using SharePoint Designer 2010. When new item get create, it sends email to person for approval. But when it sends email it sends Dafault zone URL.
    Dafault zone URL is only accessible through Virtual Machine. We cant access from local machine. So i need to send intranet zone URL in email so user can open through local machine.
    I tried it but i can only able to do for one list. I have to so this general for every list.
    How can i send intranet zone URL?
    Swapping the zone URL is not solution for this issue because after swapping situation is same.
    Thank You.

Maybe you are looking for