• chrisx01
  • NEWBIE
  • 15 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 7
    Replies
Hello,

I want to use  Microsoft Bing Map in a Lightning App.
I get CORS  issue :
Access to XMLHttpRequest at 'https://www.bing.com/rb/3x/cj,nj/0ba6db4b/2acb1961.js?bu=B-8EgQWfBaEF4QSkBfQE' from origin 'https://xxxxx.visual.force.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. 
 But  the I enter the Entpoint in CORS section.

Hello,

 

I want  build a simple App.

Native  not Hybrid. I have some Buttons on the main Screen, which opens a Webview to a SF Org ( Lists, Links  etc)

I use to start the  Sample app with SFRest an Oauth.

(http://www2.developerforce.com/en/mobile/getting-started/ios#native)

How can I build this to open a  Webview which open when i press the Button.

 

Chris

 

Hello

 

i want to develop  a native app for ios.

i have download the SDK  & Foreeios like the tutorial.

i create the sample app and i want to compile.

but now i can not compile because " failed message"

 

i use xcode 4.2 on snow leopard ( patched to work ios sdk 6  &7)

 

Works the force sdk only xcode >4.5 ?

 

 

Chris

Hello,

 

i want to get the Email Address from the orignal Sender

for Example Person A send a mail to Emailprogram B and this send the Mail To C Salesforce Email Service.

Now I want to get in SF the Emailaddress from Person A.

When I try to print out the Header 

 

  for (Messaging.InboundEmail.Header header : email.headers) {

...

 i get  header name and value form B not from A. How can I get the Address form A

If i Look the Source Email before i Send to SF, there is a Key with Received with the Address, but in SF is not there?

How can i get fix this?

 

Chris

Hello,

 

I want try to develop a heroku app with spring (eclipse template) but i does not work.

i get a error access token expiered  or oauth is invlaid.

how can i build a spring app on heroku that's connect salesforce and integrate with canvas

 

when i use the jsp with  a decode function it work ?

 

chris

 

Hello,

 

i'm new on apex, where can i find a simple tutorial ?

with a  simple page and a simple class.

A description step by step that would be nice.

 

Chris

I have a lightning-datatable web component which is happily displaying data.  I have written an onsort function which is performing the sort correctly in the controller but is not rerendering the display of the table so nothing appears to change.

I know the rows are being sorted because the rows have view and edit actions and clicking these performs the action against the correctly sorted row, even if it doesn't match what's being displayed.  It's as if I need to manually trigger some kind of refresh to cause the data on the screen to be updated to match the data in the controller, but the data is @api decorated so it should be doing it automatically, as I understand it.

There's not much out there about lightning web components, wondered if someone on here could offer a suggestion?
 
<template>
    <lightning-datatable data={tblData}
                         columns={columns}
                         hide-checkbox-column={hideCheckboxColumn}
                         sorted-by={sortedBy}
                         sorted-direction={sortedDirection}
                         key-field={keyField}
                         onsort={updateColumnSorting}
                         onrowaction={handleRowAction}
    >
    </lightning-datatable>
</template>
import { LightningElement, api, track} from 'lwc';
import { CurrentPageReference, NavigationMixin } from 'lightning/navigation';

export default class DatatableSortableWeb extends NavigationMixin(LightningElement) {
    @api tblData = [];
    @api columns;
    @api hideCheckboxColumn;
    @api sortedBy;
    @api sortedDirection;
    @api keyField;

    /*
    If user clicks a column header, sort using event params
    */
    updateColumnSorting(event) {
        var fieldName = event.detail.fieldName;
        var sortDirection = event.detail.sortDirection;

        // assign the latest attribute with the sorted column fieldName and sorted direction
        this.sortedBy = fieldName;
        this.sortedDirection = sortDirection;
        this.tblData = this.sortData(fieldName, sortDirection);
    }

    /*
    Sort table, ignoring case and treating empty cells as "zzz" so they come last when sorting ASC
    */
    sortData(fieldName, sortDirection) {
        var dataToSort = this.tblData;
        var reverse = sortDirection !== 'asc';
        //sorts the rows based on the column header that's clicked
        dataToSort.sort(this.sortBy(fieldName, reverse));
        return dataToSort;
    }

    sortBy(field, reverse, primer) {
        var key = primer ?
            function(x) {return primer(x.hasOwnProperty(field) ? (typeof x[field] === 'string' ? x[field].toLowerCase() : x[field]) : 'zzz')} :
            function(x) {return x.hasOwnProperty(field) ? (typeof x[field] === 'string' ? x[field].toLowerCase() : x[field]) : 'zzz'};

        //checks if the two rows should switch places
        reverse = !reverse ? 1 : -1;
        return function (a, b) {
            return a = key(a), b = key(b), reverse * ((a > b) - (b > a));
        }
    }


 
We created a simple iOS native app, which should allow users to login into SF once and then open Lightning community app in a Webview. For this purposes we have below steps:
1. User launch the mobile app;
2. App calls Mobile SDK, which redirects to community login page, where user enters login and password; That allows us to get and refresh session token if this is required.
3. We get an authorization token and passing community URL + token into WebView.
4. We tried to pass authorization token as a parameter like:

let request = try! URLRequest(url: URL(string: "<Link to community page>")!, method: .get, headers: ["Authorization" : "Bearer \(token!)"])
or using frontoor.jsp.

both ways works fine when I try to open classic SF page or application. But when I try to open Community page it asks login again. So that means that those ways does not work with a community pages.
So how can I pass authorization token to a Webview for a community users? Any help would be appreciated! Thanks!

Hello,

 

I want  build a simple App.

Native  not Hybrid. I have some Buttons on the main Screen, which opens a Webview to a SF Org ( Lists, Links  etc)

I use to start the  Sample app with SFRest an Oauth.

(http://www2.developerforce.com/en/mobile/getting-started/ios#native)

How can I build this to open a  Webview which open when i press the Button.

 

Chris

 

Hello,

 

I want try to develop a heroku app with spring (eclipse template) but i does not work.

i get a error access token expiered  or oauth is invlaid.

how can i build a spring app on heroku that's connect salesforce and integrate with canvas

 

when i use the jsp with  a decode function it work ?

 

chris

 

Hello,

 

i'm new on apex, where can i find a simple tutorial ?

with a  simple page and a simple class.

A description step by step that would be nice.

 

Chris