how to call decision tree with parameter from data transform

Hi team,

I am trying call decision tree from data transform, here i am using “pxEvaluateDecisionTree(string primarypageName, string RuleName)” , but i need pass parameter into decision tree,

if anyone know how to pass parameter , help me solve this problem,

Than you.

Eranda.

Hi @Eranda10274

You can use by using below function,

@DecisionTree.ObtainValue(tools,myStepPage,"DecisionTreeRuleName",true)

In this myStepPage, you just pass parameter value. if page having the value, you can use as it as myStepPage.

I hope this will help you.

Thanks,

Ashok

Hi @Bhumireddy

You mean, param.value1, param.value2 this parameter page set into the myStepPage page , right ?

Hi @Eranda10274

I din’t pass anything to myStepPage, if you getting the any results from other page, just define the result page in myStepPage →

E.g. tempPage.pxResult(1) . so that it will pass value automatically to DecisionTree.

@DecisionTree.ObtainValue(tools,tempPage.pxResult(1),"DecisionTreeRuleName",true)

I hope this will help you.

Thanks,

Ashok

Hi @Bhumireddy

That was worked,

Here I need to pass param like DigitNumber into the decision tree, from data transform I have added parameter into parameter page. and pass primary page, the decision tree will pick parameter automatically.

Thank you,

Eranda.