• vinay maladkar 11
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 0
    Replies
Hi,
I have a requirement to upload a local csv file to an opportunity throught javascript code - I read "https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_insert_update_blob.htm" post and tried the jquery POST but no success.

var data = new FormData();
                data.append('entity_content', JSON.stringify({
                    contentDocumentId: '06936000002p8gFAAQ',
                    title: 'sample from js'
                }));
                data.append('versionData', $inputFileSelector[0].files[0], 'sample csv.csv');

                $.ajax({
                    url: url,
                    method: "POST",
                    headers: {
                        "Content-Type": 'multipart/form-data',
                        "Authorization": "Bearer " + sessionId
                    },
                    data: data,
                    cache: false,
                    processData: false
                })

Please help me on how to upload local file to opportunity using api in jquery.

Thanks
Vinay
Hi,
I have a requirement to set focus and out focus for an UI:inputIText field on click of a button in lightning component. How I can achieve this?

I tried -  component.find('myText').element().blur();
but this does not work.

Thanks in advance,
Vinay
Hi,
I have a custom tab to show a custom visualforce page. In lightning, the page url grows very high when I navigate to this tab and opportunity tab two to three times. This causes tab to be non-responsive. Looks like its appending the recursive history into the url.

This happends only in lightning experience.

Any clue or workaround would help.

Thanks
Vinay
Hi,
We have custom tabs and buttons for one of our custom object. When Lightning Experience page loads, initially these tabs and buttons works very well in all browsers. But after navigating 2-3 times these tabs and buttons stops working in IE, at the same time the SF standard tabs and buttons still works. 
We noticed this behavior in IE and FF but not in chrome. In chrome all tabs and buttons works always.

Does anyone has this experience. 
Please help.

Thanks in Advance,
Vinay