• SteveAtGFI
  • NEWBIE
  • 25 Points
  • Member since 2011

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

While I know this used to work, and it's documented here:

 

http://www.salesforce.com/us/developer/docs/soql_sosl/Content/sforce_api_calls_sosl_with_data_category.htm

 

Searches on my article types like:

FIND 'error' IN ALL FIELDs RETURNING Patch_Fix_release__kav (Id, Title WHERE PublishStatus='online') WITH DATA CATEGORY All_Products__c AT All_Products__c

 

Are now giving me the error:

 

Error:

sObject type 'patch_fix_release__kav' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.

 

I've tried adding the __c to the type to no avail. I've even tried doing a simple query like this:

 

FIND 'error' IN ALL FIELDs RETURNING KnowledgeArticleVersion (Id, Title WHERE PublishStatus='online') WITH DATA CATEGORY All_Products__c AT All_Products__c

 

And this gives back basically the same error:

 

Error:

sObject type 'knowledgearticleversion' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.

 

Anyone have any idea what's going on?

Live Agent has a nasty habit of assigning "Automated Process" as the owner of chat transcripts when all else fails. In my org, it's some Random ID that doesn't exist anywhere in my user table (even after exporting the whole thing and searchign for the ID manually). I need to write a trigger that tests for this ID, but I don't want to enter the ID manually. Can anyone suggest a SOQL to find the User ID for automated process? Is it always the same?

I have a controller that returns a method which returns a list of strings. Ideally, i would like to call this method from visualforce and have it output all strings dynamically based on form input. Further, I'd like to take the output and turn it into a URL that leads to a link I could retrieve from another source.

 

Is there a way to output a list of strings with line breaks between them from a controller and have it rerender on demand?

 

We're currently doing queries for contact and case number. I don't see a way to auto-map entities in the dev guide, so our agents don't have to look them up manually. Is this possible?

I'm attempting to lookup existing case numbers for live agents if a customer provides a case number. I'm doing this in my code, but it doesn't appear to work. Is there something else I have to do? I've placed the code below and bolded the line where I believe this should be working?

 

<apex:page showHeader="false">
<!-- This script takes the endpoint URL parameter passed from the deployment page and makes
it the action for the form -->
<script type="text/javascript">
(function() { function handlePageLoad() {
var endpointMatcher = new RegExp("[\\?\\&]endpoint=([^&#]*)");
document.getElementById('prechatForm').setAttribute('action',
decodeURIComponent(endpointMatcher.exec(document.location.search)[1]));
} if (window.addEventListener) {
window.addEventListener('load', handlePageLoad, false);
} else { window.attachEvent('onload', handlePageLoad, false);
}})();
</script>

<h1>Pre-chat Form</h1>
<form method='post' id='prechatForm'>
    Last Name: <input type='text' name='liveagent.prechat.name' id='prechat_field' /><br />
    Email Address: <input type='text' name='liveagent.prechat:Email' /><br />
    Previous Case Number (if applicable): <input type='text' name='liveagent.prechat:CaseNumber' /><br />
    Product: <select name="liveagent.prechat.buttons">
        <option value="573C0000000Gmli">TestProduct</option>
    </select><br />

<!-- Creates an auto-query for a matching Contact record’s Email field based on the value of the liveagent.prechat:Email field -->
<input type="hidden" name="liveagent.prechat.query:Email" value="Contact,Contact.Email"/>
<input type="hidden" name="liveagent.prechat.query:CaseNumber" value="Case,Case.CaseNumber"/>
<input type="hidden" name="liveagent.prechat.save:Email" value="Email__c" />
<input type='submit' value='Request Chat' id='prechat_submit'/>
<style type="text/css"> p {font-weight: bolder } </style>
</form>
</apex:page>

 

I'm receiving the following error when trying to install SF into Juno x86:

 

Cannot complete the install because one or more required items could not be found.
  Software being installed: Force.com IDE 25.0.0.201206181021 (com.salesforce.ide.feature.feature.group 25.0.0.201206181021)
  Missing requirement: Force.com IDE 25.0.0.201206181021 (com.salesforce.ide.feature.feature.group 25.0.0.201206181021) requires 'org.eclipse.update.ui 0.0.0' but it could not be found

 

Anyone know what's wrong?

I have a page controlled by a controller that need to check if a case exists, and if it does, redirect. I'm calling:

 

 redirectPage = new PageReference('http://mypagehere.com');

 

from a constructor, but it does nothing unless I action it with a visualforce action. I don't really want to do this. What I want to have happen is for anyone that comes to the page and has a parameter that indicates a redirect to simply redirect. A la:

 

1. User tries to go to page with "http://myorg.com/mpage?case=1

2. Controller says "If case=1, redirect" in the constructor.

 

Is there no way to do this?

I have a form created in our organization we use for customer surveys. We currently use API 16.0, but we're looking to localize and one of the requirements is to use an apex:inputField that takes a localized public parameter from its controller for it's label. Unfortunately, inputfield only supports the label attribute on version 23.0+. Not a big deal, but when I switch to 23.0+ all of my selectRadio buttons display the value of the referenced field and then center the page. 

 

Is there a way to hide this so they don't display this field on the left? It's rather annoying.

I have several images stored in a zip file. I'm passing in a parameter to decide which one to display. Yet, I can't seem to get this to work:

 

<img alt="Chat Support" class="ssg-image-alignright" src="{!URLFOR($Resource.CSSimages, "{!Logo}")}" />

 

{!Logo} is the name of my image. i.e.:

 

MyImage.png.

 

The error I get is:

 

Description	Resource	Path	Location	Type
Save error: Element type "img" must be followed by either attribute specifications, ">" or "/>".	sc_kbsearch.component	/Sandbox/src/components	line 0	Force.com save problem

 Is there a way to get this to work the way I want? 

I use a dark color scheme with debian and it's made it difficult to see the eclipse IDE (force IDE). Is there no way to customize the color settings? Seems silly, as *every* other editor I use allows this.

I have a select that is a list of products. I'd like to make it to where I could select a product and the product I've chosen would be sent to my controller.

 

From what I've read, you can do this with a form submission. However, I want it to happen as soon as the user selects something. This is because I have a submission form I'm building that needs to have custom elements displayed, based on which product is selected.

 

Here's some code I have for the select:

 

           <th> {!productPrompt} </th>
                <td>
                     <apex:selectList id="products" value="{!products}" size="1" >
                        <apex:actionSupport event="onchange" rerender="thepage" />
                        <apex:selectOptions value="{!items}"/>
                    </apex:selectList><br/>
                </td>

 

And here's part of the controller:

 

public String[] products = new String[] {};  

public String[] getProducts() {
        return products;
    }
   
    public void setProducts(String[] products) {
        this.products= products;
    }
   

 

This seems like it should be simple, but it simply won't work. Any advice?

 

 

I've seen instances where people are embedding small videos uploaded as static resources to SalesForce, but how can you play larger videos? When we attempt to use an HTML 5 video tag, it simply shows a grey box. Anyone know what's up?

We have a custom controller based on the SalesForce sample controller that searches knowledge results and displays them by title. We'd like to have it to where you could see a part of the body previewed beneath the title. How can that be acheived? Is there a way to do a SOSL search from returned results? The body itself is HTML. How could you search within that and remove the HTML tags?

 

Any ideas?

I have a request to create a mechanism that allows users of our knowledge base (using SalesForce knowledge) to automatically filter their selection based on URL. Was hoping to post here and get some advice.

 

The current functionality is as follows:

 

1. User goes to KB

2. User chooses product from select

3. Search filters based on select using controller / ajax

 

Desired Functionality:

 

User can go to KB in the traditional way and search normally OR:

 

1. User goes to kb.com/?product=MYPRODUCT

2. Controller gets the product variable

3. VisualForce sets the select to the chosen product based on the URL

 

What I've done:

 

1. Controller takes the product variable as a string

 

What I need to know how to do:

 

I'd like, somehow, to change the select based on the variable in my controller. 

 

This has to be something simple. Any ideas?

 In the article management tab, the "new" button creates what looks like an AJAX/Jquery action that brings up a simple dialog box that lets you choose the article type and input a title. Here is a picture:

I'm receiving the following error when trying to install SF into Juno x86:

 

Cannot complete the install because one or more required items could not be found.
  Software being installed: Force.com IDE 25.0.0.201206181021 (com.salesforce.ide.feature.feature.group 25.0.0.201206181021)
  Missing requirement: Force.com IDE 25.0.0.201206181021 (com.salesforce.ide.feature.feature.group 25.0.0.201206181021) requires 'org.eclipse.update.ui 0.0.0' but it could not be found

 

Anyone know what's wrong?

I have a page controlled by a controller that need to check if a case exists, and if it does, redirect. I'm calling:

 

 redirectPage = new PageReference('http://mypagehere.com');

 

from a constructor, but it does nothing unless I action it with a visualforce action. I don't really want to do this. What I want to have happen is for anyone that comes to the page and has a parameter that indicates a redirect to simply redirect. A la:

 

1. User tries to go to page with "http://myorg.com/mpage?case=1

2. Controller says "If case=1, redirect" in the constructor.

 

Is there no way to do this?

I have a form created in our organization we use for customer surveys. We currently use API 16.0, but we're looking to localize and one of the requirements is to use an apex:inputField that takes a localized public parameter from its controller for it's label. Unfortunately, inputfield only supports the label attribute on version 23.0+. Not a big deal, but when I switch to 23.0+ all of my selectRadio buttons display the value of the referenced field and then center the page. 

 

Is there a way to hide this so they don't display this field on the left? It's rather annoying.

I use a dark color scheme with debian and it's made it difficult to see the eclipse IDE (force IDE). Is there no way to customize the color settings? Seems silly, as *every* other editor I use allows this.

I have a select that is a list of products. I'd like to make it to where I could select a product and the product I've chosen would be sent to my controller.

 

From what I've read, you can do this with a form submission. However, I want it to happen as soon as the user selects something. This is because I have a submission form I'm building that needs to have custom elements displayed, based on which product is selected.

 

Here's some code I have for the select:

 

           <th> {!productPrompt} </th>
                <td>
                     <apex:selectList id="products" value="{!products}" size="1" >
                        <apex:actionSupport event="onchange" rerender="thepage" />
                        <apex:selectOptions value="{!items}"/>
                    </apex:selectList><br/>
                </td>

 

And here's part of the controller:

 

public String[] products = new String[] {};  

public String[] getProducts() {
        return products;
    }
   
    public void setProducts(String[] products) {
        this.products= products;
    }
   

 

This seems like it should be simple, but it simply won't work. Any advice?

 

 

Hi Guys,

I have a page on my force.com sites. One of page has a problem:

 

try
            {
                chargeResult = ChargentSFA.TChargentOperations.ChargeOpportunity_Click(Order.Id);
            }
            catch(Exception ex)
            {
                ApexPages.addMessages(ex);
                errorMessage = ex.getMessage();
                return Page.OrderCreated;
            }

 

I invoked the Chargent package to do some payment operations here. That's fine. But if any exceptions occured, it was caught by the catch block. But there will be an error messages says: Authorization Required. Seems my exception was not caught. Actually, I checked the debug log, the exception was caught properly.

 

Anybody has seen the same errors? If an exception occured, no matter it was caught or not, it will be redirected to the "Authorization Required" page. Why?

Help!

  • November 18, 2009
  • Like
  • 0