• hsupriya
  • NEWBIE
  • 75 Points
  • Member since 2013

  • Chatter
    Feed
  • 3
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 5
    Questions
  • 9
    Replies

I am usinf custom Salesforce.com tabs as my community pages. 
Using standard functionality, I can upload only one header image. I want 2, one on the extreme right and other on the extreme left corner of the page. 
Any idea, how can I achieve it? If you have a sample code, it will be a great help.
Thanks,

Supriya

My JSON output looks as follows:

 

{\n \"Name\" : \"mary mercy\",

\n \"Email\":\"mmercy@gmail.com\",

\n \"Phone\" :\"(xxx) xxx-xxx\"\n}"

 

I want to be able to be parse these individual values Name, Email and Phone and display them on the VF page.

 

I tried using deserialize, but it gave me the fatal error saying, 

Malformed JSON: Expected '[' at the beginning of List/Set

 

 

Please help. Thanks

Hello, 

 

Currently, the code for my HTTPRequest looks like this and it works perfectly!

 

String strBody ='grant_type=password
& client_id=3MVG9A2kN3Bn17htdoBkg4rhC3s7_2.RuejWu40cERuwe9wW7zVaPZ.rSmqCjv0x_hbmqHim8dIEg
&client_secret=581611111111111111
&username=username@gmail.com
&password=mypassword1234vU13GM4JKSA5tVCh8UIlrNec7';

 Http http = new Http();

 HttpRequest req = new HttpRequest();
 req.setBody(strBody);
 req.setMethod('POST');
 req.setEndpoint('https://login.database.com/services/oauth2/token');

 

But when I put my username and password in string variables, and pass those variable in the requestbody, as follows,

String uname = 'username@gmail.com';

String pword = 'mypassword1234vU13GM4JKSA5tVCh8UIlrNec7';

String strBody ='grant_type=password
& client_id=3MVG9A2kN3Bn17htdoBkg4rhC3s7_2.RuejWu40cERuwe9wW7zVaPZ.rSmqCjv0x_hbmqHim8dIEg
&client_secret=581611111111111111
&username=uname
&password=pword';,

 

throws

 

error":"unsupported_grant_type","error_description":"grant type not supported

I am looking for a way where I can dynamically send the parameters.

 

Please help.

 

 

 

 

My salesforce site has a form with the fields Name, Email, Address and Date(the fields from a custom object). Every time, the record is saved I want it to be saved in Database.com, bypassing the salesforce org. I need help on this topic. Thanks in Advance

I am quite new to apex and triggers and stuck at a point.

I have 2 objects Account(Standard) and DummyObject(Custom) and a junction object AccountDummy joining these 2. The junction object has a look-up on both Account and the DummyObject. There is a related list of Accounts on DummyObject and I want to have the count of these Accounts which I will store in a custom number field on my DUmmy Object.

I searched for various solutions online but nothing seems to be working as I want.  Ane help is greatly appreciated :)

My JSON output looks as follows:

 

{\n \"Name\" : \"mary mercy\",

\n \"Email\":\"mmercy@gmail.com\",

\n \"Phone\" :\"(xxx) xxx-xxx\"\n}"

 

I want to be able to be parse these individual values Name, Email and Phone and display them on the VF page.

 

I tried using deserialize, but it gave me the fatal error saying, 

Malformed JSON: Expected '[' at the beginning of List/Set

 

 

Please help. Thanks

Hello, 

 

Currently, the code for my HTTPRequest looks like this and it works perfectly!

 

String strBody ='grant_type=password
& client_id=3MVG9A2kN3Bn17htdoBkg4rhC3s7_2.RuejWu40cERuwe9wW7zVaPZ.rSmqCjv0x_hbmqHim8dIEg
&client_secret=581611111111111111
&username=username@gmail.com
&password=mypassword1234vU13GM4JKSA5tVCh8UIlrNec7';

 Http http = new Http();

 HttpRequest req = new HttpRequest();
 req.setBody(strBody);
 req.setMethod('POST');
 req.setEndpoint('https://login.database.com/services/oauth2/token');

 

But when I put my username and password in string variables, and pass those variable in the requestbody, as follows,

String uname = 'username@gmail.com';

String pword = 'mypassword1234vU13GM4JKSA5tVCh8UIlrNec7';

String strBody ='grant_type=password
& client_id=3MVG9A2kN3Bn17htdoBkg4rhC3s7_2.RuejWu40cERuwe9wW7zVaPZ.rSmqCjv0x_hbmqHim8dIEg
&client_secret=581611111111111111
&username=uname
&password=pword';,

 

throws

 

error":"unsupported_grant_type","error_description":"grant type not supported

I am looking for a way where I can dynamically send the parameters.

 

Please help.

 

 

 

 

My salesforce site has a form with the fields Name, Email, Address and Date(the fields from a custom object). Every time, the record is saved I want it to be saved in Database.com, bypassing the salesforce org. I need help on this topic. Thanks in Advance

I am quite new to apex and triggers and stuck at a point.

I have 2 objects Account(Standard) and DummyObject(Custom) and a junction object AccountDummy joining these 2. The junction object has a look-up on both Account and the DummyObject. There is a related list of Accounts on DummyObject and I want to have the count of these Accounts which I will store in a custom number field on my DUmmy Object.

I searched for various solutions online but nothing seems to be working as I want.  Ane help is greatly appreciated :)

Hi,

 

I have two picklist fields.

 

I am able to apply style for controlling field but the style is not getting applied to dependent picklist.

 

Does anyone know how to apply style to dependent picklist.

 

Even I put javascript for onchange event of controlling picklist field to apply style for dependent picklist.

But it is not working.

 

It will be great help if some one have any idea to do it.

 

Thanks!

Hi.

 

VF code:

 

<apex:pageBlockSection >


<apex:pageBlockTable value="{!accounts}" var="a" columns="3"  style="font-size:25px"  >

<apex:column headervalue="Customer Name" value="{!a.acc.Field3__c}"  />
<apex:column headervalue="Account Name" value="{!a.acc.Name}" />
<apex:column headervalue="Comments" value="{!a.acc.NlTokki__c}" />
</apex:pageBlockTable>


</apex:pageBlockSection>

 

In the above there are 3 columns in the pageblockTable.

Unable to stretch or expand the above 3 columns to a full page.

I also tired with width=" " columnsWidth="" but nothing worked.

The columns are not expanding after certain size.

I need these 3 columns to displayed equally in a full page mode.

 

 

Ideas are greatly appreciated.

 

 

Good day you all

 

I a newbie to Salesforce mobile SDK and android developement in general and I got stuck on my first sample app ContactExplorer which comes with SalesforceMobileSDK. I have imported the project successfully but got the following error 

Error: No resource found that matches the given name (at 'resource' with value '@xml/authenticator')

 this is in line 50 of AndroidManifet.xml file of the application.

 

How can I solve the above problem, your help will be highly appreciated