HTML_FIELD in SC with readOnly == true

Hi all!

I have this calculation as dataprovider in a HTML_FIELD:

function link_clc()
{
	return "<html><body><a href='javascript:appendText(\"" + company_name + "\")'>" + company_name + "</a></body></html>";
}

This way, the HTML_FIELD element becomes a link which executes appendText() function when a click is performed…

Well, this is working right in WC & SC* if controller.readOnly == false, however, if controller.readOnly == true, it doesn’t work in SC (it does in WC)… It’s the expected behaviour?

  • In SC I have to do two clicks: one for selecting record and second to perform the link action.

the html field should not be editable, I guess this is the reason it doesn’t work in SC

Case Id 309874 added in Servoy Support System.

Thanks Laurian!

gerardo.gomez:
Case Id 309874 added in Servoy Support System.

Thanks Laurian!

This issue will be fixed in 5.2.1( javascript function not called from hyperlink in html area field, tableview, if controller is readonly)