Get Page parameter value in client side code

Hi All,

 

How to get the Page parameter value defined in a Pre-Configured page. I have tried to get that value(lookupfield value) using the usual way of get method but it returned undefined though there was value to it.

this.get(param).value;

 

Is there any other way to retrieve the page parameter value?

 

Thanks

Anupama

Like 0

Like

2 comments

Hi Anupama,

 

I've created a simple page where the value for the lookup column is filled in by the process before opening this pre-configured page:

After that the code of the pre-configured page should be modified a little:

methods: {
			onEntityInitialized: function(){
				this.callParent(arguments);
				var resultString = this.get("UsrTestStringField");
				var resultLookup = this.get("UsrTestLookupField");
			}
		},

As a result once the page is opened the onEntityInitialized is triggered and values from the fields displayed on the pre-configured page are read:

and

So you can use the following approach on your end.

 

Best regards,

Oscar

Thanks Oscar Dylan for the details. 

Show all comments