Hello people,
I have an issue with a dropdown which don't want to have a selected value...
Thank to this following code, i'm able to get my actual period - 10 weeks (WD/037.3015, i use simpledate component to do the math) and to feed my dropdown with all the period.
DROPDOWN_7.setItems(DS_5.getMemberList("0FISCPER", MemberPresentation.INTERNAL_KEY, MemberDisplay.KEY, 0));
SIMPLEDATE_1.initializeWithInternalDate(APPLICATION.getInfo().dateNowInternalFormat);
var actualWeek = SIMPLEDATE_1.getCalendarWeek() - 10;
var actualYear = SIMPLEDATE_1.getYear();
var actualPeriod = "WD/0" + actualWeek + "." +actualYear;
DROPDOWN_7.setSelectedValue(actualPeriod);
APPLICATION.createErrorMessage(actualPeriod);
Here you can see the list of dropdown value (my period is present) :
Here the verification for my actualPeriod format :
So, i have the right value, but when i use "DROPDOWN_7.setSelectedValue(actualPeriod);", it's not working at all... I have no idea why.. For information, i tried to set the selected value in the KEY format (but i tried in TEXT format, it's the same)
Any helps ?
Best Regards,
Jonas.