You need to sign in to do that
Don't have an account?
Aladdin US
record is not inserting
when i clinkon save record isno inserting into the respective object
public class Android
{
public and__c p {set;get;}
public string ConstructionCost {set;get;}
public boolean FireSafety {set;get;}
}
public android()
{
p=new android__c();
}
public List<SelectOption> getItems()
{
List<SelectOption> options = new List<SelectOption>();
options.add(new SelectOption('None','None'));
options.add(new SelectOption('Commercial','Commercial'));
options.add(new SelectOption('Residential','Residential'));
return options;
}
public void save()
{
integer i=0;
p.Construction_Cost__c=ConstructionCost;
p.Fire_Safety__c=FireSafety;
insert p;
VF:
<div>
<apex:commandButton value="save" action="{!save}" styleclass="button" />
</div>
Can anyone tell me please.
Thanks.
public class Android
{
public and__c p {set;get;}
public string ConstructionCost {set;get;}
public boolean FireSafety {set;get;}
}
public android()
{
p=new android__c();
}
public List<SelectOption> getItems()
{
List<SelectOption> options = new List<SelectOption>();
options.add(new SelectOption('None','None'));
options.add(new SelectOption('Commercial','Commercial'));
options.add(new SelectOption('Residential','Residential'));
return options;
}
public void save()
{
integer i=0;
p.Construction_Cost__c=ConstructionCost;
p.Fire_Safety__c=FireSafety;
insert p;
VF:
<div>
<apex:commandButton value="save" action="{!save}" styleclass="button" />
</div>
Can anyone tell me please.
Thanks.
Can you please add the debug logs and see what it is printing
Debug log is empty not showing any thing.
Thanks.