IT Monkey will place code here as examples of what Cireson's consulting team has to offer as well as examples for public consumption to benefit the Microsoft System Center community as a whole.
DISCLAIMER
All files and projects located here come as is and without any warranty or support. We will attempt to improve the projects as time goes on based on customer and community demand. Comments and improvements are welcome as well as customization requests. Your use of these Cireson Uploads is subject to our Terms of Use.
Cireson's support team has no information on these projects outside of what you have available and will not provide support for these enhancements, extensions, and scripts.
Dont forget to checkout solutions uploaded by our customers, partners and community members here.
Comments
There's some different issues, the main one being the
recompAngularElement
function. First of all, the check for whether$injector
is undefined checks oninjector
and not$injector
. Easy fix. But from there on, things start to get weird. I added a bunch onconsole.log
's, to check the$scope
and$injector
vars. Chrome consistently outputs 'undefined
' for both of these, and correctly recompiles angular so the injectedng-show
attributes work. Firefox on the other hand outputs the actual objects almost each time, and when it does, the injected conditions does not work. Once in awhile (I was able to provoke this by changing the$scope
and$injector
variable names to something else), Firefox also outputs 'undefined
' for these, and suddenly the new conditions does work.I.e. when the browser outputs an undefined
$scope
and$injector
var, the conditions are correctly compiled, but when the browser for some reason outputs the actual objects, it has not compiled the new conditions. Strange.Another issue is the
addShowHideCriteria
function, which checks whether the currentng-show
attribute containscompareString
, and if not, it assumes the check is on a True/False prompt. This is not correct, as there's other possibilities, which aren't strings or true/false prompts, such as DateTime comparison, int / double comparison,compareQueryResult
, and possibly others. For now, I've just commented out the calls tomodBoolCriteria
, as we are running 8.2.2 anyways.I have some fields with 10 columns to be displayed and it would be easier if the column names were appended to the output.
Would it be possible to build this into the toolbox?
We use it to autofill textboxes with userinformation like Department, Office etc based on the user that start the form
We then user this as a filter on query prompts to only list for EX applications that user can order. or pass those values to script or runbooks.
But if it could be built into the toolbox it would be easier for anyone without java knowledge to do.
My javascript knowledge is very limited hence the question
For EX.
@Autofill {"Userinfo":"Office"}
Or just a vault
@Autofill {"Text":"Cires@AutoFit
Or autofill based on selection in an @Autocomplete or queryprompt
@AutofillFromQuery {"Userinfo":"Office"}
When im using a boolean as a criteria to show a @Autocomplete it wont show if im also using placeholders for other textprompts in the same form.
the @autocomplete just wont show...
if i remove the place holder it shows.
For EX we autofill 2 prompts with cost information when the textprompt for Office is filled with a certain value.
A new idea for this toolbox, the ability to move a checkbox control to the right of the accompanying text and use the required field to require it be either checked or unchecked before the form can be submitted
for use as a "Please confirm X" for license agreements etc
Hey guys,
I stumbled upon this thread and the toolbox through another community thread I posted to.
I've created a basic form to test some of the functions that I believe I could use in my ROs, in particular the AutoComplete.
I must be doing something wrong or configured my query list incorrectly as when I enter a string to search, the autocomplete is not filtering and then auto-selecting a match
My query is configured to list employees and show their name, position and employee ID.
When I enter a string of text to begin searching, the text field displays the moving '...', then returns a complete list of all employees rather than a filtered list of employees matching the string and highlighting the most appropriate match.
Any ideas?
thanks
Hello all,
I have successfully implemented the @AutoComplete functionality to shortlist employees by the value entered in the linked Text field.
With a standard configuration of a Query Result control, where it is configured to display the name and employee ID, a search to short list can be done by either data type, but with the @AutoComplete feature, it only returns results by the employee's name, not by their employee ID.
Thanks Jeff.
This is how I have it currently configured:
Prompts:
Prompts Outputs:
Prompts Criteria:
Should I add another Text field in the Prompts for the Employee ID, preceded with another @AutoComplete field and then add an additional criteria to the Query Results for Display Name and set the Token to the Employee ID field?
Not sure if this is a bug or some weird limitation of my environment...
I added the @DatePicker to my AROs that have a DatePicker control, but found that the control still had both date and time icons displayed.
I had to change the control to some other type, save the ARO, then change the control back to a DatePicker for it to work properly.
Yet, changing existing Text controls using @ToUpperCase or @ToLowerCase worked immediately.
Has anyone else experienced this with the existing DatePicker controls on their AROs?
Resolved my own issue.
After adding @DatePicker lines in the Prompts, I omitted to move them to the correct positions in the Layout.
Moved and working as they should have.
I try to user @Jeff_Lang @AddDataMergeProperty manual but it don't works.
I was thinking for another solution to create 50 groups (according to Departments) with CI scoping but I think that this decrease portal performance.
Hi @Jeff_Lang , any eta on the new version? Thanks!
But when I display prompt without @Autocomplete, the location information are displaying?
Any idea how to fix it?
Autocomplete empty related class values
Prompt with shows related class values
Is it possible to do the following:
1. I have a Query Result that shows some CI´s
2. When i select one of the objects, i want to have a textfield that fills information with one of the properties of the selected CI, for example, use Active Directory User as Query Result, when i choose one of the users, i want the textfield to show the Street Address of the user.
--------------------
NOTE: The created elements for both the Autocomplete and Multiselect fields have been moved within the code.
These fields were moved to fix issues when trying to set when to show/hide.
If you previously targeted these fields you may need to update other code to reflect the change in positioning.
Changed back to using "drawerCreated" to kick off script, instead of the previous "sessionStorageReady"
Fixed some issues which may have caused the DataMerge property not to work correctly on a @AutoComplete
The ARO page is now monitored to ensure hidden fields that have been replaced are set to not required if hidden and required if set to required and visible
Added new events which can be subscribed to
Events available to be subscribed to:
-------------------------------------
A number of events have been added, so that you can use these in other scripts to ensure your scripts do not start too early/late
To subscribe to these events in your scripts use "app.events.subscribe('EventName',FunctionToCall)
The following events are available:
ROToolBoxStart : activates as the toobox starts it's processing
ROToolBoxSHCStart : activates just before it starts to process the Show/Hide Criteria options
ROToolBoxSHCDone : activates just after it finishes processing the Show/Hide Criteria options
ROToolBoxACMSStart : activates just before starting to process any @AutoComplete and @MultiSelect options
ROToolBoxACMSDone : activates just after finishing all @AutoComplete and @MultiSelect processing
ROToolBoxDone : activates once all toolbox actions have completed and the page has been completely rendered
Additional @ elements
@PreventSelectSelf
------------------
When added before a query picker (directly before the query picker, not before the @AutoComplete/@MultiSelect) this will
remove any returned entries that match with session.user.Id. thus preventing the current user from selecting themselves
from the list, useful for selecting approvers etc to they cannot select themselves to approve.
@addAttr
--------
When added before any standard field, it will add the attribute to the field setting it to the value provided.
EG. @addAttr {"Name": "UCD", "Value": "JobTitle"}
This can be useful to set up attributes for other scripts to use/determine exactly which field to select/modify etc.