• kknewbie
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hi,

 

can anyone suggest me a best app from app exchange for monthly billing system on sfdc say Current usage bill.

 

Thanks in Advance.

Hi,

 

can anyone suggest me a best app for monthly billing syatem on sfdc say Current usage bill.

Hi,

 

can anyone suggest me a best app for monthly billing syatem on sfdc say Current usage bill.

Hi Everyone

 

i written a trigger to restrict a chatter free user to maka a post,comment,file upload,link upload it is working fine.Now i developed a VF page with some checkboxes like postrestrictions,comment restrivtions,

fileuploadrestrictions etc with an extension controller.
 
Now my requirement is when a particular check box is checked for example post restrictions is checked then only it has to restrict.
how can i achieve this.
 
My approach is
 
VF page:
 
<apex:page StandardController="FeedItem" Extensions="Utility1">
 <apex:form >
  <apex:pageBlock >
   <apex:inputCheckbox id="Comm" value="{! CommentRestrictions}" label="CommentRestrictions">Comment Restrictions</apex:inputcheckbox> 
<apex:pageblockButtons >
     <apex:commandButton action="{!save}" value="Save"/>
    </apex:pageblockButtons>
  </apex:pageBlock>
 </apex:form> 
</apex:page> 
 
Controller:
 
public  class Utility1 {
  public Boolean PostRestrictions=true;
public Boolean Post;
public Apexpages.Standardcontroller cont;
    public Utility1(Apexpages.Standardcontroller controller) {
        controller=cont;
        System.debug('this is constructor');
    }
    
    public void setPostRestrictions(Boolean b) {
    this.PostRestrictions = b;         // I THINK DIS SETS THE CHECK BOX CHECKED VALUE
    }
    public Boolean getPostRestrictions() {
     post=this.PostRestrictions;   // i think this will stores the checked value elther true r false
    return this.PostRestrictions;     // IT RETURNS CHECKED VALUE
    }
)
 
Trigger:
 
trigger CFURestrictions on FeedItem (after insert) {
 
-----
-----
-----
ApexPages.StandardController sc = new ApexPages.standardController(new FeedItem());
    Utility1 u1=new Utility1(sc); // calling controller in trigger
if((exp=true)&& (u1.post==true))
{
if(!validuser)
{
fitem.adderror('You do not have permission to share a post.');
}
}
}
 
 
  • August 29, 2012
  • Like
  • 0
How you are managing Billing and Metering?
  • September 16, 2008
  • Like
  • 0