ASPX templates
Version 5.x > ASPX templates > Workflow on custom document type editing page View modes: 
User avatar
Member
Member
hotbeehoney-yahoo - 4/25/2011 10:09:40 PM
   
Workflow on custom document type editing page
I have written a custom document type editing page. Everything seem right until i deploy workflow to this document.
When i click to "Publish" link then always appear message box "This action is not allowed in current context"

Anyone help me???

User avatar
Kentico Support
Kentico Support
kentico_radekm - 4/26/2011 1:00:59 AM
   
RE:Workflow on custom document type editing page
Hello.

Are you using 5.5R2, please? Could you please make sure that page is whole loaded before you click Publish?

Are there any related records in your Event log (Site Manager -> Administration)?

Moreover, have you tried to use different browser? Sometimes, this issue happens if you change the system time on your computer. Firefox saves the old time in some file, which can't be reset or deleted. Do you have the same problem in other browser(s) as well? If so, which browser are you using, please? Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
hotbeehoney-yahoo - 4/26/2011 2:44:35 AM
   
RE:Workflow on custom document type editing page
Thanks for help!

I resolved myself :)

In Page_Load method, add following code
"ltlScript.Text += ScriptHelper.GetScript("function Approve(nodeId) { " + ClientScript.GetPostBackEventReference(btnApprove, null) + "; }");"

then create

protected void btnApprove_Click(object sender, EventArgs e)
{
// handle approve event here ....
}

and it worked as miracle :)