Thursday, February 21, 2008

Toolbar complete

I've just completed the toolbar for the generic list with some fancy buttons presenting the user with delete buttons for each item in the list or with a form for creating a new item to the list.

The toolbar was a big pain, it took me probably two-three weeks(!!) to figure out how sharepoint developers are creating their menus! Thats pritty insane, but my only source of information has been blogs and SharePoints insane pile of code.. come on M$ produce some documentation to your API please. Probably they havn't heard that an API without documentation is useless. I've could have completed a menu of my own in half that time or less...

Friday, February 8, 2008

Advancement!

Hi! Now I have finaly accomplished something, I was able to create a custom sharepoint menu for my application page using FeatureMenuTemplate containing MenuItemTemplate:s. To display them I used a control named toolbar residing in the 12-hive under controltemplates. Then I used SharePoint:Menu as template-buttons reffering to the menutemplates i created earlier.

Though now i have a problem when trying to inject some javascript into the web part. Its not recognizing it!

Monday, February 4, 2008

hmm more problems

Crap, today i read on a web page regarding the DataFormWebPartthat:
For security reasons, you cannot create Microsoft JScript code in your XSLT code using msxsl:script. All extension code available in your XSLT must either come from standard XSLT code, or from the functions described in this article.


That fucks me up quite a bit, because now i cant insert any javascript.

Hm, nevermind. I'll just insert my javascript in another way using one of these techniques. I only cant used external javascript files, which would be preferred.

Anyway I today realized that I will have further problems: The SPDataSource used for populating the DataFormWebPart cannot be used for Create, Delete and Update...Because it will only be rendered to a string and passed along through web services to another web-server, and there being inserted as a widget. But I can create all the forms in the web-part and then only handle receiving from forms and performing an javascript asynchronous web service-request to the list service when for example a list is being edited.