locked
Scope of onLoad functions RRS feed

  • Question

  • Can you create a function in the onLoad and call it in the onSave?  Or does it depend what day you try to do it?

     

    PS- is it possible to put functions in the ISV do give them broader scope?  I have a couple of retrieves that would be nice to maintain in one place but used by multiple entities -- or in this case just once for the entity.

     

    Thursday, January 29, 2009 10:29 PM

Answers

  • yes, you can create a function in the onload as a variable and call it from onSave

    eg.

     

    someFunction = function()

    {

    alert('1');

    }

     

    and  call the funciton from onsave

    someFunction();

     

    check if this helps

    Friday, January 30, 2009 4:38 AM

All replies