Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

In SPD i want a button to start a workflow. So within the dataformwebpart I added an asp.net button.

I need to alter the ID from ID=9(static) to ID = url value. here is code i tried.

 http://sp20104/HitsMissesApp/_layouts/IniWrkflIP.aspx?List={deff1c34-4aec-43ad-b1e8-00444d3ab674}&ID={string(@ID)}&TemplateID={0db61b7a-1517-421b-86f6-ac2ee13c95cd}&Source=http%3A%2F%2Fsp20104%2FHitsMissesApp%2FLists%2FHitsandMisses%2FAllItems%2Easpx 

When I execute I get an error, unfortunately I cannot see detail. I noticed after clicking the button the new URL is:

 http://sp20104/HitsMissesApp/_layouts/IniWrkflIP.aspx?List={deff1c34-4aec-43ad-b1e8-00444d3ab674}&ID={string(@ID)}&TemplateID={0db61b7a-1517-421b-86f6-ac2ee13c95cd}&Source=http%3A%2F%2Fsp20104%2FHitsMissesApp%2FLists%2FHitsandMisses%2FAllItems%2Easpx 

It doesnt render the '{string(@ID)}' bit. When I hover above button (before click) i can see .. ID=9 ..It appears that way, I think.

Any ideas how to resolve ? Thanks

UPDATE : I've tried using just {@ID} but same problem persists. Think it needs escaping somehow. Any ideas on how to do this?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.