Quick question:

Quick question:

I can do addCustomView from script.

But how do I set an eventHandler to create the initial content as I would in The create event?

]]>

5 Commentsto Quick question:

  1. Anonymous says:

    < ![CDATA[

    Oops, missed that. .Thanks!

    ]]>

  2. Anonymous says:

    < ![CDATA[

    var ed = Sitem.getProperties().edit(); ed.setEventHandler(“v.onCreate”, EventHandler.RUN_SCRIPT, script-Id);


    ed.commit();



    got this, but no item in the CustomView ??


    Script i use work when set by hand.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    You forgot to read carefully the documentation 😉


    The v.onCreate is not an event handler, it is a string.





    var ed = Sitem.getProperties().edit(); ed.setString(“v.onCreate”, script-Id);


    ed.commit();

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Got it working now!!! Thanks again!

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *