<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Call_Agilox</AppTitle>
	<AppShortName>Call_Agilox</AppShortName>
	<Author>Nicola Del Colle</Author>
	<Version>1.0</Version>
	<DesignDeviceName>Desktop</DesignDeviceName>
	<Variables>[mydata(&apos;@DESTINATION&apos;)],[mydata(&apos;@SOURCE&apos;)],[mydata(&apos;apikey&apos;)],[mydata],[temperature],[weather.main.humidity],[weather.main.pressure],[weather.main.temp],[weather]</Variables>
	<VariablesScanned>True</VariablesScanned>
	<PageWidth>640</PageWidth>
	<PageHeight>480</PageHeight>
	<AutoSizeWidth>True</AutoSizeWidth>
	<AutoSizeHeight>True</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<ResponsiveSize>False</ResponsiveSize>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<AppIcon>D:\OneDrive - TE Connectivity\Digital Factory - Linked Files\Documents\VisualNeoWeb\Libraries\img\default-icon.png</AppIcon>
	<LanguageCode>en</LanguageCode>
	<DisplayMode>standalone</DisplayMode>
	<ServiceWorker>OfflineCopyOfPages</ServiceWorker>
	<ThemeColor>#000000</ThemeColor>
	<PwaScope>/</PwaScope>
	<MobileOSTypes>[AndroidOS,iOS,WindowsPhoneOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>True</Sizeable>
	<MaximizeBtn>True</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>False</ContextMenu>
	<AlwaysOnTop>False</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>False</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<Components>
		<FunctionList name="Subroutines">
			<Components>
				<Function name="parseData2">
					<Code>ConsoleLog &quot;[data]&quot;

SetVar [posts] [data]
SetVar [id] [posts(0).id]
SetVar [title] [posts(0).title.rendered]
SetVar [excerpt] [posts(0).excerpt.rendered]
SetObjectHTML &quot;Container1&quot; &quot;&lt;h3&gt;ID:&lt;/h3&gt;[id]&lt;h3&gt;Title:&lt;/h3&gt;[title]&lt;br&gt;&lt;h3&gt;Excerpt:&lt;/h3&gt;[excerpt]&quot;</Code>
					<Params>[data]|STRING|Data from server</Params>
				</Function>
				<Function name="error">
					<Code>jsAlert &quot;There has been an error&quot;</Code>
					<Params>[data]|STRING|Error message</Params>
				</Function>
				<Function name="parseData">
					<Code>createEmptyObject [weather]
SetVar [weather] [data]
Math &quot;[weather.main.temp]-273&quot; 2 [temperature]
SetObjectHTML &quot;Container1&quot; &quot;&lt;b&gt;Madrid Weather Now:&lt;/b&gt;&lt;br&gt;Temperature: [temperature]ºC&lt;br&gt;Pressure: [weather.main.pressure] mm.&lt;br&gt;Humidity: [weather.main.humidity]&quot;</Code>
					<Params>[data]|STRING|Data loaded</Params>
				</Function>
			</Components>
		</FunctionList>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<Components>
						<PushButton id="PushButton1">
							<left>27px</left>
							<top>74px</top>
							<width>174px</width>
							<height>58px</height>
							<caption>Call Mission</caption>
							<click>jsConfirm &quot;Are you sure?&quot; [result]

If [result] == true

CreateEmptyObject [myvar]
SetVar [myvar] &apos;{&quot;apikey&quot;:&quot;123456789&quot;,&quot;@DESTINATION&quot;:&quot;PROVA&quot;,&quot;&quot;:&quot;&quot;}&apos;
neoAjaxSendEx &quot;https://visualneo.com/wp-json/wp/v2/posts&quot; &quot;GET&quot; &quot;&quot; &quot;[myvar]&quot; &quot;json&quot; &quot;parseData2&quot; &quot;error&quot;

Else

EndIf</click>
						</PushButton>
						<Headline id="Headline2">
							<left>286px</left>
							<top>176px</top>
							<width>155px</width>
							<height>38px</height>
						</Headline>
						<Container id="Container1">
							<left>223px</left>
							<top>77px</top>
							<width>397px</width>
							<height>303px</height>
							<style>background-color:#fff;border-style:solid;border-width:1px;padding-left:20px;padding-top:20px</style>
						</Container>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="NewDialog">
					<Components>
						<DialogContainer id="DialogContainer1">
							<left>0px</left>
							<top>0px</top>
							<width>640px</width>
							<height>480px</height>
							<close_button>False</close_button>
							<kind>custom</kind>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
