는 폼 또는 사용자 지정 웹 리소스에 대한 작업을하고 있습니까? 당신이 부모 폼을 받고 있기 때문에 혼란지고있어
는
var currentDateTime = new Date();
Xrm.Page.getAttribute("requestdeliveryby").setValue(currentDateTime);
이 충분해야한다. 양식을 수정할 때 양식을 올바르게 등록해야합니다.
속성 -> 이벤트 -> OnLoad? Xrm 네임 스페이스를 잘못된 형식에서 얻으려는 것처럼 보이는 예제를 살펴보십시오. 때 자바 스크립트
var dt= CRMForm.getAttribute("date");
if(dt.getValue() != null)
{
dt.setValue(dt.getValue().setFullYear(currentDateTime.getFullYear()));
dt.setValue(dt.getValue().setDate(currentDateTime.getDate()));
dt.setValue(dt.getValue().setMonth(currentDateTime.getMonth()));
}
실행되고 있음 : – Daryl
코드 논리가 코드를 다시 실행하도록 변경하는 원인이되는 무한 루프가있을 가능성이 큽니다. – Zach