Add a Button to the form

Add a Button to the form

Unread postby tarelds » Fri Apr 04, 2014 5:09 pm

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.
tarelds
 
Posts: 10
Joined: Sat Jan 26, 2013 9:38 pm

Re: Add a Button to the form

Unread postby massiws » Sat Apr 05, 2014 6:06 pm

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 4972 times

addButton-Events_tab.png
addButton-Events_tab.png (22.34 KiB) Viewed 4972 times

addButton-Html_tab.png
addButton-Html_tab.png (18.71 KiB) Viewed 4972 times


Hope this helps,
Max
massiws
 
Posts: 503
Joined: Thu May 24, 2012 9:38 am
Location: Milan, Italy

Re: Add a Button to the form

Unread postby tarelds » Wed Apr 09, 2014 1:30 pm

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
tarelds
 
Posts: 10
Joined: Sat Jan 26, 2013 9:38 pm

Re: Add a Button to the form

Unread postby massiws » Wed Apr 09, 2014 6:14 pm

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:
objectAllTab.png
Object's All tab
objectAllTab.png (11.84 KiB) Viewed 4963 times
massiws
 
Posts: 503
Joined: Thu May 24, 2012 9:38 am
Location: Milan, Italy

Re: Add a Button to the form

Unread postby tarelds » Thu Apr 10, 2014 3:37 pm

Thanks Max,I have much to learn.
tarelds
 
Posts: 10
Joined: Sat Jan 26, 2013 9:38 pm

Re: Add a Button to the form

Unread postby massiws » Fri Apr 11, 2014 10:56 pm

.
massiws
 
Posts: 503
Joined: Thu May 24, 2012 9:38 am
Location: Milan, Italy


Return to Custom Code

Who is online

Users browsing this forum: No registered users and 2 guests

cron