Gán ngày tháng năm cho field
Tue Apr 24, 2018 4:00 pm
- Code:
function ngaybatdau() {
var b = window.parent.Xrm.Page.getAttribute("ngaybatdau").getValue();
b.setDate(1);
window.parent.Xrm.Page.getAttribute("ngaybatdau").setValue(b);
}
function ngayketthuc() {
var y = …
Lấy ngày tháng hiện tại
Tue Apr 24, 2018 4:12 pm
- Code:
function myFunction() {
var getYearCurrent = new Date().getFullYear();
var getMonthCurrent = new Date().getMonth();
var getDateCurrent = new Date().getDate();
}
Bói thầy phán
Mon Apr 23, 2018 4:46 pm
- Code:
<html>
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script …
Lấy số ngẫu nhiên
Mon Apr 23, 2018 3:38 pm
- Code:
<!DOCTYPE html>
<html>
<body>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = Math.floor((Math.random() * 10) + 1);
if (x == 1)
{
…
RESTfull API coinmarketcap
Mon Apr 23, 2018 2:45 pm
- Code:
<html>
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" …
Lấy dữ liệu từ Lookup Field
Mon Apr 23, 2018 1:48 pm
- Code:
function myFunction() {
var req = new XMLHttpRequest();
var clientUrl = window.parent.Xrm.Page.context.getClientUrl();
var str = window.parent.Xrm.Page.getAttribute("category").getValue()[0].id;
var len = str.length;
var res = str.slice(1, len - 1);
var url = clientUrl + …
CRUD API từ JS sử dụng Web Resource
Fri Apr 20, 2018 3:06 pm
- Code:
<html>
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script …
Nhập ngày sinh xuất năm sinh trong Form
Fri Apr 20, 2018 2:59 pm
- Code:
//Khi Field ngaysinh onChange()
function myFunction() {
//Lấy dữ liệu thời gian hiện tại
var getYearCurrent = new Date().getFullYear();
var getMonthCurrent = new Date().getMonth();
var getDateCurrent = new Date().getDate();
//Lấy dữ liệu thời gian ngày sinh
var getYearBirth = …
Social bookmarking
Latest topics
Gán ngày tháng năm cho fieldTue Apr 24, 2018 4:51 pmLấy ngày tháng hiện tạiTue Apr 24, 2018 4:12 pmBói thầy phánMon Apr 23, 2018 4:46 pmLấy số ngẫu nhiênMon Apr 23, 2018 3:38 pmRESTfull API coinmarketcapMon Apr 23, 2018 2:45 pmLấy dữ liệu từ Lookup FieldMon Apr 23, 2018 1:48 pmCRUD API từ JS sử dụng Web ResourceFri Apr 20, 2018 3:06 pmNhập ngày sinh xuất năm sinh trong FormFri Apr 20, 2018 2:59 pm
Top posters
|
|