Im new in SFDC. Im trying to develop a login page and a Register User page without using any standard controller and standard object. trying to crate independent custom page which do not use any standard objects or standard fields. can anyone tell me how to develop these two pages?
mail me code @ admn.vinayurkude@gmail.com
thanks & Regards,
Vinay
Hi,
You can create a visulaforce page and make use of custom controller. For details please refer salesforce visual force guide:
http://www.salesforce.com/us/developer/docs/pages/
Hi Vinaita,
Thanks for reply!
Actually already gone through this link but cant find solution for what i want to design.
if you have any available code which shows how to create custom visualforce page without using standerd controllers and standard fields that would be helpful for me..
once again thanks for your valuable time.. :-)
Hi,
Suppose you have a custom object named custObject(with custom fields product type, age) and you wish to create a VF for this custom object then you can create a custom controller and Vf as follows:
public class MyController {
private final custObject obj;
public MyController() {
account = [SELECT product_type, age FROM custObject
WHERE Id = :ApexPages.currentPage().getParameters().get('id')];
}
public custObject getcustObject() {
return obj1;
}
public PageReference save() {
update obj1;
return null;
}
}
===================================
Visualforce :
<apex:page controller="myController" tabStyle="custObject">
<apex:form>
<apex:pageBlock title="Congratulations {!$User.FirstName}">
You belong to Product Name: <apex:inputField value="{!obj1.product_name}"/>
<apex:commandButton action="{!save}" value="save"/>
</apex:pageBlock>
</apex:form>
</apex:page>
===========================================================
If don't you wish to associate VF with any object, then don't include controller and design page as you wish. Ex: