Sign up ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I created a canvas app using heroku account, and deployed a war file to it. Now I am accessing it in my salesforce account.I want to add an input field(text) to this app in salesforce. Is it possible to make this happen in salesforce? If yes, how?

share|improve this question
1  
What specifically do you mean by "UI is not good". Could you elaborate on that, possibly add an image. –  Samuel De Rycke May 15 '13 at 9:59
1  
Canvas merely surfaces an external app in Salesforce. For any UI improvements, you'd have to do this on the original app. –  techtrekker May 15 '13 at 10:03
    
I want to add a text field in the app while being in salesforce. If u can help. –  Rekha Jangir May 15 '13 at 11:19

1 Answer 1

If you are displaying your Canvas App by using a Visualforce page, you would be able to add a Visualforce input field without issue:

<apex:page standardController="Account">
    <apex:form>
        <apex:pageBlock title="My Content" mode="edit">
            <apex:pageBlockSection title="My Field" columns="1">
                <apex:inputField value="{!account.name}"/>
                <apex:canvasApp developerName="MyCanvasApp"/>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
</apex:page>

This would show the Account Name field and below that would show your canvas app. Providing fit and finish so that everything looks seamless would be a different exercise.

Now, if you want to pass information about the field into the canvas app, you can do that as of Spring '14 by using the Visualforce<->Eventing. See page 46 of the Canvas Developer Guide - http://www.salesforce.com/us/developer/docs/platform_connect/canvas_framework.pdf

Hope this helps

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.