335
Views
2
Comments
GetBookmarkableUrl() not returning input parameters during in screen/notify action
Question

When GetBookmarkableUrl() is called in the page preparation or as the value of an expression widget, the following style of value is returned:

https://www.example.com/application/page.aspx?val1=foo&val2=bar

When it is called in a screen action via a button or a web block notify, it instead only returns the following pattern:

https://www.example.com/application.page.aspx

The input parameters are missing. What can I do to get around this?

2022-02-25 19-42-59
Srinivas K Singadi

HI @Stuart Parker

When you call GetBookmarkableUrl() it will url of  your current page not input parameters

but you can do something like this

"https://www.example.com/application.page.aspx"+"val1="+foo +"Val2="+bar

For this you need to pass foo and bar as input parameter when you call this 


in this way you can achieve your goal

I hope this helps you 


Thank you

Regards,

Shree

UserImage.jpg
Stuart Parker

Srinivas K Singadi wrote:

HI @Stuart Parker

When you call GetBookmarkableUrl() it will url of  your current page not input parameters

but you can do something like this

"https://www.example.com/application.page.aspx"+"val1="+foo +"Val2="+bar

For this you need to pass foo and bar as input parameter when you call this 


in this way you can achieve your goal

I hope this helps you 


Thank you

Regards,

Shree

This seems contrary to the official documentation. My page is using mandatory input parameters which have a value set. I don't understand why it works during preparation but not during screen actions.

I'm aware directly coding the URL is possible, but I need to have this working on several pages with different input params. I was hoping to avoid something so labour intensive and brittle. Any changes to the input params for the page are not automatically applied to the URL definition.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.