NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Ubaidullah on October 25, 2020, 10:56:34 PM

Title: Custom button under browse
Post by: Ubaidullah on October 25, 2020, 10:56:34 PM
Hi Bruce,

Is there a way to use one of the buttons under the browse (e.g. the copy button) as a custom button?

I have seen the recommendation to use a Memory Form to add custom buttons. But I want to add a button that is aligned with the "Insert" button.
i.e. "Insert" "Insert All"

Regards,
Ubaidullah Nubar.
Title: Re: Custom button under browse
Post by: Bruce on October 26, 2020, 10:26:39 PM
>> Is there a way to use one of the buttons under the browse (e.g. the copy button) as a custom button?

no.

>> I have seen the recommendation to use a Memory Form to add custom buttons.

yes

>> But I want to add a button that is aligned with the "Insert" button. i.e. "Insert" "Insert All"

The problem is that the code for the button is complex. You need the form to make the button so that you get all the code to make the button work. Injecting the button next to insert is likely possible using some clever CSS, but I've not tried that...
Although I suppose the easiest is to have the form make the Insert, and InsertAll buttons. and not have an Insert button on the browse.

Cheers
Bruce
Title: Re: Custom button under browse
Post by: Niels Larsen on October 27, 2020, 01:58:40 AM
Why not just use jQuery to move things around?
I'm using that with great success.

Regards Niels
Title: Re: Custom button under browse
Post by: Ubaidullah on October 27, 2020, 06:01:11 AM
Thanks for the reply, Bruce.

Although I suppose the easiest is to have the form make the Insert, and InsertAll buttons. and not have an Insert button on the browse.

My InsertAll button is a call to a source procedure, so that is easy.
But how do I make the Insert button for the browse on the memory form ?

Regards,
Ubaidullah Nubar.
Title: Re: Custom button under browse
Post by: Ubaidullah on October 27, 2020, 06:02:33 AM
Why not just use jQuery to move things around?
I'm using that with great success.

Regards Niels

Hi Niels,

That's an interesting suggestion.

I will appreciate it if you have any pointers on how to go about doing that.

Regards,
Ubaidullah Nubar.
Title: Re: Custom button under browse
Post by: Bruce on October 28, 2020, 02:52:54 AM
>> But how do I make the Insert button for the browse on the memory form ?

It's just an "other" button , added to the form, doing whatever you need it to do...

cheers
Bruce