Help with nested foreach's
Posted in 2012
Topics: General Discussion
Dear friends of the forum: I have a problem that is driving me crazy and is as follows: I need to cover a table with four Foreach, the principal and three assistants. This is because according to what we throw assessments within foreach auxiliary data in the table must change and not reprocessed. The problem is that when a process value and update the data in the table, the main Foreach is on the last record, which is not necessarily the data I need and that they are updated and theoretically should not reprocess, to me takes the following as they are read in the order of the table. Is there any way to remedy these problems? From already thank you very much for your kind attention, and I have always received answers to my questions. Some have served and sometimes not, but the intention to help is what really matters. Gustavo Echenique
Gustavo: Your problem is a bit too complex to understand given your level of English. Please repost in your native language (Spanish?) and someone will try to help. We have many native Spanish speakers here who can either help directly or provide a clearer translation and perhaps word monkey will get it right for a change. Or at least give us some pseudo-code and examples of the problem to help us to understand. Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) Blog: http://informix-myview.blogspot.com/ Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Thu, Dec 13, 2012 at 3:38 PM, GUSTAVO ECHENIQUE < gustavo.echenique@cemdo.com.ar> wrote: > Dear friends of the forum: > > I have a problem that is driving me crazy and is as follows: > I need to cover a table with four Foreach, the principal and three > assistants. > This is because according to what we throw assessments within foreach > auxiliary data in the table must change and not reprocessed. > > The problem is that when a process value and update the data in the table, > the > main Foreach is on the last record, which is not necessarily the data I > need > and that they are updated and theoretically should not reprocess, to me > takes > the following as they are read in the order of the table. > > Is there any way to remedy these problems? > > >From already thank you very much for your kind attention, and I have > always > received answers to my questions. Some have served and sometimes not, but > the > intention to help is what really matters. > > Gustavo Echenique > > > > ******************************************************************************* > Forum Note: Use "Reply" to post a response in the discussion forum. > > --f46d0401f5914a2ac604d0c2e4f6
Estimados amigos del foro: Tengo un problema que me está volviendo loco y es el siguiente: Necesito recorrer una tabla con cuatro Foreach, el principal, y tres auxiliares. Esto es así porque de acuerdo a lo que arrojen evaluaciones dentro de los foreach auxiliares, los datos de la tabla deben cambiar y no volver a procesarse. El problema es que cuando proceso algún valor y actualizo los datos de la tabla, el Foreach principal queda en el último registro, que no necesariamente es el que necesito y los datos que en teoría fueron actualizados y no se deberían volver a procesar, me los toma ya que son los siguientes en el orden de lectura de la tabla. ¿Hay alguna manera de subsanar este tipo de problemas? Desde ya, muchas gracias por su amable atención, ya que siempre he recibido respuestas a mis dudas. Algunas han servido y otras no, pero la intención de ayudar es lo que realmente vale. Gustavo Echenique