Tuesday, March 20, 2007

Task for Next Sprint

There was a wrap-up/kick-off meeting for the next sprint. Some discussions I didn't really understand about where to store data (Sharepoint vs. NDS) regarding relations. I was also tasked to assist Feyz with the Structure Viewet integration. I am not sure how much help I will be, but it will give me a chance to work on the main code branch. Feyz sent me the third party package. I guess I will install it and take a look before I go ask him about stuff.

Basic design thoughts for first task

Ok, my first task was to create a custom type where you could enter a CAML query that would go to another sharepoint list and display the results of the query as an HTML table as part of the list item.

So I built a custom type and alterred it so that a CAML query (just a string really) could be enterred along with the column/type definition. I thought this was the appropriate place for the query to be attached. Later you should also be able to specify the list you want queried, but I think I will hardcode that initially.

So assuming I can access a query and a list you can obtain an SPView set up the way you want it. You can also grab HTML from a view. So theoretically you can display this view as html as the value for a column/type. Now I just need to figure out how? You can use the GetValueField function that is part of the Type (note that Type and TypeValue are different ideas - kind of like a Prototype and Instantiations of it). But this is set to not be read as HTML and tags get converted so they appear as text. It is probably better to try and alter the RenderPattern or create a custom control. I would like to create a custom control (would be simple, just pop in a placeholder type control and fill it in with the html generated by the view), but I don't see how this is done. I see how to create a control for the editting (a control descending from BaseFieldControl returned by Type)and for type creation (a control specified in the XML(CAML) file that defines the type instead of using PropertySchema). But I don't see how to replace the actual display... This is probably not set up to have a control used, so I will ahve to figure out what I can do with CAML rendering.

I am taking a different approach now. I am going to focus on getting HTML from a CAMLQuery to appear in the column. First it will be on a static list.

First Post / Statement of Purpose

I recently started at PTC (8 days ago) I had previously decided to keep a blog based on work stuff. The purpose is to keep track of information, progress, and to help me 'discuss' design things in my head. My previous system of writting lots of little notes seemed to need improvement. Anyway, it is too bad that I didn't start this earlier because Darla and Tom have already given me a fair amount of information that has already made it onto scraps of paper and on to my unbacked up, highly volatile memory.