Following: SharePoint2013 form with related items list

rss

Posted by MES5464 - Aug 26 ’13 at 02:02

I am trying to follow the instructions on "SharePoint 2013 form with related items list".

 

On the parent form I have this code:

var wp0 = $('div[id^="MSOZoneCell_WebPartWPQ"]:eq(0)');
wp0.detach().appendTo('#fd_tabcontrol-0-tab-1');
var newItem = wp0.find('.ms-list-addnew a');
var queryString = SP.ScriptHelpers.getDocumentQueryPairs();
newItem.attr('onclick', 'NewItem2(event, "' + newItem.attr('href') + '&expense=' + queryString['ID'] + '"); return false;')

When I view the form source the "new item" href has the following value: NewItem2(event, "http://share.showprg.com/_layouts/15/listform.aspx?PageType=8&ListId=%7B2546B655%2DC544%2D43C4%2D8F07%2D32A7C213B2E6%7D&RootFolder=&expense=10"); return false; On the child (New Form) I have the following code: var queryString = SP.ScriptHelpers.getDocumentQueryPairs(); fd.field('Expenses').control().value(queryString['expense']); However I never get the value in the "Expenses" lookup field. What am I doing wrong here? Thanks, Marion
  • Dmitry
    Dmitry
    Admin
    Member for: 11 years 3 months 23 days
    #1 by Dmitry Aug 28 ’13 at 02:43

    Please, download and install the latest version of Forms Designer (2.7.5). It allows you to add related items directly in Forms Designer. We will publish the detailed documentation soon and I will put the link into this thread.

  • Clint Lechner
    Clint Lechner
    Member
    Member for: 10 years 1 month 4 days
    #2 by Clint Lechner Aug 28 ’13 at 06:25

    Hmmm, so Sharepoint isn't loading SP.Scripthelpers library.  Is that typically loaded?  I have 2.7.5 installed.

    I actually have the same problem.  Verified a few times everything was correct but ultimately the console throws this javascript error --

     

    Uncaught TypeError: Cannot call method 'getDocumentQueryPairs' of undefined

     

    Hmmm, so Sharepoint isn't loading SP.Scripthelpers library.  Is that typically loaded?  I have 2.7.5 installed.

  • Clint Lechner
    Clint Lechner
    Member
    Member for: 10 years 1 month 4 days
    #3 by Clint Lechner Aug 28 ’13 at 07:19

    Whoops, I read your message above wrong.  So it's implemented now?  Can't wait to see the documentation.  Well done!

  • Jeff Childers
    Jeff Childers
    Member
    Member for: 10 years 1 month 2 days
    #4 by Jeff Childers Aug 29 ’13 at 11:24

    [#1]: Is it possible to modify the New Item link in the related items section. If so, could you please include that documentation as well.  I would like pre-fill the child list with the lookup column value that I filter the related item list with.

  • Dmitry
    Dmitry
    Admin
    Member for: 11 years 3 months 23 days
    #5 by Dmitry Aug 30 ’13 at 12:28
  • DanLash
    Member
    Member for: 2 years 7 months 4 days
    #6 by DanLash Feb 28 ’21 at 12:56

    Programming is a complicated thing. You can learn it yourself if you have a great desire. But you can also burn out in the middle of it. You can also enroll in a programming course, but it costs money, which you may not have after lockdown. You can use our service resumeedge.com . TopResumeWritingServices

  • Tom Brown
    Member
    Member for: 2 years 3 months 27 days
    #7 by Tom Brown Jun 7 ’21 at 05:17

    When you decide to order essay online cheap, then you should remember about this site. Everything you need is here. Just write to the managers online, and it will help you.

    https://speedypaper.com/order

  • helpinhomework123
    Member
    Member for: 2 years 2 months 27 days
    #8 by helpinhomework123 Jul 20 ’21 at 10:54

    Help in Homework have selected some of the most brilliant experts to provide you with personalized and free from plagiarism Economics assignment help at a very nominal fee. Our experts will diligently research and expertly complete your Economics assignment, as per the instructions of your professor that you have to share with us, well before the date of submission and help you witness a dramatic increase in your scores and confidence. Your assignment will be accurate and meticulously researched and will lead you to an academic success.

  • paul4422
    Member
    Member for: 2 years 3 months 4 days
    #9 by paul4422 Aug 12 ’21 at 09:06

    let us introduce you to our essay company: BuyAssignmentService.com. We have prodigious and articulate writers, who will make your essay for $12.99 per page only Assignment Services at Buyassignmentservice.com

  • KateJohnsonnn
    Member
    Member for: 2 years 1 month 19 days
    #10 by KateJohnsonnn Aug 13 ’21 at 11:19

    If you are searching for a perfectly written research synopsis for your project then you may visit our website. There you will gain numerous information about this theme. Our trustworthy synopsis writing service can be one of the best options when you require expert writing help with your synopsis. Even though synopsis writing is usually brief, it does not mean that it is not important. When you rely on our company for help, you can be sure that all your requirements will be met and the paper will be delivered to you according to the set deadline.

Displaying 1 to 10 of 22 messages
Previous123