DougMcCourt

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: addItem on NewForm JS getting SP error x0800200005 #36550
    DougMcCourt
    Participant

    Hi Alexander – thank you so much – fixed it 100%
    Best – Doug McCourt

    in reply to: GetFieldValue of a boolean (yes/no) #32924
    DougMcCourt
    Participant

    Hi Alexander –

    That was it! changed my test to if (getFieldValue(xxxxx) === “Yes”) and works as expected

    Thank-you

    in reply to: spjs utility / add item #32918
    DougMcCourt
    Participant

    Hi Alexander – Thanksso much!

    Heres what i ended up with 🙂

    function NewChild(ChildType){
    var data = {}, newItem, url;
    var src=location.href.substring(0,location.href.indexOf(“&”));

    data.Title = ChildType + “: ” + getFieldValue(“ReqID”);
    data.Data_x0020_Req_x0020_ID = getFieldValue(“ID”);
    data.ContentTypeId = “0x0100E77C5DF82DE10E428F626F9C954B8E760096E526CBD027D145AA85C81E339A0ABA”;

    if(getFieldValue(“Req_x0020_Reg_x0020_Requirement”) === true ){
    data.PII = true;
    }

    if(getFieldValue(“Req_x0020_Reg_x0020_Requirement”) === true ){
    data.Req_x0020_Requirement = true;
    }

    if(getFieldValue(“Req_x0020__x002d__x0020_External”) === true){
    data.Ext_x0020_Reporting = true;
    }

    if(ChildType == “DG”){
    data.ContentTypeId = “0x01007B6650D869D02E41B966BB31EBC45DB700C33EEB7BB1687946B0DC3B37AE3B0CCD”;
    }

    newItem = spjs.utility.addItem({“listName”:”Request-Supplemental”,”data”:data});
    if(newItem.success){
    url = “http://sp-……my sharepoint site…./Lists/RequetSupplemental/EditForm.aspx?ID=”+newItem.id+”&”+src;
    if(GetUrlKeyValue(“IsDlg”)===”1″){
    url += “&IsDlg=1”;
    }
    location.href = url;
    }else{
    alert(newItem.errorText);
    }
    location.href=url;
    }

    DougMcCourt
    Participant

    Thank-you!

    in reply to: Overriding DFFS Close button behavior on DispForm #8859
    DougMcCourt
    Participant

    That did it perfectly! Thanks so much.

    in reply to: DFFS – refering to a 'parent' form #8741
    DougMcCourt
    Participant

    Again – worked perfectly!!

    Thank you

    in reply to: DFFS – refering to a 'parent' form #8693
    DougMcCourt
    Participant

    Hi Alexander – It works – but I neglected a piece of information, the derivation of the LookupExtraFieldInternalName is based on a multiselect – so there can be multiple different values in the result returned into the lookupValue array. I need to choose the smallest value – so I tried putting in lookupValue.Sort() thinking it would percolate the smallest value up to the top of the list. Instead – I got the dreaded “This took Forever!” – and it didn’t work. (Note – it DOES work properly if there is only one item in the LookupExtraFieldInternalName.) note2: The possible values are: 4 – Exec Oversight; 3 – Management; 2 – Program; or 1 – Workstream / Team.

    in reply to: DFFS Set Field Value / Formatting #8691
    DougMcCourt
    Participant

    Absolutely perfect!

Viewing 8 posts - 1 through 8 (of 8 total)