Inserting ordered/unordered list items breakes the document design

Hi,
I use JEditorPane to edit HTML document. When I insert ordered/unordered list items, it breakes the design of the document. For example, I have next peace of the document:
<center>
This text is centered.
One more line...
</center>
after inserting list item between text lines, document looks like :
<center>
This text is centered.
</center>
<ol>
<li>
</li>
</ol>
<center>
One more line...
</center>
Note, that center tag is closed before list item and opened after it.
Is it possible that inserted list items will save the original design of text around ?
Thanks.
.Vlad.

Change the Leading in the Character Pallet to a smaller number, and increase the Space After in the Paragraph Pallet.
The space between lines in the same paragraph is the leading, the space between paragraphs is not leading, and trying to achieve it with the leading field always creates more problems than it solves.

Similar Messages

  • Invalid data has been used to update the list item. The field you are trying to update may be read only (Lookup Field).

    Hi.
    I am getting below error while adding value to look-up field.
    Invalid data has been used to update the list item. The field you are trying to update may be read only.
    I have tried many forums ans post but didn't come to know what's the root cause of issue. I am also posting Code for creating and adding lookup field.
    CAML to create lookup field (It works Fine)
    string lkproductNumber = "<Field Type='Lookup' DisplayName='Product Number' StaticName='ProductNumber' ReadOnly='FALSE' List='" + pNewMaster.Id + "' ShowField='Product_x0020_Number' />";
    Code to insert value to lookup field
    ClientContext client = new ClientContext(SiteUrl);
    client.Load(client.Web);
    client.Credentials = new NetworkCredential(this.UserName, this.Password, this.Domain);
    // Lookup Lists
    List pmList = client.Web.Lists.GetByTitle("Product_Master");
    //List Conatining Lookup Columns
    List piList = client.Web.Lists.GetByTitle("Product_Inventory");
    client.Load(piList);
    query.ViewXml = "<View/>";
    ListItemCollection collection = pmList.GetItems(query);
    client.Load(collection);
    client.ExecuteQuery();
    int prodid=0;
    foreach (ListItem item in collection)
    if (Convert.ToString(item["Product_x0020_Number"]) == ProductNumber)
    { prodid = Convert.ToInt32(item["ID"]); }
    ListItem piItem = piList.AddItem(new ListItemCreationInformation());
    piItem["Product_x0020_Number"] = new FieldLookupValue() { LookupId = prodid };
    piItem.Update();
    client.ExecuteQuery();
    Exception Detail
    Microsoft.SharePoint.Client.ServerException was caught
    Message=Invalid data has been used to update the list item. The field you are trying to update may be read only.
    Source=Microsoft.SharePoint.Client.Runtime
    ServerErrorCode=-2147352571
    ServerErrorTypeName=Microsoft.SharePoint.SPException
    ServerStackTrace=""
    StackTrace:
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
    at WebServiceProviders.ClientServices.NewProductInventory() in Z:\.............ClientServices.cs:line 889
    InnerException:
    Quick response is highly appreciated.
    Thanks
    Mehar

    Try some thing like below,
    your data value that needs to be update should be in this format "ID of the lookup";#"Title of the Lookup" 
    For example,
    listItem["Product_x0020_Number"]
    = "1;#iPhone";
    listItem["Product_x0020_Number"]
    = "2;#Mobile";
    Hope this helped you....

  • Need to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.

    Hi All
    I have one sharepoint list with huge data i.e with 20columns and more than 200 records with the fields .
    Suppose lets consider there are A,B,C,D,E,F,G,H columns.
    Now i want to create one form with the fields A,C,E.
    When the user enter the existing data of list for columns A,C..based on C value the E column value should change and update that particular item in the list.
    Please guide me without visual web part can we acheive this by Sharepoint designer 2013 or what would be the preferable solution.
    Please help me on this as it is very urgent from me..
    Thanks in Advance
    Sowjanya G

    Hi,
    According to your post, my understanding is that you wanted to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.
    I recommend to create workflow associated to the list and then start the workflow automatically when an item is changed.
    In the workflow, you can add condition and actions as below:
    If current item: C equal to Test1
         Set E to Test2
    Then the value of the filed E will be changed based on the value of the filed C.
    In addition, if you create the form using InfoPath, you can add rule to the filed C as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Open references of other list items from a list item in the same window or tab

    Hi there,
    We have migrated from lotus notes to sharepoint. We have converted the lotus notes forms to sharepoint forms. Basically the list items are pages and there are links of other pages in a page.
    My problem is I want to open the other pages in the same tab or window and not in a separate window.(currently the links open in a separate window which is not the requirement.)
    In terms of sharepoint I would say,
    I have references(links)  to other list items of the list in a single list item. I want to open the other list items in the same window (tab).
    How can we achieve this?? If possible without much codes??
    Please suggest.
    Any help will be highly appreciated.
    Thanks in advance

    See:
    *http://kb.mozillazine.org/browser.link.open_newwindow
    *1: current tab; 2:new window; 3:new tab;
    For links opened via JavaScript you can look at this pref:
    *http://kb.mozillazine.org/browser.link.open_newwindow.restriction
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • How to implement tooltip for the list items for the particular column in sharepoint 2013

    Hi,
    I had created a list, How to implement tooltip for the list items for the particular column in SharePoint 2013.
    Any help will be appreciated

    We can use JavaScript or JQuery to show the tooltips. Refer to the following similar thread.
    http://social.technet.microsoft.com/forums/en/sharepointdevelopmentprevious/thread/1dac3ae0-c9ce-419d-b6dd-08dd48284324
    http://stackoverflow.com/questions/3366515/small-description-window-on-mouse-hover-on-hyperlink
    http://spjsblog.com/2012/02/12/list-view-preview-item-on-hover-sharepoint-2010/

  • Invalid data has been used to update the list item. The field you are trying to update may be read only.

    Trying to follow Serge Luca's Step by Step Tutorial. Creating Workflows for Windows Sharepoint Services and MOSS2007.  http://sergeluca.spaces.live.com/blog/cns!E8A06D5F2F585013!859.entry
    I have an onWorkflowActivated, followed by an ifElse condition and a log to history.
    In the IfElse, each branch has a code segment, that trys to update the status column in the list that the workflow is attached to.
    private void Authorize_ExecuteCode(object sender, EventArgs e)
    // tried serveral methods
    WorkflowProperties.Item["Status"] = "Automatically Approved";
    // tried all of the following (one at a time)
    item.update();
    WorkflowProperties.Item.Update();
    WorkflowProperties.Item.SystemUpdate();
    //tried this as well.
    Microsoft.SharePoint.SPListItem item = WorkflowProperties.Item;
    item["Status"] = "Automatically Approved";
    item.Update() ;
    On the update call I keep getting "Invalid data has been used to update the list item. The field you are trying to update may be read only."
    Could someone explain how to update "Status" column of the list item that the workflow is working on?
    Thank you very much.
    Bill
     

    Hi:
    you can do the following:
    add the following code to the workflow.xml file (under the MetaData section)
    Code Snippet
    <ExtendedStatusColumnValues>
    <StatusColumnValue>Branch1</StatusColumnValue>
    <StatusColumnValue>Branch2</StatusColumnValue>
    </ExtendedStatusColumnValues>
    then add 2 SetState activities one in each branch of the IfElse.
    for the code behind of setState1 (branch1) write the following code:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max);
    for setState2 (branch2) write the following:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max) + 1;
    where state is the variable assigned to the field State in the properties of the SetState(design lever), or instead of state u can use the following code:
    Code Snippet
    ((SetState)sender).State
    where sender is the object sent through the function parameter.
    hope this answered your question
    Best Regards

  • How to populate List Item from the table in a form builder

    I want to know how to populate the List Item (pop up menu and combo box) from a table.
    Supposing I have a table Customer(cust_id,cust_name)
    and now I want to populate it in such a manner that I can update the data back to the database and also access the list on the form.

    This is the method i am using to populate a list.
    1- First of all you need to create a non-database list item for customer_name.
    2-create this procedure
    PROCEDURE populate_list_with_query
    --Populates the given list item with the specified query.
    (p_list_item in VARCHAR2
    ,p_query in VARCHAR2)
    IS
    /* Name the record group after the list item (no
    block prefix). */
    cst_rg_name constant VARCHAR2(30) :=
    GET_ITEM_PROPERTY(p_list_item,item_name);
    v_rg_id RECORDGROUP;
    BEGIN
    v_rg_id := FIND_GROUP(cst_rg_name);
    IF ID_NULL(v_rg_id) THEN
    v_rg_id := CREATE_GROUP_FROM_QUERY(cst_rg_name,p_query);
    END IF;
    IF POPULATE_GROUP(v_rg_id) = 0 THEN
    POPULATE_LIST(p_list_item,v_rg_id);
    /* Force display of first list element label
    in the list item. */
    COPY(GET_LIST_ELEMENT_VALUE(p_list_item,1),p_list_item);
    END IF;
    END populate_list_with_query;
    3- Create When-Create-Record on the block level and write this code
    BEGIN
    POPULATE_LIST_WITH_QUERY('bk1.customer_name',
    'SELECT customer_name, to_char(customer_id) FROM customer');
    END;
    In this example, the customer name is the (visible) list label and the customer ID is the (actual) list value
    i hope this will solve your problem ...

  • How to show list items in html page design?

    Hi all,
    I have a SharePoint list with column Title, Logo, Project Summary, Project Description and would like to show list items in html table design like:
    How to achieve this? thanks in advance!

    As per my understanding, You want to just redesign your list form. You can achieve the same using SPD2010 or you can use jQuery also if you don't have rights for SPD customization.
    Create
    a custom list form using SharePoint Designer
    SharePoint
    form: present fields side-by-side
    Thanks.

  • How to break the document line items in cross company code document

    Hi,
    Currently the cross company code posting is summing up all the line items and posting as a single line item as long as the line items are having the same tax code.
    The system will break the line items only if there are non-identical tax codes. How can i change this default behaviour to break the line items in all cases?
    http://wikisend.com/download/436966/2.zip

    It is the standard SAP behaviour to sum up all the identical tax code values.

  • How to Copy list item attachment to document library in SharePoint 2010

    Hi,
    How to Create a folder ("List Item - Title Name") in Document library and copy list items Attachments to the same folder in SharePoint 2010,thanks in advance.
    Regards,
    Selvan.J
    Selvan J

    Hi,
    You should first check whether the folder exists in the library, if the folder not exists, then create it.
    I had modified the code, you can use the following code snippet to achieve it.
    private void EventCopyFileWhenItemCreatedOrUpdated(SPItemEventProperties properties)
    SPSite site = new SPSite(http://YourSiteName);
    SPWeb web = site.OpenWeb();
    SPList doclibList=properties.Web.Lists["YourLibName"];
    bool foundFolder = false;
    if (doclibList.Folders.Count>0)
    foreach (SPListItem fitem in doclibList.Folders)
    if (fitem.Title.Equals("FolderA"))
    foundFolder = true;
    break;
    if (foundFolder == false)
    SPListItem folder = doclibList.Folders.Add(doclibList.RootFolder.ServerRelativeUrl, SPFileSystemObjectType.Folder,"FolderA");
    folder.Update();
    string fUrl = doclibList.RootFolder.ServerRelativeUrl+"/FolderA";
    SPFolder myLibrary = web.GetFolder(fUrl);
    if (properties.ListTitle == "YourListName")
    SPListItem sourceItem = properties.ListItem;
    properties.Web.AllowUnsafeUpdates = true;
    //get the folder with the attachments for the source item
    SPFolder sourceItemAttachmentsFolder =
    sourceItem.Web.Folders["Lists"].SubFolders[sourceItem.ParentList.Title].SubFolders["Attachments"].SubFolders[sourceItem.ID.ToString()];
    //Loop over the attachments, and add them to the target item
    foreach (SPFile file in sourceItemAttachmentsFolder.Files)
    if (CheckFileNameExist(file.Name , properties) == false)
    byte[] binFile = file.OpenBinary();
    myLibrary.Files.Add(System.IO.Path.GetFileName(file.Url) , binFile);
    private bool CheckFileNameExist(string fileNameInFileAttach, SPItemEventProperties properties)
    bool flag = false;
    SPList myDocumentLib = properties.Web.Lists["YourLibName"];
    SPQuery spQuery = new SPQuery();
    SPListItemCollection items = myDocumentLib.GetItems(spQuery);
    foreach (SPListItem item in items)
    if (fileNameInFileAttach == item["Name"].ToString())
    flag = true;
    break;
    return flag;
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How do I move a list item to the left?

    I need help formatting graphic banners inside a list.
    What I'm doing: Updating a very old pre-CSS site with messy,
    messy code.
    The layout is done by tables within tables within tables
    (three layers of nested tables.)
    In the innermost table, the right column contains a list of
    links. Originally the page had every link in a seperate <p>
    tag, with bullets specified as numbers in the HTML. To try to
    update and clean things up, I made everything an unordered list,
    and used a LI style to set margin-bottom to .75em (to put some
    spacing between the list entries) and text-align to justify.
    And, I want to have a few (graphic banners) flush against the
    left margin of the table column.
    I created a new style, BareListItem, and gave it no style (to
    remove the bullet), and left margin of -1em. That's close.
    How can I get the left margin to actually be zero (absolute),
    rather than relative?
    Here's the style sheet.
    LI {
    text-align: justify;
    margin-bottom: .75em;
    .BareListItem {
    list-style: none;
    margin-left: -1em;
    Problem #2: Dreamweaver insists that the column is too wide.
    The only thing contained within the column are list items, text,
    links, and graphic banners that I'm moving leftward with this style
    element. I cannot find anything in there that is too big, yet DW
    insists that the table column cannot be thinner.
    How can I find out what's the oversized problem -- how can I
    find out what's forcing the column to be wider than I have
    specified?

    I think this is what you're talking about... give this a shot. You can style the menu with CSS if you want. 
    This code will make a drop down like this: (http://www.melsbgc.com/test.htm)
    <FORM NAME="form" ID="form">
      <SELECT NAME="jumpMenu" ID="jumpMenu" onChange="MM_jumpMenu('parent',this,0)">
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Junior%20Nationa l">Junior National</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=250%20National">250 National</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=450%20Elite">450 Elite</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=450%20Clubman">450 Clubman</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Elite">Open Elite</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Nationals">Open Nationals</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Clubman%2 0Cup">Open Clubman Cup</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=450%20Quad">450 Quad</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Quad">Open Quad</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=650%20Superlite">650 Superlite</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Superlite">Open Superlite</OPTION>
      </SELECT>
    </FORM>

  • Copy Attachments of sharepoint list item to a document library using Javascript on click of a button

    The requirement is as follows:
    1. We have a SP list. All items in the list have mulitple attachments.
    2. On click of a button, All the attachments of all items should be copied to a document library
    This is to be done from client side only. No server code is acceptable. We have tried following things:
    1. USing Asynch call
    context = new SP.ClientContext("my site name");
             this.oWebsite = context.get_web();
             var lists = oWebsite.get_lists();
             var list = lists.getByTitle('my list name');         
             context.load(oWebsite);
             var folderPath = 'Lists/<my list name>/Attachments/' + folderId;
             var Folder = oWebsite.getFolderByServerRelativeUrl(folderPath);
             context.load(Folder);
             Files = Folder.get_files();
             context.load(Files);
             context.executeQueryAsync(Function.createDelegate(this, this.ExecuteCopyOnSuccess), Function.createDelegate(this, this.ExecuteCopyOnFailure));
    function ExecuteCopyOnSuccess(sender, args) {        
             for(var p=0;p<this.Files.get_count();p++)
         var file = Files.itemAt(p);    
              var filename = file.get_name();      
              if (filename != null) {
                  var newUrl = 'document library url';
                  file.copyTo(newUrl, true);
                  context.executeQueryAsync(null,null);
    In this case, Files.get_count() throws error - The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
    2. Using copy.asmx service
    It copies files to document library but some files are blank and are having size 0.
    Thanks!

    Hi,
    I think you can use Document Content types or document sets -
    Here are links that you can refer to
    http://office.microsoft.com/en-us/windows-sharepoint-services-help/introduction-to-content-types-HA010121570.aspx
    http://msdn.microsoft.com/en-us/library/office/ms472236(v=office.14).aspx
    http://office.microsoft.com/en-us/sharepoint-server-help/create-and-configure-a-new-document-set-content-type-HA101782461.aspx
    http://office.microsoft.com/en-us/sharepoint-server-help/introduction-to-document-sets-HA101782466.aspx?CTT=5&origin=HA101782461
    Hope this helps!
    MCITP: SharePoint 2010 Administrator
    MCTS - MOSS 2007 Configuring, .NET 2.0
    | SharePoint Architect | Evangelist |
    http://www.sharepointdeveloper.in/
    http://ramakrishnaraja.blogspot.com/

  • Spaces - to block unreleased content items from the document explorer view

    I have configured Webcenter Spaces application to view the webcenter content documents over a document explorer. The problems observed are:
    1. The checked in files will be visible to a view only user even the file is under a workflow (unreleased document state in webcenter content). How to show only the released documents over document explorer?
    2. I could not find the custom metadata fields associated with a content item displayed in the document explorer columns list. It shows a finite set of pre-defined columns like filename, size, like, description etc
    Please advise.

    I'm afraid that this is the OOTB behaviour.
    Ad 1: the reason for that is that workflow approvals/rejections can be executed directly from the task flow. What you might try is to disable the 'workflow' feature of the task flow - see http://docs.oracle.com/cd/E21764_01/webcenter.1111/e10149/content_prop.htm#WCSUG7365
    Ad 2: I'm not aware of any configuration that defines the displayed fields. Perhaps, you could customize the task flow.

  • Change order of list items in sealed MP

    Hi,
    I have a MP that is sealed. It includes a list, but also list items exist in that sealed MP. I need to reorder the list. I have the unsealed MP and the seal used. Can i just edit the unsealed version, changing order in the XML code and increase ver. nr.
    and if yes then how?

    Hi,
    I did a test in my lab and just edited the xml version of the MP. I changed the numbers in ordinal to rearrange, incremented the version # plus resealed and imported.
    <EnumerationTypes>
    <EnumerationValue ID="IncidentPriorityList" Accessibility="Public" />
    <EnumerationValue ID="Enum.cd7c7616b19745ffb646e0320ba85bb4" Accessibility="Public" Parent="IncidentPriorityList" Ordinal="0" />
    <EnumerationValue ID="Enum.8ae91ca8f3a7439eb2941c4a1547908c" Accessibility="Public" Parent="IncidentPriorityList" Ordinal="2" />
    <EnumerationValue ID="Enum.0d5e33cc41504a4eaf66b64b2dff3a2d" Accessibility="Public" Parent="IncidentPriorityList" Ordinal="1" />
    </EnumerationTypes>

  • Does anyone know a way to programatically loop through the items in the document library

    A lot of the funcations like deleteSymbol and updateSymbol depend on which items are "selected" in the library panel.
    Is there a way to programatically access these selections?
    or
    Loop through the library?
    or
    Set selections?

    Yup, I've asked for an API to access the selection in those panels for years, to no avail.
    Note that you can loop through layers, frames and pages, but you can't tell what the user has selected in the actual panel UI.  Also, you can't find out which symbols are currently used in the document.  Nor can you programmatically insert a rich symbol into the document and have it maintain its "richness".

Maybe you are looking for

  • Wifi autoconnect

    I password protected my wireless network recently. For some reason, the iphone no longer auto connects to the network. It will connect if i manually tell it to, but no auto connect. Anyone else have this problem? Any idea how to solve it? Would be ni

  • CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG

    Hi Experts, I have a customized program with BDC. first My program will convert a .dbf file into .xls file. My second program executes the .xls file. The .xls file that I get from my first program will be transferred into a textbox in my second progr

  • Itunes dropped the ball..

    no one can solve launch failures with itunes 7.5, 7.6... but i found a solution.. songbird! look it up... you wont turn back...

  • PPPoE problem with Authorization of the ip-address (Framed-IP)

    Hi! This week I changed our PPPoE dial-in router from a Cisco 3660 (SW: 12.4.25) to a Cisco 2901 (SW 151-2.T2-Universal Image). Now I have the problem that I could not make a dial-in connection to this router. I get an error in the PPP-Authorization.

  • Business system assignment

    hi i am new to xi i have a doubt that what is the relation ship between technical system and business and system and what is relation ship between them i.e. how many technical system can be assigned to business system and vice-versa.