i have the following scenario:
I have three drop down lists:
Based on user selection of values under these three i need to call aservice......but i am checking what values user has selected through java script as it is dynamic selection......
so how can assign java script variable to idoc variable..because i need idoc scripting to call my service.........
if i put hardcoded values instead of dynamic selection..my service is working correctly.....
you don't want to call a service everytime a value is changed. Instead try this approach...
1) Create a view (view1) which has values for Name, Department, Head
2) include the following line <script src="<$HttpCgiPath$>?IdcService=GET_SCHEMA_VIEW_FRAGMENT&schViewName=view1"></script>
the above line creates a js file with all the view values that can be further processed on client side.
3)To access the view data
var oViewValues= getViewValuesFromCache("view1","","");
If this is your check-in or search page (standard/profile), CS has out-of-box functionality for cascading drop-downs.
let me know if that works.