Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WB20] Problem in the action of a button inside a LOOPER

$
0
0
Hello developers!

I take a little of their time to see if they can give me a hand on a problem that I have been locked into for some time.

About 6 months ago I am learning and developing a project in WEBDEV at the same time. In this case a PHP project. So there are processes on some elements (tables, loopers for example) in which I burn a time to implement.

The question is this: I have a 'classic' looper which is loaded by means of a query, this looper is in the field of a browser that works with the behavior of a pop-up window. Each time I open this window depending on the parameter you send me will show different registers.

Inside the controls the looper has a button. This button in the 'on click' action (which does not have AJAX mode enabled) has this code in the PHP-Server section:

sRuta is string
HReadSeekFirst(d010_evidencias,Id_Evidencia,QRY_listaEvidencias.ATT_Id_Evidencia)

IF HFound(d010_evidencias) = True THEN
sRuta = LOOP_QRY_listaEvidencias[ATT_Id_Evidencia].STC_RutaArchivo
FileDisplay(sRuta,"application/unknown"
END


In my database I have stored the physical route which when I execute the query the dump in an STC Control (STC_RutaArchivo).

The problem is that when I run FileDisplay and show in a new tab the document (for example a .pdf) Always shows me the document associated with the last record loaded in the looper.

Do you know what the error is? By what he understood to identify the position of an element within the control looper is made use of "[]".

I have to say that I also did this test of working with buttons inside another element like the 'table control' setting the column as a '' container '' type but I was not lucky, which is why I am looking to implement it this way (using a looper control).

I hope they can guide me.
Greetings.

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>