For exmaple you have a form with below fields:-
<apex:form>
<input type="text" name="firstname"/>
<input type="text" name="lastname"/>
<apex:commandbutton value="SubmitMe" action="{!saveform}"/>
</apex:form>
Your apex class's saveform method:-
public PageReference saveform(){
string firstName = ApexPages.currentPage().getParameters().get('firstname');
string lastName = ApexPages.currentPage().getParameters().get('lastname');
//So simple
//Do your stuff
return null
}
Enjoy!!!
How to retrieve form values in traditional way on VF without binding
Thursday, September 24, 2009
by Aslam - The Alexendra
Posted in |
6 Comments »
Displaying HelpText on VF page
Friday, September 18, 2009
by Aslam - The Alexendra
Hi,
We can easily show a custom field's help text on our page on our desired image like this:-
For example there is a custom field in Account object named 'Active__c'. And you wanna show its help text on VF page, do this:-
<img src="/resource/1247568559000/del_img" alt="" title="{!$ObjectType.Account.Fields.Active__c.inlineHelpText}"/>
If you need pure css based tooptip with your own style and without any javascript, here it is:-
<style>
a:hover {
background:#ffffff;
text-decoration:none;
} /*BG color is a must for IE6*/
a.tooltip span {
display:none;
padding:2px 3px;
margin-left:8px;
width:130px;
}
a.tooltip:hover span{
display:inline;
position:absolute;
background:#ffffff;
border:1px solid #cccccc;
color:#6c6c6c;
}
</style>
<a class="tooltip" href="#">
<img src="/resource/1247568559000/del_img"/>
<span>{!$ObjectType.Account.Fields.Active__c.inlineHelpText}.</span>
</a>
Enjoy!
We can easily show a custom field's help text on our page on our desired image like this:-
For example there is a custom field in Account object named 'Active__c'. And you wanna show its help text on VF page, do this:-
<img src="/resource/1247568559000/del_img" alt="" title="{!$ObjectType.Account.Fields.Active__c.inlineHelpText}"/>
If you need pure css based tooptip with your own style and without any javascript, here it is:-
<style>
a:hover {
background:#ffffff;
text-decoration:none;
} /*BG color is a must for IE6*/
a.tooltip span {
display:none;
padding:2px 3px;
margin-left:8px;
width:130px;
}
a.tooltip:hover span{
display:inline;
position:absolute;
background:#ffffff;
border:1px solid #cccccc;
color:#6c6c6c;
}
</style>
<a class="tooltip" href="#">
<img src="/resource/1247568559000/del_img"/>
<span>{!$ObjectType.Account.Fields.Active__c.inlineHelpText}.</span>
</a>
Enjoy!
Posted in |
2 Comments »
Share The Solutions For Tech Problems
Wednesday, September 16, 2009
by Aslam - The Alexendra
Hi All,
Here i am going to describe how to exclude some part of your web page from print / print preview. Suppose you want to hide some part of the web page lets say 'div' to be print. Use this syntax.
---------------------------------------------------------------------------
<style media="print">
.hide{
display:none;
}
</style>
<div class="hide">
some contents to be hidden
</div>
----------------------------------------------------------------------------
The media = "print" will apply for print version of the page only....On your normal page(browser) you will be able to see contents but in print you will not...
Enjoy................
Here i am going to describe how to exclude some part of your web page from print / print preview. Suppose you want to hide some part of the web page lets say 'div' to be print. Use this syntax.
---------------------------------------------------------------------------
<style media="print">
.hide{
display:none;
}
</style>
<div class="hide">
some contents to be hidden
</div>
----------------------------------------------------------------------------
The media = "print" will apply for print version of the page only....On your normal page(browser) you will be able to see contents but in print you will not...
Enjoy................
Posted in |
3 Comments »
Subscribe to:
Posts (Atom)