• nitesurfer
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 6
    Replies

I have an issue with an alternative to Picklists.  Does anyone know why when I point to a custom object via a relationship custom field, the lookup only show records I own?   If you happen to know the name of another reference and use the wilcard it will show, but if you just have a blank search it does not return everything.  Any clues?

 

An example -- when querying thru the API you can see I have 8 records:

 IdName
1a0580000005y0X3AAIPractice Template
2a0580000005xlqVAAQCRM Implementation
3a0580000005xlqWAAQWeb Design
4a0580000005xlqXAAQIntegration Project
5a0580000005xlqYAAQNew ERP Rollout
6a0580000005xlqZAAQBus Plan-Sales Logix
7a0580000005xlqaAAANew ERP Rollout 2
8a0580000005y0XIAAYHourly Template


However when I press the thumbtack and the Pop-up comes up I can only see six.

SFDC Relationship link

 Note that Hourly and Practice are missing from the list.

 

These two will show up if you enter a portion of their names with the wildcard to the Search Filter like below,

 

or 

 

 

How do I get it to return everything?

 

David

 

I have an issue with an alternative to Picklists.  Does anyone know why when I point to a custom object via a relationship custom field, the lookup only show records I own?   If you happen to know the name of another reference and use the wilcard it will show, but if you just have a blank search it does not return everything.  Any clues?

 

An example -- when querying thru the API you can see I have 8 records:

 IdName
1a0580000005y0X3AAIPractice Template
2a0580000005xlqVAAQCRM Implementation
3a0580000005xlqWAAQWeb Design
4a0580000005xlqXAAQIntegration Project
5a0580000005xlqYAAQNew ERP Rollout
6a0580000005xlqZAAQBus Plan-Sales Logix
7a0580000005xlqaAAANew ERP Rollout 2
8a0580000005y0XIAAYHourly Template


However when I press the thumbtack and the Pop-up comes up I can only see six.

SFDC Relationship link

 Note that Hourly and Practice are missing from the list.

 

These two will show up if you enter a portion of their names with the wildcard to the Search Filter like below,

 

or 

 

 

How do I get it to return everything?

 

David

 

I can't install our package into our test org. Does anyone know how to handle this? I'd like to be able to fix it without wrangling too much with Support...

 

I have tried installing the package several times yesterday and today - and I have tried to isolate the problem within the objects. I know what object is causing the problem, but not what to do. The object has installed with no problem as a different version. (From the discussion boards, it looks like there is a known issue with installing apps in an org where they were installed (and removed) before - but no one says how to fix it in the org without Support.)

The error message I get is: "Your requested install failed. Please try this again. None of the data or setup information in your Salesforce organization should have been affected by this error. If this error persists, contact Support through your normal channels and reference number: 1525493615-16962 (717204977)"

 

I filed a customer support case: #02400539.

Code:
<—xml version="1.0" encoding="utf-8"–>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
 xmlns:salesforce="com.salesforce.*"
 applicationComplete="login();">

<mx:DateFormatter id="dateform" formatString="MM"/>
<mx:NumberFormatter id="numform" precision="0"/>

<mx:Script>
 <![CDATA[
  import flash.external.ExternalInterface;
  import com.salesforce.results.QueryResult;
  import mx.collections.ArrayCollection;
  import com.salesforce.AsyncResponder;
  import com.salesforce.objects.LoginRequest;
  import mx.controls.dataGridClasses.DataGridColumn;
  private function login():void {
   apex.login( new LoginRequest({
    server_url : this.parameters.server_url,
    session_id : this.parameters.session_id,
    callback : new AsyncResponder(render)
    })
    );
  }
  private function render(result:Object):void {
   var currId:String = ExternalInterface.call("getID");
   apex.query("Select Amount, CloseDate, OwnerId from Opportunity where AccountId='{!Account.Id}' and Probability=100",
     new AsyncResponder(
     function (qr:QueryResult):void
     {
      var month:int = 0;
      var x:int = 0;
      var amt:Array = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0);
      var name:Array = new Array(" "," "," "," "," "," "," "," "," "," "," "," "," ");
      var months:Array = new Array("0","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
      var ar:ArrayCollection = new ArrayCollection();
      values.dataProvider = ar;
      for(var j:int=0;j<qr.records.length;j++) {
       month=numform.format(dateform.format(qr.records[j].CloseDate));
       amt[month]+=qr.records[j].Amount;
       apex.query("Select Name from User where Id='"+qr.records[j].OwnerId+"'",
       new AsyncResponder(
       function (qr2:QueryResult):void
       {
        name[x]=qr2.records[0].Name;
        x++;
       },
       function (fault:Object):void {}
       ));
      }
      ar=createArray(months, amt, name, ar);
     },
     function (fault:Object):void {}
  ));
 }
 private function createArray(months:Array, amt:Array, name:Array, ar:ArrayCollection):ArrayCollection {
  for(var i:int=1;i<13;i++)
  {
   ar.addItem( {Month:months[i], Amount:amt[i], Name:name[i]});
  }
  return(ar);
 }
 ]]>
</mx:Script>

<salesforce:Connection id="apex" />
 <mx:ColumnChart x="118" y="46" id="values">
  <mx:series>
   <mx:ColumnSeries displayName="Opp Amounts" yField="Amount"/>
   <mx:ColumnSeries displayName="Owner" yField="Owner"/>
  </mx:series>
 </mx:ColumnChart>
 <mx:Legend dataProvider="{values}"/>
 
</mx:Application>

I'm learning how to code simple Flex graphs, and I'm trying to push all my information into the ArrayCollection ar. The problem is that, regardless of what method I try, I'll put a breakpoint on the line return(ar) and a breakpoint on the line x++ under my second AsynchResponder. Inevitably, the return(ar) function will activate PRIOR to the breakpoint for x++, which means none of my names are initialized before the ArrayCollection is created. How does one 'wait' for all the data to be returned?
 


Message Edited by MattL on 01-28-2008 11:38 AM
  • January 25, 2008
  • Like
  • 0
   Anyone know a way to deploy my custom objects to Production with Eclipse?
Is this possible through Eclipse? Or are we forced to set them up manually? 

I've also created and tested Email Templates in my development environment and would like to deploy them to production. Is there a deployment method for this?
Or do the email templates need to be created manually in each environment?

thanks,
ken


Message Edited by ken_dev on 01-18-2008 07:52 AM
Hi,
 
I am interested to know if the following can be packaged and uploaded (to be part of the downloadable app), and if so how:
 
1) Workflow rules, tasks, alerts
2) Email templates
3) Customized page layouts of standard objects (such as Opportunity)
4) New profiles created to specify access/security settings on custom/standard objects - I was able to upload Profile settings but while mapping the setting to an existing profile on the downloading account, does all local settings of that local profile get overwritten by the mapped profile setting? If not how would this work?
 
I would also like to know about the recommendation regarding custom app packaging - should the package have only the custom app which in turn should be associated to all custom items (such as objects, links, s-controls, tabs) or should each of these also be included individually in the package?
 
I would greatly appreciate information on the same.
 
Thanks,
VSP.
  • October 13, 2006
  • Like
  • 0