• Geoff Spozetta
  • NEWBIE
  • 60 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 20
    Questions
  • 14
    Replies
Hi,

During my first implementation of Salesforce Communities, I ended up using a workaround to allow Customer Portal Users to view records in that I created a Sharing Rule on the custom object that said :

If Customer Organisation = X then can view Records owned by other Members of the ORganisation. This works imperfectly due to the way I've setup the links on the objects - The next round will be better I am sure.

Looking at Sharing Settings in the trailhead module, this seems to be better as my understanding is that you can just set it in Sharing Settings: Accounts Automatically share with anyone in your account  

Can someone confirm ?

- G 

Hi,

I'm trying to create a map object, but everytime I load up the map, it simply looks at the Longitude and Latitude District of Harbin, China. 

Chinese City Naming conventions not withstanding, it would appear I have some sort of configuration error, but I cannot see where:

<apex:page standardController="custom_object__c">
    <apex:pageBlock >
        <apex:map width="600px" height="400px" mapType="roadmap" zoomLevel="17"
        center="{latitude:{!custom_object__c.geolocationfield__Latitude__s},{longitude:{!custom_object__c.geolocationfield__Longitude__s}}">
            <apex:mapMarker title="{!custom_object__c.Name}" position="{latitude:{!custom_object__c.geolocationfield__Latitude__s},{longitude:{!custom_object__c.geolocationfield__Longitude__s}}"/>
        </apex:map>
    </apex:pageBlock>
</apex:page>
 
Hi,

I'm trying to create a new Master Detail Relationship between two objects, however I'm recieving this error message:

You must first create a Lookup relationship, populate the lookup field with data in all records, and then change the relationship type to Master-Detail. 

Which seems pretty straight forward, except I'm not sure how to populate the lookup field with the data. Can someone point me in thr right direction?
Hi All,

I have a custom Home Page in Communities, and I'm looking to just have soe big buttons that link to the appropriate tab. The Tabs are all custom objects, and I can't seem to find an answer on that. The Custom objects themselves have no visualforce overrides at this point, however they very easily could

Regards,

Geoff

 
Hi, I seem to be running into an issue where I do not see an edit button displaying in the following code. which is odd, because all of the recirds display just fine. 
 
<apex:page showHeader="false" standardController="custom_object__c" recordsetvar="orders" >
<apex:include pagename="Header"/>
<apex:include pagename="NavBar"/>
     <div class="container">
	      <div class="row">
        <div class="col-md-12">
	          <h2>My Orders</h2>

    <apex:form >
         <apex:PageBlock rendered="{!IF($User.Id==custom_object__c.CreatedByID || $Profile.Name='System Administrator', true, false)}"  >    
                <apex:pageblockTable value="{!orders}" var="o">
                    <apex:column headervalue="Created By" value="{!o.CreatedBy.Name}"/>
                    <apex:column value="{!o.CreatedDate}"/>
                    <apex:column value="{!o.Name}"/>
                    <apex:column value="{!o.anothercustomfield}"/>
                    <apex:column value="{!o.custom_field}"/>
                    <apex:column value="{!o.custom_field1}"/>
					<apex:column headervalue="Edit"> <apex:commandButton value="Edit" action="{!Edit}" id="edbtn"/> </apex:column>
                </apex:pageblockTable>   
		</apex:Pageblock>
	    </apex:form>
	</div>
	</div>
	</div>



<!-- FOOTER -->
 <apex:include pagename="footer" />   
</apex:page>

 

Hi All,

I'm attempting to use twitter Bootstrap and Visualforce together, and as far as I can tell, I am including the files correctly. However I am unable to render buttons to the style class provided, and instead get the following: 

Which, as we can tell just looks horrible


Here is my header code which I reference using "<apex: include>:

 

<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content=""/>
    <meta name="author" content=""/>


    <title>portal</title>

    <!-- Bootstrap core CSS -->
    <apex:stylesheet value="{!URLFOR($Resource.bootstrap, '/css/bootstrap.min.css')}" />
    <apex:includeScript value="{!URLFOR($Resource.bootstrap, '/js/bootstrap.min.js')}"/>

    

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
Hi,

I;m trying to create a list of all current orders in a given object that dloes not rely on apex: listview, I am trying the following code:
 
<apex:page showHeader="false" standardController="custom_object__c" recordsetvar="orders" >
<apex:include pagename="InnovationsHeader"/>
<apex:include pagename="InnovationsNavBar"/>

    <apex:PageBlock title="Order List" rendered="{!IF($User.Id==custom_object__c.CreatedByID || $Profile.Name='System Administrator', true, false)}"  >    
	<apex:pageblocksection>
		<apex:pageblockTable value="{!orders}" var="o">
			<apex:column headervalue="Order ID">
				<apex:outputtext value="{o.Name}"/>
			</apex:column>
		</apex:pageblockTable>
	</apex:pageblocksection>
</apex:pageblock>
<!-- FOOTER -->
 <apex:include pagename="InnovationsFooter" />   
</apex:page>

Howebver, when rendering, the list only shows the following:

{o.Name}
{o.Name}
{o.Name}
{o.Name}
{o.Name}
{o.Name}
{o.Name}
{o.Name}


Can someone shed some light on this, perhaps point me where I need to go to show some order numbers?



 
Hi All, I am trying to add some aditional security to a page so that if the user who created the object is not the user who is accessing the page, the rendering will fail unless you're me, a system administrator:

    <apex:PageBlock rendered="{!IF($User.Id==innovation_orders__c.CreatedByID, true, (!IF$User.Profile='System Administrator',true,false))}"  >

However, this is failing due to "Error: Syntax error. Missing ')'"

THis doesn't make sense to me as all I'm asking VF to do is to evaulate the 2nd statement if the first one is a failure.

Any guidance on this or how to fix would be appreciated.

Cheers,

Geoff

   
Hi All,

I'm looking to change the landing page for users to go straight to a visual force page that I've created, rather than the current page which lists all orders. Can anyone probvide any guidance on that?

Cheers,

Geoff
Hi all,

I need to change the rendering of a page so that only a system administrator or the person who created the entry can access the entry. I am thinking that I should be able to insert something like:

    <apex:PageBlock rendered="{!$User.id==!icustom_object__c.CreatedByID}" >            

However this seems not to work because: Error: Incorrect parameter type for function 'not()'. Expected Boolean, received Text

Which I do not fully understand, Can someone please let me know?






 
Hi All,

I'm trying to find out how to enable login from a custom page. All information that I can find seems to advise that this feature was axed in 2013. 

Regards,

Geoff
 
Hi,

I'm looking to edit the logic on my views so that the logged in user can only see the records that they themselves have created for ordering purposes on a custom object. 

So far what I have is:


IF(
CreatedbyID = $User.id  )

However not really sure where to go from from here. Any assistances would be appreciated.
 
Hi All,

I've been following a Tutorial on Apex Code development and what I'm looking to acheive is to provide a list of  order information from a custom object. The error I'm currently running into is:
Error: Unknown property 'ApexPages.StandardSetController.Location_ID__c'

My Controller:
 
public class InnovationOrderingController {
//ApexPages.StandardSetController must be instantiated
//For standard list controllers
	public ApexPages.StandardSetController orderdets {
		get{
		if(orderdets == null) {
			orderdets = new ApexPages.StandardSetController(Database.getQueryLocator(
			[SELECT 
			Additional_Comments__c,
			Construction_Type__c,
			Contract_Signed_Date__c,
			CSA_ID__c,
			customer_site_id__c,
			Location_ID__c,
			Order_Completion_Date__c,
			Order_Status__c,
			Order_Type__c,
			Product_Instance_Number__c,
			Requested_Speed__c,
			Requested_Start_Date__c,
			Service_Status__c,
			site_name__c
			FROM innovation_orders__c]));
	}
	return orderdets;
	}
	set;
	}
//Initalize orderdets and return a list of records
	public List<innovation_orders__c> getOrderDets() {
		return (List<innovation_orders__c>) orderdets.getRecords();
	}
}
My page:
 
<apex:page controller="InnovationOrderingController">
    <apex:pageBlock title = "Congration">
        <apex:pageblockSection columns="1">
        
            <apex:pageBlockTable value="{!orderdets}" var="order" >
                <apex:datalist var="o" value="{!order.Location_ID__c}"/>
                
            </apex:pageBlockTable>
        </apex:pageblockSection>
        
    </apex:pageBlock>
</apex:page>






 
Hi All,

I'm currently following through a tutorial on how to display some records; I've gotten to a point where I've written the following Controller however I'm running into the following error:

Error: Compile Error: Method does not exist or incorrect signature: Database.getQueryLocater(List<innovation_orders__c>) at line 7 column 61. Full code code is below but the offending line is:
 
orderdets = new ApexPages.StandardSetController(Database.getQueryLocater(

My Code:
public class InnovationOrderingController {
//ApexPages.StandardSetController must be instantiated
//For standard list controllers
    public ApexPages.StandardSetController orderdets {
        get{
        if(orderdets == null) {
            orderdets = new ApexPages.StandardSetController(Database.getQueryLocater(
            [SELECT 
            Additional_Comments__c,
            Construction_Type__c,
            Contract_Signed_Date__c,
            CSA_ID__c,
            customer_site_id__c,
            Location_ID__c,
            Order_Completion_Date__c,
            Order_Status__c,
            Order_Type__c,
            Product_Instance_Number__c,
            Requested_Speed__c,
            Requested_Start_Date__c,
            Service_Status__c,
            site_name__c
            FROM innovation_orders__c]));
    }
    return orderdets;
    }
    set;
    }
//Initalize orderdets and return a list of records
    public List<innovation_orders__c> getOrderDets() {
        return (List<innovation_orders__c>) orderdets.getRecords();
    }
}


For reference, the sample code I'm trying to edit for my own purposes is:
public class opportunityList2Con {
    // ApexPages.StandardSetController must be instantiated
    // for standard list controllers
    public ApexPages.StandardSetController setCon {
        get {
            if(setCon == null) {
                setCon = new ApexPages.StandardSetController(Database.getQueryLocator(
                    [SELECT Name, CloseDate FROM Opportunity]));
            }
            return setCon;
        }
        set;
    }

    // Initialize setCon and return a list of records
    public List<Opportunity> getOpportunities() {
        return (List<Opportunity>) setCon.getRecords();
    }
}


Hi All,

I'm currently following through a tutorial on how to display some records; I've gotten to a point where I've written the following Controller however I'm running into the following error:

Error: Compile Error: Method does not exist or incorrect signature: Database.getQueryLocater(List<innovation_orders__c>) at line 7 column 61. Full code code is below but the offending line is:
 
orderdets = new ApexPages.StandardSetController(Database.getQueryLocater(




 
public class InnovationOrderingController {
//ApexPages.StandardSetController must be instantiated
//For standard list controllers
	public ApexPages.StandardSetController orderdets {
		get{
		if(orderdets == null) {
			orderdets = new ApexPages.StandardSetController(Database.getQueryLocater(
			[SELECT 
			Additional_Comments__c,
			Construction_Type__c,
			Contract_Signed_Date__c,
			CSA_ID__c,
			customer_site_id__c,
			Location_ID__c,
			Order_Completion_Date__c,
			Order_Status__c,
			Order_Type__c,
			Product_Instance_Number__c,
			Requested_Speed__c,
			Requested_Start_Date__c,
			Service_Status__c,
			site_name__c
			FROM innovation_orders__c]));
	}
	return orderdets;
	}
	set;
	}
//Initalize orderdets and return a list of records
	public List<innovation_orders__c> getOrderDets() {
		return (List<innovation_orders__c>) orderdets.getRecords();
	}
}

For reference, the sample code I'm trying to edit for my own purposes is:
public class opportunityList2Con {
    // ApexPages.StandardSetController must be instantiated
    // for standard list controllers
    public ApexPages.StandardSetController setCon {
        get {
            if(setCon == null) {
                setCon = new ApexPages.StandardSetController(Database.getQueryLocator(
                    [SELECT Name, CloseDate FROM Opportunity]));
            }
            return setCon;
        }
        set;
    }

    // Initialize setCon and return a list of records
    public List<Opportunity> getOpportunities() {
        return (List<Opportunity>) setCon.getRecords();
    }
}


 
Hi All,

I'm using a the stnadard save option as in the example below, however I am wondering how within a visualforce page, I would be able to display/redirect the save button to a page that details the last submitted record or a list of all recent records in a visualforce
<apex:form>
  <apex:PageBlock>
  <apex:pageMessages/>
	<apex:PageBlockSection>
		<apex:inputField value="{!innovation_assurance__c.ID__c}"/>
		<apex:inputField value="{!innovation_assurance__c.Site_Location__c}" />
		<apex:inputField value="{!innovation_assurance__c.Fault_Description__c}" />
	</apex:PageBlockSection>
	<apex:commandbutton action="{! save}" value="Submit"/>
  </apex:PageBlock>


 
Hi All,

I'm trying to put together a simple form following the documentation and I've run into a block - I am seeing 2 save buttons, and there is no space for User-added image input fields, although these are defined below and I am to my knowledge following the documentation:
<apex:page showHeader="false" standardController="innovation_orders__c">
 
 
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content=""/>
    <meta name="author" content=""/>
 
 
    <title>| ordering portal</title>
 
    <!-- Bootstrap core CSS -->
    <apex:stylesheet value="{!URLFOR($Resource.bootstrap, '/css/bootstrap.min.css')}" />
 
    <!-- Custom styles for this template -->
    <apex:stylesheet value="{!URLFOR($Resource.bootstrapjumbo)}" />
 
   
 
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
 
  <body>
 
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand">Welcome {!$User.FirstName} to the nbn™|innovations ordering portal.</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <form class="navbar-form navbar-right">
          <p> style="color:white"
            <div class="form-group"/>  
 
            </p>
           
          </form>
        </div><!--/.navbar-collapse -->
      </div>
    </nav>
 
    <!-- Main jumbotron for a primary marketing message or call to action -->
    <div class="jumbotron">
      <div class="container">
        <h1>nbn™|innovations</h1>
        <p>Bringing you the latest .</p>
  
      </div>
    </div>
 
    <div class="container">
      <!-- Example row of columns -->
      <div class="row">
        <div class="col-md-4">
          <h2>CSAS Ordering</h2>
          <p>
          <apex:form>
          <apex:pageBlock >
          <apex:pageMessages />
        <apex:pageBlockButtons >
            <apex:commandButton action="{!save}" value="Save" id="theButton"/>
          </apex:pageBlockButtons >
       <apex:pageBlockTable value="{!innovation_orders__c}" var="i">
                 <apex:inputField value="{!i.site_name__c}" />
          <apex:inputField value="{!i.Requested_Start_Date__c}" />
          <apex:inputField value="{!i.Requested_Speed__c}" />
          <apex:inputField value="{!i.Location_ID__c}" />
                
        </apex:pageBlockTable>
          </apex:pageBlock>
          </apex:form>
          </p>
         
        </div>
        <div class="col-md-4">
          <h2><c:contentblock name="grid-heading-centre"/></h2>
          <p><c:contentblock name="grid-centre"/> </p>
       
       </div>
        <div class="col-md-4">
          <h2><c:contentblock name="grid-heading-right"/></h2>
          <p><c:contentblock name="grid-right"/></p>
       
        </div>
      </div>
 
      <hr></hr>
 
      <footer>
        <p; Company 2014</p>
      </footer>
    </div> <!-- /container -->
   
 
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="../../dist/js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>
</apex:page>


 
Hi All,

I'm trying to put together a simple form following the documentation and I've run into a block - I am seeing 2 save buttons, and there is no space for [User-added image]  input fields, although these are defined below (in bold): Not sure why this is occurring. Could I get some pointers?

 User-added image
 
<apex:page showHeader="false" standardController="innovation_orders__c">
 
 
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content=""/>
    <meta name="author" content=""/>
 
 
    <title>| ordering portal</title>
 
    <!-- Bootstrap core CSS -->
    <apex:stylesheet value="{!URLFOR($Resource.bootstrap, '/css/bootstrap.min.css')}" />
 
    <!-- Custom styles for this template -->
    <apex:stylesheet value="{!URLFOR($Resource.bootstrapjumbo)}" />
 
   
 
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
 
  <body>
 
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand">Welcome {!$User.FirstName} to the nbn™|innovations ordering portal.</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <form class="navbar-form navbar-right">
          <p> style="color:white"
            <div class="form-group"/>  
 
            </p>
           
          </form>
        </div><!--/.navbar-collapse -->
      </div>
    </nav>
 
    <!-- Main jumbotron for a primary marketing message or call to action -->
    <div class="jumbotron">
      <div class="container">
        <h1>nbn™|innovations</h1>
        <p>Bringing you the latest .</p>
  
      </div>
    </div>
 
    <div class="container">
      <!-- Example row of columns -->
      <div class="row">
        <div class="col-md-4">
          <h2>Ordering</h2>
          <p>
          <apex:form>
          <apex:pageBlock >
          <apex:pageMessages />
        <apex:pageBlockButtons >
            <apex:commandButton action="{!save}" value="Save" id="theButton"/>
          </apex:pageBlockButtons >
        <apex:pageBlockTable value="{!innovation_orders__c}" var="i">
                 <apex:inputField value="{!i.site_name__c}" />
          <apex:inputField value="{!i.Requested_Start_Date__c}" />
          <apex:inputField value="{!i.Requested_Speed__c}" />
          <apex:inputField value="{!i.Location_ID__c}" />
                
        </apex:pageBlockTable>
          </apex:pageBlock>
          </apex:form>
          </p>
         
        </div>
        <div class="col-md-4">
          <h2><c:contentblock name="grid-heading-centre"/></h2>
          <p><c:contentblock name="grid-centre"/> </p>
       
       </div>
        <div class="col-md-4">
          <h2><c:contentblock name="grid-heading-right"/></h2>
          <p><c:contentblock name="grid-right"/></p>
       
        </div>
      </div>
 
      <hr></hr>
 
      <footer>
        <p; Company 2014</p>
      </footer>
    </div> <!-- /container -->
   
 
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="../../dist/js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>
</apex:page>



 
Hi All,

I'm currently attempting to put a CMSforce2 web form on a page, however I'm seeing that upon inserting into a page, the form elements are not displayed and I am unable to find out why.   The only thing that will appear is a greyscale button, however this tiny and thin:

User-added image


Would love to know if there;s something I am missing - This one does not quite make sense to me
 
Hi,

I'm trying to install CMS Force 2 as part of a trial and the installation advises:

In Setup -> Develop -> Sites -> yoursitelabel -> Public Access Settings -> Edit set the object permissions as in the screenshot below.

However, I am unable to find any setting that is called "Public Access Settings" anywhere, this is having some flow on effects as I'm unable to configure anything in the CMS application proper
Hi, I seem to be running into an issue where I do not see an edit button displaying in the following code. which is odd, because all of the recirds display just fine. 
 
<apex:page showHeader="false" standardController="custom_object__c" recordsetvar="orders" >
<apex:include pagename="Header"/>
<apex:include pagename="NavBar"/>
     <div class="container">
	      <div class="row">
        <div class="col-md-12">
	          <h2>My Orders</h2>

    <apex:form >
         <apex:PageBlock rendered="{!IF($User.Id==custom_object__c.CreatedByID || $Profile.Name='System Administrator', true, false)}"  >    
                <apex:pageblockTable value="{!orders}" var="o">
                    <apex:column headervalue="Created By" value="{!o.CreatedBy.Name}"/>
                    <apex:column value="{!o.CreatedDate}"/>
                    <apex:column value="{!o.Name}"/>
                    <apex:column value="{!o.anothercustomfield}"/>
                    <apex:column value="{!o.custom_field}"/>
                    <apex:column value="{!o.custom_field1}"/>
					<apex:column headervalue="Edit"> <apex:commandButton value="Edit" action="{!Edit}" id="edbtn"/> </apex:column>
                </apex:pageblockTable>   
		</apex:Pageblock>
	    </apex:form>
	</div>
	</div>
	</div>



<!-- FOOTER -->
 <apex:include pagename="footer" />   
</apex:page>

 

Hi All,

I'm attempting to use twitter Bootstrap and Visualforce together, and as far as I can tell, I am including the files correctly. However I am unable to render buttons to the style class provided, and instead get the following: 

Which, as we can tell just looks horrible


Here is my header code which I reference using "<apex: include>:

 

<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content=""/>
    <meta name="author" content=""/>


    <title>portal</title>

    <!-- Bootstrap core CSS -->
    <apex:stylesheet value="{!URLFOR($Resource.bootstrap, '/css/bootstrap.min.css')}" />
    <apex:includeScript value="{!URLFOR($Resource.bootstrap, '/js/bootstrap.min.js')}"/>

    

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
Hi,

I;m trying to create a list of all current orders in a given object that dloes not rely on apex: listview, I am trying the following code:
 
<apex:page showHeader="false" standardController="custom_object__c" recordsetvar="orders" >
<apex:include pagename="InnovationsHeader"/>
<apex:include pagename="InnovationsNavBar"/>

    <apex:PageBlock title="Order List" rendered="{!IF($User.Id==custom_object__c.CreatedByID || $Profile.Name='System Administrator', true, false)}"  >    
	<apex:pageblocksection>
		<apex:pageblockTable value="{!orders}" var="o">
			<apex:column headervalue="Order ID">
				<apex:outputtext value="{o.Name}"/>
			</apex:column>
		</apex:pageblockTable>
	</apex:pageblocksection>
</apex:pageblock>
<!-- FOOTER -->
 <apex:include pagename="InnovationsFooter" />   
</apex:page>

Howebver, when rendering, the list only shows the following:

{o.Name}
{o.Name}
{o.Name}
{o.Name}
{o.Name}
{o.Name}
{o.Name}
{o.Name}


Can someone shed some light on this, perhaps point me where I need to go to show some order numbers?



 
Hi,

I'm looking to edit the logic on my views so that the logged in user can only see the records that they themselves have created for ordering purposes on a custom object. 

So far what I have is:


IF(
CreatedbyID = $User.id  )

However not really sure where to go from from here. Any assistances would be appreciated.
 
Hi All,

I've been following a Tutorial on Apex Code development and what I'm looking to acheive is to provide a list of  order information from a custom object. The error I'm currently running into is:
Error: Unknown property 'ApexPages.StandardSetController.Location_ID__c'

My Controller:
 
public class InnovationOrderingController {
//ApexPages.StandardSetController must be instantiated
//For standard list controllers
	public ApexPages.StandardSetController orderdets {
		get{
		if(orderdets == null) {
			orderdets = new ApexPages.StandardSetController(Database.getQueryLocator(
			[SELECT 
			Additional_Comments__c,
			Construction_Type__c,
			Contract_Signed_Date__c,
			CSA_ID__c,
			customer_site_id__c,
			Location_ID__c,
			Order_Completion_Date__c,
			Order_Status__c,
			Order_Type__c,
			Product_Instance_Number__c,
			Requested_Speed__c,
			Requested_Start_Date__c,
			Service_Status__c,
			site_name__c
			FROM innovation_orders__c]));
	}
	return orderdets;
	}
	set;
	}
//Initalize orderdets and return a list of records
	public List<innovation_orders__c> getOrderDets() {
		return (List<innovation_orders__c>) orderdets.getRecords();
	}
}
My page:
 
<apex:page controller="InnovationOrderingController">
    <apex:pageBlock title = "Congration">
        <apex:pageblockSection columns="1">
        
            <apex:pageBlockTable value="{!orderdets}" var="order" >
                <apex:datalist var="o" value="{!order.Location_ID__c}"/>
                
            </apex:pageBlockTable>
        </apex:pageblockSection>
        
    </apex:pageBlock>
</apex:page>






 
Hi All,

I'm currently following through a tutorial on how to display some records; I've gotten to a point where I've written the following Controller however I'm running into the following error:

Error: Compile Error: Method does not exist or incorrect signature: Database.getQueryLocater(List<innovation_orders__c>) at line 7 column 61. Full code code is below but the offending line is:
 
orderdets = new ApexPages.StandardSetController(Database.getQueryLocater(

My Code:
public class InnovationOrderingController {
//ApexPages.StandardSetController must be instantiated
//For standard list controllers
    public ApexPages.StandardSetController orderdets {
        get{
        if(orderdets == null) {
            orderdets = new ApexPages.StandardSetController(Database.getQueryLocater(
            [SELECT 
            Additional_Comments__c,
            Construction_Type__c,
            Contract_Signed_Date__c,
            CSA_ID__c,
            customer_site_id__c,
            Location_ID__c,
            Order_Completion_Date__c,
            Order_Status__c,
            Order_Type__c,
            Product_Instance_Number__c,
            Requested_Speed__c,
            Requested_Start_Date__c,
            Service_Status__c,
            site_name__c
            FROM innovation_orders__c]));
    }
    return orderdets;
    }
    set;
    }
//Initalize orderdets and return a list of records
    public List<innovation_orders__c> getOrderDets() {
        return (List<innovation_orders__c>) orderdets.getRecords();
    }
}


For reference, the sample code I'm trying to edit for my own purposes is:
public class opportunityList2Con {
    // ApexPages.StandardSetController must be instantiated
    // for standard list controllers
    public ApexPages.StandardSetController setCon {
        get {
            if(setCon == null) {
                setCon = new ApexPages.StandardSetController(Database.getQueryLocator(
                    [SELECT Name, CloseDate FROM Opportunity]));
            }
            return setCon;
        }
        set;
    }

    // Initialize setCon and return a list of records
    public List<Opportunity> getOpportunities() {
        return (List<Opportunity>) setCon.getRecords();
    }
}


Hi All,

I'm trying to put together a simple form following the documentation and I've run into a block - I am seeing 2 save buttons, and there is no space for User-added image input fields, although these are defined below and I am to my knowledge following the documentation:
<apex:page showHeader="false" standardController="innovation_orders__c">
 
 
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content=""/>
    <meta name="author" content=""/>
 
 
    <title>| ordering portal</title>
 
    <!-- Bootstrap core CSS -->
    <apex:stylesheet value="{!URLFOR($Resource.bootstrap, '/css/bootstrap.min.css')}" />
 
    <!-- Custom styles for this template -->
    <apex:stylesheet value="{!URLFOR($Resource.bootstrapjumbo)}" />
 
   
 
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
 
  <body>
 
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand">Welcome {!$User.FirstName} to the nbn™|innovations ordering portal.</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <form class="navbar-form navbar-right">
          <p> style="color:white"
            <div class="form-group"/>  
 
            </p>
           
          </form>
        </div><!--/.navbar-collapse -->
      </div>
    </nav>
 
    <!-- Main jumbotron for a primary marketing message or call to action -->
    <div class="jumbotron">
      <div class="container">
        <h1>nbn™|innovations</h1>
        <p>Bringing you the latest .</p>
  
      </div>
    </div>
 
    <div class="container">
      <!-- Example row of columns -->
      <div class="row">
        <div class="col-md-4">
          <h2>CSAS Ordering</h2>
          <p>
          <apex:form>
          <apex:pageBlock >
          <apex:pageMessages />
        <apex:pageBlockButtons >
            <apex:commandButton action="{!save}" value="Save" id="theButton"/>
          </apex:pageBlockButtons >
       <apex:pageBlockTable value="{!innovation_orders__c}" var="i">
                 <apex:inputField value="{!i.site_name__c}" />
          <apex:inputField value="{!i.Requested_Start_Date__c}" />
          <apex:inputField value="{!i.Requested_Speed__c}" />
          <apex:inputField value="{!i.Location_ID__c}" />
                
        </apex:pageBlockTable>
          </apex:pageBlock>
          </apex:form>
          </p>
         
        </div>
        <div class="col-md-4">
          <h2><c:contentblock name="grid-heading-centre"/></h2>
          <p><c:contentblock name="grid-centre"/> </p>
       
       </div>
        <div class="col-md-4">
          <h2><c:contentblock name="grid-heading-right"/></h2>
          <p><c:contentblock name="grid-right"/></p>
       
        </div>
      </div>
 
      <hr></hr>
 
      <footer>
        <p; Company 2014</p>
      </footer>
    </div> <!-- /container -->
   
 
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="../../dist/js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>
</apex:page>


 
Hi All,

I'm currently attempting to put a CMSforce2 web form on a page, however I'm seeing that upon inserting into a page, the form elements are not displayed and I am unable to find out why.   The only thing that will appear is a greyscale button, however this tiny and thin:

User-added image


Would love to know if there;s something I am missing - This one does not quite make sense to me
 
Hi,

I'm trying to install CMS Force 2 as part of a trial and the installation advises:

In Setup -> Develop -> Sites -> yoursitelabel -> Public Access Settings -> Edit set the object permissions as in the screenshot below.

However, I am unable to find any setting that is called "Public Access Settings" anywhere, this is having some flow on effects as I'm unable to configure anything in the CMS application proper