58
Views
5
Comments
Solved
How use value variable to get content id
Question

How can i use a variable value to get content id ,

it not working, i wanna use a dinamic name how can i do this?


i can not use this way, because the name is dinamic

Thanks!!!

UserImage.jpg
Andy_Oscky
Solution

Thanks but not working


I use this solution but is very horrible, 

If( ListFilter.FilteredList.Current.DisableFeatures.FeatureName = "ContMenuBeneficios", ContMenuBeneficios.Id, If ( ListFilter.FilteredList.Current.DisableFeatures.FeatureName = "ContMenuInicio" ,ContMenuInicio.Id, 

2016-04-22 00-29-45
Nuno Reis
 
MVP

Hello Andy.

Inside OutSystems the value is not dynamic as in HTML. It is <Name>.Id.

If you set the name to SetVisibilityNone, you can find the id used in DOM in SetVisibilityNone.Id and send it as a parameter to the JavaScript.

UserImage.jpg
Andy_Oscky

Thanks , but the problem is this 

i have a table with the values and i need to get the spesific iD ,



i think in use data-addiotional but i can use the way to get the id




2018-08-27 08-29-35
Fábio Vaz

Hello Andy


try this:

x = document.querySelector("[data-addicional-info]");

UserImage.jpg
Andy_Oscky
Solution

Thanks but not working


I use this solution but is very horrible, 

If( ListFilter.FilteredList.Current.DisableFeatures.FeatureName = "ContMenuBeneficios", ContMenuBeneficios.Id, If ( ListFilter.FilteredList.Current.DisableFeatures.FeatureName = "ContMenuInicio" ,ContMenuInicio.Id, 

2018-08-27 08-29-35
Fábio Vaz

because

i write addicional ehehe and you have additional sorry

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.