on 02-07-2008 3:16 PM
Hello,
I have a form to input and persist data.
After each entry, i want to redisplay the empty form to start a new entry.
A connection from end point back to a start point does not work.
Any hint?
Thanks,
Kai
Hi Kai,
If I understand correctly you have a service and the input for which is a form. On the submit button you execute this service. Are you changing the screen? I am assuming not. So essentially you want to clear the form after the submit button. Here is how you do it:
1. Go to your Layout editor
2. Right-Click on the Submit button and choose Actions
3. There should be a SUBMIT action by default, add another pre-defined action called CLEAR and apply it to your input form. The execution mode should be Sequence
4. Save your model and deploy it.
Good Luck.
Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kai,
You do not have to have a transition back to the input form itself. Use a Wizard UI element. Have a look at this model:
[Currency Conversion Model|http://img84.imageshack.us/img84/8823/vcloopxg9.png]
Here the input form is pre-populated using the Start element. Then on submit the web service is executed and the results displayed. The results are displayed in a form which has a "Back" button associated with an action. On this action there is a transition to the first "step" of the wizard and not to the input form. I hope this helps.
Cheers-
Atul
Hi Kay
another way to do this is to use the switch operator.
The switch operator enables you to map fields from several output ports into a single input port.
[Here is an example of how the model will look like|http://img444.imageshack.us/img444/1768/restartmodelke0.png]
[and this is how the Switch operator configuration looks like|http://img444.imageshack.us/img444/6967/configureswitchqu9.png]
In order to configure the switch operator you have to click it and select "Configure Operator".
I hope this helps,
Shai
Hi Kai
Although this question is answered, I came by another nice solution to this problem.
In order to restart a component you can use a Navigate connector that points to the model. What you need to do is to search for your model within VC models, drag it onto the board and add it as a "Navigate to" connector.
Regards,
Shai
Hi Kai,
Can you please attach a screenshot of your model?
Regards,
Shai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.