ClientProfiles.json ???

0
0

So i’ve been digging through posts regarding the Responsive Profiles. I keep seeing references to ClientProfiles.json.

After I have defined a default and Phone profile on my form  i still do not see this file get created. Is this something I have to do manually ?

When i run my form and use developer tools in Chrome to change the profile to an iPhone 6 – my form does nothing.

  • You must to post comments
0
0

Hi Edmond,

The ClientProfiles.json file you’re referring to is used to override the already existing profile rules, thus you’ll have to manually add it.
Here’s an example for the content inside the file:

{
 "profiles": [
 {
 "name": "Phone",
 "maxWidth": 450
 },
 {
 "name": "Phone (Landscape)",
 "landscape": true,
 "maxWidth": 600
 },
 {
 "name": "Tablet",
 "maxWidth": 800
 },
 {
 "name": "Tablet (Landscape)",
 "landscape": true,
 "maxWidth": 1024
 }
 ]
}

To read the properties of the device use Application.Browser.

You can also check if the profile has changed when you work with the device emulator in Chrome’s developer tools with the ResponsiveProfileChanged event.

Best regards,
Alaa

  • Luca (ITG)
    Hit refresh when changing the device emulation. The user agent doesn’t change automatically. Otherwise change the client detection on screen size or browser size.
  • edmond girardi
    Luca – that worked. I think the WiseJ docs need to be updated/enhanced a bit to cut down on your support requests !
  • edmond girardi
    Now – one more question – the session timeout screen -not very mobile looking – anyway to have it fill the whole screen instead of a messagebox look ? And any way to style it ?
  • Luca (ITG)
    Handle Application.SessionTimeout event, you can show anything, a new page, a popup, etc.
  • Luca (ITG)
    Our current documentation sucks. We are working on 10 or 11 books using gitbook.com for the new web site,
Showing 1 result
Your Answer

Please first to submit.