NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: johanco123 on October 07, 2015, 01:14:20 AM

Title: How to change Browse Button TextValue?
Post by: johanco123 on October 07, 2015, 01:14:20 AM
Hi
I have a memory form with 2 browses on it. I want to change the Insert button text value to 'Add Estimate'
I use   p_web.site.InsertButton.TextValue = 'Add Estimate'

It change now the Insert to Add Estimate, BUT it changes now the insert on both Browse and not on the one browse where I added the code.

How can I change only the one Browse button values and not both of them. The browse without the  p_web.site.InsertButton.TextValue = 'Add Estimate' must not change.

Regards
Johan
Title: Re: How to change Browse Button TextValue?
Post by: terryd on October 07, 2015, 01:59:45 AM
Hi Johan
Where did you put the code?
I would suggest in the browse that you want the Insert button name to change in the
GenerateUpdateButtonsAbove or GenerateUpdateButtonsBelow Routine (depending where you locate your update buttons) after the Start
Title: Re: How to change Browse Button TextValue?
Post by: johanco123 on October 07, 2015, 03:36:43 AM
Hi Terry
Thank you for your help. The code is in the GenerateUpdateButtonsBelow  Start Routine. It still change both the browses Insert Names. Any other suggestions please.

Tanks Johan
Title: Re: How to change Browse Button TextValue?
Post by: terryd on October 07, 2015, 04:35:32 AM
Hi Johan
I duplicated your problem in the Web21 example in the Update customers form.
It doesn't seem to affect any other browses just the browses on the form.
I would suggest putting the code p_web.site.InsertButton.TextValue = 'Insert' in the other browse until Bruce can advise any other options.
This seems to work in the example
Title: Re: How to change Browse Button TextValue?
Post by: johanco123 on October 07, 2015, 05:56:01 AM
Tanks I follow your suggestion and it is working now.
Regards
Johan
Title: Re: How to change Browse Button TextValue?
Post by: Bruce on October 08, 2015, 07:31:11 AM
Set it to whatever you like in the browse, right before it's used.
Set it back to Insert when it's done being used in that browse.

cheers
Bruce