Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Add a Button to the form

Locked
tarelds
Posts: 10
Joined: Sat Jan 26, 2013 1:08 pm

Add a Button to the form

Unread post by tarelds »

Is it possible to add a button actually on the form?

For example one button to increment and another to decrement a number in a text box.

So two buttons on the form, and code (java?) to perform the function.

Can anyone help please? I am hoping such an example will get me on my way to learning how to rebuild ms access applications in nuBuilder.

Thanks in advance.
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Add a Button to the form

Unread post by massiws »

tarelds,
supposing total is your text field, you can add two html objects like this on the form:
addButton-All_tab.png
addButton-All_tab.png (4.79 KiB) Viewed 5994 times
addButton-Events_tab.png
addButton-Events_tab.png (22.34 KiB) Viewed 5994 times
addButton-Html_tab.png
addButton-Html_tab.png (18.71 KiB) Viewed 5994 times
Hope this helps,
Max
tarelds
Posts: 10
Joined: Sat Jan 26, 2013 1:08 pm

Re: Add a Button to the form

Unread post by tarelds »

Hi Max

Thank you so much; that work fine.

Why did you choose to use HTML rather than the Button choice?

Hope you don't mind continuing to help me grasp the concepts.

Regards
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Add a Button to the form

Unread post by massiws »

tarelds,
Button objects are designed to open new form (see here), but, if you want, you can use a Button object to execute some custom javascript: in this case you have to specify in All tab width, height and Title (ie: button's value attribute) and leave Button tab empty:
Object's All tab
Object's All tab
objectAllTab.png (11.84 KiB) Viewed 5985 times
tarelds
Posts: 10
Joined: Sat Jan 26, 2013 1:08 pm

Re: Add a Button to the form

Unread post by tarelds »

Thanks Max,I have much to learn.
massiws
Posts: 503
Joined: Thu May 24, 2012 2:08 am
Location: Milan, Italy
Contact:

Re: Add a Button to the form

Unread post by massiws »

.
Locked