• BAGEL
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 54
    Questions
  • 59
    Replies

Hi everyone,

 

I am trying to fix my s-control. Currently I ran into two issues. I have the following code:

 

var icon = sforce.connection.query("Select d.id from Document d where Name='SCMgr Icon'").records.Id;
var tab = sforce.connection.query("Select w.id from WebLink w where Name='SalesAdvisor'").records.Id;
var trans = sforce.connection.query("Select d.id from Document d where Name='onepixel'").records.Id;

 

it works perfectly when I logged in as System strator profile.

 

however, when I logged in as Standard User profile, it doesn't.

more interestingly, I get value for icon, but I get undefined for tab and trans.

I can go to the document section and open SCMgr Icon and onepixel just fine.

 

If anyone can help, I will be very much appreciated. Thanks.

Hi all,

 

I run into a problem with the following line when I am not log in as Administrator. Does anyone know why and how to resolve this? Thanks in advance.

 

var tab = sforce.connection.query("Select w.id from WebLink w where Name='Advisor'").records.Id;

 

William

i am getting an error "sObject type weblink is not supported" when trying to query the weblink table from the api within an application to get the name of a custom button and link.  what permissions do i need to setup for the user's profile in the ui for this to work?

Hi there,

I upload some images & javascript files to Static Resource section. However when I try to access those resource in my S-Control by {!$Resource.resource_name}, it gives me a syntax error saying it does not exist. Do we allow to use Static Resource in our S-Control? If so, what did I do wrong? What is the correct way? Please help, and thanks in advance.
Hi everyone,

I have a question on how to access my attachment on Document section in my S-Control. Before, I was able to "copy and paste" the URL, and it worked fine. However, now it doesn't work anymore when I install my app to a different account. Salesforce support tells me that I need to create a query within the links to my internal items that call for the new ID then it will resolve to the new id for the document or object link.

However, what does that mean? How do I query my internal items? Can anyone give me an example or something? Thanks.


Hi,

I have an urgent problem that needs to figure out ASAP.

We have an app on appexchange. In our app, we use some internal link like so "https://na5.salesforce.com/servlet/servlet.FileDownload?file=01540000000KqY6" in our S-Control. As I understand, When an user install our app, AppExchange will will update these links with their environment setting. Everything is working fine since last week. But today, when a new user installed our app, the links don't update properly. Any ideas? does saleforce/appexchange change something? I need this resolves quickly. Please response. Thanks.

William
Hi all,

I have setup a managed package in Developer Settings. I would like to know if it is possible to change any of the options after? Because I don't see there is any Edit button in that section. Thanks.

Is it possible to initiate a session using an existing session id?

It seems like the beta version of the toolkit allowed you to do that while the release version requires you to call login(username, password) before you can call the api using javascript.

I have a page on my own server that needs to interact with the API. I have the server url and the session id so I'd like to be able to use those to initiate the session. Will connection.js handle it? Do I need to set a certain javascript variable to my session?

Thanks!
Hi All,

I was looking at the screencast for PTODemo (Time Off Manager App). I am very impressed with it. I am wondering if it is available for public use. One thing I am still wondering how to do, I noticed that after the demonstrator clicked on "Submit for Approval", the button (along with a few others) will no longer showing when next time the document opens. How to do that? Anyone?