Need some help with modifications

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
vikeh
Posts: 7
Joined: 2014-07-30 14:47

Need some help with modifications

Post by vikeh » 2016-11-19 08:30

Hi,

I need some help with making a total field to update instantly while inserting numbers in other fields. It is already updating after saving but I would like the Total field to update while the client is inputting prices.

I need some other help with customization.

I need that once specific fields are filled with information, another field called status will be changed to either; In Stock, On The Way or Sold

Can someone help please?

Thanks in advance

DevGiu
AppGini Super Hero
AppGini Super Hero
Posts: 151
Joined: 2016-05-27 09:08

Re: Need some help with modifications

Post by DevGiu » 2016-11-21 12:08

WIch type of field is "status"? A lookup? and option list?
/Giuseppe
Professional Outsourcing Services

vikeh
Posts: 7
Joined: 2014-07-30 14:47

Re: Need some help with modifications

Post by vikeh » 2016-11-21 13:16

Option list no look up

DevGiu
AppGini Super Hero
AppGini Super Hero
Posts: 151
Joined: 2016-05-27 09:08

Re: Need some help with modifications

Post by DevGiu » 2016-11-21 15:35

forquicklist didn't tried yet. For lookups you have to do something like:

Code: Select all

$j('#' + field).val(idValue);
$j('#' + field + '-container').select2('data', {id:idValue, text:textValue});
I did a fast try and didn't worked over a quicklist, but shouldn't be dificult, but I'm very busy right now to do more tests. I will try later if get the time.
/Giuseppe
Professional Outsourcing Services

vikeh
Posts: 7
Joined: 2014-07-30 14:47

Re: Need some help with modifications

Post by vikeh » 2016-11-21 22:16

Hi DevGiu

I'm willing to pay if you can help with this issue and also the realtime calculation of the Total field while inputting numbers.

Thanks in advance

DevGiu
AppGini Super Hero
AppGini Super Hero
Posts: 151
Joined: 2016-05-27 09:08

Re: Need some help with modifications

Post by DevGiu » 2016-11-25 13:07

I will try to do some testing this weekend. About updateing fields is easy, just capture the event this way

Code: Select all

// we will put on yourotherfield the value of yourfield plus 2, when yourifeld lost focus.
$j('#yourfield').on('blur', function{
finalvalue = $j('#yourfield').val() + 2;
$j('#yourotherfield').val(finalvalue);
});
/Giuseppe
Professional Outsourcing Services

vikeh
Posts: 7
Joined: 2014-07-30 14:47

Re: Need some help with modifications

Post by vikeh » 2016-11-25 13:09

Thanks DevGiu but it has been solved now :)

DevGiu
AppGini Super Hero
AppGini Super Hero
Posts: 151
Joined: 2016-05-27 09:08

Re: Need some help with modifications

Post by DevGiu » 2016-11-25 13:17

What was solved, the quicklist update, or the sum of others fields?
/Giuseppe
Professional Outsourcing Services

vikeh
Posts: 7
Joined: 2014-07-30 14:47

Re: Need some help with modifications

Post by vikeh » 2016-11-25 13:22

Both has been solved by a person in the forum who did the job for me.

DevGiu
AppGini Super Hero
AppGini Super Hero
Posts: 151
Joined: 2016-05-27 09:08

Re: Need some help with modifications

Post by DevGiu » 2016-11-25 14:56

Great. Could be interesting to share how you did it, but it's your decision.

Regards.
/Giuseppe
Professional Outsourcing Services

Post Reply