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 :(
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.
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 :(
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:
If you need to store data on that document, you'd have to go with the Document api, as in:
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
is working on a reply...