on 02-28-2007 1:29 PM
I have a roadmap defined with 8 steps. But depending on a result of a bapi the first step should be shown or not. I itb possible to adjust the roadmap numbering/name based on the output.
Consider you executed a BAPI and you have a result.
Bind the RoadMap UIElement "selectedStep" property to value attribute .
if( <<Some condition>>)
wdContext.currentContextElement().setSelectedStep("<<Step2>>");
else
wdContext.currentContextElement().setSelectedStep("<<Step1>>");
Step1 andStep2 should be names of the RoadMapSteps.
Regards,Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dresen
Bind "visible" property of each step( or just the first step in your case ) to a context attribute of type boolean. Also bind the "description" property of each steps to different context attributes of type string.
Now depending on your condition use the following code to change the steps "description" properties, and make the first step invisible. Similarly you can bind the names to context attributes and provide the values at runtime.
if(condition) { // condition based on your bapi execution
// set visibility of steps
wdContext.current<SomeNode>Element.setStep0Visible(false);
wdContext.current<SomeNode>Element.setStep1Visible(true);
// similarly for all steps
wdContext.current<SomeNode>Element.setStepnVisible(true);
// set step numbers
wdContext.current<SomeNode>Element.setStep0Description("Not_Required"); // this step is not visible anyways
wdContext.current<SomeNode>Element.setStep1Description("Any_Desired_Step_No");
// similarly for all steps
wdContext.current<SomeNode>Element.setStepnDescription("Any_Desired_Step_No");
}
Regards
kk
Hi,
You can bind the "selectedStep" property of the RoadMap UIElement to context attribute and you can change the value dynamically.
Ex :wdContext.currentContextElement().setCurrentStep("<<StepName>>");
Regards,Anilkumar
Message was edited by:
Anilkumar Vippagunta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.