List item format mask

hi dear
possible to used format mask in list item DATE. i want that date will appear only 2007. possible this 'YYYY'
but i tried to put in intial values but dont work error. i put $$YYYY$$.. anyone knows?

There is no Format Mask for list items in the property palette. But you can enter years by clicking on Elements in List. Then type in each year (e.g., 2007) in both the List Element and List Element Value.
Also look in the property palette for Initial Value and enter the desired year.
If you don't want to hardcode the year(s), then you can populate the list item dynamically at runtime using built-ins. See "Manipulating List Items at Runtime" in the Help documentation for examples.

Similar Messages

  • Number format mask of text item is not applied

    Hello all,
    I want to format a number like 999G999G999G999G990D00
    Is specify the format mask under source of the item. But it is not applied and I don't understand why.
    See http://apex.oracle.com/pls/otn/f?p=53873:2 for example
    Btw. is it possible to set the format for all numbers in the application at once? I want to have a thousand separator in most cases.
    Message was edited by:
    Jacob_B

    Hello Jacob,
    Btw. is it possible to set the format for all numbers
    in the application at once? I want to have a thousand
    separator in most cases.I am using substitution strings for things like that. You can define some "global" substitution strings on page application definition.
    So you just have to put in the format (999G999G999G999G990D00 ) in there once and give it a name. Let's say NUMBER_THOUSAND.
    Afterwards you can reference it wherever you need the format e.g. this way:
    to_char(10000,'&NUMBER_THOUSAND.').
    This way you just have one place where to change the format model.
    Regards,
    Tine

  • CAMl Query -CSOM - Display Modified date of list Item in a required format

    Hi All,
    I want to display last modified date of a List Item.
    I am getting the value in this format : 
    Tue Feb 25 23:06:57 PST 2014
    How ever, I want to display it as : Tuesday 25th February 2014
    Please suggest how to achieve this.
    Any informative articles, links w.r.t building such queries in CSOM (jQuery) is welcome.
    Thanks.

    I have the query : 
    function ReadListItem() {
                siteUrl = "my site Url";
                var listTitle = "NewsList";
                //Get the current client context
                var context = new SP.ClientContext(siteUrl);
                var newsList = context.get_web().get_lists().getByTitle(listTitle);
                var camlQuery = new SP.CamlQuery();         
                camlQuery.set_viewXml('<View><Query><OrderBy><FieldRef Name=\'Modified\' Ascending="FALSE"/></OrderBy><RowLimit>1</RowLimit></Query></View>";')
                this.listItems = newsList.getItems(camlQuery);
                context.load(listItems);
                context.executeQueryAsync(ReadListItemSucceeded, ReadListItemFailed);
            function ReadListItemSucceeded(sender, args) {
                var itemsString = '';
                var enumerator = listItems.getEnumerator();
                while (enumerator.moveNext()) {
                    var listItem = enumerator.get_current();
                    itemsString += 'Modified On: ' + listItem.get_item('Modified');
                $("#P1").append(itemsString);
    I am able to get the Modified Date using the query
    But I need it in a specific format like : Tuesday 25th February 2014
    Please suggest

  • Page Item / Source / Format Mask  -  Table Column Numeric

    Form page to maintain a table row, the item is for a numeric column. Selected/Entered the format mask "999G999G999G999G990D00" for the Page Item / Source. I was under the impression that this would result in the page item being formatted with the mask when navigating out of the item. I can enter non-numeric values and navigate out with no error being raised/reported ... is this expected behaviour?
    Thanks

    APEX was touted at being a MS Access application killer and a RAD tool. If the user is presented with having to understand the complexities of session state variables, page item variables, etc. then a lot of developers/users will be switched off. APEX was supposed to appeal to the masses as the pipes and plumbing coding behind having a web application front end on an Oracle database backend was being hidden. The converse seems to apply when implementing functionality like a format mask being applied both on entry and display of several page items. So I may be able to implement the required format validation using Javascript but if I have to apply this functionality to more than one page item in now way does APEX lend itself to RAD, e.g. In Oracle Forms you could select multiple Block/Items and then change a property to apply to all the selected items.

  • Date Format Mask On Unbound Item

    Hello everyone!
    I have a module with some unbound items. One of them is date_completed. I gave the item datatype DATE and formatmask "DD-MM-RRRR". But in the application, when I type 290108, I get FRM-50026 "date must be entered like : DD-MM-YYYY.
    But I gave the item a format mask!
    Can somebody help me?

    But I gave the item a format mask!Then enter it in the format mask and not as a number
    It is doing exactly what you are telling it to do
    Nicolette

  • Numeric Format Masks on Text Items

    Hello all.
    I've been struggling to find the best way to use format masks for numbers on text items.
    So far, I've found that the property "Format Mask" on the SOURCE group does not work. Am I correct?
    I am trying to use To_Char to format the number, but I always get "NUmeric or Value Error".
    In short, what is the easiest and most widely used way to format numbers (my language is pt-br). Ex.: 12500.00 becomes 12.500,00.
    Thanks

    Peter's solution shows you the syntax for to_char to get what you want; just replace the hard-coded number in his example with the value (or the expression giving the value) you're trying to format. So, something along the lines of:
    select to_char(t.value, 'FM999G999D00', 'NLS_NUMERIC_CHARACTERS='',.''') val,
        to_char(t.factor, 'FM999G999D00', 'NLS_NUMERIC_CHARACTERS='',.''') fct,
        to_char(t.value * t.factor / 100, 'FM999G999D00', 'NLS_NUMERIC_CHARACTERS='',.''') rslt
    from table t
    where...Or, in a slightly more readable manner (I don't like having to constantly escape quote marks):
    select to_char(t.value, 'FM999G999D00', q'{NLS_NUMERIC_CHARACTERS=',.'}') val,
        to_char(t.factor, 'FM999G999D00', q'{NLS_NUMERIC_CHARACTERS=',.'}') fct,
        to_char(t.value * t.factor / 100, 'FM999G999D00', q'{NLS_NUMERIC_CHARACTERS=',.'}') rslt
    from table t
    where...-David

  • How do you add a format to the "Date Picker Format Mask" available formats?

    Hi,
    When I select the Date Picker Format Mask or "Number / Date Format" they doen't have YYYYMMDD or others that may be desired...
    How do you add a format to the available formats?
    Thank you, Bill

    Bill - From the popup help text:
    If you need to create a Date Picker item, but the format you need does not appear in the Display As list, select Date Picker (use application format mask). When an application uses this type of date picker, the Application Express engine derives the date format from an item named PICK_DATE_FORMAT_MASK. You can populate this item in two ways:
    - By defining an application substitution string named PICK_DATE_FORMAT_MASK
    - By creating an application-level item named PICK_DATE_FORMAT_MASK
    See the doc for more details.
    Scott

  • Need Format masks which can be added to oracle form fields

    Hi All,
    I needed a list of all the format masks present for Oracle Forms fields. The problrm that i face currently that when I apply masking (999g999g999d99) the values in the text item field on the form side are no more left justified but shift towards the center of the field. PLease help me out.
    Thanks,
    Gaurav

    Hi Gaurav,
    You are on the wrong forum. Post your question on the Forms forum.
    Regards,
    Andrei

  • SharePoint: Workflows - Emailing hyperlink of list item.

    I have a custom SharePoint (2013) list to manage tasks assigned to personnel and keep track of their statuses. I've created a workflow using SP Designer to send out an email to whom the task is assigned on the date for which it's due.
    The workflow is working properly and email alerts are being sent, except for one thing. Inside the email body is a hyperlink to the associated record which the recipient clicks on to view (only view, not edit) the task details.
    I got the record's hyperlink by accessing it's display form and copying the URL from the browser, pasting it into the email body. The URL's format looks something like this:
    http://zeroshiki/sites/SP2010-Main-Site/Lists/Announcements/DispForm.aspx?ID=2&ContentTypeId=0x0104000933421F36DFF740B428FEC15871B493
    Then I modified the URL by formulating a lookup to include the ID of the Current Item. In other words, the ID specified in the URL isn't fixed; it's based on the associated list item.
    I've confirmed that when the recipient recieves an email, the ID in the URL matches the record's ID on the site. However, when they click on the link and are redirected to the record's display page, there's no data displayed. The fields are visible but the
    values are not. Then I noticed that the URL in the browser does not match the one in the email; it's missing an ID value.
    So when the URL in the email is ...DispForm.aspx?ID=2&ContentTypeId... it changes to ...DispForm.aspx?ID=&ContentTypeID...
    Why does this happen? This method may seem strange to use, but I've tried looking up the "Encoded Absolute URL" and I get an error stating that the return type of the lookup is invalid. That's why I manually copied the URL format and formulated
    the record ID.
    Am I doing something wrong here? Is there a more straight-forward approach to retrieving the record's URL?

    Hi,
    According to your post, my understanding is that you wanted to send email with hyperlink.
    In order to solve the problem more efficiently I need to clarify some information.
    Did the hyperlink is the current item URL?
    How did you set the hyperlink?
    Per my knowledge, the "Encoded Absolute URL" result is https://sitename/Lists/listname/Id_.000
    To get the current item URL, I recommend to we can use [%Workflow Context:Current Item URL%] with SharePoint Workflow 2010 platform,
    Here is a similar thread for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/7dd2d0cb-97ff-4d9f-9c43-57109bb6bb3d/send-email-of-created-item-to-all-the-staff?forum=sharepointcust
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Get Calendar List Item GUID

    I downloaded code for a reservation event receiver from here: 
    http://blog.sharepointsydney.com.au/post/Setting-up-multiple-calendars-for-meeting-room-bookings-prevent-double-booking.aspx
    However, on the ItemUpdating it throws an "Object Reference Not Set to an Instance of an Object" error.  By commenting out parts of the code and re-deploying I have narrowed the issue down to the line that gets the item's GUID:
    string guid_internal = collItems.List.Fields["GUID"].InternalName;
    When I modify it to something like "UniqueId" I get the "Value does not fall within expected range" error.  Is there a better way to obtain the GUID of the calendar list item - or am I missing something?  Full code below:
    using System;
    using Microsoft.SharePoint;
    namespace Webcoda.WSS.Calendar.Events
    class PreventDoubleBooking: SPItemEventReceiver
    /// <summary>
    /// This event is triggered when the user adds a new item
    /// </summary>
    /// <param name="properties"></param>
    public override void ItemAdding(SPItemEventProperties properties)
    //Our query string variable
    string strQuery = null;
    try
    //Get the Sharepoint site instance
    using (SPWeb oWebsite = new SPSite(properties.SiteId).OpenWeb(properties.RelativeWebUrl))
    //Get the collection of properties for the Booking item
    SPListItemCollection collItems = oWebsite.Lists[properties.ListTitle].Items;
    //Get the Calendar List that we will be querying against
    SPList calendar = oWebsite.Lists[properties.ListId];
    //Get the internal name of the fields we are querying.
    //These are required for the CAML query
    string start_internal = collItems.List.Fields["Start Time"].InternalName;
    string end_internal = collItems.List.Fields["End Time"].InternalName;
    string MeetingRoom_Internal = collItems.List.Fields["Meeting Room"].InternalName;
    //Get the query string parameters
    string start_str = properties.AfterProperties[start_internal].ToString();
    string end_str = properties.AfterProperties[end_internal].ToString();
    string MeetingRoom_str = properties.AfterProperties[MeetingRoom_Internal].ToString();
    //Construct a CAML query
    SPQuery query = new SPQuery();
    //Create the CAML query string that checks to see if the booking we are attemping
    //to add will overlap any existing bookings
    strQuery = string.Format(@"
    <Where>
    <And>
    <Or>
    <Or>
    <And>
    <Leq>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Leq>
    <Gt>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Gt>
    </And>
    <And>
    <Lt>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Lt>
    <Geq>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Geq>
    </And>
    </Or>
    <Or>
    <And>
    <Leq>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Leq>
    <Geq>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Geq>
    </And>
    <And>
    <Geq>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Geq>
    <Leq>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Leq>
    </And>
    </Or>
    </Or>
    <Eq>
    <FieldRef Name='Meeting_x0020_Room' />
    <Value Type='Choice'>{2}</Value>
    </Eq>
    </And>
    </Where>
    <OrderBy>
    <FieldRef Name='EventDate' />
    </OrderBy>
    ", start_str, end_str, MeetingRoom_str);
    //Set the query string for the SPQuery object
    query.Query = strQuery;
    //Execute the query against the Calendar List
    SPListItemCollection existing_events = calendar.GetItems(query);
    //Check to see if the query returned any overlapping bookings
    if (existing_events.Count > 0)
    //Cancels the ItemAdd action and redirects to error page
    properties.Cancel = true;
    //Edit the error message that will display on the error page
    properties.ErrorMessage += "This booking cannot be made because of one or more bookings in conflict. <BR><BR>";
    //Here you can loop through the results of the query
    //foreach (SPListItem oListItem in existing_events)
    properties.ErrorMessage += "Please go back and schedule a new time.";
    catch (Exception ex)
    //Cancels the ItemAdd action and redirects to error page
    properties.Cancel = true;
    //Edit the error message that will display on the error page
    properties.ErrorMessage = "Error looking for booking conflicts: " + ex.Message;
    /// <summary>
    /// This event is triggered when the user edits an calendar item
    /// </summary>
    /// <param name="properties"></param>
    public override void ItemUpdating(SPItemEventProperties properties) {
    string strQuery = null;
    try {
    //Get the Sharepoint site instance
    using (SPWeb oWebsite = new SPSite(properties.SiteId).OpenWeb(properties.RelativeWebUrl)) {
    //Get the collection of properties for the Booking item
    SPListItemCollection collItems = oWebsite.Lists[properties.ListTitle].Items;
    //Get the Calendar List that we will be querying against
    SPList calendar = oWebsite.Lists[properties.ListId];
    //Get the internal name of the fields we are querying.
    //These are required for the CAML query
    string start_internal = collItems.List.Fields["Start Time"].InternalName;
    string end_internal = collItems.List.Fields["End Time"].InternalName;
    string MeetingRoom_Internal = collItems.List.Fields["Meeting Room"].InternalName;
    string guid_internal = collItems.List.Fields["GUID"].InternalName;
    //Get the query string parameters
    string start_str = properties.AfterProperties[start_internal].ToString();
    string end_str = properties.AfterProperties[end_internal].ToString();
    string MeetingRoom_str = properties.AfterProperties[MeetingRoom_Internal].ToString();
    string guid_str = properties.AfterProperties[guid_internal].ToString();
    //Construct a CAML query
    SPQuery query = new SPQuery();
    //Create the CAML query string that checks to see if the booking we are attemping
    //to change will overlap any existing bookings, OTHER THAN ITSELF
    strQuery = string.Format(@"
    <Where>
    <And>
    <And>
    <Or>
    <Or>
    <And>
    <Leq>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Leq>
    <Gt>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Gt>
    </And>
    <And>
    <Lt>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Lt>
    <Geq>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Geq>
    </And>
    </Or>
    <Or>
    <And>
    <Leq>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Leq>
    <Geq>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Geq>
    </And>
    <And>
    <Geq>
    <FieldRef Name='EventDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{0}</Value>
    </Geq>
    <Leq>
    <FieldRef Name='EndDate' />
    <Value Type='DateTime' IncludeTimeValue='TRUE'>{1}</Value>
    </Leq>
    </And>
    </Or>
    </Or>
    <Eq>
    <FieldRef Name='Meeting_x0020_Room' />
    <Value Type='Choice'>{2}</Value>
    </Eq>
    </And>
    <Neq>
    <FieldRef Name='GUID' />
    <Value Type='GUID'>{3}</Value>
    </Neq>
    </And>
    </Where>
    <OrderBy>
    <FieldRef Name='EventDate' />
    </OrderBy>
    ", start_str, end_str, MeetingRoom_str, guid_str);
    //Set the query string for the SPQuery object
    query.Query = strQuery;
    //Execute the query against the Calendar List
    SPListItemCollection existing_events = calendar.GetItems(query);
    //Check to see if the query returned any overlapping bookings
    if (existing_events.Count > 0)
    //Cancels the ItemAdd action and redirects to error page
    properties.Cancel = true;
    //Edit the error message that will display on the error page
    properties.ErrorMessage += "This booking cannot be made because of one or more bookings in conflict. <BR><BR>";
    //Here you can loop through the results of the query
    //foreach (SPListItem oListItem in existing_events)
    properties.ErrorMessage += "Please go back and schedule a new time.";
    catch (Exception ex)
    //Cancels the ItemAdd action and redirects to error page
    properties.Cancel = true;
    //Edit the error message that will display on the error page
    properties.ErrorMessage = "Error looking for booking conflicts: " + ex.Message;

    Hi there,
    Please verify the internal name of column which you have hardcoded in the code i.e 
    string start_internal = collItems.List.Fields["Start Time"].InternalName;
    string end_internal = collItems.List.Fields["End Time"].InternalName;
    I have used the Room reservation template from MSDN which has provided by MS under the code name of "Fantastic 40" along with below James Finn article.
    http://www.codeproject.com/Articles/30983/SharePoint-Reservations
    It worked for me for reservation. 

  • Using a datepicker with format mask MM/YYYY gives error on submit

    I'm trying to use a datepicker with the format MM/YYYY.
    The item is linked to a database column of type DATE.
    The items displays correctly (month and year), but when submitting the page, I get an "ORA-01843: not a valid month" error from the built-in DML process.
    Shouldn't Apex apply the same date format mask to the item value when trying to save it to the database?
    - Morten
    http://ora-00001.blogspot.com

    Hi Mike,
    I can/need to do that for my own PL/SQL processes, but the problem is with the Built-In DML Process....
    - Morten
    http://ora-00001.blogspot.com

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

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

  • Date format mask in Enter-Query mode

    Hi,
    I'm developing a Form which is able to query the masterblock from a detail-item.
    The queryable detail-item is a date field and has a datatype: DATETIME. When a new record is entered the values in the date field are stored in the database like "18-10-2002 15:04:02"
    When the form is in enter_query mode the user must be able to enter 18-10-2002 (DD-MM-YYYY format mask, so without time mask). When execute the query with this date format the query is not able to find data.
    I used a Key-Execute-Query on the detailblock like this:
    SELECT 1.COLUMN
    , 2.COLUMN
    INTO :1.COLUMN
    , :2.COLUMN
    FROM TABLE.1
    , TABLE.2
    WHERE 1.COLUMN = 2.COLUMN
    AND TO_CHAR(1.COLUMN,'dd-mm-yyyy') = to_date(:avg.datum,'dd-mm-yyyy');
    Can anyone please help me?
    Regards,
    Ronny.

    Hi Ronny,
    I'm not sure to have got exactly your issue (especially why you have to use that select in master-detail query), but I suggest you to substitute
    ...AND TO_CHAR(1.COLUMN,'dd-mm-yyyy') = to_date(:avg.datum,'dd-mm-yyyy');
    with
    ...TRUNC(1.COLUMN) = TO_DATE(:avg.datum,'dd-mm-yyyy');
    To be fair, I would use it in the where clause, even if you set it dinamically.
    Let us know,
    Marco

  • Applying date and number format mask

    I have specified a date format for an attribute and a number format for another attribute of an entity object using Entity Object Editor - Control hints for the attributes.
    The date format is:
    Format type: Simple Date
    Format: dd.MM.yyyy
    The number format is:
    Format type: Currency
    Format: 0,000.00 km
    When using &lt;c:out value="${bindings.MyDate}"&gt;&lt;/c:out&gt; the format mask for the date is applied and it looks good, but when using
    &lt;c:forEach var="Row" items="..."&gt;
    &lt;c:out value="${Row.MyDate}"&gt;&lt;/c:out&gt;
    &lt;/c:forEach&gt;
    the format mask is not applied.
    When it comes to the number format it is not applied no matter what I use.
    I have tried setting the format for the view object attributes as well but the result is the same. How do I make this work?

    Can it have something to do with &lt;html:form&gt; ? Since it works using &lt;c:out value="${bindings.MyDate}"&gt;&lt;/c:out&gt; inside a html:form.

Maybe you are looking for