Skip to content

Instantly share code, notes, and snippets.

@modestemax
modestemax / downloadFile.js
Created March 31, 2022 11:59
from lwc download sobject attachment salesforce apex ligtning web component
downloadFile(){
getPDF({
filter:this.seachFilter
})
.then(result => {
console.log(result);
//check if no err
if(!result.Error)
this.saveFile( result);
@modestemax
modestemax / world-airport.js
Last active August 29, 2015 14:17
create a bookmarklet to extract iata airports
//window.location.href='http://www.world-airport-codes.com/alphabetical/city-name/b.html'
var all=$('.table-link');
all=all.filter(function(i,e){
return $('td:nth-child(4)',e).text()
});
all=all.map(function(i,e){
return {
begin;
drop object cascade;
rollback;