• pooja Agicha
  • NEWBIE
  • 0 Points
  • Member since 2008

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

Hi All,

 

I have a string which contains the numberic values.I want to display the values with comma seperated.

eg: string value is : 20000,the visualforce page shuld render this as 20,000.

 

I tried using  

<apex:outputText value="string: {0,Number,$#,###.##}">

<apex:param value="{!AccountBusinessDetails.PermCredLnAmt}" />

</apex:outputText>

for this value should be number do I aaded the folloeing statement in my controller class.

Decimal.valueof(AccountBusinessDetails.PermCredLnAmt);// this is out put from Webservice

 

I am getting error "Value should be a number/date/decimal format".

 

Any help is appreciated.

 

Thanks.

 

Hi,

 

My webservice call retruns me the result in a list. I just want to display the returned result on a VF page.

When I am Trying to display the value Getting error as "Unknown Pagereference property ApprPurchAmt"

Here is my code:

 

VF page:

<apex:repeat value="{!AccountOtbDetails}" var="OtbDetails">

<apex:outputText value="{!OtbDetails.ApprPurchAmt}" rendered="true"/>

</apex:repeat>

 

Controller class:

public List<ESBAIMSAccounts.AccountOtbDetail> AccountOtbDetails{ get; set; }

 

// Call external web service

AIMSIntegration Aims = new AIMSIntegration();

AccountOtbDetails=Aims.GetOtbDetails();

 

system.debug('OTB details'+ AccountOtbDetails);

 

In the debug I can see the result of List. 

 

Webservice Class Method:

public class AccountOtbDetail {

public Decimal ApprPurchAmt{get;}

.....

.....

}

 

 

Hi,

I have the Encoded HTML in my visual force page (eg: &lt; &quote;) but how to convert it back into HTML and render the page in Visualforce?

 

 

Thanks,

 

Regards ,

Pooja

Hi All,

 

I have a string which contains the numberic values.I want to display the values with comma seperated.

eg: string value is : 20000,the visualforce page shuld render this as 20,000.

 

I tried using  

<apex:outputText value="string: {0,Number,$#,###.##}">

<apex:param value="{!AccountBusinessDetails.PermCredLnAmt}" />

</apex:outputText>

for this value should be number do I aaded the folloeing statement in my controller class.

Decimal.valueof(AccountBusinessDetails.PermCredLnAmt);// this is out put from Webservice

 

I am getting error "Value should be a number/date/decimal format".

 

Any help is appreciated.

 

Thanks.

 

Hi,

I have the Encoded HTML in my visual force page (eg: &lt; &quote;) but how to convert it back into HTML and render the page in Visualforce?

 

 

Thanks,

 

Regards ,

Pooja

Hi guys,

I'm experiencing some unexpected behavior when trying to use the apex:repeat function to render tabs....

Basically it seems that tabs cannot be created on demand?  My controller is definitely returning data... as the second page block in my sample will show... repeat works - just the tabs are not rendered..

I'm sure any of you guys can see where I was going with this - and I guess I can achieve a similar result by dropping down to boring old html - just trying to use the standard components (as per best practice)

Any assistance greatly appreciated - as the purist coder me is seriously disturbed at the moment...

here is my 'simplified' and easily testable page & controller

Code: VF PAGE
<apex:page controller="clsRecordType">
    <apex:pageBlock >
        <apex:tabPanel id="theTabPanel">
            <apex:tab label="Account Types"/>
            <apex:repeat value="{!RecordTypes}" var="types">
                <apex:tab label="{!types.Name}"/>     
            </apex:repeat>
        </apex:tabPanel>
    </apex:pageBlock>

    <apex:pageBlock >
        <apex:repeat value="{!RecordTypes}" var="types">
            {!types.Name}<br/>       
        </apex:repeat>
    </apex:pageBlock>
</apex:page>

and the controller

Code:
public class clsRecordType {

    list<RecordType> lrecordtypes;

    public list<RecordType> getRecordTypes() {
        if(lrecordtypes==null) lrecordtypes = [Select Name, Id, Description From RecordType  where SobjectType = 'Account' and IsActive=True];
        return lrecordtypes;
        }
   }