Welcome! Log In Create A New Profile

Advanced

WebDev - Alias Of Row Element In Looper

WebDev - Alias Of Row Element In Looper
January 04, 2020 05:56AM
Hi All

I am needing to use the document.getElementById function in javascript. For this I need to pass the name of the object. I can get the alias in WB by pressing Shift + F11. The looper alias is A1 and the edit field in the looper is A2. What would the javascript name be for each row in the looper? What do I pass to getelementbyid?

Cheers
André
Argus
Re: WebDev - Alias Of Row Element In Looper
January 07, 2020 09:12AM
Don't know if it works for a specific looper line/element, but I'm using FieldName..Alias as my base of work in cases like that.
Re: WebDev - Alias Of Row Element In Looper
January 07, 2020 09:45AM
Hi André,

It depends on what type of looper,
Best way is to check the page source in the browser.
For a Classic type looper the alias of a static with a webdev alias of "A4" could be in your page with an ID of "C-1-A4" for row 1 and "C-2-A4" for row 2 etc.
This might only work for visible elements.
Of course it is not the recommended way to handle stuff in WB winking smiley.

Beste regards,
Piet



Edited 2 time(s). Last edit at 01/07/2020 09:47AM by pietvanz.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: