-
ChatterFeed
-
0Best Answers
-
1Likes Received
-
0Likes Given
-
3Questions
-
4Replies
Issue deploying static resources with DX
I have a package I pulled down using sfdx force:mdapi:retrieve which I then converted to DX structure using the force:mdapi:convert command. One thing that happens during convert is that all the Static Resources in my package that were a .zip archive are then decompressed and shown in a folder structure under staticresources in the DX folder structure. My issue comes when I am trying to do a deploy of DX source code back into the packaging org (not a scratch org) using force:source:convert and then force:mdapi:deploy, I get the following message for one or more of the static resources in the package:
The specified Static Resource is not a valid zip file
I am assuming the convert from DX to mdapi should zip all of the files in the DX folder for the static resource, but it looks like something is going wrong. Has anyone else run into this error before?
-
- jasondodds
- November 13, 2017
- Like
- 0
- Continue reading or reply
Exclude manage package tests when setting runalltests=true with Ant migration tool
Below is the path we are using to promote code (this process is not unique within our company or continuous integration lifecycle in general):
- Develop code in developer's sandbox.
- Check-in code to source control (for us it is Git/GitHub)
- Jenkins build job monitors commits to GitHub master branch and runs a deploy to Integration sandbox when changes are found. All tests are run during build <deploy runalltests=true> (FAIL)
- The QA runs a manual Jenkins job to deploy master branch to QA sandbox. All tests are run during build <deploy runalltests=true> (FAIL)
- After QA, the master branch is pushed to the Staging sandbox via Jenkins for user acceptance testing. No tests are run <deploy runalltests=false> (PASS)
- Code is deployed to Production org using Jenkins build. During this deployment process, runAllTests= false, so only the non-managed Apex test code gets executed <deploy runalltests=false> (PASS)
-
- jasondodds
- January 17, 2014
- Like
- 1
- Continue reading or reply
export CSV or <table> content to VF page to render as Excel using JavaScript
I am trying to implement the following functionality:
I have a dashboard on a VF page that I need to export to Excel(.xls(x) or .csv). The Dashboard itself is not one continuous <table>, so I am creating an output stream via JavaScript that will create a cohesive <table> or formatted CSV to be passed to an apex page with contenttype="application/vnd.ms-excel" to be downloaded as a file. I know I need the server to generate the contenttype so the data downloads as a file, so I just need to populate the page with my passed-in output stream.
My question is, what mechanism do I use to get my JS data (either csv or html) to the VF export page to render? I have tried actionFunctions and JS Remoting with no success. I thought I would throw it out to the developer community to get input on which is the correct path to take (if it is even possible) so I could concentrate my efforts.
Thanks,
Jason
-
- jasondodds
- June 13, 2012
- Like
- 0
- Continue reading or reply
Exclude manage package tests when setting runalltests=true with Ant migration tool
Below is the path we are using to promote code (this process is not unique within our company or continuous integration lifecycle in general):
- Develop code in developer's sandbox.
- Check-in code to source control (for us it is Git/GitHub)
- Jenkins build job monitors commits to GitHub master branch and runs a deploy to Integration sandbox when changes are found. All tests are run during build <deploy runalltests=true> (FAIL)
- The QA runs a manual Jenkins job to deploy master branch to QA sandbox. All tests are run during build <deploy runalltests=true> (FAIL)
- After QA, the master branch is pushed to the Staging sandbox via Jenkins for user acceptance testing. No tests are run <deploy runalltests=false> (PASS)
- Code is deployed to Production org using Jenkins build. During this deployment process, runAllTests= false, so only the non-managed Apex test code gets executed <deploy runalltests=false> (PASS)
-
- jasondodds
- January 17, 2014
- Like
- 1
- Continue reading or reply
Exclude manage package tests when setting runalltests=true with Ant migration tool
Below is the path we are using to promote code (this process is not unique within our company or continuous integration lifecycle in general):
- Develop code in developer's sandbox.
- Check-in code to source control (for us it is Git/GitHub)
- Jenkins build job monitors commits to GitHub master branch and runs a deploy to Integration sandbox when changes are found. All tests are run during build <deploy runalltests=true> (FAIL)
- The QA runs a manual Jenkins job to deploy master branch to QA sandbox. All tests are run during build <deploy runalltests=true> (FAIL)
- After QA, the master branch is pushed to the Staging sandbox via Jenkins for user acceptance testing. No tests are run <deploy runalltests=false> (PASS)
- Code is deployed to Production org using Jenkins build. During this deployment process, runAllTests= false, so only the non-managed Apex test code gets executed <deploy runalltests=false> (PASS)
- jasondodds
- January 17, 2014
- Like
- 1
- Continue reading or reply
export CSV or <table> content to VF page to render as Excel using JavaScript
I am trying to implement the following functionality:
I have a dashboard on a VF page that I need to export to Excel(.xls(x) or .csv). The Dashboard itself is not one continuous <table>, so I am creating an output stream via JavaScript that will create a cohesive <table> or formatted CSV to be passed to an apex page with contenttype="application/vnd.ms-excel" to be downloaded as a file. I know I need the server to generate the contenttype so the data downloads as a file, so I just need to populate the page with my passed-in output stream.
My question is, what mechanism do I use to get my JS data (either csv or html) to the VF export page to render? I have tried actionFunctions and JS Remoting with no success. I thought I would throw it out to the developer community to get input on which is the correct path to take (if it is even possible) so I could concentrate my efforts.
Thanks,
Jason
- jasondodds
- June 13, 2012
- Like
- 0
- Continue reading or reply
DataTable in Visual force PDF shows junk data
Hi,
When I use the apex:DataTable tag in my VF, it is showing some junk data.
The codes that I am using are:
VF page:
<apex:page controller="testController" showHeader="false" sidebar="false" renderAs="pdf">
<h2> test text </h2>
<apex:form >
<apex:pageBlock>
<apex:pageBlockTable value="{!AccountList}" var="Account" border="1" width="700">
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
Controller class:
public class testController{
public list<Account> AccountList{get;set;}
public testController(){
AccountList = [select id,Name from Account limit 5];
}
}
This gives the output as
---------------------------------------------------------------------------------
test text
JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
2010201120122013201420152016
MonTueWedThuFriSatSun
Today
---------------------------------------------------------------------------------
The junk data does not appear when I render the page normally.
Any pointers on why this is happening and how to avoid it ?
- Jerun Jose
- August 25, 2011
- Like
- 0
- Continue reading or reply