NetTalk Central

Author Topic: Adding buttons to mobile header .  (Read 3286 times)

Gerrit

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Adding buttons to mobile header .
« on: January 18, 2012, 03:30:49 AM »
Using C8 with NT6.15.
I'm trying to add a button on header of mobile version of a  browse to enable me to filter on a selected date.
I've put the browse on a form as I've red somewhere in the forum this is easiest to add extra buttons to a browse by adding the browse to a form .
I can see how the submit/close buttons been done in the FormHeader Routine, but not sure if I should try adding my own code in this routine or if their is an easier way.
Thanks
Gerrit

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Adding buttons to mobile header .
« Reply #1 on: January 18, 2012, 05:21:12 AM »
no, you don't need to add any code.

Add a button to the form (field type = button, type = "button" not submit, and no URL or Proc)
Add the browse to the form.

then on the "client side" tab for the button, set it to "reset" the browse.

the only code you usually need is for the button itself. Client-side tab, Server-Side code button.
In here you usually set some session variable that is used in the browse filter.
for example
p_web.SetSessionValue('filterdate',today())

Cheers
Bruce



Gerrit

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: Adding buttons to mobile header .
« Reply #2 on: January 18, 2012, 05:57:27 AM »
Hi Bruce,
Sorry my question not very clear. I'm familiar with the process of filtering the browse, but what I'm struggling with is getting the button on the Mobile Header at the top . I can and have  previously have written my own header , but just thought if their an easier way I dont know about.
Thanks
Gerrit

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Adding buttons to mobile header .
« Reply #3 on: January 18, 2012, 09:28:50 PM »
I think perhaps an example might help to clarify your question.

cheers
Bruce

Gerrit

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: Adding buttons to mobile header .
« Reply #4 on: January 20, 2012, 01:34:12 AM »
Please see attachment of what I require.
Thx

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Adding buttons to mobile header .
« Reply #5 on: January 20, 2012, 05:36:19 AM »
no, there's no easy way to do that yet. I'll put it on the list, but it may not be the easiest, or quickest, thing to do.

cheers
Bruce