开发者

Sharepoint 2007 : Saving Form data with page redirection using custom parameters

开发者 https://www.devze.com 2022-12-24 09:14 出处:网络
After saving the form data I would like to REDIRECT to different pages based on the @Status valueusing the input type button.

After saving the form data I would like to REDIRECT to different pages based on the @Status value using the input type button.

<input  type="button" value="Save" name="btnSave" id="btnSave" onclick="{ddwrt:GenFireServerEvent('__commit;__redirect={**Confirm.aspx?ID=1**}')};" />

if @Status == "Draft"

    url = "draft.aspx ? ID = " @ID

else if @Status == "Save"

     url = "save.aspx ? ID = "开发者_运维知识库 @ID 

else 

    url = "confirm.aspx ? ID = " @ID

Here @ID and @Status are share point list column names

Now I have hard-coded the url Confirm.aspx?ID=4. But I want to check the status value using XSLT condition and set different URL name with @ID value.. How do I achieve this..

Any help would be appreciated..


Are you looking for url = "{@Status}.aspx ? ID = {@ID}" ?

If it is not please elabrate your question.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号