You need to sign in to do that
Don't have an account?
Melisande Perron
UserStatus Page Visualforce module error
I'm trying to learn how to make Visualforce pages, and am on the module https://developer.salesforce.com/trailhead/visualforce_fundamentals/visualforce_variables_expressions
I have created the page per the instructions, but now get this Problem on Line 1:
"Incorrect paramenter type for function 'not()'. Expected boolean, received Text"
for this page which looks exactly like the example in the module:
<apex:page sidebar="false">
<apex:pageBlock title="User Status">
<apex:pageBlockSection columns="1">
{! $User.FirstName &''&! $User.LastName }
({! $User.Username})
<p>Today's Date is {! TODAY()} </p>
<p>Next week will be {! TODAY() + 7}</p>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
-------------
I have removed the "" from around the sidebar="false", but the error persists.
What is wrong?
I have created the page per the instructions, but now get this Problem on Line 1:
"Incorrect paramenter type for function 'not()'. Expected boolean, received Text"
for this page which looks exactly like the example in the module:
<apex:page sidebar="false">
<apex:pageBlock title="User Status">
<apex:pageBlockSection columns="1">
{! $User.FirstName &''&! $User.LastName }
({! $User.Username})
<p>Today's Date is {! TODAY()} </p>
<p>Next week will be {! TODAY() + 7}</p>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
-------------
I have removed the "" from around the sidebar="false", but the error persists.
What is wrong?
The problem is that you are calling a method "getUser_ (https://shiromaniakalidalofficial.blog.com)StatusId()" with this underscore but it was defined without it "getUserStatusId()"
<apex:page >
<apex:pageBlock title="User Status">
<apex:pageBlockSection columns="1">
{!$User.FirstName & ' ' & !$User.LastName} ({!$User.Username})
<p> Today's Date is {!TODAY() } </p>
<p> Next week it will be {!TODAY() + 7 } </p>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>