Posts

c# - CRM Access Team Plug-in -

i have requirement sending email when user added access team regarding opportunity, can't life of me plugin attach right message. have far tried using: associate - none addmembers - team addusertorecordteam - teamtemplate grantaccess - opportunity any appreciated thanks users , teams have n:n relationship in dynamics crm. means there intermediary entity shown below. type entity can found going settings=>customizations=>customize system=>entities=>team=>n:n relationships=>teammembership_association. here can seen relationship entity name in case "teammembership". structure n:n relationship: systemuser n:1 teammembership n:1 team knowing this, try registering plugin on create of teammembership.

java - Order in which values of an enum are constructed -

are there guarantees on order in values of enum constructed? for example, given enum myenum { a, b, c; static list<myenum> list = new arraylist<>(); myenum(){ list.add(this); } } would true list.get(0)==myenum.a , list.get(1)==myenum.b etc., or not necessarily? yes. quoting jls section 8.9.3 (emphasis mine): for each enum constant c declared in body of declaration of e, e has implicitly declared public static final field of type e has same name c. field has variable initializer consisting of c, , annotated same annotations c. these fields implicitly declared in same order corresponding enum constants , before static fields explicitly declared in body of declaration of e. an enum constant said created when corresponding implicitly declared field initialized. side note, code not compile since accessing static list inside initializer. can write instead: static list<myenum> list = new arraylist...

How to add units to Highcharts/Highmaps's last legend/coloraxis? -

i'd add units legend/coloraxis of heatmap. work piece of code: coloraxis: { stops: [ [0, '#c4463a'], [0.7, '#fffbbc'], [1, '#3060cf'] ], labels: { formatter: function () { return this.value + "km2"; } } } but put me "km2" @ each of numbers in legend/coloraxis. however, not sufficient, surely more clean, put once, @ end of last number. legend read: -4000, -2000, 0, 2000 km2 is possible within highcharts/highmaps put unit @ last coloraxis lable? otherwise, need put text item there specifying x/y coordinates, no? here fiddle . thanks hints. use following code : labels: { formatter: function () { if(this.islast) return this.value+"km2"; else return this.value; } } here is upd...

html - Margin hiding link in link behind div -

on our website have div holds content, @ top have image behind content div. div has slideshow has images plugin. in back-end i'm adding links , trying make slides clickable... the problem i've got reason 350px margin have above content box seems blocking link being clicked. this it's being added: #content.homepage { margin-top: 350px; } this slider adding: position: fixed; overflow: hidden; width: 100%; height: 908px; and style on link: display: block; left: 1544px; position: absolute; overflow: hidden; height: 100%; width: 1544px; top: 0px; z-index: 99; opacity: 0; transition-property: opacity; transition-duration: 700ms; transition-timing-function: linear; if make #content display:none; the link clickable. if remove padding, link clickable @ bottom of page, behind margin seems unclickable? the link http://www.applecoredesigns.co.uk the slider has z-index of -1, maybe part of original slider's functionality. changing higher value allo...

How can i Keep "Enter" in the current line when receiving information from the user in the console by c++? -

int plus(){ int = 0, b = 0; cin >> a; cout << "\b + "; cin >> b; cout<<" = "<<a + b; return a+b;} i want result printed on console in 1 line this: 1+2=3 don't use return this! suggest easy solution you. 3 variables. add c variable keep result. and: cout << <<"+" <<b << "=" << c <<endl; //i see have named function "plus" believe use way. hope helps!

ios - Activity Indicator with loop -

i'm working app has loop lot of work. loop generates bunch of numbers, , puts them in uitableview . want display uiactivityindicatorview when work going on. added activity indicator screen , centered it. @ first, wasn't getting activity indicator display @ all. realized because activity indicator running on same thread loop, , indicator never update while loop running. did research on how create background thread, , came this. self.progressindicator.startanimating() dispatch_async(dispatch_get_global_queue(dispatch_queue_priority_background, 0), { () -> void in var instance = 0; instance < numbercount!; instance++ { //lots of work done in here. items added //collection used populate table view. //takes around 10 seconds execute. } nsnotificationcenter.defaultcenter().postnotificationname("finishednumbers", object: nil) }); the activity indicator running on main thread, , pro...

Android studio change async task to a handler -

i need change application uses handler rather asynctask run fake download. i've been stuck on while. have tried using samples figure out think notification thread confuses me. doing head in. public class responsive extends appcompatactivity { // 5. declare , populate string array listview items (put directly underneath class declaration) private static final string[] list_items = new string[]{"one", "two", "three", "four"}; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_responsive); // 4. call setupbutton() , setuplistview() oncreate method. setupbutton(); setuplistview(); } @override public boolean oncreateoptionsmenu(menu menu) { // inflate menu; adds items action bar if present. getmenuinflater().inflate(r.menu.menu_responsive, menu); return true; } @override public boolean onoptionsitemselected(menuitem item) {...