Title: Two dimensions array MULTIPLE DIALOG PROBLEM Post by: . on November 23, 2009, 06:21:41 pm We're trying to do a INPUT BY NAME of the second dimension of a double-dimension array and when we move up/down in the first array (multimaster) the INPUT BY NAME (detail) is not updated. If we comment the INPUT BY NAME code the display instruction works properly displaying the correct data. If we put the data of the second dimension in a module variable the INPUT BY NAME instruction works properly... but not with the two dimensions array.
Thanks in advance, Rodrigo. Title: Re: Two dimensions array MULTIPLE DIALOG PROBLEM Post by: Sebastien F. on November 24, 2009, 10:03:31 am Can I suggest to prepare a little program and send that code example to the support channel please?
Thanks Seb Title: Re: Two dimensions array MULTIPLE DIALOG PROBLEM Post by: Reuben B. on November 24, 2009, 10:41:04 pm Hi Seb,
Rodrigo actually attached some example code, the email notification still doesn't tell us if there is an attachment :-(. In summary he has ... Code
... I'm guessing as he moves up/down the array, the variable used in the INPUT is actually changing, as opposed to the value of the variable in the INPUT. The INPUT stays as INPUT BY NAME arr2[1].* and correctly responds to any changes in arr2[1].* I suspect something like... Code
... will do the job in the interim so that the variable (but not necessarily the value) used in the INPUT is constant. Wether the unbuffered DIALOG should respond to a change in variable, as opposed to a change in variable value, I'll leave upto you and the team. Reuben Title: Re: Two dimensions array MULTIPLE DIALOG PROBLEM Post by: Sebastien F. on November 25, 2009, 11:01:57 am Ok thanks Reuben for pointing me to the attachment.
Yes the current behavior is expected. Actually when doing: INPUT BY NAME arr2[DIALOG.getCurrentRow("sa")].r.* The runtime system evaluates the DIALOG.getCurrentRow("sa") expression only once when the dialog starts, to bind the array fields to the dialog, as Reuben described. The workaround suggested by Reuben is what I would also do. Seb Title: Re: Two dimensions array MULTIPLE DIALOG PROBLEM Post by: . on November 25, 2009, 05:54:36 pm The email notification now tells if there is an attachment (in the first sentence at the top).
Thank you for reporting, Reuben. Helene / Webmaster. |