Page 1 of 1

Retrieve Webpage Name & Description within the Webpage

Posted: April 5th, 2023, 9:18 pm
by Joe.Wells
Is there a way to retrieve the webpage name and description for use within a webpage? Specifically, I am working a "standard header" widget that will include the user name, timestamp, and web page name.

Thanks,

Joe

Re: Retrieve Webpage Name & Description within the Webpage

Posted: April 6th, 2023, 10:01 am
by SteveCap
Hi Joe,

You can use the GetContext service which will return:

Code: Select all

<GetContext Output="False" Workshop="ContextWorkshop" Service="GetContext">
	<Output>
		<Result SelectOutput="False">
			<Application>
				<Name>EASYCommerce</Name>
				<Description>EASYCommerce</Description>
				<ApplicationId>100139</ApplicationId>
				<SecurityApplicationId>100136</SecurityApplicationId>
			</Application>
			<Environment>
				<Name>DV</Name>
			</Environment>
			<Page>
				<Name>OrderHistory</Name>
				<PageDescription>Order History</PageDescription>
				<DeviceType>Desktop</DeviceType>
				<FromNativeApp>False</FromNativeApp>
			</Page>
		</Result>
	</Output>
	<Log>
		<Result jsonArray="true">
			<TotalDuration>276.8925</TotalDuration>
			<RunIndex>1</RunIndex>
			<TotalSize>103</TotalSize>
			<StartTime>2023-04-06 10:59:27.4840972</StartTime>
			<EndTime>2023-04-06 10:59:27.7609897</EndTime>
			<Duration>276.8925</Duration>
			<XslDuration>2.1192</XslDuration>
			<Size>103</Size>
		</Result>
	</Log>
</GetContext>

Re: Retrieve Webpage Name & Description within the Webpage

Posted: April 6th, 2023, 4:48 pm
by Joe.Wells
Hey Steve,

I tried this and it worked great! I then went to make a change to try other output elements............and it no longer works That was 30 minutes ago! So weird. Cannot imagine what I have done..............will work on it more later this evening.

BTW............once a webpage has been created, where do you go to see and/or edit the description?

Thanks,

Joe

Re: Retrieve Webpage Name & Description within the Webpage

Posted: May 12th, 2023, 11:12 am
by CathyC
Hi Joe, I'm not sure if you got an answer for this outside the forum yet, but here is how you edit the description of a webpage.

The pencil icon is available on methods and other types too to edit the name and description you entered when they were created
image.png