NetTalk Central

Author Topic: Wish List: Change browse rows/width depending on Mobile/Desktop  (Read 4163 times)

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: Wish List: Change browse rows/width depending on Mobile/Desktop
« Reply #1 on: August 08, 2012, 10:54:52 PM »
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


Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Re: Wish List: Change browse rows/width depending on Mobile/Desktop
« Reply #2 on: August 08, 2012, 11:02:54 PM »
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: Wish List: Change browse rows/width depending on Mobile/Desktop
« Reply #3 on: August 08, 2012, 11:26:29 PM »
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