Sorting results from GetAllLocationsComponent
I have populated a DropDownListComponent with the results from GetAllLocationsComponent, but I am unable to sort the results alphabetically. I thought I could achieve that by using component Simple Collection Sort, but the drop down list looks the same with or without Simple Collection Sort.
I also notice a warning when using GetAllLocationsComponent. Is it better to use Select Command Component to query the database directly? That would at least allow me to sort the results.
What is the difference between the components GetAllLocationsComponent and AllLocations? I am very disappointed with the documentation available for each component. If anyone can point me in the direction of any decent documentation, apart from http://www.altiris.com/Support/Documentation.aspx#w, it would be greatly appreciated.
Comments
I'll try to answer all of
I'll try to answer all of your questions.
The simple collection sort should be able to work with this component. I just made a simple web form project to test this out:
In my web form, I start with a create Notification Server Credentials component, pointed to the appropriate server. Next component is the GetAllLocations component. Depending on which version of Workflow Designer you have, you may have "2" of this component. One is intended for use by an NS6, the other for an NS7. Currently, the only way you can tell which one you need is the Settings tab; the namespace will either be Altiris or Altiris7 (for NS6 and NS7 respectively). Eventually, we are going to add an icon s.t. the 6 components appear different from the 7s.
Next component is the simple collection sort. The datatype should be either Altiris.Location or Altiris7.Location, depending on the comp previously used. The sort field should be the Name (of the location).
In the next component I have a web form with a dropdown list hooked up to the output of the GetAllLocations component, and they appear to be sorted properly alphabetically.
The warning that appears when using the GetAllLocations is a canned warning we apply to any generated component starting with "GetAll"; it's just a generic warning to the user notifying them that the service call may time out with slow network connections.
As far as documentation goes for these components, yes, they are lacking. This is the nature of much of the components that are "auto generated" via the ASDK, ASDK Task, and Resource generators. Docs are not "output" with these components, just the basic help page.
If you need any more help with this, please don't hesitate to contact me at "richard_wright@symantec.com". I hope the above helps you out.
Thank you!
I used text as Data Type and GetAllLocations[*].Name as Array. Worked like a charm when I changed Data Type. Will the documentation be more complete in the next version of Workflow?
I know that documentation is
I know that documentation is definitely becoming a "big deal" for Workflow Designer... I'm not sure if there will be much documentation for "generated" components.
I can share some things about generated components... the majority of "generated" components (typically components that live in namespaces starting with 'Altiris') are simply wrappers for web service calls on the NS. For resource components, that web service is the ResourceModel.asmx.
Any documentation provided by ASDK/ASDK Task/Resource, when installed on the NS, is as great a help as any for these components, as these components basically use these web services.
Would you like to reply?
Login or Register to post your comment.