• Erhan FIRAT
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 1
    Questions
  • 3
    Replies
Hi all,
I have a problem and cant found any solution to this. There is a callout from Apex side to my webservice. Service returns the file as zipped. And then I want to download this file.

Here is code:
    public String getZipFile(String endpointUrl, String jsonStr){            
        HttpRequest reqData = new HttpRequest();
        Http http = new Http();
        
        reqData.setHeader('Content-Type','application/json');
        reqData.setHeader('Connection','keep-alive');
        reqData.setHeader('Content-Length','0');
        reqData.setTimeout(20000);
        
        reqData.setEndpoint(endpointURL);
        reqData.setBody(jsonStr);
        reqData.setMethod('POST');
        
        try {
            HTTPResponse res = http.send(reqData);
            Blob zipBlob = res.getBodyAsBlob();
            zipFileEncoded = EncodingUtil.base64Encode(zipBlob);
            system.debug('zipBlob >>>>>>>>>>>>>> ' + zipBlob.toString());
            system.debug('zipFileEncoded >>>>>>>>>>>>>> ' + zipFileEncoded);
            return zipFileEncoded;
        }catch(Exception exp){
            System.debug('exception ' + exp);
            return exp.getMessage();
        }
    }

 

And the VisualForce side, what should I do? Now, I have just call the action. Is there anything?

I have a flow embedded on a VF page and a lightning component with an iframe to the VF page. The VF page renders for me when I log into the community (Napili template), but not when I log in as an external user. I have ensured the external user has access to the VF page.

How can I expose this VF/flow to external users? Here's my lightning component:

<aura:component implements="forceCommunity:availableForAllPageTypes" access="global">
    <iframe src="https://xxx.salesforce.com/apex/my_vf_page" width="100%" height="1000px;" frameBorder="0"/>
</aura:component>

Hello,

I have a VisualForce page with the select element:

<apex:selectList value="{!StyleGuide}" size="1" styleClass="SlectBox" id="styleguideSelect">
  <apex:selectOptions value="{!StyleGuideOptions}"/>
  <apex:actionSupport event="onchange" onComplete="resetItems()" rerender="dropdownpanel, guidelines, imagespanel, result-count" action="{!doSearch}"/>
</apex:selectList>

Here is a compiled HTML:
 
<select id="j_id0:j_id60:dropdownpanel:generationTypes" name="j_id0:j_id60:dropdownpanel:generationTypes" class="SlectBox " size="1" onchange="A4J.AJAX.Submit('j_id0:j_id60',event,{'similarityGroupingId':'j_id0:j_id60:dropdownpanel:j_id64','oncomplete':function(request,event,data){resetItems()},'parameters':{'j_id0:j_id60:dropdownpanel:j_id64':'j_id0:j_id60:dropdownpanel:j_id64'} } )" style="display: none;"> 
  <option value="Generation 3" selected="selected">Generation 3</option>
  <option value="Generation 2">Generation 2</option>
  <option value="Generation 1">Generation 1</option>
</select>

It works perfectly fine in Chrome, Firefox, Safari and IE Edge. Doesn't work in IE up to 11. Selecting an option do nothing.

The error which I'm getting when page is loaded:

[Error] Could not retrieve a valid progID of Class: Microsoft.XMLDOM. (original exception: ReferenceError: Can't find variable: ActiveXObject)
It is thrown from Sarissa.js

The error when I'm selecting the option element:
TypeError: undefined is not an object (evaluating 'A4J.AJAX.Submit')

Is there any solution to fix that?
Thank you!
 
I am trynig to use MyTasksComponent.cmp from MyTasksComponentLabs package,
 
<aura:component controller="MyTaskCustomCtrl" implements="force:appHostable,flexipage:availableForAllPageTypes">
....
<aura:if isTrue="{!v.displayDetail}">
   <mytaskslabs:MyTasksComponent/>
<aura:set attribute="else">
            <!-- not content to shwo-->
        </aura:set>
        </aura:if>  
....
</aura:component>


When save, i get he following error
ERROR: No COMPONENT named MyTasksComponent found: Source

Hello,

I have a VisualForce page with the select element:

<apex:selectList value="{!StyleGuide}" size="1" styleClass="SlectBox" id="styleguideSelect">
  <apex:selectOptions value="{!StyleGuideOptions}"/>
  <apex:actionSupport event="onchange" onComplete="resetItems()" rerender="dropdownpanel, guidelines, imagespanel, result-count" action="{!doSearch}"/>
</apex:selectList>

Here is a compiled HTML:
 
<select id="j_id0:j_id60:dropdownpanel:generationTypes" name="j_id0:j_id60:dropdownpanel:generationTypes" class="SlectBox " size="1" onchange="A4J.AJAX.Submit('j_id0:j_id60',event,{'similarityGroupingId':'j_id0:j_id60:dropdownpanel:j_id64','oncomplete':function(request,event,data){resetItems()},'parameters':{'j_id0:j_id60:dropdownpanel:j_id64':'j_id0:j_id60:dropdownpanel:j_id64'} } )" style="display: none;"> 
  <option value="Generation 3" selected="selected">Generation 3</option>
  <option value="Generation 2">Generation 2</option>
  <option value="Generation 1">Generation 1</option>
</select>

It works perfectly fine in Chrome, Firefox, Safari and IE Edge. Doesn't work in IE up to 11. Selecting an option do nothing.

The error which I'm getting when page is loaded:

[Error] Could not retrieve a valid progID of Class: Microsoft.XMLDOM. (original exception: ReferenceError: Can't find variable: ActiveXObject)
It is thrown from Sarissa.js

The error when I'm selecting the option element:
TypeError: undefined is not an object (evaluating 'A4J.AJAX.Submit')

Is there any solution to fix that?
Thank you!