Welcome! Log In Create A New Profile

Advanced

Reset number item

Posted by infos 
Reset number item
November 05, 2018 11:19AM
Is there a possibility in HF C / S to reset the dial if Item2 is changed

Example:

Item1 Item2
________________
1 --- A
2 --- A
3 --- A
4 --- A
5 --- A
1 --- B
2 --- B
3 --- B
1 --- C
2 --- C
3 --- C
4 --- C
5 --- C

etc ...

Thank you



Edited 1 time(s). Last edit at 11/06/2018 08:22PM by infos.
Re: Reset number item
November 06, 2018 05:11PM
Hi, yes, of course, just use a trigger for that!

BR G. Predl
Re: Reset number item
November 06, 2018 08:28PM
harvey68 Wrote:
-------------------------------------------------------
> Hi, yes, of course, just use a trigger for that!
>
> BR G. Predl


Can you explain how?
Re: Reset number item
November 07, 2018 06:23AM
Yes.

1 - you define a trigger on HAdd, HModify in the project code.
There you have to define a procedure name.
This procedure will be run BEFORE a record is added or changed in the file:

IF not HDescribeTrigger("ZAHLKOND","HADD,HMODIFY","ZAHLKOND_MakeNumWerte",hTriggerBefore) THEN
Error("Error in trigger-description of ZAHLKOND_MakeNumWerte")
END

2 - Now you can add the code for performing the necessary changes in the procedure

Kind regards,
G. Predl
Re: Reset number item
November 13, 2018 09:02AM
Greeting

Is there any simpler solution in the Analysis itself to set up a reset switch?

Can not you believe that nobody has worked?
Re: Reset number item
November 20, 2018 08:07AM
Hi, there's nothing simpler than using a Trigger ...
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: