Hello,
For test purposes on a page I have a hyperlink set with this binding.. pageName = pagesDisplayGroup.selectedObject.pageTemplate
This hyper link does as expected, when clicked it returns the component listed by "pagesDisplayGroup.selectedObject.pageTemplate". But when I try to set up a similar operation in an action I get stuck.
On the page this test action works...
public String desiredComponent;
public WOComponent doWebTemplate() { String desiredComponent = "WebView01"; WOComponent nextPage = pageWithName( desiredComponent );
return nextPage; }
But the trouble starts when I change the action to this...
public String desiredComponent;
public WOComponent doWebTemplate() { String desiredComponent = pagesDisplayGroup.selectedObject().pageTemplate(); WOComponent nextPage = pageWithName( desiredComponent );
return nextPage; }
What is the correct way to write the line to get the value of "pageTemplate"?
I get a can't resolve symbol error, or with other variations on the line I'll get a Null pointer exception when it runs.
Thank you for any help.
Paul |