Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
I would like to know, how to retrieve resolution of the current screen wherein the home mashup of a user has been opened?
Solved! Go to Solution.
Hi @muzzammil.
It sounds like you would need to create your own extension that would utilize a library that offers the ability to assess resolution. We don't have an out-of-the box method for determining screen resolution. You will have to do some research to determine what libraries may be available for this.
Regards.
--Sharon
Hi @muzzammil.
Please provide more context around your question. Are you asking in regard to a mobile device, laptop, etc.? Are you seeing issues and if so, can you elaborate on the problem?
Regards.
--Sharon
Actually i've developed a set of mashups which is responsive enough to be opened in any device like mobile phone or laptop. But, since the home mashup has been incorporated with a feature with which you can drill down a KPI (Key Performance Indicator) to lower levels to see like how it has been distributed in lower levels, i wish to know the current screen resolution to alter the pop-up mashup's height and width accordingly. Thus, in order to make the entire application perfectly responsive, i wish to know how to i retrieve these required parameters.
Somewhere it was mentioned to use screen.availHeight or something. if so, where do i use it. coz, i couldn't use this in a service.
Hi @muzzammil.
It sounds like you would need to create your own extension that would utilize a library that offers the ability to assess resolution. We don't have an out-of-the box method for determining screen resolution. You will have to do some research to determine what libraries may be available for this.
Regards.
--Sharon
Hi @muzzammil.
If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon