Gán ngày tháng năm cho field
Tue Apr 24, 2018 4:00 pmAdmin
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 pmAdmin
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 pmAdmin
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 pmAdmin
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 pmAdmin
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 pmAdmin
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 pmAdmin
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 pmAdmin
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
Social bookmarking reddit      

Bookmark and share the address of Vài cái hay ho on your social bookmarking website
Latest topics
Gán ngày tháng năm cho fieldTue Apr 24, 2018 4:51 pmAdminLấy ngày tháng hiện tạiTue Apr 24, 2018 4:12 pmAdminBói thầy phánMon Apr 23, 2018 4:46 pmAdminLấy số ngẫu nhiênMon Apr 23, 2018 3:38 pmAdminRESTfull API coinmarketcapMon Apr 23, 2018 2:45 pmAdminLấy dữ liệu từ Lookup FieldMon Apr 23, 2018 1:48 pmAdminCRUD API từ JS sử dụng Web ResourceFri Apr 20, 2018 3:06 pmAdminNhập ngày sinh xuất năm sinh trong FormFri Apr 20, 2018 2:59 pmAdmin
Top posters
47 Số bài - 100%
May 2024
MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
2728293031  

Calendar