tnzabo
11th November 2005, 15:50
Hello -
I'm having some difficulty displaying a value in the correct record on a multi-occurence form. I'm customizing the Enter Hours Accounting form tihra1101m0002. When I click on the insert button on the toolbar I run a function that gets the next dsrn value and I want to display it on the form on the line for the new record. In my function I do a display(tihra100.dsrn) so it does display it but it will also display it on the first line.
i.e. I have four records already for a certain person and day. The next dsrn should be 5, the function goes and gets the 5 then displays it in the dsrn field of record 1, or whichever record happens to be active, then it will display it in the dsrn field of the new record for insertion. I've attached a screen shot of what's happening.
Also - once I've inserted my entire record I may want to enter another. Since I'm doing the function to get the next dsrn on the choice.add.set it doesn't execute except if I click the insert button. What do I need to do to execute it automatically when it goes to the next record?
Thanks!
I'm having some difficulty displaying a value in the correct record on a multi-occurence form. I'm customizing the Enter Hours Accounting form tihra1101m0002. When I click on the insert button on the toolbar I run a function that gets the next dsrn value and I want to display it on the form on the line for the new record. In my function I do a display(tihra100.dsrn) so it does display it but it will also display it on the first line.
i.e. I have four records already for a certain person and day. The next dsrn should be 5, the function goes and gets the 5 then displays it in the dsrn field of record 1, or whichever record happens to be active, then it will display it in the dsrn field of the new record for insertion. I've attached a screen shot of what's happening.
Also - once I've inserted my entire record I may want to enter another. Since I'm doing the function to get the next dsrn on the choice.add.set it doesn't execute except if I click the insert button. What do I need to do to execute it automatically when it goes to the next record?
Thanks!