Nitish Bhardwaj
IndividualForum Replies Created
-
Hi Ravi,
Are you trying to have it sort by default -- or upon click?
You could sort by case number by doing the sorting within the SOQL query. If you're looking for a more dynamic sort function.
You could also check out: http://salesforcesource.blogspot.com/2008/11/adding-sorting-capability-to.html
and
http://blog.jeffdouglas.com/2010/07/13/building-a-dynamic-search-page-in-visualforce/
More specifically, take a look at your debug log (I use the developer console) what variable is the null pointer exception on? It could be your SortField or PreviousSortField...
or for that matter it could be the cases being passed to super sort
-
Nitish
MemberMay 25, 2016 at 10:17 am in reply to: How to convert a timestamp value to datetime in apex?Hi Ajit,
This is known as a "Unix Timestamp" (number of milliseconds since January 1st, 1970, 00:00:00 GMT). In Apex Code, you can use DateTime.newInstance(unixTimestamp) to return a DateTime that contains the formatted date/time value. In JavaScript, use new Date(unitTimestamp) to get the same result. To convert back, in Apex Code, use myDate.getTime(), and in JavaScript, use the same function: myDate.getTime().
-
Nitish
MemberMay 25, 2016 at 10:15 am in reply to: Is it possible to add CSS framework to template using Community Builder?Hi Himanshu ,
You can add CSS frameworks to the template by editing the HTML Head Markup of the template in the community builder. Shown below.
Go to Community Builder -> Settings -> Advanced -> Edit Head Markup
Once You Click the Edit Head Markup Button, you will get a popup like shown in the image below where you can add CSS frameworks and other libraries just like you do in HTML.
-
Nitish
MemberApril 30, 2016 at 9:18 am in reply to: How can I override the standard Account view with a Visualforce page?Hi Shubham
Please follow these simple steps to achieve the result:-
- From the object management settings for accounts, go to Buttons, Links, and Actions.
- Click Edit next to View.
- For Override With select Visualforce Page.
- From the Visualforce Page drop-down list, select tabbedAccount.
- Click Save.
-
Nitish
MemberApril 30, 2016 at 9:12 am in reply to: How can I show a Visualforce page in the sidebar?Hi Shubham
Placing a visualforce page on sidebar is really simple.
1) Create a visualforce page.
2) Create a custom HTML homepage component. using Below Path.
Path: Setup ->App Setup -> Customize -> Home -> Home Page Components -> HTML AREA -> Narrow (Left Column),
3) Click the Show HTML Check box and Place the following code in the HTML area.add this
<iframe src="/apex/[VF PAGE NAME]" height="100" width="100%" frameborder="0"></iframe>
replace [VF PAGE NAME] your custom page name.
4) Finally, Place it on the left side of home page layout.
-
Nitish
MemberApril 30, 2016 at 9:08 am in reply to: Is it possible to initiate Approval Process through Process Builder?Hi Shubham
Due the order's of execution in salesforce it not possible to trigger a approval process through process builder.
You can acomplish this by using a WFR to fire off the process whenever the approved record has the appropriate status.
-
Hi Shubham
Here is this:-
- SOQL Statements
SOQL statements evaluate to a list of sObjects, a single sObject, or an Integer for count method queries.
For example, you could retrieve a list of accounts that are named Acme:
List<Account> aa = [SELECT Id, Name FROM Account WHERE Name = 'Acme'];
2. SOSL Statements
SOSL statements evaluate to a list of lists of sObjects, where each list contains the search results for a particular sObject type. The result lists are always returned in the same order as they were specified in the SOSL query. If a SOSL query does not return any records for a specified sObject type, the search results include an empty list for that sObject.For example, you can return a list of accounts, contacts, opportunities, and leads that begin with the phrase map:
List<List<SObject>> searchList = [FIND 'map*' IN ALL FIELDS RETURNING Account (Id, Name), Contact, Opportunity, Lead];
- SOQL Statements
-
Nitish
MemberApril 30, 2016 at 8:53 am in reply to: What is the difference between individual and zipped static resources?Hi Shubham
Please look into that, this surely helps you
https://developer.salesforce.com/trailhead/en/visualforce_fundamentals/visualforce_static_resources
-
Nitish
MemberApril 30, 2016 at 8:51 am in reply to: How can we build an ecommerce website on Salesforce platform?Hi Shubham
I understand that you wish to create an e-commerce website using sites.com or Force.com sites.
If you wish to only show data as read only - then you might not need authentication but when you need to save there session for them to add items to cart - you will have to ask them to login - where customer portal will come into picture.
Following links might help you get some thoughts:
1)behind the scenes - eCommerce site powered by salesforce.com
http://www.youtube.com/watch?v=vqceIoJKhVg
2)Force.com Sites - Beautiful eCommerce with Salesforce CRM Technology
http://www.youtube.com/watch?v=Etk3fDi-CHUIn case you are looking to integrate your Salesforce with the Ecommerce 3rd party, please do check our intgration guide:
http://www.salesforce.com/us/developer/docs/api/index.htm -
Nitish
MemberApril 30, 2016 at 8:44 am in reply to: What are member based, login based licenses in Salesforce?Hi Shubham
Didn't understand about what you are asking, may be this can help you:-
http://blog.jeffdouglas.com/2009/08/25/salesforce-com-licenses/
-
Nitish
MemberApril 30, 2016 at 8:41 am in reply to: How many communities can we create in Salesforce?Hi Shubham
There's no public answer to your question. I believe you have to contact Salesforce.
Link to post:
-
Nitish
MemberApril 30, 2016 at 8:23 am in reply to: How to extend Salesforce 'send quote by email' page?Hi Audrey
Please follow the below steps
- Create a VF page with Quote as standard controller, and an extension class. The extension class can query all the information you need related to the quote like the related opportunity, account information, etc. Check out this link on how to convert a VF page to a PDF:https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_renderas_pdf.htm
- Override the Create PDF standard button with your VF page. In your VF page, you can replicate the functionality of the standard PDF page generated by Salesforce with buttons like "Send Email" for example.
- You can invoke your 3rd party API to send the email using the button.
-
Nitish
MemberApril 30, 2016 at 8:20 am in reply to: Is it at all possible to pass a parameter through a URL to an input field on a Visualforce page?Hi Danna
you can input your parameter via URL like ap2.salesforce.com/vfPages?id=01Z90000000EkUk for example
and you can add this Id testId = ApexPages.CurrentPage().getparameters().get('id') to get the parameter from url then you can put the testId to hidden input field that you want
-
Hi Ravi
The solution for that error is you have to create a new workspace in your org, Please follow the below steps
Please create a new workspace from the Developer Console
Go to Developer Console -> Work Space -> New Workspace
Create a new workspace
Save classes/triggers -
Hi Gaurav
Yes, you can update the profile by following these simple steps
To change a user's profile:
1. Click on: Setup | Administration Setup | Manage Users | Users.
2. Find the user you want to change to a different profile.
3. Click on the "Edit" link next to the user name.
4. In the right-hand column of the user information change the profile from whatever is currently set to the new profile you want them to have.
5. Click "Save". -
Nitish
MemberApril 29, 2016 at 7:16 am in reply to: Is it possible for an AppExchange package to create a custom list of custom fields?Hi Audrey
No, you can't dynamically create schema with a package. You would need to either include all fields and "feature" them selectively in different configurations or have different packages.
I would suggest using your base managed package for all, and then offer a custom designed unmanaged package for each different customer, with their specific custom fields.
-
Hi Audrey,
You can use 'Voice Assist for Salesforce' app to convert an audio file into text in salesforce.
-
Nitish
MemberApril 29, 2016 at 7:00 am in reply to: Email a dashboard time to time in wave analyticsHi Audrey
Unfortunately, this capabilities do not exist yet in Wave.
-
Nitish
MemberApril 14, 2016 at 8:39 am in reply to: Is it possible a multi-level relationship query on Chatter/Comments?Hi Himanshu,
Yes, we can do that, Here is a sample code, please try this and let me know if it is helpful
List<FeedItem> feedWithComments = [SELECT Id,Body,ParentId, (SELECT Id, CommentBody, FeedItemId FROM FeedComments) FROM FeedItem WHERE ParentId IN (SELECT Id FROM myObject WHERE Field = 'value')];
-
Hi Ajit,
Please try this, Add this '?=' character before the value on which you want to split,
String str = ‘abc-xyz-pqrs-zykp’;
listtest = str.split(‘?=-‘);
Output : {abc,-xyz,-pqrs,-zykp}
OR if you want the dash '-' at the end of your list values than add this "(?!-)" before the value.
String str = ‘abc-xyz-pqrs-zykp’;listtest = str.split(‘?!-‘);
Output : {abc-,xyz-,pqrs-,zykp}