Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
vjekob committed Dec 11, 2018
1 parent ad53801 commit 0bf21b0
Show file tree
Hide file tree
Showing 10 changed files with 95 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "al",
"request": "launch",
"name": "Your own server",
"server": "http://desktop-tfdoknj",
"serverInstance": "DynamicsNAV110",
"authentication": "Windows",
"startupObjectId": 21
}
]
}
12 changes: 12 additions & 0 deletions Demo/ControlAddIn Test.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
controladdin "Demo Control"
{
Scripts =
'https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js',
'Demo/Scripts/Content.js';

Images = 'Demo/Html/Control.html';

StyleSheets = 'Demo/Stylesheets/Demo.css';

HorizontalStretch = true;
}
6 changes: 6 additions & 0 deletions Demo/Html/Control.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<button onclick="helloWorldClick()">Hello, World!</button>
<script>
function helloWorldClick() {
alert("I was clicked!");
}
</script>
10 changes: 10 additions & 0 deletions Demo/Page 50100 Customer Card Extension.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pageextension 50100 "Customer Card Extension" extends "Customer Card"
{
layout
{
addfirst(FactBoxes)
{
part(Demo; "Demo Card") { }
}
}
}
12 changes: 12 additions & 0 deletions Demo/Page 50101 Demo Card.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
page 50101 "Demo Card"
{
PageType = CardPart;

layout
{
area(content)
{
usercontrol(Demo; "Demo Control") { }
}
}
}
6 changes: 6 additions & 0 deletions Demo/Scripts/Content.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(function ($) {
$(document).ready(function () {
var url = Microsoft.Dynamics.NAV.GetImageResource("Demo/Html/Control.html");
$("#controlAddIn").load(url);
});
})(jQuery);
12 changes: 12 additions & 0 deletions Demo/Stylesheets/Demo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
* {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
background-color: #269;
color: white;
}

div#controlAddIn {
padding: 1em;
}
Binary file added Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Vjeko.com_Control Add-ins Workshop_1.0.0.0.app
Binary file not shown.
23 changes: 23 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "865825ff-bb94-477f-b6a8-4cbd58e3a770",
"name": "Control Add-in Image Demo",
"publisher": "Vjeko.com",
"brief": "",
"description": "This extension showcases how to (ab)use the controladdin Images property to show HTML inside control add-ins",
"version": "1.0.0.0",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "Logo.png",
"capabilities": [],
"dependencies": [],
"screenshots": [],
"platform": "11.0.0.0",
"application": "11.0.0.0",
"idRange": {
"from": 50100,
"to": 50149
},
"runtime": "2.0"
}

0 comments on commit 0bf21b0

Please sign in to comment.