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
Retrieve Webpage Name & Description within the Webpage
-
- Posts: 15
- Joined: March 22nd, 2023, 8:45 pm
- Contact:
Retrieve Webpage Name & Description within the Webpage
word count: 37
-
- Posts: 329
- Joined: August 26th, 2021, 9:18 am
- Contact:
Re: Retrieve Webpage Name & Description within the Webpage
Hi Joe,
You can use the GetContext service which will return:
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
-
- Posts: 15
- Joined: March 22nd, 2023, 8:45 pm
- Contact:
Re: Retrieve Webpage Name & Description within the Webpage
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
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
-
- Posts: 472
- Joined: November 16th, 2021, 11:15 am
- Contact:
Re: Retrieve Webpage Name & Description within the Webpage
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
The pencil icon is available on methods and other types too to edit the name and description you entered when they were created
word count: 51