Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
6
Erster Beitrag:
vor 9 Jahren, 8 Monaten
Letzter Beitrag:
vor 9 Jahren, 8 Monaten
Beteiligte Autoren:
Victoria Caballero, Piet van Zanten, Jeff Graham

Problem showing data in a Looper (WD 12)

Startbeitrag von Victoria Caballero am 26.08.2008 10:36

Hi all,
I've a problem with a looper I've created in my page.
This is a looper filled with a direct access to a file (not manually filed). Inside of the Looper I have 2 static controls (STC_SUBJECT_NEWS and STC_TEXT_NEWS) where I want to show some information according with the language selected by the user.
In the file used to fill the looper I've 3 fields with the same text in 3 different languages.
So in the Row display of Looper (server) I've this code:

SWITCH Nation()
CASE 6:
STC_SUBJECT_NEWS = Looper.ATT_SUBJECT_DANISH // Danish
STC_TEXT_NEWS = Looper.ATT_TEXT_DANISH // Danish
CASE 3:
STC_SUBJECT_NEWS = Looper.ATT_SUBJECT_ENGLISH // English
STC_TEXT_NEWS = Looper.ATT_TEXT_ENGLISH // English
CASE 7:
STC_SUBJECT_NEWS = Looper.ATT_SUBJECT_SPANISH // Spanish
STC_TEXT_NEWS = Looper.ATT_TEXT_SPANISH // Spanish
END

The problem is that when I see the looper in the page the text showed in every row is exactly the same, doesn't change.??? The text changes according with the language but not according with the row.
Could be some refreshing problem or is something wrong in my code?
I've attached an image showing the problem.



Any help or sugestion will be apreciated. Thanks in advance.
Regards!!

Victoria Caballero
Copenhague
Denmark

Antworten:

Hi Victoria,

I've had many problems with loopers too, so I switched to using tables, which are very powerful and versatile in Windev 12.
First, consider using the language when filling the looper, so use the Switch Nation on the LooperAdd and add the correct language right away.
Second, in my experience you should always declare an attribute to address a control, so try using an attribute for the statics.
HTH, best regards,
Piet


von Piet van Zanten - am 26.08.2008 11:08
Hi Piet,
thanks for your response.
I guess I understand your point. But I have a question: where do you fill the Looper?, in the Initialization of the page or in the Initialization of the Looper it self?
I will try to do it like this and see what happens.

Regards




von Victoria Caballero - am 26.08.2008 11:43
Hi Victoria,

It seems you are actually using WebDev. Are you using AWP?

I always put the fill processing in the row display process.

Note that AWP does have problems/limitation with loopers. For example, you cannot display images from a memo file on any page but the first and it is very slow.



von Jeff Graham - am 26.08.2008 12:57
Hi Victoria,

I think Jeff is right, you are using Webdev. (WB 12)
As you could see my answer was based on Windev. I don't know if filling a looper is the same in Webdev (using LooperAddLine)

Best regards,
Piet

von Piet van Zanten - am 26.08.2008 13:18
Hi Jeff,
I'm not using AWP, my project it is a Webdev dynamic project. What is the difference?

Regards.



von Victoria Caballero - am 26.08.2008 13:23
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.