• Saransh Bharadwaj 1
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 5
    Replies
Hi Guys,

Need some help on below dynamic query. I am getting error here somewhere on 'in' operator.
 
list<Call_Memo__share> lstCallMemoShareTemp = Database.query('Select Id from Call_Memo__share'
                                                                     +'where RowCause =: '+Schema.Call_Memo__Share.RowCause.Call_Memo_Sharing_Account_Coverage_Team__c
                                                                     +'And ParentId in'
                                                                     +'(Select Id from Call_Memo__c Where'+ ParentName +' in: '+setParentId+')');

Thanks
 
Can we create a single page for both desktop and mobile(Salesforce 1) with different interface?
Means If I open my VF page on desktop it should come up as VF page but on mobile it should come up as HTML5 page. Is this something possible?

Thanks!
Hi Guys,

I want to fetch out picklist field values on visualforce page. These picklist values are already defined at object level. So for ex: I have an object called custom__c and field over it is permission__c(Picklist field) with values [Read;Write;No Access].
Now without using controller, can I print these 3 values on visualforce page?

Thanks!
Can anyone help me in creating below JSON using javascript? I have all values but unable to create a JSON.
UserId1 and UserId2 is nothing but Salesforce user ids.
{
  "UserId1": {
    "Account": "Private",
    "Contact": "Private",
    "Oppor": "Private",
    "Case": "Private",
    "Team": "--None--"
  },
  "UserId2": {
    "Account": "Private",
    "Contact": "Private",
    "Oppor": "Private",
    "Case": "Private",
    "Team": "--None--"
  }
}

I have used this way to create this JSON but was not able to create it.
var finalJSON = { };
finalJSON.userId = <UserIdValue>;
finalJSON.userId = '{"Account": "'+Account+'","Contact": "'+Contact+'","Opportunity": "'+Opportunity+'","Case": "'+Case+'","Team": "'+Team+'"}';


 
Hi Guys,

I have been looking for some tip or trick through which I can include lookup magnify button in front of my html input textbox.
I actually want to include standard user lookup popup page because I am not using <apex:inputfield> tag here, I can't achieve this without some code hack.

Please don't recomment VF page for this lookup popup page because I don't want this but only standard one.

--
Thanks in Advance
Hi,

I have a test class in which I am deleting all custom setting records first and then doing :
deleteAllCustomSettings(); //Custom method deleting all custom settings before starting a test.
my_custom_settings__c settings = my_custom_settings__c.getInstance();
When I am checking debig log for this "settings" object, I can see result like my_custom_setting__c:{SetupOwnerId = 005********} as a result but I am expecting "null"

Has any one had ever encounter this?
 
Hi Guys,

Need some help on below dynamic query. I am getting error here somewhere on 'in' operator.
 
list<Call_Memo__share> lstCallMemoShareTemp = Database.query('Select Id from Call_Memo__share'
                                                                     +'where RowCause =: '+Schema.Call_Memo__Share.RowCause.Call_Memo_Sharing_Account_Coverage_Team__c
                                                                     +'And ParentId in'
                                                                     +'(Select Id from Call_Memo__c Where'+ ParentName +' in: '+setParentId+')');

Thanks
 
Can we create a single page for both desktop and mobile(Salesforce 1) with different interface?
Means If I open my VF page on desktop it should come up as VF page but on mobile it should come up as HTML5 page. Is this something possible?

Thanks!
Hi Guys,

I want to fetch out picklist field values on visualforce page. These picklist values are already defined at object level. So for ex: I have an object called custom__c and field over it is permission__c(Picklist field) with values [Read;Write;No Access].
Now without using controller, can I print these 3 values on visualforce page?

Thanks!
Hi,

I have a test class in which I am deleting all custom setting records first and then doing :
deleteAllCustomSettings(); //Custom method deleting all custom settings before starting a test.
my_custom_settings__c settings = my_custom_settings__c.getInstance();
When I am checking debig log for this "settings" object, I can see result like my_custom_setting__c:{SetupOwnerId = 005********} as a result but I am expecting "null"

Has any one had ever encounter this?