Retrieve Webpage Name & Description within the Webpage

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
Joe.Wells
Posts: 15
Joined: March 22nd, 2023, 8:45 pm
Contact:

Retrieve Webpage Name & Description within the Webpage

Unread post 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
word count: 37
SteveCap
Posts: 329
Joined: August 26th, 2021, 9:18 am
Contact:

Re: Retrieve Webpage Name & Description within the Webpage

Unread post 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>
word count: 107
Joe.Wells
Posts: 15
Joined: March 22nd, 2023, 8:45 pm
Contact:

Re: Retrieve Webpage Name & Description within the Webpage

Unread post 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
word count: 67
CathyC
Posts: 472
Joined: November 16th, 2021, 11:15 am
Contact:

Re: Retrieve Webpage Name & Description within the Webpage

Unread post 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
word count: 51
Post Reply