NetTalk Central

Author Topic: Change insert button text  (Read 4463 times)

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Change insert button text
« on: July 20, 2012, 12:07:53 PM »
Please can anyone help i have just tried to change the insert button text with this code p_web.site.InsertButton.TextValue = 'Create New Message' in the generate form embed, what am i doing wrong?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Change insert button text
« Reply #1 on: July 20, 2012, 10:48:07 PM »
GenerateForm, implies you are on a form, whereas Insert buttons appear on a Browse... So I suspect you've jsut added it to the wrong procedure.

cheers
Bruce

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: Change insert button text
« Reply #2 on: July 20, 2012, 11:20:37 PM »
Hi Bruce yes you are right again, but now got it to the browse but instead of it just changing it one browse, it is changing it in all my browses so which embed point do i put my code and just make it change it in the browse that am on.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Change insert button text
« Reply #3 on: July 21, 2012, 09:09:49 PM »
by "all browses" you mean all the browses being displayed at the same time - like child browses?

if you're displaying multiple browses at the same time, and you only wat to change the one, then look for the use of InsertButton, and set it before and after that use,. in that procedure.

cheers
Bruce



olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: Change insert button text
« Reply #4 on: July 22, 2012, 01:22:05 AM »
By all browses i mean any other browses i look at after i look at that the browse that i have changed the insert text

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Change insert button text
« Reply #5 on: July 22, 2012, 09:45:07 PM »
what does your embed line look like that makes the change?

If it starts with p_web, then it only affects the current thread. If it doesn't, then possibly you're setting the global value.

cheers
Bruce

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: Change insert button text
« Reply #6 on: July 23, 2012, 12:39:15 AM »
hi bruce,
   I hAve got it in the embed browse procedure- Start of procedure . And the code is
    !Change buttton text (Insert)
   p_web.site.InsertButton.TextValue = Clip('Create New Document')

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Change insert button text
« Reply #7 on: July 23, 2012, 01:29:05 AM »
>>  I have got it in the embed browse procedure- Start of procedure .

try in GenerateBrowse routine, not start of procedure.

cheers
Bruce

olu

  • Sr. Member
  • ****
  • Posts: 352
    • View Profile
    • Email
Re: Change insert button text
« Reply #8 on: July 23, 2012, 01:50:51 AM »
hi bruce can not find Any embed point that says GenerateBrowse but can find GenerateForm?