Page 1 of 1

Profound UI and rpg

Posted: Fri Aug 03, 2012 10:02 am
by Orin
Hey guys. I'm currently having a problem with my profoundui/rpg program.

I am using profoundui program running inside of a phonegap application on my android mobile device. I'm using a phonegap javascript function to grab the geolocation latitude and longitude from the device. I used the profoundui "changeElementValue" javascript function to populate some onscreen outputfields with these coordinates.

I next concatenate these values into one comma separated string and assigned to another onscreen outputfield via the same "changeElementValue" function. These 3 variables are bound to rpg variables by the way.

now i move to a next format that shows a "google maps" widget whose "google maps address" is bound to the said onscreen/rpg variable (whose content is the comma separated coordinates).

However the widget does not display anything. I did some debugging and found that moving from one screen to the next the outputfields are being reset somehow. I also did a "pui.click()" after grabbing the geolocation coordinates and assigning them to the rpg variables (onscreen)
and noticed that after this function the variables are reset.

My question is how do i make these variables persistent across screens and why does it seem as though the profoundui javascript functions do not change the rpg variables in my program?

Re: Profound UI and rpg

Posted: Fri Aug 03, 2012 4:03 pm
by Orin
I found the problem.

Assigning the geolocation coordinates to textfields instead of outputfields seems to allow the retention of the field values from screen to screen. I assume to this has something to do with input and output fields being treated differently by profoundui.

However i still have the problem with the google maps widget. After assigning the comma separated coordinates to a rpg variable and bounding it to the "google maps address" property, the map is still blank.

Please Help.

Does the google map widget work on mobile devices?

Re: Profound UI and rpg

Posted: Mon Aug 06, 2012 10:03 am
by chris_rover
interested in hear a response on this question too.

Re: Profound UI and rpg

Posted: Thu Aug 09, 2012 10:38 am
by Antonio
Hello Orin,

The google maps widget does indeed work on mobile devices. Is your widget completely blank or is it displaying an incorrect area on the globe? Could you send me a quick screenshot of the widget?

Re: Profound UI and rpg

Posted: Thu Aug 09, 2012 4:25 pm
by Orin
Thanks for the reply.

the widget is completely blank. However i did find a work around eventually using an iframe container and a maps.google query string as the frame's URL. This displays the correct location. I used a javascript approach using profoundui functions to edit the frame's URL which is bound to an rpg variable (sitting on the previous displayed screen).

However I would still like to know why the widget didn't work since it seems to use the same approach that i did manually.

Re: Profound UI and rpg

Posted: Mon Aug 13, 2012 3:20 pm
by Antonio
Orin,

I am happy to hear you found a workaround that worked out nicely. What I think is happening with the original error is that the google maps widget is not actually being loaded into your phonegap application. The reason is because runtime.js does not include the googlemaps.js file needed for the widget. You would have to manually include it into your application to get the widget functioning properly.

Thanks.