I am trying to query the child record using the parent record id. I understand that we have to use the child relation name in the inner query to get the child records.  select id, (select id from child_relationshipname__r ) from parentobjt__c   In my case I use the same way to query but I get the error :  ERROR at Row:1:Column:28 Didn't understand relationship 'cyx__r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.   I am not sure why it is throwing error I doubled checked whether the child relationship name is correct.  select id, (select id from  namespc.Impacted_Products__r) from MC_Product_Complaint__c
I am trying to create an Apex Trigger that performs a Rollup from a custom object to Contacts.   Here is the error that I am receiving:      Didn't understand relationship 'Assignments__r' in FROM part of query   call. If you are attempting to use a custom relationship, be sure to   append the '__r' after the custom relationship name. Please reference   your WSDL or the describe call for the appropriate names.   The child relationship name is Assignments.  Below is the code:      trigger RollupActiveAssigmentLevelsToContact on pse__Assignment__c (after insert, after update, after delete) {      set&lt;Id&gt; set_id = new set&lt;Id&gt;();      List&lt;Contact&gt; con_list = new List&lt;Contact&gt;();      if(trigger.isInsert || trigger.isUpdate){         for(pse__Assignment__c myAssignment : trigger.New) {             set_id.add(myAssignment.pse__Resource__c);         }     }     else if(trigger.isDelete){         for(pse__Assignment__c myAssignment : trigger.Old){             set_id.add(myAssignment.pse__Resource__c);         }     }      if(trigger.isAfter &amp;&amp; (trigger.isInsert || trigger.isUpdate || trigger.isDelete)){         con_list = [SELECT id,Total_Levels__c, (SELECT id,name FROM Assignments__r WHERE Active_Assignment__c = TRUE) FROM Contact WHERE id IN :set_id];          for(Contact con : con_list){             if(con.Assignments__r.size()&gt;0)                 con.Total_Levels__c = con.Assignments__r.size();             else                 con.Total_Levels__c = 0;         }         if(!con_list.isEmpty())         update con_list;     } }   Below is a snap of the Child Relationship name:
Possible Duplicate:             I want to add some shell scripts in my launcher as shortcuts..  They are located deep inside and i have to navigate to it every time to execute them...  I tried  link where the 2nd answers seems to solvee it but as said in comments neither can i find any option to add a launcher..  I guess it existed in 11.04 with a "+" button on launcher but i use 12.04.  So how do i get this working?? And i need those commands everytime for sure..! Some text lines are italicized with no spaces between words What's a good beginner resource to learn group theory? I want to change only the color (not font size, etc.) of all headings in my documents (\section, \subsection, \subsubsection, ...). I want to keep all other settings fixed.   Is there a way to do this? Rotate single PDF page when viewing I got a Latex document which renders fine, some content is rotated using the turn environment from the rotate package. Everything works like it should.  Except: It know that it is possible to display a single page in a pdf in another orientation. The document viewer then rotates this page when viewing. This would help the readers of my document to read the turned text.   How is this possible? Perhaps somehow using the pdfpageattr command?   Again: I do not to want to rotate the content, I just want to tell the PDF-Reader that it should rotate the page when displaying. For any triangle with sides $a$, $b$, $c$, show that $a^2b(a-b)+b^2c(b-c)+c^2a(c-a)\ge 0$ For any triangle with sides $a$, $b$, $c$, prove the inequality $$a^2b(a-b)+b^2c(b-c)+c^2a(c-a)\ge 0 .$$   This is IMO 1983 problem 6.  I tried substituting $a=x+y$, $b=y+z$, $c=z+x$ but well it doesn't help in any sense except wasting 3 pages that lead to nothing (please don't mind the joke). Using $a=2R\sin A$, $b=2R\sin B$, $c=2R\sin C$ also didn't lead to anything for me. Could you give me a hint for finding the proper substitution? How to apply multiple styles in WPF In WPF, how would I apply multiple styles to a FrameworkElement?  For instance, I have a control which already has a style.  I also have a separate style which I would like to add to it without blowing away the first one.  The styles have different TargetTypes, so I can't just extend one with the other. What is the use of percent signs (%) at the end of lines? (Why is my macro creating extra space?) I would like to be able to set a flag at the beginning of the main flag (say output) that tells if I want to produce a paper document or an electronic document.   Then I should check this flag to define or not empty pages, hypperref, oneside or twosides, etc.  How could I do that ? How can I list the contents of a .zip folder in c#? Inverse Laplace transform of $\frac{1}{s\sinh{c\sqrt{s}}}$ I have some questions.  I have to take the inverse Laplace transform of the given function below by residue theorem:   $\frac{1}{s\sinh{c\sqrt{s}}}$   where s is Laplacian variable and c is a real constant. Actually it has a very crowded numerator which I do not need to define. So far I know that it has a simple pole at s = zero and infinitely many poles at c√s = nπi  Questions:  1- What is the order of the poles at nπi? Is it 1/2?  2- At zero, what is the order? (Because to residue at zero, s also contributes)  3- What is the way of solving this question at nπi by residue theorem (without defining sinh function as exponential function)?  Thanks for any help. Who are the Steam Mascots? So with the Steam Summer Sale in full swing, I've finally taken notice of the Steam Mascots.  Judging by the latest background, the black one, at least, has a name: Cyl.  Do the other two have names as well? Are there only these three?   What's their story? In MLE for continuous rv, why is it ok to evaluate a pdf at a point? Whats the simplest way to edit and add files to "/var/www"? Having installed the web server is there a simple way to set a user able to use the graphic interface to copy files and directories to the local web server /var/www  I gave myself administrative privileges in Ubuntu but it still doesn't allow copies. Should I use "or" or "nor" in the following case? I wasn't forcing myself to say anything, or/nor trying to be funny.   "Or" sounds more grammatically correct to me. But "nor" has more Google results. So I'm confused. Proof that any self-complementary graph has to have $4k$ or $4k+1$ vertex, for some $k \in \mathbb N$ I would like to set my monitor's scale under 100%, but Win10 only lets me set it to 100% or higher. Why won't Windows let me do that? Is there any workaround to do that? I am aware of the fact that scaling below 100% will result in merged pixels. My son is 5 years old.   Over the last few months I have been observing some disturbing sexual behavior from my child.  He is rubbing his penis on  the bed or pillow. Sometimes he would get naked and rub very tightly and make some sounds of pleasure! Previously, I thought he was playing... but later I understood.   His father doesn't want me to scold him, but one day I was really surprised and shocked by one incident... when I was in deep sleep in the afternoon, I suddenly woke up and saw he had pulled up my skirt and trying to mount me! I was really shocked!  I'm really upset.  What should I do? After installing the latest Ubuntu I find that the icons in the applications folder (viz. /usr/share/applications), when opened in the Files application (Nautilus), come up as a blank page with a gear in the middle. If I try to open them I get a read only text box. To my understanding, "Control" can have two meanings in statistics.   Control group: In an experiment, no treatment is given to the member of the control group.  Ex: Placebo vs Drug: You give drugs to one group and not to the other (control),  which is also referred as "controlled experiment".  Control for a variable: Technique of separating out the effect of a particular independent variable. Some of the other names given to this techniques are, " accounting for", "holding constant", "controlling for", some variable.  For example: In a Football viewing study (like or not like),  you may want to take out the effect of gender as we think gender causes bias, that is, male may like it more than female.     So, my question is for point (2). Two questions:  How do you "control"/ "account for" variables, in general. What techniques are used? (In terms of regression, ANOVA framework).   In above example, does choosing male and female randomly constitutes control? That is, is "randomness" one of the techniques for controlling other effects?