Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Inx51 54 posts 107 karma points
    Mar 14, 2011 @ 15:48
    Inx51
    0

    Get or add Data type value from a user control?

    Hi!

    Is there anyway to retrive the value of a data type within my user control?..and also..is there anyway to add data to the data type from my user control?..I need to keep some stats of how many times a button within my user control has been pressed :)

    Thanks in advance, and sorry for my lousy English :(

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 14, 2011 @ 16:15
    Dirk De Grave
    0

    May need to elaborate a bit more on this? What data do you want to track. Any specific data on a document in your content tree? Can always get the data for a document using the Node class, as in:

    Node node = new Node(1234);

    If you need to store data on that document, you'd have to go with the Document api, as in:

    Document doc = new Document(1234);
    doc.getProperty("alias") = "value";

    On the other hand, if you just want to track how many times a button is clicked, I'd use some custom tables to store tracking data.

     

    Hope this helps.

    Regards,

    /Dirk

Please Sign in or register to post replies

Write your reply to:

Draft