Ajax (1) Apex Class (12) Apex Trigger (2) Community (2) Home Page (1) HTML (4) Integration (3) JS (7) KB (1) Label (1) Licenses (1) Listing (1) Log (1) OOPs (5) Sharing (1) Static Resource (1) Test Class (3) URI (1) Visualforce (10)

Tuesday, 3 March 2015

Import stylesheet

A.rar. = extract>>>> A.css

<apex:stylesheet value="{!URL($Resource.A,'A.css')"/>

It will work.
But if A.rar =extract>>>  A.B.C.CSS ,A.D.CSS

Code will not work.

In this condition A.zip will work

Monday, 2 March 2015

About Code Coverage

1. Go to Setup
2. Open the Apex Test Execution in Develop.
3. Click on the Options Button and Uncheck the Option: Store Only Aggregated Code Coverage and save it.
4. Please try to test it and let me know if you still face any issues.

Monday, 23 February 2015

Enabling Super User Access in Communities


Enabling Super User Access in Communities | Salesforce

Enabling Super User Access in Communities

Enable super user access so that partner users in communities can access additional records and data.
Available in: Enterprise, Performance, Unlimited, and Developer Editions

User Permissions Needed
To enable Super User Access:“Customize Application”

If your community is set up with Partner Community user licenses, this setting applies. You can also grant super user access to users with Customer Community Plus licenses. For more information, see Grant Super User Access to Customer Users in Your Community.

Granting super user access to external users in your community lets them access additional data and records, regardless of sharing rules and organization-wide defaults. Super users have access to data owned by other partner users belonging to the same account who have the same role or a role below them in the role hierarchy. Super user access applies to cases, leads, custom objects, and opportunities only, but external users have access to these objects only if you exposed them using profiles or sharing and added the tabs to the community during setup.

  1. Click Customize | Communities | Settings.
  2. Select Enable Partner Super User Access.
  3. Click Save.

You can now assign super user access.

To disable super user access, deselect Enable Partner Super User Access. If you re-enable this feature, all users who were assigned super user access before the feature was disabled will automatically get super user access again.



Sunday, 22 February 2015

Hiding Dropdown Values using javascript on community

Create Custom link Javacript:

{!REQUIRESCRIPT("/communityName/resource/1424668417000/krrish")}

Uploaded static resource:
Name: krrish.js
Code:
setTimeout(function(){
var optionDrop = document.getElementById("00N40000002IC8J");
for (i = 0; i < optionDrop.options.length; i++) {
  if(optionDrop[i].value=='Actional' || optionDrop[i].value=='DataXtend SI'|| optionDrop[i].value=='Savvion'||optionDrop[i].value=='Sonic'||optionDrop[i].value=='DCM'||optionDrop[i].value=='POS'||optionDrop[i].value=='ObjectStore'||optionDrop[i].value=='Other'||optionDrop[i].value=='GCE'||optionDrop[i].value=='CIS'||optionDrop[i].value=='EDI'||optionDrop[i].value=='Hosting Services')
    {
   optionDrop[i].style.display= "none";
   }
}},1000);

Monday, 16 February 2015

How do I add myself as a member of a Community if the Manage Link is missing?

How do I add myself as a member of a Community if the Manage Link is missing?


Knowledge Article Number: 000212095 


Description
In the Spring '15 Release it is now required that your profile be listed as a member of the Community in order to Manage it. If your profile is not listed as a Member then the new Manage Link will not be visible. The following walkthrough shows you how to add your profile back into the Community using the Apex Data Loader tool. 


Resolution
CREATE THE CSV FILE FOR INSERT:

Step 1: Gather your ParentID (Profile) and NetworkID (Community). The following Screen shots demonstrate how to gather this. 

Img 1: Profile ID can be copied from the URL of the Profile detail page.

User-added image

Img 2: NetworkID can be gathered by right clicking on the URL for the Community in the All Communities page in setup. Select Inspect Element and it should give you a console view below the page with the NetworkID highlighted.

User-added image

2. Create a .csv using a program such as Microsoft Excel and include the following Columns:

NETWORKID
PARENTID

3. Input the ID's that you gathered from Step 1 and add them to your csv file. Please see the following screen capture:

Img 3: Spreadsheet showing the correct formatting.

CSV Format

4. Save your file to your computer.

INSERT USING DATA LOADER

1. Download and install the Data Loader tool. Please see the following help article on how to do this:

https://help.salesforce.com/HTViewSolution?id=000005247&language=en_US

2. Open Data Loader and then click on Insert which takes you to the login screen. Login using your Salesforce username and password. See Following Image:

Img 4: Data Loader Login.

User-added image

3. After you receive the Login completed successfully message click next. You should now be at the "Select Salesforce object" page. Click the checkbox next to "Show all Salesforce objects" and Select Network Member Group from the picklist.

4. On the same page Click Browse to add the file location of the CSV file you just saved to your computer. Click Next once you have done this.

5. You will be presented with a Data Selection window showing how many records will be updated. See the following:

Img 5: Records to be updated.

User-added image

6. Click OK. You should now be on the Mapping portion of the process. Click Create or Edit a Map.

7 Click Auto-Match Fields to Columns and click OK.

8. Click Next.

9. Final step is to specify where to save the Success and Error files when the process completes. Click Browse to do this and click Finish.

Now check the All Communities page in setup to confirm that you now see the "Manage" link on the row of the affected Community. 

Friday, 13 February 2015

Column Toggle Table

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>

<div data-role="page" id="pageone">
  <div data-role="header">
    <h1>Column Toggle Table</h1>
  </div>
  
  <div data-role="main" class="ui-content">
     <p>The "column toggle table" will hide columns when there is not enough width to display the data.</p>
    <p>In this example we have used the well-known Northwind sample database. Below is a selection from the "Customers" table.</p>
    <h4>Slowly resize the width of your browser window. The layout will adjust itself to fit the "new" width of the browser. OR, you can use the "Columns..." button to choose which column should be hidden or shown.</h4>
    <table data-role="table" data-mode="columntoggle" class="ui-responsive" id="myTable">
      <thead>
        <tr>
          <th data-priority="6">CustomerID</th>
          <th>CustomerName</th>
          <th data-priority="1">ContactName</th>
          <th data-priority="2">Address</th>
          <th data-priority="3">City</th>
          <th data-priority="4">PostalCode</th>
          <th data-priority="5">Country</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>1</td>
          <td>Alfreds Futterkiste</td>
          <td>Maria Anders</td>
          <td>Obere Str. 57</td>
          <td>Berlin</td>
          <td>12209</td>
          <td>Germany</td>
        </tr>
        <tr>
          <td>2</td>
          <td>Antonio Moreno Taquería</td>
          <td>Antonio Moreno</td>
          <td>Mataderos 2312</td>
          <td>México D.F.</td>
          <td>05023</td>
          <td>Mexico</td>
        </tr>
        <tr>
          <td>3</td>
          <td>Around the Horn</td>
          <td>Thomas Hardy</td>
          <td>120 Hanover Sq.</td>
          <td>London</td>
          <td>WA1 1DP</td>
          <td>UK</td>
        </tr>
        <tr>
          <td>4</td>
          <td>Berglunds snabbköp</td>
          <td>Christina Berglund</td>
          <td>Berguvsvägen 8</td>
          <td>Luleå</td>
          <td>S-958 22</td>
          <td>Sweden</td>
        </tr>

      </tbody>
    </table>
  </div>

  <div data-role="footer">
    <h1>Footer Text</h1>
  </div>
</div> 

</body>
</html>

Wednesday, 11 February 2015

just found another list of uri mappings:

Standard object based pages:

/d: Detail- Detailing a single record and with its associated records 
/m: Hover- HoverDetail page that uses a mini layout and no header/footer 
/e: editPage Allowing the editing of a single record 
/p: printableView- In a relatively unadorned format, detailing a single record and all of its associated records. Does not have a help link, since you can't click links on paper.
/o: Overview of a single entity. 
/l: list- A filtered list of a single entity 
/x: Printable list: A filtered list of a single entity. Does not have a help link, since you can't click links on paper.
/r: Refresh list: A stripped down version of a list filtered by ids 
/s: special: Special is used for "other" pages where you want to reuse parts of the edit/detail page
/h: history: Show the history (used only in forecasting) 
/a: Assign: Entity Owner Change page 
/c: calendar: Time-based (Calendar) view of list data 
/n: mini edit: Mini layout edit page 

Custom Objects based Pages

/d: Detail
/m: Hover
/e : Edit
/p: Printable View
/o: Overview
/l: List
/x: Printable List
/a: Assign
/r: Refresh List