• Angel Montiel 6
  • NEWBIE
  • 15 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
Hi everyone:

I created a Visualforce page that has a form within, and when I tested it worked fine. It let me create the records I wanted in the custom object I prevously created "Pedidos__c"; but when I assigned to a Site I created in my Developer Edition Org, it just won't let me create the records when I push the save button. I already checked that all permissions are given to the guest user, and I read some forums about the Authorization Required error, but nothing seems to help me.

Here's the code:
 
<apex:page standardController="Pedido__c">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection >
                <apex:inputField value="{!Pedido__c.Name}"/>
                <apex:inputField value="{!Pedido__c.Descripci_n__c}"/>
                <apex:inputField value="{!Pedido__c.Fabricante__c}"/>
                <apex:inputField value="{!Pedido__c.Presentaci_n__c}"/>
                <apex:inputField value="{!Pedido__c.Cantidad__c}"/>
                <apex:commandButton action="{! save}" value="Save!"/>
            </apex:pageBlockSection>
		</apex:pageBlock>
        <apex:pageMessages />
    </apex:form>
</apex:page>

And here´s the site URL: http://pedidos-developer-edition.na30.force.com/pedidos/

Thank you very much.
Hi everyone:

I'm new at salesforce, and I want to create a trigger that sets an specific record type to a new created record.

For example, I have this two custom objects (Inspections and Recomendations), and the following record types for the Inspections Object:

-Mouse
-Grass
-Other

I'd like that when I create a new recomendation record, it should have the same record type as the one of its parent relation, in this case, the same record type as the Inspection record.

Thanks.
Hi,

This is the error that appears: 

Step Not yet complete... here's what's wrong: 
AccountListItem's JS controller doesn't get a reference to the AccountSelected event 
Note: you may run into errors if you've skipped previous steps.

I´ve done every step as they told me to do. If you could help me see the erro I would really appreciate it guys.

Hereare the screen shots of the part of the code that's been giving me problems:

- AccountList component:

<aura:component controller="AccountController">
<aura:registerEvent name="accountsLoaded" type="c:AccountsLoaded"/>
<aura:registerEvent name="accountSelected" type="c:AccountSelected"/>

    <aura:attribute name="accounts" type="Account[]"/>
    <aura:handler name="init" value="{!this}" action="{!c.doInit}" />

    <ul>
    <aura:iteration items="{!v.accounts}" var="account">
        <c:AccountListItem account="{!account}"/>
    </aura:iteration>
    </ul>
<li><a onclick="{!c.accountSelected}">{!v.account.Name}</a></li>

</aura:component>

- AccountList Controller:

({
    accountSelected : function(component) {
        var event = $A.get("e.c:AccountSelected");
        event.setParams({"account": component.get("v.account")});
        event.fire();
    }
})

Thank you guys.
Hi everyone:

I created a Visualforce page that has a form within, and when I tested it worked fine. It let me create the records I wanted in the custom object I prevously created "Pedidos__c"; but when I assigned to a Site I created in my Developer Edition Org, it just won't let me create the records when I push the save button. I already checked that all permissions are given to the guest user, and I read some forums about the Authorization Required error, but nothing seems to help me.

Here's the code:
 
<apex:page standardController="Pedido__c">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection >
                <apex:inputField value="{!Pedido__c.Name}"/>
                <apex:inputField value="{!Pedido__c.Descripci_n__c}"/>
                <apex:inputField value="{!Pedido__c.Fabricante__c}"/>
                <apex:inputField value="{!Pedido__c.Presentaci_n__c}"/>
                <apex:inputField value="{!Pedido__c.Cantidad__c}"/>
                <apex:commandButton action="{! save}" value="Save!"/>
            </apex:pageBlockSection>
		</apex:pageBlock>
        <apex:pageMessages />
    </apex:form>
</apex:page>

And here´s the site URL: http://pedidos-developer-edition.na30.force.com/pedidos/

Thank you very much.