additional property on dropped documants

rss

Posted by rab - Jun 29 ’16 at 06:30

Hello,

I have a small question about the related items, dropped documents function. we have a form with dropped documents inside. So we fill a relationship with the fd.updateDroppedDocuments function.

Can I add an additional property from the parent form to the dropped document? We use this code:

fd.updateDroppedDocuments('.transferdocs', {
Teilnehmernr: GetUrlKeyValue('ID')

});

Thanks a lot.

RAB

 

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 10 years 11 days
    #1 by Dmitry Kozlov Jun 30 ’16 at 06:29

    Hi RAB,

    Sure, here is a sample:

    var replacements = {
        Teilnehmernr: GetUrlKeyValue('ID'),
        Field1: fd.field('Field1').value()
    }
    
    fd.updateDroppedDocuments('.transferdocs', replacements);
    
    // If the Field1 has changed
    fd.field('Field1').change(function () {
        replacements.Field1 = fd.field('Field1').value();
    });
    

     

    Get more info:

    http://formsdesigner.blogspot.com/2014/04/related-documents-with-support-of-quick.html

    http://spform.com/documentation/js/manager

  • rab
    Member
    Member for: 7 years 5 months 6 days
    #2 by rab Jun 30 ’16 at 08:24

    Hello Dimitry,

    thank you for your answer. It works perfekt, if I switch to the edit mode. So I have try to modify your code like this:

    var replacements = {
    Teilnehmernr: GetUrlKeyValue('ID'),
    Field1: fd.field('Field1').control()._el().text()    // also .value()
    }

    fd.updateDroppedDocuments('.transferdocs', replacements);

    But it didn't work. My Field1 is a cross-site lookup column.

    Thank you for your help.

    rab

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 10 years 11 days
    #3 by Dmitry Kozlov Jul 1 ’16 at 02:48

    [#2]: Please, try this:

    var href = fd.field('Field1').control()._el().find('a').attr('href');
    
    var replacements = {
    	Teilnehmernr: GetUrlKeyValue('ID'),
    	Field1: fd.getUrlParam(href, 'ID')
    }
    
    
  • pafenev409
    Member
    Member for: 19 days
    #4 by pafenev409 Sep 13 ’23 at 05:08

    Real estate is a dynamic and multifaceted industry that plays a crucial role in the global economy. It encompasses a wide range of properties, from residential homes to commercial buildings, industrial facilities, and vacant land. The real estate market is highly sensitive to economic fluctuations, interest rates, and consumer sentiment, making it both a challenging and rewarding sector for investors and professionals alike.best realtors in atlanta

  • pafenev409
    Member
    Member for: 19 days
    #5 by pafenev409 Sep 16 ’23 at 03:21

    Real estate is a multifaceted industry that touches nearly every aspect of our lives. It shapes our homes, workplaces, and the cities we inhabit. It offers opportunities for financial growth and wealth accumulation but also poses risks and challenges. Real estate professionals navigate this complex landscape, while policymakers grapple with the broader societal impacts of property development and ownership. As our world continues to evolve, so too will the dynamic and ever-evolving world of real estate.shtepi ne shitje okazion

  • pafenev409
    Member
    Member for: 19 days
    #6 by pafenev409 Sep 17 ’23 at 08:48

    In a city known for its diversity, San Diego newborn photographers cater to a wide range of cultural backgrounds and preferences. They are adept at incorporating various traditions and customs into their photography sessions, making each experience truly personal and meaningful for the families they serve.San Diego Newborn Photographer

Displaying 1 to 6 of 6 messages