Posts

Showing posts from May, 2015

c# - Tinyint as byte nhibernate -

i have table tinyint column in sql server 2008 r2 database, maps byte property in poco. the problem whenever run query clause on tinyint column using nhibernate, results in following sql... and cast(table0_.tinyintcolumn int)=@p1 i want know how rid of behaviour, because although query still works annoying , unnecessary, know of solutions or come across before? thanks. this seems bug in linq provider. of following queries: session.createquery("from foo tinyintcolumn = :b").setparameter("b", 1) session.queryover<foo>().where(x => x.tinyintcolumn == 1) session.query<foo>().where(x => x.tinyintcolumn == 1) ...only last 1 results in behavior experiencing. please open issue @ https://nhibernate.jira.com/

ios - transitionWithView animation for LandsCape view is weird? -

for viewcontrollers in application used landscape mode ie have changed orientation option landscape in inspector pane uiview of viewcontroller in xib. used animation mentioned here . as don't want keep many view controllers in memory, while showing next viewcontroller use load them rootviewcontroller of application key window [uiview transitionwithview:self.window duration:0.8 options:uiviewanimationoptiontransitionflipfromtop//but rotating left roght in portrait mode animations:^{ self.window.rootviewcontroller = currentview; } completion:nil]; my problem during animation phase instead of animating in landscape mode, view animated in portrait mode after animation ends view comes lanscapemode,

Select all tables having a class jQuery -

i tried: $("table .person-row") but selected elements under table class person-row. i need select table class person-row. try this: $("table.person-row") no spaces needed between table , class name .

c - For (*ptr)[], why is printf("%p",(void*)ptr+1) working but not printf("%p",ptr+1)? -

this question has answer here: pointer arithmetic void pointer in c 7 answers i fail understand error in following program.what have done i've assigned address of array of size 5 pointer ptr of type (*)[] .there no type mismatch , it's ok far goes.but want print value ptr+1 .as expected, shows error unspecified bounds.but misses me how same ptr+1 works fine when cast type void* . casting fine, before comes that,how can program calculate ptr+1 doesn't know bounds? how know whether move 5 elements ahead, or 8 elements ahead or elements ahead?why doesn't (void*)ptr+1 show same error ptr+1 ? to better highlight whole thing, have used pointer ctr explicitly declared of type (*)[5] instead of (*)[] . please give me technical reasons behind this.thank you. #include<stdio.h> int main(void) { int ar1[5]={1,5,3,8,9}; int (*ptr)[]=&ar

synchronization - Up-Sync and Down-Sync in Android? -

i working on point of sale application needs syncing mechanism. have magento database.the android device have sqlite local db. need sync in following way: local ------sync to---------------> server (up sync) server------sync to---------------> locals (down sync) there 2 things: 1) write-to (how take care??) for every change on local ,it directly sync local server 2) write-back (how take care???) whenever there change in server, need sync our locals server. so, task is: identify server update and sync our locals. there 4 devices running in store , have added 1 new customer through 1 device. want 3 other devices local db updated information customer , server updated. i heard background threads , run threads after time interval. best way don't affect application. big retail stores uses syncing process. used ? any appreciated. it depends on database structure... you have database in local (device) , on server now you need have timesta

Username and User ID in relational table -

i've seen many databases use both username (string) user_id (int) in user table, though both fine candidate keys themselves. what advantages of having both instead of having username? i'd figure using user_id find rows faster using username. question of performance? if entries indexed both fields shouldn't make difference use 1 or other search (even though if id incremental can make cool tricks using id obtain users created after date faster using creation_date non-indexed field, example). if need make list of users, shorter in bytes using ids. also purpose of "anonymity", though times it's trivial find associated username id. the important me can have more 1 username same id if want, , change username associated id, can useful, in facebook when started **embarrasingusernamehere** , grandma/gf/boss adds or, here in stackexchange, when **anotherembarrasignusername** , few years later wanna show how solving problems potential employer. so,

css - jQuery mobile show loader for custom loading process? -

i'm building web application rich in images , interactive elements. these reasons want display page once images loaded: $(document).on('pageinit', function(){ $('.ui-content').hide(); var imgs = $(".ui-content img").not(function() { return this.complete; }); var count = imgs.length; if (count) { imgs.load(function() { count--; if (!count) { $(".ui-content").show() } }); } else { $(".ui-content").show(); } }); i need either a) remove loader , replace own, or b) have loader stay until above function finishes. how either remove loader or keep until not needed? jquery mobile custom loader solution : working jsfiddle: http://jsfiddle.net/gajotres/vdgb5/ mobileinit event must initialized before jquery mobile initialized , after jquery. additional changes css must done work. first of all, need override default ui-loa

Kotlin Ternary Conditional Operator -

what equivalent of expression in kotlin? a ? b : c this not valid code in kotlin. in kotlin, if statements expressions. following code equivalent: if (a) b else c

c# - NuGet for Kendo.Mvc.dll -

i using asp.mvc , kendo web application. currently, i've code: public fileresult export([datasourcerequest]datasourcerequest request) { // } datasourcerequest available in kendo.mvc.dll . currently, got .dll this site. my question can dll nuget? thanks! there no nuget package kendo mvc. http://www.kendoui.com/forums/mvc/general-discussions/nuget-install-for-kendoui-mvc.aspx i afraid not plan create nuget version kendo ui asp.net mvc. reason such product not available under open source license.

java - Android ClassNotFoundException after including GaugeView library -

i trying use gauge view github sample application given library works perfect ! but when try include library project (properties > buildpath > projects > (add library project)), put view in layout , try reference view in code throws classnotfoundexception the following error through logcat: e/androidruntime( 542): fatal exception: main e/androidruntime( 542): java.lang.runtimeexception: unable start activity componentinfo{com.example.guagetest/com.example.guagetest.mainactivity}: android.view.inflateexception: binary xml file line #8: error inflating class org.codeandmagic.android.gauge.gaugeview e/androidruntime( 542): @ android.app.activitythread.performlaunchactivity(activitythread.java:1955) e/androidruntime( 542): @ android.app.activitythread.handlelaunchactivity(activitythread.java:1980) e/androidruntime( 542): @ android.app.activitythread.access$600(activitythread.java:122) e/androidruntime( 542): @ android.app.activitythread$h.handlemessag

vagrant - How do you get python Pandas to respect matplotlib arguments when running via IPython Notebook on a VM? -

i have installed pandas , ipython notebook, , running on vagrant box. when plotting , attempting create stacked bar graph on data frame, pandas ignores secondary arguments passed plot() function. i don't know whether due enviornment, version of pandas, or basic error in usage of plotting syntax. to replicate can follow these instructions install vagrant box running ipython. python libraries installed in route are: chef python cookbook python', '>= 1.2.2 requests==0.13.0","lxml","beautifulsoup4","fom","lettuce","boto","nose ipython-notebook python-scipy python-matplotlib python-pandas python-sympy no version numbers specified, assuming latest , greatest installed. after installation run ipython via ipython notebook --ip=192.168.33.11 -pylab inline . open notebook on ip, , try import pylab pl pandas import * x = dataframe({"alpha": series({1: 1, 2: 3, 3:2.5}), "beta": series

actionscript 3 - AS3 loop for positioning enemies -

i developing game functions space invaders. far have enemies spawning in loop this: for (var a=0; a<6; a++) { var bd:movieclip = new bdenemy(); enemy1[a] = bd; addchild(enemy1[a]); enemy1[a].x = 50 + math.random() * 700; enemy1[a].y = 50; } however when run game enemies spawn in parameters, overlapping of time. how can make each new enemy set x distance previous one, using array this? thanks. optimization before anything, should declare variable outside of loop avoid storing n variables. answer fill width you may store previous x in variable , ensure there minimal gap between each enemy. if want fill screen sidth enemies, no matter how many of them. var bd:movieclip; var previousx:uint=0; while (previousx + 150 < stage.stagewidth) { bd = new bdenemy(); enemy1.push(bd); addchild(bd); bd.x = previousx + 50 + math.random() * 100; bd.y = 50; } 50 minimal gap between 2 enemies. fixed amount if want have 6 enemi

c++ - How to have structs and pointers of a class as a type so you can pass them to functions? -

i trying write library in qt , contains 3 c++ classes. clsa should single instance per application (that why have instance function). clsa instantiate number of clsb depend on different states should keep pointers interact them later. clsc interface should implement developer later on , instantiated , pointers of them should passed clsa::init function. if developer wants use library he/she should write this: qlist<clsc*> l; clsc1* 1 = new clsc1(); l.append(one); clsc2* 2 = new clsc2(); l.append(two); //and on clsa* = clsa::instance(); a->init(l); and class clsa looks this: #include "clsb.h" #include "clsc.h" namespace mrz{ namespace core{ class clsa :public qobject { q_object public: static clsa* instance() { if(instance == null) return new clsalertmanager(); } //stores pointers in qmap void init(qlist<clsc*> _listofpointers); //line number 37 protected: static inline clsc* getc

iphone - what determines the initial value of CALayer.position? -

i have simple test app has 1 view, 1 view controller, , of instantiated via standard storyboard. when run app , pause on breakpoint in view controller can see following values set on view: self.view.layer.position = (cgpoint) (x=160, y=294) self.view.layer.frame = (cgrect) (origin=(x=0, y=20) size=(width=320, height=548)) self.view.layer.visiblerect = (cgrect) (origin=(x=0, y=0) size=(width=320, height=548)) i understand initial origin value frame (assuming value of 20 offset status bar), 160/294 value coming layer's position? i'm baffled one. this because calayer's position property relative anchorpoint . default, anchorpoint set (0.5, 0.5), represents center of layer's bounds. if you're trying perform basic positioning changes programmatically, i'd stay away view's layer property, since uiview has positioning properties of own.

c# - Can you configure log4net in code instead of using a config file? -

i understand why log4net uses app.config files setting logging - can change how information logged without needing recompile code. in case not want pack app.config file executable. , have no desire modify logging setup. is there way me set logging in code rather using app.config ? here simple config file: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configsections> <section name="log4net" type="log4net.config.log4netconfigurationsectionhandler, log4net" /> </configsections> <log4net> <appender name="rollinglogfileappender" type="log4net.appender.rollingfileappender"> <file value="logs\eventlog.txt" /> <appendtofile value="false" /> <rollingstyle value="size" /> <maxsizerollbackups value="5" /> <maximumfilesize value="1gb" /> <layou

session variables - PHP retrieving username of current user on page and then using it in a sql query -

i making website user has log in/create account , can type in terms search on twitter on own personal dashboard. to make sure logged in on every page have code: <?php session_start(); if (isset($_session['loggedin'])) { $_session["username"] = $username; echo "(you logged in)"; } else { echo "(not logged in)"; echo"<p><a href = 'login.php'>log in</a>"; echo"<p><a href = 'createaccount.php'>create account</a>"; exit(); } ?> in code try , take username logged in login page <?php session_start(); //connect database $db = mysqli_connect("number", "name", "password"); //msg if not connected if (!$db) { echo "sorry!i can't connect database"; } if(isset($_post['submit'])) { $username =$_post['username']; $password = $_post['password']; if(empty($username) or empty ($passwo

c# - Do xml comments persist in release mode? -

on 1 hand msdn says: the xml doc comments not metadata; not included in compiled assembly ... but on other hand, intellisense shows them in visual studio .net classes etc. (e.g. if hover on int32 .) to avoid misunderstandings: i'm referring these: /// <summary> /// these comments. /// </summary> void example() { //not these. } the xml documentation files separate dlls assembly. utf8 xml files. if happen in same folder dll document, visual studio pick them up. when compile, build process copy xml files build output folder automatically, if exist. none of contents of xml documentation ever gets put inside dll. if @ framework dll files (for example in "c:\program files (x86)\reference assemblies\microsoft\framework.netframework\v4.0") see loads of ".xml" files next them.

Gradle during its execution phase, adding and executing tasks dynamically -

i have requirement create , execute tasks during gradle's execution phase. currently, during build task determine , create multiple tasks add taskcontainer, using: tasks.add([name: "$taskname", type: "$tasktype"], {...}) and after tasks added execute them sequentially, using: tasks["$taskname"].execute() on first execution following error: > task artifact state cache (.../.gradle/1.5/taskartifacts) has not been locked. what doing wrong, , there better way dynamically add tasks during execution? all tasks , task dependencies must declared in configuration phase. can't added in execution phase. also, calling task.execute() isn't supported (and lead problems). task can depend on other tasks, cannot call them.

magento - MVC- when are controllers needed? -

i learning magento , mvc pattern , struggling grasp concepts. i'm trying understand controllers , when used. say, example, building interface purely exports data in background when event dispatched. if no views in use, true controller not needed? when controllers needed in mvc application? controllers part of mvc handles user input. takes data incoming request , distributes model layer structure (preferably - services). controllers have nothing rendering of output. closes should come influencing response should minor alteration of state view instance (for example, indicating view change output html json). neither controller responsible trafficking data between model layer , views.

jquery - tinyscrollbar: am i doing it right? -

i asking tinyscrollbar plugin. user fill textarea text/questions , scrollbar should update - doesnt :( perhaps let users call me instead :) here code: <div id="ques-wrap"> <div id="scrollbar1"> <div class="scrollbar"> <div class="track"> <div class="thumb"> <div class="end"></div> </div> </div> </div> <div class="viewport"> <div class="overview"> <textarea id="ques" class=" required " onfocus="if (this.value == 'ask question') {this.value = '';}" onblur="if (this.value == '') {this.value = 'ask question';}"type="text" name="question" value="ask question" size="30">ask question</textarea> </div> </div>

c# - GridView Item's "ItemClick event" is not compiled - due to the applied styles? -

here current style used (mostly template) <style x:key="panoramagridviewitemstyle1" targettype="gridviewitem"> <setter property="fontfamily" value="{staticresource contentcontrolthemefontfamily}"/> <setter property="fontsize" value="{staticresource controlcontentthemefontsize}"/> <setter property="background" value="transparent"/> <setter property="tabnavigation" value="local"/> <setter property="isholdingenabled" value="true"/> <setter property="margin" value="0,0,2,2"/> <setter property="template"> <setter.value> <controltemplate targettype="gridviewitem"> <border x:name="outercontainer"> <visualstatemanager.visualstategroups> <visualstategroup x:name=

Can RavenDB faceted search somehow break down a facet into sub-facets? -

i pretty new faceted search, kind of difficult me wrap head around this... here goes: pretend have item contains collection of subitem s , subitem has enum indicates status - have enabled faceted search on categories on both item , subitem using index definition: public class facetindexitems : abstractindexcreationtask<item> { public const string facetid = "facets/items"; public const string itemcategoryfacetname = "category"; public const string subitemcategoryfacetname = "subitems_category"; public facetindexitems() { map = items => item in items subitem in item.subitems select new { category = item.category, subitems_category = subitem.category }; } } and facetsetup : new facetsetup { id = facetindexitems.

linux - Standalone git binary on server with repository viewer -

i have server company. on server git not installed (and not in near future) . (on many free server hosting sites, git not installed) is there way use git binary without having git installed (therefore without needed dependencies in folder, standalone)? another server no option me. i want git web git repository viewer, of course need git binary working in folder, maybe there web git repository viewer integrated git binary. i tried: the server os linux 64 bit. have copied git binary local linux executable path on server. did not work. dependencies. these libraries needed: libz.so.1 libresolv.so.2 libpthread.so.0 libpcre.so.3 libc.so.6 they links libraries named: libz.so.1.2.7 libresolv-2.17.so libpthread-2.17.so libpcre.so.3.13.1 libc-2.17.so so renamed libraries , copied them server git binary lies. unfortunately git binary looks in /lib/linux-64-gnu... os folder libraries, not in same folder. have no idea try next. here solution: i

apache - Difference between apachectl and apache2 -

i have tried restart apache server, new this. curious know apache2 restart does? apachectl restart do? assuming on ubuntu or likes, man apache2 indicates following: in general, apache2 should not invoked directly, rather should invoked via /etc/init.d/apache2 or apache2ctl. fyi: apachectl alias of apache2ctl nowadays as best practice, advised issue sudo apache2ctl graceful the graceful argument, intended meaning, offers more stable way restart apache process letting child processes finish ongoing tasks before reloading configurations. cf man apache2ctl restart: restarts apache daemon sending sighup. graceful: gracefully restarts apache daemon sending sigusr1. if daemon not running, started. differs normal restart in open connections not aborted. here reference signalling sigusr1 opposed sighup.

Shutdown MSSQL server from perl script DBI -

i'm writing perl script in i've shutdown mssql server ,do operation , i've restart it.i know 1 way use netstat stopt service cann't use that. tried installing dbi , dbd::odbc module.i'm able connect , execute queries following code use dbi; $data_source = q/dbi:odbc:automation_wow64/; $user = q/pa/; $password = q/dce/; # connect data source , handle connection. $dbh = dbi->connect($data_source, $user, $password) or die "can't connect $data_source: $dbi::errstr"; $str=$dbh->prepare("select serverproperty('edition')"); $str->execute(); @row; while (@row = $str->fetchrow_array) { # retrieve 1 row print join(", ", @row), "\n"; } but after searching lot i cann't find query using whch can shutdown server . wanted know possible shutdown server sql query . found 1 mysql server $rc = $dbh->func('shutdown', 'admin'); at link http://metacpan.org/pod/dbd::mysql please te

jquery - Allow apostrophe in multiple email id field -

i have email field in form. user can enter more 1 email id on same time below format test1@test.com,test2@test.com test1@test.com, test2@test.com test1@test.com;test2@test.com test1@test.com; test2@test.com i did this. now want allow aj’’joy@css.com, ab’’coy@css.com, these kind of mail id also. tried not able find how allow apostrophe in email validation. can me? fiddle link : http://jsfiddle.net/wwrvy/8/ since comment answered question... that's because characters aren't apostrophes, they're weird floating comma things. nobody going enter those. use actual apostrophes , current regex fine: aj''joy@css.com, ab''coy@css.com

html - Can't validate editable h2 tag in the jquery -

i want change , validate value of html's h2 tag. have placed in div. current scenario when press h2 tag, automatically opens text box , can edit/clear value of text box. issue: when try empty text box value not generating error message @ run time. error message generates when click jsp file. here sample code. <div class="modal-header"> <h2 class="tc_pageheader editablename" id="detailsheader"></h2> </div> in case, when id value empty must display error message h2 tag cannot empty. want achieve validation using jquery (v1.9). since there isn't code go on, made mock of think you're trying do. demo: http://jsfiddle.net/nnkrv/ code: $(document).on('click', '#detailsheader', function() { $(this).replacewith("<input type='text' id='edit' value='" + $(this).text() + "' />"); }); $(document).on('focusout', '#edit',

php - mongo db date range query (between date range) -

i want find records between "startdate" & "enddate". record date "2013-05-22", "2013-05-20","2013-05-10","2013-05-05" etc. my fields in collection below : array ( '_id' => new mongoid("518221f16541b9980d000002"), 'userid' => '2d40981c83a37e758ced05dc325e40fa', 'kpiid' => 'f516ed1c59e6b310c47cdfc06abb17aa', 'dateopt' => 'customize', 'startdate' => '2013-05-02', 'enddate' => '2013-05-22', 'personaltarget' => '', 'assignedtarget' => '100000.00', 'singletargetamt' => 6666.6666666667, 'createdon' => '2013-05-02 13:51:05', 'updatedon' => '2013-05-02 13:51:05', 'distributionmethod' => 'manual', ) and query : array( "kpiid" => 'f516ed1c59e6b310c47cdfc06

Need regex to extract fields from string -

i need extract title, location, , price string this: 10' starcraft pop camper (newport) $5500 it should obvious which. however, there cases this: 10' (approx.) starcraft pop camper (drigg's town, pa) $5500 _ when use simple regex, can match first string correctly, not second: ^(?<title>.+?) \((?<area>.+?)\) \$(?<price>[\d]+)$ _ i'm pretty sure lookaheads/backreferences can handle this, don't know how. can me out explanation? (and maybe references easy read article on subject.) with 2 examples, best can suggest change lazy quantifier greedy quantifier title capturing group: ^(?<title>.+) \((?<area>.+?)\) \$(?<price>[\d]+)$ ^^ here effectively, pattern in area capturing group capture text inside last brackets () (providing followed text can matched price capturing group). the greedy quantifier in title consumes text possible, , force area capturing group take furthest

sql - Return a value from stored procedure classic asp -

as noob stored procedures, can't head around how classic asp (vbscript) page return value stored procedure. can write data table ok, it's retrieving stuff has me stuck. if use basic example. stored procedure should return count of records in table: create procedure [dbo].[sp_recordcount] select count(*) mytable what classic asp code (and changes sproc) need write able display value in browser? once understand how basic output such this, should hopefully(!) able build on knowledge. thanks. probably cleanest way modify stored procedure this: create procedure [dbo].[sp_recordcount] @countresult int output select @countresult = count(*) mytable ... , server-side code call , read value: dim cmd set cmd = server.createobject("adodb.command") set cmd.activeconnection = .... opened ado connection here cmd.commandtype = adcmdstoredproc 'be sure adcmdstoredproc constant set in scope, or hardcode relevant integer instead' cmd.commandte

Crystal Reports is retrieving a DateTime field just with Time data -

here situation. field i'm looking use in report tracks duration of tickets assignment particular group in company. stored in sql database datetime field starting 4000-01-01 00:00:00. when access field using crystal reports 2008 days datetime field displays time portion. when use browse data option shows values 0/0/0 00:00:00. does know of issue , potential work rounds? are directly using field in report or performing operations before using?

jquery - Scrollbars in jqgrid without data populated -

i trying use jqgrid create grid has no data has fixed size, columns width in total greater grids width, user can scroll through headers. user click button populate data grid. might sound similar answered question jqgrid vertical scrollbar however, in case, data there. not have data , want grid have scrollbars. noticed div class .ui-jqgrid-bdiv doesnt created until populate data. is bug in jqgrid? there workaround this? here fiddle http://jsfiddle.net/ynw3c/2630/ here code: javascript $(document).ready(function () { $("#results").jqgrid({ datatype: "local", height: 150, scroll:true, width:300, shrinktofit:false, colnames: ['inv no', 'date', 'client', 'amount', 'tax', 'total', 'notes'], colmodel: [ { name: 'id', index: 'id', width: 160, sorttype: "int" }, { name: 'invdate', index:

vb.net - Application developed in .Net Framework 4.5 retargeted to 3.5, but not working on 32 bit Windows XP. -

this question has answer here: winforms: not valid win32 application 1 answer i have developed small application in vb using visual studio 2012 , .net framework 4.5 , not work 32 bit windows xp machine. googled , retargeted .net framework 3.5 , rebuilt setup exe. again not working windows xp. when try run setup.exe says setup.exe not valid win32 application . if downgrade visual studio older version? if so, 1 works every windows os? have installed .net framework 3.5 on windows xp? (windows 7, vista & 8 contains .net framework 3.0/older)

asp.net mvc - Render.model in aspx -

i'm working on sample program show scheduler-net site: http://scheduler-net.com/ i have homepage developed controller. scheduler calender in controller. need place scheduler calender in homepage of homepagecontroller.cs i tried transfer control 1 action another, possible under same controller. according reference: how can transfer information of 1 view another? how can place scheduler calender developed 1 controller homecontroller. or possible avoid calendercontroller.cs , place in homecontroller itself. public actionresult index() { var scheduler = new dhxscheduler(this); //initializes dhtmlxscheduler scheduler.loaddata = true;// allows loading data scheduler.enabledataprocessor = true;// enables dataprocessor in order enable implementation crud operations return view(scheduler); } you render partial in view. put in views/home/index.cshtml: @{ html.renderaction("index", "schedulercontroller");

php - Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$'' -

i'm getting parse error: parse error, expecting `t_string' or `t_variable' or `'{'' or `'$'' in c:\wamp\www\...\taxonomy-activities.php on line 22 i have following code on line 22: <?php $tag_extra_fields_colour = get_option(activities_extras_colour); $activites_color=$tag_extra_fields_colour[$term->term_id]['activities_colourfield']; ?> <h3 style="color:<?php echo $activites_color ?>">activities</h3> what wrong here? wp custom taxonomy page, need display value of custom field. you should have put activities_extras_colour string like: <?php $tag_extra_fields_colour = get_option('activities_extras_colour');

php - While loops duplicating the results -

i have 2 rows in table , when while loop fetch in php duplicates results 5 times. can see creates table , there 2 rows seems strange duplicate results.. found answered here on stackoverflow saying add "distinct" on query , doesnt work on mine... <?php // sessão precisa ser iniciada em cada página diferente $id=null; session_start(); if (isset($_session['usuarioid'])) { $id = $_session['usuarioid']; } ?> <head> <link href="css/style.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="http://www.iconj.com/ico/7/5/75jqn04zq9.ico" type="image/x-icon" /> <title>verificar estado</title></head> <body> </div><?php //tentativa de estabelecer uma ligação à bd $connection = new mysqli('***', '***', '****', '****'); //verificar se ligação foi estabelecida

Crm 2011 - How to set a default form depending on attribute value (without using Javascript)? -

i have little requirement making me crazy: have 8 different forms contact entity. have pick list 8 options. idea based on option selected open contact record showing default particular form without using javascript in order avoid performance problems (each record has loaded twice). example: forms: form 1 form 2 form 3 pick list values - default form: form 1 form 2 form 3 if form 3(pick list value) selected then, next time open record, form 3 should displayed default. if form 1(pick list value) selected then, next time open record, form 1 should displayed default. i've trayed registering plugin @ systemform entity, in retrievefilteredforms message, updating userentityuisettings table , i've been able set "default" displayed every time records opened regardless last opened form. i've trayed registering plugin @ contact entity, in retrieve message, updating userentityuisettings table found crm consult