• Baba G
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 17
    Questions
  • 4
    Replies
Hello All,
            I'm using developer org and I want to develop an lightning app.I just have a option of "Lightning component" so that I wanna know that do I need "Lightning app builder " Is yes thn how can I enable that option?
  • January 15, 2015
  • Like
  • 0

                                   Basicaly I created a table in lighning and trying to populating data from from product object in that table
1- I created a applicatipn with name Pricebook and input following code in it-
<aura:application>
        <head>
    <style>
table {
    width:100%;
}
table, th, td {
    border: 1px solid white;
    border-collapse: collapse;
}
th, td {
    padding: 5px;
    text-align: center;
}
table#t01 tr:nth-child(even) {
    background-color: #eee;
}
table#t01 tr:nth-child(odd) {
   background-color:#fff;
}
table#t01 th    {
    background-color: SlateBlue ;
    color: white;
}
</style>
</head>
<body>
<table style="width:100%;background-color:#6C9EC4; border:outset ; border-color: #666;cellspacing:0;" >
        
         
  </table>    
   
<table id="t01" style="width:100%; border:outset ; border-color: #666">
<tr>
            <td width="25%" colspan="3" bgcolor="#6988D8" >Customer Name
            <input type="text"></input>
            </td>
            <td width="27%" colspan="3" bgcolor="#6988D8">
             Initial Setup Cost<input type="text"></input>
              <p>  Final Setup Cost
                <input type="text"></input>
              </p></td>
    </tr>
  <tr>
      <th>  </th>
    <th>Partner Cost Price</th>
    <th width="12%">Partner Sale Price</th>        
    <th width="14%">Discounts Allowed</th>
    <th width="10%">Turn Over Period</th>
    <th width="12%">Turn Over Volume</th>
  </tr>
    
  <tr>
    <td>Product A</td>
    <td></td>        
    <td></td>
      <td></td>
      <td></td>
      <td></td>
  </tr>
  <tr>
    <td>Product B</td>
    <td></td>        
    <td></td>
      <td></td>
      <td></td>
      <td></td>
  </tr>
  <tr>
    <td>Product C</td>
    <td></td>        
    <td></td>
      <td></td>
      <td></td>
      <td></td>
  </tr>
    <tr>
    <td>Product D</td>
    <td></td>        
    <td></td>
        <td></td>
        <td></td>
        <td></td>
  </tr>
    <tr>
    <td>Product E</td>
    <td></td>        
    <td></td>
        <td></td>
        <td></td>
        <td></td>
  </tr>
</table>
      
    </body>
    
</aura:application>

that showing following table-
User-added image

now when I'm trying to populate data in it it is showing blank,If possible thn please tell me steps that should I follow to  populaate it I'm totally new in it
  • January 15, 2015
  • Like
  • 0
I'm trying to develop an application in lightning but getting only blank aura tab and data is not populating even it do not showing any error. how can I identify my fault and where can i get errror?
  • January 14, 2015
  • Like
  • 0
I just created a Java Swing page. I just want to save the actions/ references submitted by user into Database (MS Access/SQL/Text etc).
User will provide his/her review by giving answers.
Whenever user click on Submit button, i want that the references of Radio Buttons, Text Box, Combo Box save automatically to the Database.
Please help me to solve my problem related to Java database connectivity.


User-added image

Here is the Front end code of My App.............................

import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JRadioButton;
import javax.swing.ButtonGroup;
import javax.swing.JComboBox;
import javax.swing.JTextArea;
import javax.swing.JButton;


public class Customer {

    private JFrame frame;
    private final ButtonGroup buttonGroup = new ButtonGroup();
    private final ButtonGroup buttonGroup_1 = new ButtonGroup();
    private final ButtonGroup buttonGroup_2 = new ButtonGroup();
    private final ButtonGroup buttonGroup_3 = new ButtonGroup();

    /**
     * Launch the application.
     */
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                try {
                    Customer window = new Customer();
                    window.frame.setVisible(true);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

    /**
     * Create the application.
     */
    public Customer() {
        initialize();
    }

    /**
     * Initialize the contents of the frame.
     */
    private void initialize() {
        frame = new JFrame();
        frame.setBounds(100, 100, 779, 521);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().setLayout(null);
        
        JLabel l1 = new JLabel("Was the service performed on time?");
        l1.setFont(new Font("Tahoma", Font.BOLD, 12));
        l1.setBounds(71, 50, 356, 41);
        frame.getContentPane().add(l1);
        
        JLabel l2 = new JLabel("Was the location informed prior to the service?");
        l2.setFont(new Font("Tahoma", Font.BOLD, 12));
        l2.setBounds(71, 91, 356, 41);
        frame.getContentPane().add(l2);
        
        JLabel l3 = new JLabel("Was the location informed prior to the service?");
        l3.setFont(new Font("Tahoma", Font.BOLD, 12));
        l3.setBounds(71, 131, 356, 41);
        frame.getContentPane().add(l3);
        
        JLabel l4 = new JLabel("In a scale of 1-10 how would you rate quality of our service?");
        l4.setFont(new Font("Tahoma", Font.BOLD, 12));
        l4.setBounds(71, 168, 399, 41);
        frame.getContentPane().add(l4);
        
        JLabel l5 = new JLabel("how was your overall experience?");
        l5.setFont(new Font("Tahoma", Font.BOLD, 12));
        l5.setBounds(71, 217, 364, 41);
        frame.getContentPane().add(l5);
        
        JLabel l6 = new JLabel("If you have any issue, Please describe-");
        l6.setFont(new Font("Tahoma", Font.BOLD, 12));
        l6.setBounds(71, 278, 313, 34);
        frame.getContentPane().add(l6);
        
        JRadioButton b1 = new JRadioButton("Yes");
        buttonGroup.add(b1);
        b1.setFont(new Font("Tahoma", Font.BOLD, 12));
        b1.setBounds(490, 54, 52, 34);
        frame.getContentPane().add(b1);
        
        JRadioButton b2 = new JRadioButton("No");
        buttonGroup.add(b2);
        b2.setFont(new Font("Tahoma", Font.BOLD, 12));
        b2.setBounds(571, 54, 46, 34);
        frame.getContentPane().add(b2);
        
        JRadioButton b3 = new JRadioButton("Yes");
        buttonGroup_1.add(b3);
        b3.setFont(new Font("Tahoma", Font.BOLD, 12));
        b3.setBounds(490, 96, 52, 31);
        frame.getContentPane().add(b3);
        
        JRadioButton b4 = new JRadioButton("No");
        buttonGroup_1.add(b4);
        b4.setFont(new Font("Tahoma", Font.BOLD, 12));
        b4.setBounds(571, 93, 71, 36);
        frame.getContentPane().add(b4);
        
        JRadioButton b5 = new JRadioButton("Yes");
        buttonGroup_2.add(b5);
        b5.setFont(new Font("Tahoma", Font.BOLD, 12));
        b5.setBounds(490, 141, 58, 23);
        frame.getContentPane().add(b5);
        
        JRadioButton b6 = new JRadioButton("No");
        buttonGroup_2.add(b6);
        b6.setFont(new Font("Tahoma", Font.BOLD, 12));
        b6.setBounds(571, 141, 46, 23);
        frame.getContentPane().add(b6);
        
        JComboBox comboBox = new JComboBox();
        comboBox.setBounds(496, 178, 46, 23);
        frame.getContentPane().add(comboBox);
        
        JRadioButton b7 = new JRadioButton("Bad");
        buttonGroup_3.add(b7);
        b7.setFont(new Font("Tahoma", Font.BOLD, 12));
        b7.setBounds(490, 220, 52, 34);
        frame.getContentPane().add(b7);
        
        JRadioButton b8 = new JRadioButton("Fair");
        buttonGroup_3.add(b8);
        b8.setFont(new Font("Tahoma", Font.BOLD, 12));
        b8.setBounds(571, 227, 52, 23);
        frame.getContentPane().add(b8);
        
        JRadioButton b9 = new JRadioButton("Good");
        buttonGroup_3.add(b9);
        b9.setFont(new Font("Tahoma", Font.BOLD, 12));
        b9.setBounds(490, 257, 72, 30);
        frame.getContentPane().add(b9);
        
        JRadioButton b10 = new JRadioButton("Excellent");
        buttonGroup_3.add(b10);
        b10.setFont(new Font("Tahoma", Font.BOLD, 12));
        b10.setBounds(571, 261, 89, 23);
        frame.getContentPane().add(b10);
        
        JTextArea textArea = new JTextArea();
        textArea.setBounds(316, 294, 196, 103);
        frame.getContentPane().add(textArea);
        
        JButton btnSave = new JButton("Save");
        btnSave.setFont(new Font("Tahoma", Font.BOLD, 14));
        btnSave.setBounds(359, 423, 121, 34);
        frame.getContentPane().add(btnSave);
        
    
    }
}
  • December 30, 2015
  • Like
  • 0
I want to connect my java application that I developed in eclipse.I have imported enterprise wsdl file in that application. mow someone pls tell me that what step should I follow next 
 
  • December 29, 2015
  • Like
  • 0
please help me that how can I connect my java App with salesforce and what steps should I follow to to that
  • December 28, 2015
  • Like
  • 0
getting error when trying to run application in eclipse
Description    Resource    Path    Location    Type
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path    AccessSalesforceCustomWS.jsp    /ApexSOApCustomWS/WebContent    line 1    JSP Problem
User-added image
  • December 27, 2014
  • Like
  • 0
Unable in generating the enterprise and partner client JARsunable to understand -"generate the enterprise and partner client JARs, run the following command with the enterprise WSDL you downloaded from your organization.

1 java -classpath wsc-XX.jar com.sforce.ws.tools.wsdlc enterprise.wsdl enterprise.jar

2 java -classpath wsc-XX.jar com.sforce.ws.tools.wsdlc partner.wsdl partner.jar"

I have downloaded wsdl and WSC on my desktop.I'm trying to deployed my app in sfdc
  • December 21, 2014
  • Like
  • 0
Getting an error Visualforce Page
[Error] Error: Unknown property 'String.Name'

and code is as blow:

<apex:page Controller="AccountList" sidebar="false">
    <script type="text/javascript"
    src="https://maps.google.com/maps/api/js?sensor=false"></script>
    <style>    
        #map {
            font-family: Arial;
            font-size:12px;
            line-height:normal !important;
            height:400px;        
            padding: 20px;
        }       
        .roundCornerCss{ 
            /* outer shadows  (note the rgba is red, green, blue, alpha) */
            -webkit-box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.4); 
            -moz-box-shadow: 0px 1px 6px rgba(23, 69, 88, .5);
            
            /* rounded corners */
            -webkit-border-radius: 12px;
            -moz-border-radius: 7px; 
            border-radius: 7px;
            
            /* gradients */
            background: -webkit-gradient(linear, left top, left bottom, 
            color-stop(0%, white), color-stop(15%, white), color-stop(100%, #D7E9F5)); 
            background: -moz-linear-gradient(top, white 0%, white 55%, #D5E4F3 130%); 
        }   
    </style>
    <script type="text/javascript">                   
        var geocoder;
        var map;
        var infowindow = new google.maps.InfoWindow();
        var places = [];
        var title_content = new Array();                    
        var popup_content = new Array();                    
        var address = new Array();
        var address_position = 0;                    
        var timeout = 600;
        function initialize(){
            geocoder = new google.maps.Geocoder();
            var latlng = new google.maps.LatLng(29.01, 77.38);
            var myOptions = {
              zoom: 2,
              center: latlng,
              mapTypeId: 'roadmap'
            } 
            <apex:repeat value="{!objAccounts}" var="loc" id="addressesId">
                title_content.push("Name: "+"{!loc.Name}"+" \nClick for more Detail");                 
                address.push("{!loc.BillingStreet}, {!loc.BillingCity}, 
                +"{!loc.BillingPostalCode},{!loc.BillingCountry}");
                popup_content.push("<b>Account Name: {!loc.Name}
                +"<br/>Street: {!loc.BillingStreet}"
                +"<br/>City: {!loc.BillingCity}<br/>Postal Code: {!loc.BillingPostalCode}"+
                +"<br/>Country: {!loc.BillingCountry }</b>");                                                    
            </apex:repeat>    
            map = new google.maps.Map(document.getElementById("map"), myOptions);
            addMarker(address_position);
        }        
        function addMarker(position){
            geocoder.geocode({'address': address[position]}, function(results, status){
                if (status == google.maps.GeocoderStatus.OK) {
                    places[position] = results[0].geometry.location;                                    
                    var marker = new google.maps.Marker({
                        position: places[position],
                        title:title_content[position],
                        icon: getMapIconUrl(position+1),
                        map: map
                    });
        
                    google.maps.event.addListener(marker, 'click', function() {
                        if (!infowindow) {
                            infowindow = new google.maps.InfoWindow();
                        }
                        infowindow.setContent(popup_content[position]);
                        infowindow.open(map, marker);
                    });
                }
                else{
                    if (status == google.maps.GeocoderStatus.OVER_QUERY_LIMIT){
                        setTimeout(function() { addMarker(position); }, (timeout * 3));
                    }
                }
                address_position++;
                if (address_position < address.length){
                    setTimeout(function() { addMarker(address_position); }, (timeout));
                }
            });
        }
        /*
            @Description: To Put diffren color image on Google Map
            @Param: Marker Number to Add on map.
        */
        function getMapIconUrl(markerNumber){
            if(markerNumber > 21){
                markerNumber = markerNumber%20;
            }                    
            var mapIconUrl = "{!URLFOR($Resource.GoogleMarkers, 'GoogleMark/1.png')}";
            var newIcon = markerNumber+'.png';
            mapIconUrl = mapIconUrl.replace('1.png',newIcon);
            return mapIconUrl;
        }         
    </script>  
    <apex:pageMessages />
    <div id="map" class="roundCornerCss"></div>   
    <script>
         initialize();
    </script>
</apex:page>
  • December 06, 2014
  • Like
  • 0
Hello All,
            I'm using developer org and I want to develop an lightning app.I just have a option of "Lightning component" so that I wanna know that do I need "Lightning app builder " Is yes thn how can I enable that option?
  • January 15, 2015
  • Like
  • 0
I'm trying to develop an application in lightning but getting only blank aura tab and data is not populating even it do not showing any error. how can I identify my fault and where can i get errror?
  • January 14, 2015
  • Like
  • 0
Unable in generating the enterprise and partner client JARsunable to understand -"generate the enterprise and partner client JARs, run the following command with the enterprise WSDL you downloaded from your organization.

1 java -classpath wsc-XX.jar com.sforce.ws.tools.wsdlc enterprise.wsdl enterprise.jar

2 java -classpath wsc-XX.jar com.sforce.ws.tools.wsdlc partner.wsdl partner.jar"

I have downloaded wsdl and WSC on my desktop.I'm trying to deployed my app in sfdc
  • December 21, 2014
  • Like
  • 0