Displaying panels as list items

Hi All,
I have a requirement in my project where I have a tree
control on the left and a VBox on the right. On click of a tree
node, i need to populate an expandable panel with the details of
the clicked tree node and add that panel to the VBox on the right
side . On every such click i need to add the panel one below the
other. I am able to achieve this till now.
However i need to be able to remove those panels by selecting
them using Control + Click . I have a feeling if i try to render
the panels in a List control using a custom itemrenderer instead of
a VBox, i may be able to achieve this.
Would like to have some inputs on the custom itemrenderer for
a panel or
I would like to know if there is any other method of
achieving this.
Any help in this regard would be appreciated.
Thanks,
mayspring

I'll add that you can have a repeater whose dataProvider is
an ArrayCollection or XMLListCollection, and clicking on the tree
just adds data to the collection, and control click just deletes
data from the collection, and the repeater just renders what is it
the collection. Makes it cleaner.

Similar Messages

  • To display values in List Item through Dbms_SQL

    Hi,
    I want to write the dynamic sql in forms6.0 to built my query at runtime and display the result in List Item. I am getting an error ora-12703. If any person can help me in this problem it will be very happy for me.
    declare
    l_cursor integer;
    l_last_name varchar2(20);
    l_createstring1 varchar2(2000) ;
    l_first_name varchar2(20) ;
    l_id number(9);
    result integer;
    l_count number(2) := 0;
    x varchar2(200);
    y number(9);
    begin
    l_cursor := dbms_sql.open_cursor;
    l_createstring1 := 'select id, first_name, last_name from candi_pinfo ' ;
    dbms_sql.parse(l_cursor,l_createstring1, 2);
    dbms_sql.define_column(l_cursor,1,l_id);
    dbms_sql.define_column(l_cursor,2,l_last_name,20);
    dbms_sql.define_column(l_cursor,3,l_first_name,20);
    result := dbms_sql.execute(l_cursor);
    loop
    if dbms_sql.fetch_rows(l_cursor) = 0 then
    exit;
    end if;
    dbms_sql.column_value(l_cursor,1,l_id);
    dbms_sql.column_value(l_cursor,2,l_last_name);
    dbms_sql.column_value(l_cursor,3,l_first_name);
    l_count := l_count+1;
    add_list_element('candi_id',l_count,l_id| |l_last_name| |l_first_name,l_id);
    end loop;
    dbms_sql.close_cursor(l_cursor);
    :result.candi_id := get_list_element_value('candi_id',1);
    exception
    when others then
    dbms_sql.close_cursor(l_cursor);
    raise;
    end;
    null

    Hi reddy,
    I didn't find any error in your code and I tested in my system by changing query.. and it is working fine.. check declaration of variables datatype ,length etc..
    I tested following code ..
    declare
    l_cursor integer;
    l_last_name varchar2(40);
    l_createstring1 varchar2(2000) ;
    l_first_name varchar2(200) ;
    l_id number(9);
    result integer;
    l_count number(5) := 0;
    x varchar2(200);
    y number(9);
    begin
    --clear_list('lb');
    l_cursor := dbms_sql.open_cursor;
    l_createstring1 := 'select col1,col2 from mytable ' ;
    dbms_sql.parse(l_cursor,l_createstring1, 2);
    dbms_sql.define_column(l_cursor,1,l_id);
    dbms_sql.define_column(l_cursor,2,l_last_name,40);
    result := dbms_sql.execute(l_cursor);
    loop
    if dbms_sql.fetch_rows(l_cursor) > 0 then
    dbms_sql.column_value(l_cursor,1,l_id);
    dbms_sql.column_value(l_cursor,2,l_last_name);
    --dbms_sql.column_value(l_cursor,3,l_first_name);
    l_count := l_count+1;
    add_list_element('candi_id',l_count,to_char(l_id)| |l_last_name,l_id);
    else
    exit;
    end if;
    end loop;
    dbms_sql.close_cursor(l_cursor);
    :result.candi_id := get_list_element_value('candi_id',1);
    exception
    when others then
    dbms_sql.close_cursor(l_cursor);
    end;

  • Creating Tile Web Part - Displaying Total # if List Items

    Can I get some direction on creating a series of tiles that pull data from lists to show a simple number?
    A couple examples...
    - From a list of contacts, how many total contacts do I have?
    - From that same list, in another tile, how many are from Illinois?
    And so on...
    Appreciate any insight.
    MD

    For SharePoint Online you have two approches:
    1) Sandbox solutions (deprecated)
    2) SharePoint Apps. You can create them with Napa (with some restriction), or Visual Studio.
    More about apps -
    Build Apps for SharePoint
    Fixed link: www.drewgreenwell.com/projects/metrojs
    p.s.: also you can use sharepoint designer, create page and add custom js code with
    JSOM API)
    [custom.development]

  • Unable to select the value from a list item in forms 6i

    Hi ,
    I'am using forms 6i. I have created a list item in my form as below.
    Item_type = list item
    list style - popup list
    elements in list - A, B, C,D
    When I open the form all the above values are displayed for the list item. But I'am unable to select the item( either A,B,C,D).
    Please let me know if I need to add any thing else programatically to acheive this. The block on whixh these values are diplayed is a datablock.
    This is very urgent. Any suggestions would be of great help.
    Thanks
    Deepthi

    If you have a list item where you have:
    Display A value 1
    Display B value 2
    Display C value 3
    Display D value 4
    If want to initial the value of the item to be A, you can set the initial value of the item to 1 in the property pane.
    Otherwise in an initialisation triger have
    :block.list_item := 1;
    HTH
    Tony

  • List item - Record Group Query - Alignment improper Order

    Dear All,
    When am trying to concatenate two columns using record group query and displaying in the list item, the alignment is not in proper order.
    E.g; Below is the columns and data's used in process:
    CODE_VALUE     SHORT_DESC     DESCRIPTION
    ROLL1     Customer - Non accidental     Production, booking with other carrier, bad projection.
    ROLL2     Customer - Accidental     L/C, B/L draft, Customs, Samples, AMS, LAR.
    ROLL3     ABC - Lack of empty     Lack of empty units.
    ROLL4     ABC CDE - Roll over     AGR RRR decision.
    ROLL5     ABC XXX - Accidental     IMO or OOG refused, operational problems, Cut & Run.
    ROLL6     ABC YYY - Fictive booking     Equipment buffer, dummy booking.
    Below is the record group query used in forms:
    PROCEDURE p_when_new_form_instance
    IS
    GROUP_ID recordgroup;
    list_id item := FIND_ITEM ('BLK_CONTROL.LI_ROLL_REASON');
    rg_name VARCHAR2 (20) := 'LI_ROLL_REASONS';
    status NUMBER;
    l_query VARCHAR2 (4000);
    BEGIN
    l_query :=
    'SELECT rpad(short_desc,50,'' '')||'' | ''||description description, code_value code_value FROM codes WHERE code_value IN (''ROLL1'', ''ROLL2'', ''ROLL3'',''ROLL4'',''ROLL5'',''ROLL6'')';
    GROUP_ID := CREATE_GROUP_FROM_QUERY (rg_name, l_query);
    status := POPULATE_GROUP (GROUP_ID);
    POPULATE_LIST (list_id, GROUP_ID);
    EXCEPTION
    WHEN OTHERS
    THEN
    pl_common.when_others;
    END;
    Moreover i have my list item font property by default as ""MS SANS SERIF" and when i run in Forms Builder am getting the alignment as below.
    Result:
    ====
    DESCRIPTION     CODE_VALUE
    Customer - Non accidental | Production, booking with other carrier, bad projection.     ROLL1
    Customer - Accidental | L/C, B/L draft, Customs, Samples, AMS, LAR.     ROLL2
    ABC - Lack of empty | Lack of empty units.     ROLL3
    ABC CDE - Roll over | AGR RRR decision.     ROLL4
    ABC XXX - Accidental | IMO or OOG refused, operational problems, Cut & Run.     ROLL5
    ABC YYY - Fictive booking | Equipment buffer, dummy booking.      ROLL6
    Above order is not the expected result as all the |(pipe) symbol should display in proper order as below.
    Expected Result:
    ==========
    DESCRIPTION     CODE_VALUE
    Customer - Non accidental | Production, booking with other carrier, bad projection.     ROLL1
    Customer - Accidental | L/C, B/L draft, Customs, Samples, AMS, LAR.     ROLL2
    ABC - Lack of empty | Lack of empty units.     ROLL3
    ABC CDE - Roll over | AGR RRR decision.     ROLL4
    ABC XXX - Accidental | IMO or OOG refused, operational problems, Cut & Run.     ROLL5
    ABC YYY - Fictive booking | Equipment buffer, dummy booking.      ROLL6
    I tried with RPAD and LPAD still the alignment issue is there; i know the issue is because of invariable length of the font.
    But is there any solution to override this it will be of great help.
    So please help!!!!!!!!!!!!!!!!!
    Thanks..................
    Regards,
    Sunil.G

    Hi Francois,
    Thanks for your reply. I have tried changing the font to "Courier(Western)" it is working fine.
    But as per the standards defined, it should be "Ms Sans Serif" nothing apart from that.So that is where the problem lies. :(
    Regards,
    Sunil.G

  • Custom List Item Pages in Search Result

    Hi there,
    We are using SharePoint 2013 and have built a custom web part that displays a series of items from a list. When you click on one of the items, it takes you to a custom page that displays the selected list item, styled with our company branding. This works
    perfectly. However when a user performs a search, the search results includes the link to the SharePoint list item, and not the custom branded page. We'd like to have the search results include this custom page, instead of the standard SharePoint dispform.aspx
    page. Is there anyway to exclude the dispform.aspx and include our CustomItem.aspx in this search results? If so, how is this possible?
    For instance, a standard search returns the result:
    https://mydomain.com/Lists/Announcements/DispForm.aspx?ID=23
    Our custom branded page, which we want included in Search results is this:
    https://mydomain.com/AnnouncementsDetail.aspx?ID=23
    Thanks in advance!
    cflbasser

    Does you custom page have a managed property associated with its location, say 'myURL'?  I think you should be able to achieve this by customizing one of the Search Display Templates.  There are a couple of things involved here.  For Result
    Display rendering, Item_Default.html display template will have a "ctx.RenderBody(ctx)" call, in this case calling Item_CommonItem_Body.html template to display each item. 
    Take a look through Item_CommonItem_Body.html and there should be a place where instead of the OOTB managed property like Path or Url, you could put in your custom managed property to be displayed.  It's best to not update the default display templates
    but create custom ones and use custom result types with them.  In this scenario, you are not touching what's being indexed, but simply changing the UI layer.
    Another idea would be to use CEWS (Content Enrichment Web callout) and simply take the existing managed property responsible for printing out the link (like URL or Path), re-write it using some regex or similar logic and output it to the existing managed
    property or a new one.  You could have a trigger to only do this in specific scenarios to narrow this down, such as only to fire if an input path prefix matches a condition. 
    I would recommend doing this with Display Templates if possible, since introducing CEWS can have a performance impact on crawls, depending on how many items will need to be touched.

  • List item display in Oracle forms 10g

    hi,
    I have created the list item with pop-list in forms.When i retrieve the data using record group in the list item ,i need to display two column data in single list item i.e emp id , emp name .
    select emp_id,emp_name from emp where mgr_id = 100;
    i tried this query in record group but its coming emp id only, not name .
    Can u tell the solution as soon as possible

    Hi,
    In List Item, the First column will show in the list, and the Second column will be stored. To show both columns in list, u have to concatenate both fields and make it as first column. And i think you have to save the EMP_CODE, not EMP_NAME in database.
    So the record group will be
    SELECT EMP_ID || ' - ' || EMP_NAME EMP_NAME, EMP_ID FROM EMP WHERE MGR_ID = 100; Or you can use LOV to display multiple columns.
    Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • How to display the count of a list item in Sharepoint Designer?

    How to display the count of a list item in Sharepoint Designer? please reply with the proper code line to add for this.

    Hello,
    What version of sharepoint you are using? Try below approach:
    http://sharepointlogics.com/2010/03/total-count-of-items-in-list-in.html
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer
    Please feel free to unmark answer if does not resolves your problem.

  • Help needed in list item...need to display employee of a selected dept

    Hi All,
    I am very beginner in D2K technology.I am using 10g Forms.
    Could you please help me...
    I have created a list item which contains dept_id=10,20,30....
    My requirement is when i will change the value of dept_id(select dept_id=20),the employees belong to that dept will display(need to display 5 employees of dept 20).
    I hav created two block--block2 and block3
    In block2,there is a list item
    In block3,there is a display item and i changed the properties number of record displayed to 10 of the block.
    I atteched a trigger when-list-changed and the code is :
    select last_name into :block3.item14 from employees where department_id=:block2.item4;
    But It is not working.....
    Thanks in Advance,
    Tapan.
    Edited by: user630863 on Aug 8, 2010 9:20 PM
    Edited by: user630863 on Aug 8, 2010 9:55 PM

    okk..well still i don't know the purpose of the form on which you are working why not the database block for emp?..but the requirement you are asking can be done through following code...
    Trigger - WHEN-LIST-CHANGED
    DECLARE
      CURSOR F_Cur IS
        SELECT ename
        FROM emp
        WHERE deptno = :list_item_name;
    BEGIN
      GO_BLOCK('BLOCK3');
      FIRST_RECORD;
      CLEAR_BLOCK;
      FOR G_CUR IN F_CUR LOOP
        :block3.item_name:=G_CUR.ename;
        NEXT_RECORD;
      END LOOP;
      FIRST_RECORD;
    END;
    Note: in the BLOCK3 there should be one item navigable by cursor. I mean if block3 is having only one item which is name item and it is display item then GO_BLOCK built-in will not work. So, you will need to create one more in block3 or make that name item as text item and set update_allowed to NO from the items' property.
    -Ammad

  • How to download list item attachment from display.aspx

    Im uploading documents
    to list item in list by
    using file upload control. Now I should download that file. I can able to insert documents into list item in attachment column which is predefined but am how can I download the attachments by clicking on the link in display.aspx.
    I have written this for uploadFile controller.
    SPSite site = SPContext.Current.Site;
    SPWeb web = site.OpenWeb();
    SPList list = web.Lists["list2"];
    //SPListItem itemId = list.GetItemById(5);
    int itemId=3;
    SPListItem newItem = list.GetItemById(itemId);
    byte[] contents = null;
    if (FileUpload1.PostedFile != null && FileUpload1.HasFile)
    using (Stream fileStream = FileUpload1.PostedFile.InputStream)
    contents = new byte[fileStream.Length];
    fileStream.Read(contents, 0, (int)fileStream.Length);
    fileStream.Close();
    SPAttachmentCollection attachments = newItem.Attachments;
    string fileName = Path.GetFileName(FileUpload1.PostedFile.FileName);
    attachments.Add(fileName, contents);
    newItem["CLMSAttachments"] = fileName;
    newItem.Update();
    Thanks in advance.

    Hi ,
    It is your browser that decides to download/open the file.
    If you have compatible client software for the file (word for docx) your computer will by default automatically try to open it.
    But we can force the download. You have to develop a handler/aspx page that will just handle the file download and you have to override the http header "content-disposition" to "attachment;filename=yourfilename"
    Here a sample :
    var fileName = "myfile.sql";
    var r = context.Response;
    r.AddHeader("Content-Disposition", "attachment; filename=" + fileName);
    r.ContentType = "text/plain";
    r.WriteFile(context.Server.MapPath(fileName));
    Hope that will help you
    Moudhafer

  • Display SharePoint:RichTextField value as is from list item into application page

    Hello,
    I would like to show value entered in Rich Text Field in list on one application page.
    I am displaying it like below as I would like to use the default functionality provided by SharePoint and this is an application page replacing the default page for list form.
    <SharePoint:RichTextField ID="RTTaskDescription" runat="server"  FieldName="Task Description" ControlMode="Display"/>
    But when it renders the output as below with DIV and STRONG as description word is bold in list item.
    <DIV>THis is task <STRONG>description</STRONG>.</DIV>
    Any way to handle this to show as it is in list item with proper HTML from server side?

    Hi,
    Did you try this
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2efb5464-e4d1-4a81-bb96-ebcde5aeffc8/want-to-remove-divdiv-tag-while-displaying-list-columntypemultiline-text?forum=sharepointdevelopmentlegacy

  • Retrieve list items from the textbox text value and display the dropdownlist item for that particular list item

    hi,
     I have created a custom list in my sharepoint :
    List1 name:   employeedepartment  -
                   Title       empdepartment
                   A             D1
                   B             D2
                   C             D3 
    List2  name:  employeedetails  
     emptitle            empname       empdepartment(lookup) --> from the list "employeedepartment"
       x                     Ram                 D1
       y                     Robert             D2
       z                     Rahim              D3
    My task is to create a custom webpart that will be for searching this employee details by entering emptitle
    For this, i have created a visual webpart using visual studio 2010, my webpart will be like this:
    emptitle  --->  TextBox1                        Button1--> Text property : Search
    empname---> TextBox2
    empdepartment-->  DropDownList1
    For this, i wrote the code as follows:
    protected void Button1_Click(object sender, EventArgs e)
                using (SPSite mysite = new SPSite(SPContext.Current.Site.Url))
                    using (SPWeb myweb = mysite.OpenWeb())
                        SPList mylist = myweb.Lists["employeedetails"];
                        SPQuery query = new SPQuery();
                        query.Query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + TextBox1.Text.ToString() + "</Value></Eq></Where>";
                        SPListItemCollection myitems = mylist.GetItems(query);
                        if (myitems.Count > 0)
                            foreach (SPListItem item in myitems)
                                string a1 = Convert.ToString(item["empname"]);
                                string a2 = Convert.ToString(item["empdepartment"]);
                                TextBox2.Text = a1;           // displaying   properly                    
                                //DropDownList3.SelectedIndex = 1;                           
     It is showing the list item in textbox according to the item entered in the textbox1... But I am stuck to show in the dropdown list. 
    Suppose, if i enter X in textbox and click on search, then dropdownlist need to show D1,
                               for Y --> D2 and for Z-> D3... like that.
    What code do i need to write in the button_click to show this... 
    Please don't give any links...i just want code in continuation to my code.

    Hi,
    Since you have got the data you want with the help of SharePoint Object Model, then you can focus on how to populate values and set an option selected in the Drop Down List.
    With the retrieved data, you can populate them into the Drop Down List firstly, then set a specific option selected.
    Here is a link will show how to populate DropDownList control:
    http://www.dotnetfunda.com/articles/show/30/several-ways-to-populate-dropdownlist-controls
    Another link about select an item in DropDownList:
    http://techbrij.com/select-item-aspdotnet-dropdownlist-programmatically
    Best regards
    Patrick Liang
    TechNet Community Support

  • 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

  • Opening a list item pdf attachment from the display form in a new window

    I have a list setup in which attachments are enabled.
    Users attach pdf's to list items.
    When they go into the display form for a list item and click on a pdf attachment in the "Attachments" area at the bottom of the form, it opens in the same browser window.
    I would like to amend this so it opens in a new window.  Has anyone found a fix for this?
    Thanks in advance,
    Mark

    Hi ,
    Put the code below in your DispForm.aspx page .The you can open the attachments in a new window. Including all the other links on the DispForm.aspx page .
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript">
    $(function(){ 
    $('a').click(function(){
                    window.open(this.href);
                   return false;
    });</script>
    Thanks,
    Entan Ming

  • Display SP2010 list items on a non-SP site

    I want to display items from a SharePoint list on an internal non-SP site. This would be read-only access, and the other site doesn't use Windows authentication. For security reasons, I would prefer not to allow anonymous access for anything on the
    SharePoint site. Can I create a dummy account that has only read access to just the specific list? If so, would that interfere with the standard authentication if the user goes to SP to add a list item? Or can the list be set up as a data source for a script
    on the non-SP site?

    Hi,
    I would suggest you create a new application based out of CSOM or JSOM / REST API and display information in your internal Non-SP Site. Else,you can use Iframe to display information within your internal site, however to get this working you may have
    to break inheritance and define permission level for users who need to do CRUD operation and for those accessing the list within internal non sp site readonly access.
    If you are ok with custom app model, then I would suggest these links -
    http://msdn.microsoft.com/en-us/library/ff798388.aspx
    http://msdn.microsoft.com/en-us/library/office/ee539350(v=office.14).aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

Maybe you are looking for

  • Field validation in Module Pool

    Hi, In my module pool, on main screen there are various fields, now out of these i've to give validation for 4 fields through a drop down field such that: There are 2 items in my drop down, when 1st item of drop down is clicked then out of 4 fields f

  • Display Yes / No instead of True or false for radio buttons in SSRS 2008R2

    Hi All, I have one report with two radio buttons as parameters. In the report display I see True / false beside the radio buttons. Is there a way where I can display it as YES instead of True and NO for False beside radio buttons? Thanks, RH sql

  • SQL Server Replication Merge:Conflicts/Sec performance counter

    Hi, i was not able to find correct answer on this counter. As I read it shows logical conflict errors, but was not able to get with t-sql any information about conflicts. Counter repeatedly report about conflicts but all merge replication system tabl

  • Java Runtime Environment Error

    Hi Im running developer 6i with patch 3a (version 6.0.8.12.1) on MS Windows 2000 with service pack 2. I have no problems with the installation, it runs smoothly and successfully. Both Forms & Reports builder work fine. However, when I attempt to run

  • Next button to advance menu pages

    Hello. I have a client who has a request that I have never heard of before.... Is it possible to advance menu pages from one to the next by pushing the NEXT button on a DVD set top player's remote? If so, how? Thanks