• Ajay Dubedi 5
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 5
    Replies
Hi Developers,

    Wonder if any one has noticed the critical update for getContentAsPdf to be considered as a HTTP Callout now onwards. How our architecture works right now is that we make a HTTP callout our very own organization and insert the content into the related list of an Object. Now this can not be possible as this is throwing the error for Recursive callout(Callout in Loop not Allowed) . i.e callout from a callout. 
    We can NOT use getContentAsPdf() in the same context as I need to do some DML and then generate the Pdf based of the changes. 
    We can NOT use future as it provides unexpected/Blank Pdf.
    
    What are the possible solutions that anyone might have? 

 
Hi all,
I have an weird issue with salesforce site that when site is disabled it still showing the page I have created for active one and not the page 
I created for disabled site.
If anyone ever faced this issue, so please let me know .
I am working for many days on this issue but no idea why it is happening.
Thanks
<apex:page Controller="TestPage_ctrl">
  <apex:form >
        <apex:outputPanel id="outputPane">
             {!IntegerStringMap}
                           <apex:outputPanel id="outputPanelId">
                            <apex:repeat value="{!IntegerStringMap}" var="a">
                                {!a}
                            </apex:repeat>
                     </apex:outputPanel>
                     </apex:outputPanel>
                     <apex:commandButton value="Add" action="{!addLotToConvert}" reRender="outputPane"/>
        </apex:form>
</apex:page>
public class TestPage_ctrl{

    public integer i { get ; set ;}
    public map<integer,String> IntegerStringMap { get; set; }
    
    public TestPage_ctrl(){
        i = 0;
        IntegerStringMap = new map<integer,String>();
        IntegerStringMap.put(i,'Test'+i);
    }
    
    public void  addLotToConvert(){
        i = i+1;
        IntegerStringMap.put(i,'Test'+i);
        //return null;
    }
}

When trying to use the Above code in Developer org it works as expected showing the Map contents and the Map Key as same. But when using this code in CS10/CS11 it does not. And there is a difference between the Contents and the Key of map.

 
<apex:page Controller="TestPage_ctrl">
  <apex:form >
        <apex:outputPanel id="outputPane">
             {!IntegerStringMap}
                           <apex:outputPanel id="outputPanelId">
                            <apex:repeat value="{!IntegerStringMap}" var="a">
                                {!a}
                            </apex:repeat>
                     </apex:outputPanel>
                     </apex:outputPanel>
                     <apex:commandButton value="Add" action="{!addLotToConvert}" reRender="outputPane"/>
        </apex:form>
</apex:page>
public class TestPage_ctrl{

    public integer i { get ; set ;}
    public map<integer,String> IntegerStringMap { get; set; }
    
    public TestPage_ctrl(){
        i = 0;
        IntegerStringMap = new map<integer,String>();
        IntegerStringMap.put(i,'Test'+i);
    }
    
    public void  addLotToConvert(){
        i = i+1;
        IntegerStringMap.put(i,'Test'+i);
        //return null;
    }
}

When trying to use the Above code in Developer org it works as expected showing the Map contents and the Map Key as same. But when using this code in CS10/CS11 it does not. And there is a difference between the Contents and the Key of map.

 
Hi all,
I have an weird issue with salesforce site that when site is disabled it still showing the page I have created for active one and not the page 
I created for disabled site.
If anyone ever faced this issue, so please let me know .
I am working for many days on this issue but no idea why it is happening.
Thanks
<apex:page Controller="TestPage_ctrl">
  <apex:form >
        <apex:outputPanel id="outputPane">
             {!IntegerStringMap}
                           <apex:outputPanel id="outputPanelId">
                            <apex:repeat value="{!IntegerStringMap}" var="a">
                                {!a}
                            </apex:repeat>
                     </apex:outputPanel>
                     </apex:outputPanel>
                     <apex:commandButton value="Add" action="{!addLotToConvert}" reRender="outputPane"/>
        </apex:form>
</apex:page>
public class TestPage_ctrl{

    public integer i { get ; set ;}
    public map<integer,String> IntegerStringMap { get; set; }
    
    public TestPage_ctrl(){
        i = 0;
        IntegerStringMap = new map<integer,String>();
        IntegerStringMap.put(i,'Test'+i);
    }
    
    public void  addLotToConvert(){
        i = i+1;
        IntegerStringMap.put(i,'Test'+i);
        //return null;
    }
}

When trying to use the Above code in Developer org it works as expected showing the Map contents and the Map Key as same. But when using this code in CS10/CS11 it does not. And there is a difference between the Contents and the Key of map.