Skip to main content

Hi, 

I've just started working with K2. The ASP.NET example in the tutorial demonstrated some possibilities and I'm looking forward to developing applications with K2.

A couple of questions arose while working with the demo application:

1. Is there a way I can stop a submission based on the results of a data validation routine in the code behind? I know I can use:

onSubmit="return ValidateForm()"

But, I'd much rather perform data validation on the server.

2. Is there a way that activities for a particular user can be queued and made available for that user? This may be explained later in the tutorial.

Thanks.

Hi,

Q1: Please have a look @ the following Knowledge base article: http://kb.k2workflow.com/Articles/KB000008.aspx
Q2: Please have a loot @ Module 05 : Intermediate Workflow design using K2.net 2003 downloadable from http://portal.k2workflow.com/downloads/training.aspx
Hi Rénier,

Thanks for the direction. I have used the tutorial as a template for my first K2 application. Literally, within three days I've been able to write a master workflow comprising several independent flows that meet in resolution. That's a fraction of the time it would have taken me had I written the workflow and email notification code from scratch. I'm using Smart Forms and a negligible amount of code behind.

By the way, I discovered that using ASP.NET Validator controls will stop a submit if a condition is not met. That is significant.

Now I have another question. What can I do with the SQL Data event in K2.net Studio? Can I access SQL Server databases on other servers? I'm having some trouble getting through the wizard to establish a connection.

Thanks again!
Hi,

The SQL Data Event can connect to remote servers, blow a description of some of the message you can expect:

[SQL Server does not exist or access denied]
I got this message by specifying an invalid server name

[Login Failed for user DomainUserName ]
The user account does not have the necessary permissions on the SQL Server

[Test Completed Successfully]
Valid server name and user account

Note: I used a remote server to test; you can use server name or IP address.
Renier,

I was going to harvest the K2 data to store in SQL Server immediately after a K2 Smart Form submission in an end request kind of page, but now I find I can embed all that code within K2 itself. Pretty slick!

Thanks.

i don't have access to http://kb.k2workflow.com.  Can anyone help share those tutorial videos and resources on this forum?


Can you tell me how to work on K2 workflows using Visual studio? I am completely new to K2. I would really appreciate your help.


a good starting point would be to look at http://help.k2.com, the K2 University sections contains a ton of information that will get you started quickly


Reply