Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

How to pass variables between different models

Updated: 23 May 2010 | 2 comments
PeeGee's picture
+1 1 Vote
Login to vote
This issue has been solved. See solution.

I have two models in my Web Forms Project: Primar and sub model to primary.
I call the sub model from within the primary model via the "Linked Model" component.

Wihin the sub model there are no variables available which are declared in the Primary model. Is there a way to pass those variables to the sub models?

I figured out that "Global" data will work, but I'd like to avoid needing to change all of my existing variables to global data, as I would need to modify my entire workflow.

discussion Filed Under:

Comments

Rob Moore's picture
29
Jul
2009
3 Votes +3
Login to vote

Input Data is the key!

Look in  your sub model under the model name. You'll see Input Data. Set the variables you'd like to be passed into the model.
After you've set the names and types (you don't need any default values), go back to your primary model and right click on the Linked Model component and select Edit Component. You see values in the Mapping section. Map the values from the Primary to the Sub.

If you want to return some values from the Sub model, then define them as Output Data. After you've done this,  In your Sub Model right click on the END component. You'll be able to map the values from your sub model so they will be visible on the Primary model.

Rob

PeeGee's picture
29
Jul
2009
0 Votes 0
Login to vote

Thanks Rob! This did the

Thanks Rob!
This did the trick!