You need to sign in to do that
Don't have an account?
Johanna Mattsson
Create the Visualforce Page unit error
I have a problem pasting the code from Step 4. From README.md, copy all of the code from <apex:page Controller="VisionController"> to </apex:page> and paste it in the Visualforce Markup tab.
Error: Unknown property 'VisionController.callVisionUrl'Create Apex property 'VisionController.callVisionUrl'
Create Apex method 'VisionController.getCallVisionUrl'
I have seen a few replies on here from earlier but none of the solutions work, greatful for the help I can get
My code:
<apex:page Controller="VisionController">
<apex:form >
<apex:pageBlock >
<apex:image url="https://einstein.ai/images/generalimage.jpg">
</apex:image>
<br/>
<apex:repeat value="{!AccessToken}" var="accessToken">
Access Token:<apex:outputText value="{!accessToken}" /><br/>
</apex:repeat>
<br/>
<apex:repeat value="{!callVisionUrl}" var="prediction">
<apex:outputText value="{!prediction.label}" />:<apex:outputText value="{!prediction.probability}" /><br/>
</apex:repeat>
</apex:pageBlock>
<!-- <apex:pageBlock > -->
<!-- <apex:repeat value="{!callVisionContent}" var="prediction"> -->
<!-- <apex:outputText value="{!prediction.label}" />:<apex:outputText value="{!prediction.probability}" /><br/> -->
<!-- </apex:repeat> -->
<!-- </apex:pageBlock> -->
</apex:form>
</apex:page>
Error: Unknown property 'VisionController.callVisionUrl'Create Apex property 'VisionController.callVisionUrl'
Create Apex method 'VisionController.getCallVisionUrl'
I have seen a few replies on here from earlier but none of the solutions work, greatful for the help I can get
My code:
<apex:page Controller="VisionController">
<apex:form >
<apex:pageBlock >
<apex:image url="https://einstein.ai/images/generalimage.jpg">
</apex:image>
<br/>
<apex:repeat value="{!AccessToken}" var="accessToken">
Access Token:<apex:outputText value="{!accessToken}" /><br/>
</apex:repeat>
<br/>
<apex:repeat value="{!callVisionUrl}" var="prediction">
<apex:outputText value="{!prediction.label}" />:<apex:outputText value="{!prediction.probability}" /><br/>
</apex:repeat>
</apex:pageBlock>
<!-- <apex:pageBlock > -->
<!-- <apex:repeat value="{!callVisionContent}" var="prediction"> -->
<!-- <apex:outputText value="{!prediction.label}" />:<apex:outputText value="{!prediction.probability}" /><br/> -->
<!-- </apex:repeat> -->
<!-- </apex:pageBlock> -->
</apex:form>
</apex:page>
Page
Controller
Greetings to you!
Raj already replied to this post that's why I deleted my reply. So, here it is again:
Please try below code:
Please check Apex Class code also:
I’m glad I was able to help!
Kindly close your query by marking it as solved so that it can help others in the future.
Thanks and Regards,
Khan Anas