NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: olu on July 20, 2012, 12:07:53 PM

Title: Change insert button text
Post by: olu 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?
Title: Re: Change insert button text
Post by: Bruce 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
Title: Re: Change insert button text
Post by: olu 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.
Title: Re: Change insert button text
Post by: Bruce 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


Title: Re: Change insert button text
Post by: olu 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
Title: Re: Change insert button text
Post by: Bruce 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
Title: Re: Change insert button text
Post by: olu 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')
Title: Re: Change insert button text
Post by: Bruce 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
Title: Re: Change insert button text
Post by: olu on July 23, 2012, 01:50:51 AM
hi bruce can not find Any embed point that says GenerateBrowse but can find GenerateForm?