• Craig Jones
  • NEWBIE
  • 50 Points
  • Member since 2013

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 7
    Replies

Hi,

 

I have a junction table that stores a Product custom object and the Account it is linked to. I initially implemented a select list on my custom visualforce page, which would list all the accounts linked to the Product selected. However, it now seems that a Product can have hundreds of accounts linked to it, which means my select list is huge!

 

Is there another way that anyone can recommend to display the accounts? Initially i was hoping to do something like the lookup field, or another search mechanism.

 

Any advice on implementation for this?

 

Thanks in advance,

Craig

Hi,

 

For example....

 

I have a custom visualforce page that shows data from a custom object (Product). This product has accounts linked to it and when you click one of the accounts displayed on the screen i want a dialog box to appear with the Account information within it (but hosted in a seperate visualforce page - or what looks like a visual force page) within it.

 

Is this possible?

 

Thanks,

Craig

Hi, 

 

Im struggling at getting some data from an query i run.

 

My set up is:

 

Product__c: name, description

 

JuncProdToAccount: Product__c, Account (these two links are master-detail relationships)

 

Account (standard salesforce account object)

 

And i run the query below:

 

Select Id, Name (Select Account__r.Name from JuncProdToAccount__r) from Product

 

I was then hoping to display the Product Name and the Account Names it is linked to in a visualforce page... but i am really struggling at getting the Account.Name out of the query.

 

 

I want to show for Example:

 

Product1 : Account1, Account2

Product2 : Account1

Product3 : Account2, Account 3

 

Thanks for any help!

I have 2 object that are related to each other, via a Junction object, and i want to get data from them both in one query.

 

My set up is:

 

Product__c: name, description

 

JuncProdToAccount: Product__c, Account (these two links are master-detail relationships)

 

Account (standard salesforce account object)

 

I am wanting to write some SOQL that will get all Products... and if there is a link to the Junction table, return the Account.Name of the linked Account.

 

Is this possible in one query?

 

 

 

Hi, 

 

My company have asked me to look into producing an integrated app on Salesforce to be available on the appexchange. We offer a service that we host on our own servers and would only need to create a UI in Salesforce that calls out to our restful services for the data and business logic, etc. (havent fully looked into how to do the solution but this is the idea).

 

I have read documents on creating an app, packaging it, having it reviewed and publishing it... but i cant see anything that tells me what Salesforce are going to charge me to put my app on the appexchange (it would be a free app to users).

 

My company have Salesforce licenses and developer force orgs.

 

I have seen the term ISVForce partner (and licensing)??

 

If anyone would be able to summarise or point me towards documents / resources, that would be great.

 

Thanks,

Craig

Hi,

 

I am using a enhancedList within a custom visualforce page i have created. I wanted to amend the edit links (which show next to each of them items listed). Currently we you click the edit button it takes you to the default object page in salesforce to edit the object.

 

Could someone please give some pointers on the best way to override this so i can send to another custom visualforce page (such as /apex/MyObjectEdit - a page i want to use to edit my custom object) and load the item and its data?

Hi i was implementing a enhancedList for my custom object called 'Standard__c'. I wanted to hide the 'New Standard' button that automatically appears at the top.

 

I have tried a similar thing with listViews (which also has the button) and it worked.

 

In both cases the button is made up from an input element with the name attribute set to 'assign'. The following jQuery worked for listViews, but not enhancedList:

 

j$("input[name=assign]").hide();

 

The only difference i can think of, is that the listView buttons are in a span:

 

<span><input value="New Standard" class="btn" name="new" onclick="navigateToUrl('https://na14.salesforce.com/a09/e?retURL=https%3A%2F%2Fc.na14.visual.force.com%2Fapex%2FlistStandards%3Fcore.apexpages.devmode.url%3D1','LIST_VIEW','new');" title="New Standard" type="button"></span> <span><input value="Change Owner" class="btn" name="assign" onclick="this.form.action = 'https://na14.salesforce.com/_ui/core/customentity/CustomEntityDataTemplateMassAction?retURL=https%3A%2F%2Fc.na14.visual.force.com%2Fapex%2FlistStandards%3Fcore.apexpages.devmode.url%3D1&amp;from=&amp;ent=01Id0000000o09n'" title="Change Owner" type="submit"></span> 

 

Whereas on the enhancedList, the button is within a list. Do i need to be handling the list elements also?

 

<div class="listButtons" id="j_id0:j_id5_listButtons">
<ul class="piped">
<li><input value="New Standard" class="btn" name="new" onclick="navigateToUrl('https://na14.salesforce.com/a09/e?retURL=https%3A%2F%2Fc.na14.visual.force.com%2Fapex%2FlistStandards%3Fcore.apexpages.devmode.url%3D1','LIST_VIEW','new');" title="New Standard" type="button"></li>
<li><input value="Change Owner" class="btn" name="assign" onclick="this.form.action = 'https://na14.salesforce.com/_ui/core/customentity/CustomEntityDataTemplateMassAction?retURL=https%3A%2F%2Fc.na14.visual.force.com%2Fapex%2FlistStandards%3Fcore.apexpages.devmode.url%3D1&amp;from=&amp;ent=01Id0000000o09n'" title="Change Owner" type="submit"></li>
<li class="lastItem"><input id="j_id0:j_id5_refresh" src="s.gif" href="javascript&colon;void(0)" onclick="javascript&colon;ListViewport.instances['j_id0:j_id5'].refreshList()" class="btn refreshListButton" title="Refresh" type="button"></li>
</ul></div>

 

Hi,

 

I have been following a jQuery + visualforce tutorial but it seems the ready function is not firing. The basic code in the example below creates two links. On clicking the first link an alert should pop up that is defined within the ready function. On clicking the second link an alert should pop up that has been defined as a seperate function.

 

The first link does not fire the alert (set up through the jQuery ready function).

The second link does fire the alert (set up in a standard function).

 

I have added the jQuery resource to my salesforce environment by following examples, but i am wondering if i have missed a step?

 

<apex:page >
<apex:includeScript value="{!URLFOR($Resource.jQuery, '/js/jquery-1.8.3.js')}"  />
<apex:includeScript value="{!URLFOR($Resource.jQuery, '/js/jquery-ui-1.9.2.custom.js')}"  />
<apex:stylesheet value="{!URLFOR($Resource.jQuery, '/css/ui-lightness/jquery-ui-1.9.2.custom.css')}"  />

     <script type="text/javascript">
        j$ = jQuery.noConflict();
 
        j$(document).ready(function(){
            j$("#ninjaLink").click(function() {
                alert("NINJA STAR TO FACE!!!!!");
            });
        });
        
        function showMessage() {
            alert("NINJA KICK TO FACE!!!!!");
            return false;
        }
        
     </script>        
 
    <a id="ninjaLink" href="">NINJA STAR ATTACK!</a>
    <br/>
    <br/>
    <a id="ninjaLink2" href="" onclick="showMessage()">NINJA KICK ATTACK!</a>
 
</apex:page>

 

Thanks for any support,

Craig

 

 

 

Hi,

 

I have a junction table that stores a Product custom object and the Account it is linked to. I initially implemented a select list on my custom visualforce page, which would list all the accounts linked to the Product selected. However, it now seems that a Product can have hundreds of accounts linked to it, which means my select list is huge!

 

Is there another way that anyone can recommend to display the accounts? Initially i was hoping to do something like the lookup field, or another search mechanism.

 

Any advice on implementation for this?

 

Thanks in advance,

Craig

Hi, 

 

Im struggling at getting some data from an query i run.

 

My set up is:

 

Product__c: name, description

 

JuncProdToAccount: Product__c, Account (these two links are master-detail relationships)

 

Account (standard salesforce account object)

 

And i run the query below:

 

Select Id, Name (Select Account__r.Name from JuncProdToAccount__r) from Product

 

I was then hoping to display the Product Name and the Account Names it is linked to in a visualforce page... but i am really struggling at getting the Account.Name out of the query.

 

 

I want to show for Example:

 

Product1 : Account1, Account2

Product2 : Account1

Product3 : Account2, Account 3

 

Thanks for any help!

I have 2 object that are related to each other, via a Junction object, and i want to get data from them both in one query.

 

My set up is:

 

Product__c: name, description

 

JuncProdToAccount: Product__c, Account (these two links are master-detail relationships)

 

Account (standard salesforce account object)

 

I am wanting to write some SOQL that will get all Products... and if there is a link to the Junction table, return the Account.Name of the linked Account.

 

Is this possible in one query?

 

 

 

Hi i was implementing a enhancedList for my custom object called 'Standard__c'. I wanted to hide the 'New Standard' button that automatically appears at the top.

 

I have tried a similar thing with listViews (which also has the button) and it worked.

 

In both cases the button is made up from an input element with the name attribute set to 'assign'. The following jQuery worked for listViews, but not enhancedList:

 

j$("input[name=assign]").hide();

 

The only difference i can think of, is that the listView buttons are in a span:

 

<span><input value="New Standard" class="btn" name="new" onclick="navigateToUrl('https://na14.salesforce.com/a09/e?retURL=https%3A%2F%2Fc.na14.visual.force.com%2Fapex%2FlistStandards%3Fcore.apexpages.devmode.url%3D1','LIST_VIEW','new');" title="New Standard" type="button"></span> <span><input value="Change Owner" class="btn" name="assign" onclick="this.form.action = 'https://na14.salesforce.com/_ui/core/customentity/CustomEntityDataTemplateMassAction?retURL=https%3A%2F%2Fc.na14.visual.force.com%2Fapex%2FlistStandards%3Fcore.apexpages.devmode.url%3D1&amp;from=&amp;ent=01Id0000000o09n'" title="Change Owner" type="submit"></span> 

 

Whereas on the enhancedList, the button is within a list. Do i need to be handling the list elements also?

 

<div class="listButtons" id="j_id0:j_id5_listButtons">
<ul class="piped">
<li><input value="New Standard" class="btn" name="new" onclick="navigateToUrl('https://na14.salesforce.com/a09/e?retURL=https%3A%2F%2Fc.na14.visual.force.com%2Fapex%2FlistStandards%3Fcore.apexpages.devmode.url%3D1','LIST_VIEW','new');" title="New Standard" type="button"></li>
<li><input value="Change Owner" class="btn" name="assign" onclick="this.form.action = 'https://na14.salesforce.com/_ui/core/customentity/CustomEntityDataTemplateMassAction?retURL=https%3A%2F%2Fc.na14.visual.force.com%2Fapex%2FlistStandards%3Fcore.apexpages.devmode.url%3D1&amp;from=&amp;ent=01Id0000000o09n'" title="Change Owner" type="submit"></li>
<li class="lastItem"><input id="j_id0:j_id5_refresh" src="s.gif" href="javascript&colon;void(0)" onclick="javascript&colon;ListViewport.instances['j_id0:j_id5'].refreshList()" class="btn refreshListButton" title="Refresh" type="button"></li>
</ul></div>

 

Hi,

 

I have been following a jQuery + visualforce tutorial but it seems the ready function is not firing. The basic code in the example below creates two links. On clicking the first link an alert should pop up that is defined within the ready function. On clicking the second link an alert should pop up that has been defined as a seperate function.

 

The first link does not fire the alert (set up through the jQuery ready function).

The second link does fire the alert (set up in a standard function).

 

I have added the jQuery resource to my salesforce environment by following examples, but i am wondering if i have missed a step?

 

<apex:page >
<apex:includeScript value="{!URLFOR($Resource.jQuery, '/js/jquery-1.8.3.js')}"  />
<apex:includeScript value="{!URLFOR($Resource.jQuery, '/js/jquery-ui-1.9.2.custom.js')}"  />
<apex:stylesheet value="{!URLFOR($Resource.jQuery, '/css/ui-lightness/jquery-ui-1.9.2.custom.css')}"  />

     <script type="text/javascript">
        j$ = jQuery.noConflict();
 
        j$(document).ready(function(){
            j$("#ninjaLink").click(function() {
                alert("NINJA STAR TO FACE!!!!!");
            });
        });
        
        function showMessage() {
            alert("NINJA KICK TO FACE!!!!!");
            return false;
        }
        
     </script>        
 
    <a id="ninjaLink" href="">NINJA STAR ATTACK!</a>
    <br/>
    <br/>
    <a id="ninjaLink2" href="" onclick="showMessage()">NINJA KICK ATTACK!</a>
 
</apex:page>

 

Thanks for any support,

Craig