it seem not possible that a SRF reach a Dataset variable out of a script
what did I miss?
var newOptionNames = new Array();
newOptionNames = "" + Datasets["/BLKA/Prozesse/SOI/Dataset"].Verfahren_Liste.length;
Release : 4.3
Component : Process Automation
I suppose there are two questions/queries in the whole discussion.
1. It seem not possible that an SRF reach a Dataset variable out of a script.
2. We want to fill a DropDown Field in an SRF, the values should come out of a ValueMap Field in a global Dataset
For question 1:
(The only exception to this is with ca_pam_getDatasetData with limitations of only showing one column of elements (an array) even in this case) but again this method is only for displaying that value in a pop table but not to populate any form data.)
For question 2:
Dropdown field in an SRF can only be filled with a string array but not with a value map, this is because of the format of values it can hold. The way you have suggested (reorganizing your value map as suggested) is the only solution to read values from Value Map to drop down in an SRF (by modifying the value map to the desired format as suggested in Out of box content and my making use of Dataset Expression parameter in the dropdown field in SRF).
Recommended reorganizing the dataset to follow the examples in the out of the box content. For example: