NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Devan on August 08, 2012, 06:32:06 PM
-
Bruce,
Just a wish list item for possible future versions of NetTalk - Been coding up a web app that is to run on Desktop and Mobile devices, and I like the capability to turn columns on/off depending on the platform, but to extend that further, it would be nice to be able to change the fixed width of the browse box, as well as the number of rows displayed depending on the platform too.
I know I can use a Choose(p_web.IsMobile(), 10, 25) in the 'Rows' box in the Browse properties, but it just doesn't seem as elegant as perhaps having another 'Mobile' tab say, where we can set some of these important parameters for the mobile platform?
Or perhaps it is just TOO elegant and I am not seeing it? :)
Cheers,
Devan
-
Hi Devan,
I think the latter part of your statement is the correct one. All of the template fields are expressions precisely so you _can_ use CHOOSE to make decisions. In your case you want to base the number of rows on Mobile / Not Mobile and you can use choose to do that. You can also use the same to set the browse width.
The alternative is to make a mobile version of _every_ setting, and that I think would not be elegant at all!
Cheers
Bruce
-
Bruce,
You are right - I like the flexibility of using expressions in most of the boxes. The only downside I can see is that it makes it a little more difficult for someone else looking at my app file to make sense of what is happening. Or worse, I will open up the app in a couple of months to do some maintenance and have no clue as to what I was trying to achieve with the expression! :D
Devan
-
ha ha - yeah I know what you mean. Remember to use F10 to see the whole expression, especially in C8 - bigger is better <g>.
Cheers
Bruce