• suvarna vennapusala
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 5
    Replies
Hi guys,
         I have a question. Is it possible to use table structure in lightning components as in Visualforce page?
Thanks
Aruna
Hi
I am trying to enter the Account and Contact Object Fields Details through Visual Force Page but i am getting the below error while adding the contact input field.
Could not resolve the entity from <apex:inputField> value binding '{!Contact.Name}'. <apex:inputField> can only be used with SObjects, or objects that are Visualforce field component resolvable.

Can any one help me?
Below is the code 
VF Page
 
<apex:page controller="AccountController" >
    <apex:form >
        <apex:pageBlock mode="edit">
            <apex:pageMessages />
            <apex:pageBlockSection title="Account Information" Columns="2" collapsible="">
                           <apex:inputField value="{!Account.name}"/>
                <apex:inputField value="{!Account.Type}"/>
                            </apex:pageBlockSection>
            <apex:pageBlockSection title="Contact Information" Columns="2" collapsible="true">
           <apex:inputField value="{!Contact.Name}"/>
            </apex:pageBlockSection>
                        <apex:pageBlockButtons location="bottom">
                <apex:commandButton value="Save" action="{!save}"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>
 
Apex Class

public with sharing class AccountController {
 
    public String Contact { get; set; }
public Account account { get; private set; }
 
    public AccountController() {
        Id id = ApexPages.currentPage().getParameters().get('id');
        account = (id == null) ? new Account() :
            [SELECT Name, Phone, Industry,Type,(SELECT Name, Email FROM Contacts)  FROM Account WHERE Id = :id];
           
         
    }
 
    public PageReference save() {
        try {
            upsert(account);
        } catch(System.DMLException e) {
            ApexPages.addMessages(e);
            return null;
        }
        //  After Save, navigate to the default view page:
        return (new ApexPages.StandardController(account)).view();
    }
}
 

my page consists one picklist and three textboxes for one  enter a text(related picklist) and one for start date and enddate and also one search button

picklist contains(account number,account name,fax,phone,employees)

if select account number and enter text as 123(suppose)

and set start date and end date and click a search button

 

when i click search button those related records display in pageblock

Hi 

 

Is there a way that all the users who are not logged in for 90 days be auto matically de-activated and we should exempt couple of users from it.

 

FYI 

i already tried using workflows but unfortunately we cannot do much on the User object with workflows.

 

Thanks.