• mohaaron
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 10
    Replies

I'm wondering if anyone can tell me why I can't connect to http://localhost from Salesforce to a local rest interface. I've added "http://localhost" as a remote site but I still get an error when connectiong that says the connection failed. The localhost rest uri does work if I use Fiddler or via browser so why doesn't it work from Salesforce?

I'm in the process of building a native Salesforce app that needs to allow a remote site to connect using OAuth. What I would like to do is allow an administrator to authorize the connection from within the Salesforce app using either the web server flow or the user-agent flow. It seems as though OAuth only works if it's done from a external site. Does anyone know if it's possbile to do this from within Salesforce by and admin or some way I can use apex code to make this work?

 

Thank you

Is it possible to hide the header of the pageBlockTable component? If not, is there a way to add a inputText component to the header? I tried add the inputText and a commandButton to the header and only the commandButton is displayed on the screen. I also tried using the headerClass property to set the header to visibility:hidden but this also did not work.

 

<apex:page controller="MyController" >
<apex:form >
<br/>

<style>
.header { visibility:hidden; }
</style>

<apex:pageblock >

<apex:tabPanel id="tabPanel">
    <apex:tab id="tab1" label="Label 1">
        <apex:pageBlockTable id="table"  value="{!Users}" var="user" width="100%">
            <apex:column >
                <apex:facet name="header">
                    <apex:inputText id="searchText"/><apex:commandButton id="doSearch" value="Search"/>
                </apex:facet>
                <apex:outputText value="{!user.FirstName}"/>&nbsp;<apex:outputText value="{!user.LastName}"/>
            </apex:column>
        </apex:pageBlockTable>
    </apex:tab>
    <apex:tab id="tab2" label="Label 2"></apex:tab>
    <apex:tab id="tab3" label="Label 3"></apex:tab>
</apex:tabPanel>

</apex:pageblock>

</apex:form>  
</apex:page>

 

This may not be the appropriate place to ask this question but I don't know if there is a discussion board about the force.com IDE. The problem I'm having is that the force.com IDE I just downloaded and installed is missing the Run Tests option. The docs I find about running tests all say to right click on a test class and then go to Force.com > Run Tests. Unfortunately the Run Tests option is missing.

 

Does have any suggestions for fixing this problem?

 

Thank you

I'm wondering if anyone can tell me why I can't connect to http://localhost from Salesforce to a local rest interface. I've added "http://localhost" as a remote site but I still get an error when connectiong that says the connection failed. The localhost rest uri does work if I use Fiddler or via browser so why doesn't it work from Salesforce?

I'm in the process of building a native Salesforce app that needs to allow a remote site to connect using OAuth. What I would like to do is allow an administrator to authorize the connection from within the Salesforce app using either the web server flow or the user-agent flow. It seems as though OAuth only works if it's done from a external site. Does anyone know if it's possbile to do this from within Salesforce by and admin or some way I can use apex code to make this work?

 

Thank you

Is it possible to hide the header of the pageBlockTable component? If not, is there a way to add a inputText component to the header? I tried add the inputText and a commandButton to the header and only the commandButton is displayed on the screen. I also tried using the headerClass property to set the header to visibility:hidden but this also did not work.

 

<apex:page controller="MyController" >
<apex:form >
<br/>

<style>
.header { visibility:hidden; }
</style>

<apex:pageblock >

<apex:tabPanel id="tabPanel">
    <apex:tab id="tab1" label="Label 1">
        <apex:pageBlockTable id="table"  value="{!Users}" var="user" width="100%">
            <apex:column >
                <apex:facet name="header">
                    <apex:inputText id="searchText"/><apex:commandButton id="doSearch" value="Search"/>
                </apex:facet>
                <apex:outputText value="{!user.FirstName}"/>&nbsp;<apex:outputText value="{!user.LastName}"/>
            </apex:column>
        </apex:pageBlockTable>
    </apex:tab>
    <apex:tab id="tab2" label="Label 2"></apex:tab>
    <apex:tab id="tab3" label="Label 3"></apex:tab>
</apex:tabPanel>

</apex:pageblock>

</apex:form>  
</apex:page>

 

Hello,

 

I need a bit help here;

My web service is returning JSON response, e.g..

{"feed":{"row_count":4,"items":[{"msg":"<a class='keyword' href='http://abc.html'>Click to view email1 </a> XXX
<a class='keyword' href='http://abc.html'>send email1</a>.","interestlevel":"High","date":"3/20/2012 10:29:30 PM"},{"msg":"<a class='keyword' href='xyz.html'>Click to view email2</a>XXX<a class='keyword' href='http://xyz.com'>send email2 3</a>.","interestlevel":"Medium","date":"3/20/2012 10:02:33 PM".....}]}}

 

My requirement is, perform formatting on each value of JSON response  (e.g. date, interestlevel values needs to be formatted individually) and send all values individually in one go.

 

I tried to achieve this using List<String>, but I was unable to perform value formatting as it was passing a single string.

What would be the best possible way to pass JSON response to VF pages?

 

I just want to show output in VF page like below;

 

Click to view email1 XXX send email1 updated on 20th March 2012 at 10:29 PM

Click to view email2 XXX send email2 updated on 20th March 2012 at 10:02 PM

.

.

.

.

Can we use functonality like List<ClassName> _objClass = new List<ClassName>();

public class ClassName{

  string msg;

  string interestlevel;

  datetime ddate;

}

but I was not able to achieve it.

 

How can I achieve the same in Apex and pass it to VF? sample code would be a great help!

 

Thanks in advance!!

 

This may not be the appropriate place to ask this question but I don't know if there is a discussion board about the force.com IDE. The problem I'm having is that the force.com IDE I just downloaded and installed is missing the Run Tests option. The docs I find about running tests all say to right click on a test class and then go to Force.com > Run Tests. Unfortunately the Run Tests option is missing.

 

Does have any suggestions for fixing this problem?

 

Thank you