Expand my Community achievements bar.

Rendering a property value on a scaffold form

Avatar

Level 2

Hi

I have a hyperlink on a product scaffold form and I want to modify the href field by appending the value of a new property on the end of it, which will come from the product data. I am doing this via the hyperlink.jsp code.

So, following the example of other scaffold components, I have defined a property on the form as 'name String ./idPath'

The product that uses this scaffold has a property of 'idPath String value' and I want to pull through this value in to the hyperlink.

However, I can only get the jsp to display the value './idPath' rather than render the value contained in the idPath property.

In the jsp code, I am using this statement to get the name value 'name = cmp.getExpressionHelper().getString(cfg.get("name", ""));' , which gives me './idPath'. Is there something that gives me the value of idPath as held on the product data?

Thanks

0 Replies