locked
Run Code in load of a list RRS feed

  • Question

  • Hi

    I want to run code when the list is loading.
    In this code i want to check childs of this list in another and update some field of it according to their child records.
    How i could run it.
    Thanks for any guides.

    Regards
    Ali 
    Thursday, January 21, 2010 6:22 AM

Answers

  • Hi,
         You can try  following work around.

         (1) Event Receiver (ItemAdding Event) - Before adding any item to list process code for finding child items in another list and update parent list.

         (2) Timer Job (Daily Schedule) - Timer job running daily finding items from child list and update in parent list.

         (3) HttpHandler Module - Create HttpHandler feature for site , so when ever some body access list using url . then process code to update parent list .. 


    Regards,
    Milan C.
         
    • Marked as answer by Chengyi Wu Tuesday, January 26, 2010 1:18 AM
    Thursday, January 21, 2010 7:12 AM

All replies

  • Hi,
         You can try  following work around.

         (1) Event Receiver (ItemAdding Event) - Before adding any item to list process code for finding child items in another list and update parent list.

         (2) Timer Job (Daily Schedule) - Timer job running daily finding items from child list and update in parent list.

         (3) HttpHandler Module - Create HttpHandler feature for site , so when ever some body access list using url . then process code to update parent list .. 


    Regards,
    Milan C.
         
    • Marked as answer by Chengyi Wu Tuesday, January 26, 2010 1:18 AM
    Thursday, January 21, 2010 7:12 AM
  • thanks Milan Chauha

    I choose Timer Job i found how to create a class for timer job,but
    My problem is that i couldn't understand how to deploy it.

    thanks for any guides

    regards
    Ali
    Sunday, January 24, 2010 4:52 PM