410 likes | 519 Views
This is Halloween [Skin system]. Note: You have to blame Laurent Matheo for this :p. Witch Inc. Version 0.4. This, is , Halloween [Skin system]. Summary : Presenting users , Presenting skins per users , How the skin system is working ?
E N D
This isHalloween [Skin system] Note: You have to blame Laurent Matheo for this :p WitchInc Version 0.4
This, is, Halloween [Skin system] • Summary: • Presentingusers, • Presenting skins per users, • How the skin system isworking? • How canwe have several active skins at a same time? • SRDS, triggers and productorderingexamples Note: You have to blame Laurent Matheo for this :p WitchInc
We have four users: • Appadmin • Permission: Administrator, SRM admin, full permissions / rights / roles, • Company: Calbro Services, • Rolehere: Request designer, approver and so on, • Amelie • Permission: request user, • Company: Lucy In The SkyInc, • Thomas • Permission: request user, • Company: Calbro Services, • Paulette • Permission: request user, • Company: Calbro Services, • Whathappenswhen the three « request user » login at the verysame time? Presentingusers WitchInc
Request console [For Amelie] WitchInc
Request console [For Thomas] WitchInc
Request console [For Paulette] WitchInc
There is a default skin deliveredwith ITSM 7,7 b2, youcanfindit in « AR System Skins » How the skin system isworking? WitchInc
We know the tags concern SRM Request Entry because The type is « Tag » and « Type Identifier » is the same as the one wefind in form « SRS:SREC_ServiceRequestEntryConsole » (FormProperties), whichis « BMC_ENDUSER_SKIN »: How the skin system isworking? WitchInc
Let’stake an example of the toolbar, hereis the default skin: And the first skinnedversion using the defaults « Type Identifier »: As youcansee, colors have changed as well as icons. The names are prettystraightforward in the skin (HELP, HOME and so on): For the colorsas youcanseeitis a gradient (from light blue to deepblue), in factyoudefine the « start » and « end » color for a same « object »: Object property (tool bar example) WitchInc
The picturesneed to be « uploaded » first into ARS using « Developer Studio » as « Images », Thenyoucan use their « names » into the skin system: How to addpictures? WitchInc
As youcansee in the skin there are a lot of « references », but where do they come from? Usuallyyou have to mention or the fieldID or the object type: How to get the references? WitchInc
Actually all isstored in Developer Studio, as a « specialreference » for a resource. For example for the « Home » pictureyou have the followingproperty: Which matches the one declared in the skin of course: Misterysolved! How to get the references? WitchInc
Though as youcansee, I didn’t skin the « cart » icon. Why? Becausetherewas no mention of it in the skin… And hereiswhy, in developer Studio, its « skin » propertyisn’t set: So the easywayis to nameit of course « BMC_EU_ACTIONBAR_CARTLOGO » for example and save the view (note, of course youneed to convert the form to overlay, the view to overlay and the button to overlay): Then skin side, weneed to add a new property to the skin with the new image name: So why the cartwasn’tskinned? WitchInc
Thenyouneed to flush the mid-tier cache and emptyyour browser cache and then… The miracle of life! Before: After: The cartpicturechanged to the one I chose! So why the cartwasn’tskinned? WitchInc
The answeris in the skin, youcan affect a skin to groups or roles. There are two skins defined: One is for Halloween theme (« Generic TAG…. »), one the « green » theme (« Amelie Poulain… »). As youcansee, one has as group « grp_halloween » And the other « grp_amelie » But whyamelie, thomas, paulette don’tseethe same skin? WitchInc
Rules for Groups • In order to have several people seeingdifferent skins at the same time and without issues, somerules are to berespected: • BMC recommendsthat: • You create one group per skin (« group », NOT « support group »), • You assign the group to each user (in « user » form, NOT « people » form) that uses the skin, • Some « limitations » to beaware of: • an user shouldbemember of one « skin group » at a time, • The people must not have « Unrestrictedaccess » checked (in the « people » form), WitchInc
grp_halloween: • grp_amelie: Groups example WitchInc
Amelieismember of « grp_amelie »: • Thomas ismember of « grp_halloween »: • Paulette isn’tmember of any of those groups: Assigning a Group to an User WitchInc
Thosethree people (amelie, thomas and paulette) don’t have « unrestrictedaccess » checked in the « people » form: User / People and unrestrictedaccess WitchInc
As a result: • Ameliesees the skin « green » becauseshe’s a member of « grp_amelie », • Thomas sees the skin « halloween » becausehe’s a member of « grp_halloween », • Paulette sees the default blue skin becausesheisn’tmember of those groups, Groups and users end results WitchInc
SomeSRDsexamples WitchInc
Hire a monkey! WitchInc
If you enter in « Whatwouldbe the monkeyname? » question a first name of a people fromyourcompany, automatically the full nameappears in field « Hummmwait a minute… »: • Why? Hire a monkey! WitchInc
It happensbecausewedeclared a trigger in the « Service Request »: • Basicallywhathappensisthis: • Whenyou « Answer Question » (1), • And the question is « Whatwouldbe the monkeyname != NULL » (2) • An Action « Autofill » istriggered: (3) • There is a querydone in form « CTM:People » (4) • With qualification « First Name=Whatwouldbe the monkeyname? » (5) • Then on the result, wemap « Full Name » (fromCTM:People) to the question « Hummmmwait a minute…. » (6) Hire a monkey! [Trigger] WitchInc • Note: • For « Answer Question » trigger, the « Qualification » for « Action Details » ismandatory.
Anysugar? • Some questions onlyappeardepending of the results of previous questions (for example if youonlychoose a « cup of coffee ». Those are standard « conditions » definedwhencreating question in the service request: WitchInc
On this (creepy) Service request, youcancast a spell on your manager sohe has to raiseyou: • As youcansee, the question « Just to be sure, isthatyour manager name? » isalreadyfilled: Black Magic… • Why? WitchInc
This time it’s an « Open Form » trigger. Meaningthatitwillhappenwhen the service requestis « opened »: Black Magic [Open Form Trigger] • Basicallywhathappensisthis: • Whenyou « Open Form » (1), • An Action « Autofill » istriggered: (2) • There is a querydone in form « CTM:People » (3) • With qualification « Remedy Login ID=$USER$ » (the requester USERID) (4) • Then on the result, wemap « ManagersName » (fromCTM:People) to the question « Just to be sure… » (5) • Note: • For « Open Form » trigger, the « Qualification » for « Action Details » is not mandatory. WitchInc
Here « appadmin » was the requester, and « Bob Baxter » beeinghis « Manager », the manager’snameappears in the question: Black Magic [Open Form Trigger] WitchInc
Though if the requesteristoogreedy (Answering « yes!!! », youcanseethat the manager’snameisreplaced by hisown full name: Black Magic [AnswerQuestionTrigger] • If youchooseYes, a question alsoappears (« Don’tbetoogreedy pal! ») thisis a standard « question condition » as seenbefore. • Why? WitchInc
This time it’s an « Answer Question » trigger and wealreadysaw how itwasworking. It happenswhen the requester select « Yess!!!! ») • Basicallywhathappensisthis: • Whenyou « Answer Question », • And question « Do youwant to cast… » is « yes » • An Action « Autofill » istriggered: • There is a querydone in form « CTM:People » • With qualification « Remedy Login ID=$USER$ » (the requester USERID) • Then on the result, wemap « Full Name » (fromCTM:People) to the question « Just to be sure… » • Note: • « yes » is the answerbecauseit’s the question’sstored value Black Magic [AnswerQuestionTrigger] WitchInc • Note: • For « Answer Question » trigger, the « Qualification » for « Action Details » ismandatory.
Here an example of whatyoucan do with « Product ordering » Candy Store [Product Ordering] WitchInc
Here an example of whatyoucan do with « Product ordering » Candy Store [Product Ordering] WitchInc
In order to do that, youneed to use the Advanced Interface Form « Product Ordering AIF » in your SRD: • And as Process « Product OrderingProcess »: Candy Store [SRD] WitchInc
You alsoneed to createproduct in the productcatalogsotheycanbedisplayed in « productordering » and somerules have to befollowed: • Rules • Create a productwithTier 1 as « Hardware » or « Software », Candy Store [Products] WitchInc
Rules • It ishighlyrecommended to create a « Product CompanyAssoc » record with a companywhichisn’t « - Global – », Candy Store [Products] WitchInc
Rules • In this « Product CompanyAssoc » record you must set « Approved Product » and « Managed Product » to « Yes », Candy Store [Products] WitchInc
Once done, youcandefine the picture and text for the product in the « Product Ordering Console » • (Make sure you have the permission). Candy Store [Products / Details] WitchInc
Select an existingproduct and « edit » it: Candy Store [Products / Details] WitchInc
Select an existingproduct and « edit » it (text, picture…): Candy Store [Products / Details] WitchInc
You canalsocreate (sameway) a bundle. A bundle is a « package » of severalproducts: Candy Store [Products / Details] WitchInc
You canalsocreate (sameway) a bundle. You select the productsthatyouwant to beadded to the « bundle »: Candy Store [Products / Details] WitchInc