문제

I am new to CRM 2011 Javascript,Can anyone please suggest me in writing the below lines in CRM 2011 Javascript to support multi browsers please.

In IE it is working fine but not in other browsers

crmForm.new_schemaname.DataValue = crmForm.all.schemaname.DataValue;

I tried to write like this

Xrm.Page.getAttribute("new_schemaname").getValue() = Xrm.Page.getAttribute("schemaname").getValue();

Throwing error saying Can't assign to a function result

도움이 되었습니까?

해결책

You need to use the setValue function

Xrm.Page.getAttribute("new_weightedpercentage").setValue(Xrm.Page.getAttribute("CFPoppStage").getValue());`

You'll probably also want to check for null values before blindly assigning and reading values...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top