• Ram Shiva Kumar
  • NEWBIE
  • 90 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 24
    Questions
  • 16
    Replies
Hi,

i have created a new action to which i have added an aura componnet which contains some child components and events as well. 
Now i go to account record clicking the new action and i get total flow of my aura compoents like page navigation in classic. and iam submitting the aura compoents well.
Issue comes when i open any other account record with out refreshing the url. When i open the other account record and clicking the new action after that i will filll some details in aura component and tried to move  next aura compoent but it is not going any where simply staying in the same page.

not sure why iam facing this issue for the second time .Please  suggest me .

Regards,
Shiva.
Hi,

I  have created a new action (button in classic ) in lighteing expereince. And to that  new action i have  added my aura component. Now when i click on the new action iam getting a modal box in which iam  able to see my aura component.

But i want to  display my aura component in seperate tab or window when i click on the new action . 

please sugget  me how to open my aura component in seperate tab or window when i click on the new action  


Regards,
Shiva Ram.
Hi,

I  have created a new action (button in classic ) in lighteing expereince. And to that  new action i have  added my aura component. Now when i click on the new action iam getting a modal box in which iam  able to see my aura component.

But i want to  display my aura component in seperate tab or window when i click on the new action . 
please sugget  me how to open my aura component in seperate tab or window when i click on the new action.


Regards,
Shiva.
Hi ,

in server side controller i have get, set properties .. and i want to access those variables inside my client side controller..of mu aura component...
please suggest me  which way is best for me  for the above...
Hi, i want to display the custom setting values in in aura component. 
this is my controller,
@AuraEnabled
    public static  shop__c  details()
    {
       shop__c adv= shop__c .getOrgDefaults();
     
        return adv;
    }

and in aura client controller,
getaddvalues: function(component) {
   
   var address=component.get('c.details');
   
    var self = this;
    address.setCallback(this, function(actionResult) {
    
      component.set("v.addressdetails", actionResult.getReturnValue());
      
    });
        
    $A.enqueueAction(address);
     },

amd my component:
 <aura:iteration items="{!v.addressdetails}" var="list">
                         <ui:outputText value="{!list.To_mail}" />

But with the above code iam not getting the custom setting values.
Please suggest me whther i am following the corrcet way or i have to implment  in other way......?



Regards,
Ram.
Hi i want to  get the css styles from  VF page to aura component ..but iam unable to get the styles same as  in vf page (ex:back ground color, width,margin)

below is my vf page css style:

 <div style="background-color: lightgrey; margin-left: 100px; margin-right:100px;  border: 2px solid black;">
            <br/>
            <h1 style="color: red; margin-left: 100px; font-size:15px;">hi how are u
            </h1>
            <br></br><br></br>
            <div style="background-color: white; margin-left: 100px; margin-right:100px;  border: 1px solid black;">
                <br></br>
                <table>
                    <tr>
                        </tr>


Please suggest me how can i implemnet the same styles in AURA component with slds ......


Regards,
Ram.
Hi aim completely new to  lightening , i have created an aura componet and placed that  component in lighteingapp. When i  try to preview the app iam getting the  error like 
'We can't load the page. Please click Refresh.'

and in my aura coponent iam refering my controller (server side )  variables like the follwing ,

<aura:if isTrue="{!v.accountdata.size!=0}">
<div class="slds-truncate" title="Details ">Account details</div>
 </aura:if>

So please suggest me how   can i over come this and please suggest me if u have any previus examples .


Regards,
Shiva Ram.
Hi,
This is regarding the code coverage for the class in which we have used the external object. in our  class we are fetching the data from the External object.We have written a test class  in such away that, we skipped (using  Test.isRunningtest() ) the  query  which is fetching the data from the external object. But unfortunately we are getting code coverage only 50%. at least we should  improve the code coverge to 80%  for that class.
So please  suggest us how to proceed further.


Kind Regards,
Siva.
Hi ,

I wrote a code in which  i have implemented the bootstrap Glymphicons (Search,Print .) . Actually i want the logic in such away that , when i click on the "Search" button of the Glymphicons , a controoler Srarch methos should  be execued .  But iam unable to link  the Glymphicons with the Controller class. here is my code,

<apex:page standardController="Account" extensions="Accountss" sidebar="false"   showHeader="false" standardStylesheets="false">
    <head>
        <font size="5" color="Red">
     
 <marquee behavior="scroll" direction="left">Hi SHIVA, HAVE A NICE DAY</marquee>
    
    </font>
<link href="{!$Resource.sfdc}\bootstrap-sf1-0.1.0-beta.16\dist\css\bootstrap.min.css" rel="stylesheet"/>
    </head>
    <apex:form >
    <apex:panelGrid columns="1" style="float:right;" >
        <apex:image id="theImage" value="{!$Resource.img}" width="200" height="100"/>
        
       </apex:panelGrid>
      <br> </br>
    
    <h2>
         Welcome to Boot Strap
    </h2>
    
    <h3>Name</h3>
            <apex:inputField value="{!Account.Name}" styleClass="form-control" style="width: 360px; height: 40px"   /><br/>
             <h3>Description</h3>
            <apex:inputField value="{!Account.Description}"   styleClass="form-control" style="width: 360px; height: 40px"  /> <br/>
             <h3>Revenue</h3>
            <apex:inputField value="{!Account.AnnualRevenue}" StyleClass="form-control" style="width: 360px; height: 40px"  /><br/>
            

            <apex:commandButton action="{!save}" styleClass="btn btn-success" value="Create New Account" />
    
    
    
      <h1> Glyphicons with Boot strap</h1>
  <p>Resize the browser window to see the effect.</p>
  

<div class="container-fluid">
    
       
      <h2>Glyphicon Examples</h2>
      
      <p>Envelope icon: <span class="glyphicon glyphicon-envelope"></span></p>
      <p>Envelope icon as a link:
        <a href="#">
        
        
       <span class="glyphicon glyphicon-envelope"></span>
        </a>
        </p>
        
        
        
      
      <p>Search icon: <span class="glyphicon glyphicon-search"></span></p>
      <p>Search icon on a button:
        <button type="button" class="btn btn-default"   >
          <span class="glyphicon glyphicon-search"></span> Search
        </button>
      </p>
      <p>Search icon on a styled button:
        <button type="button" class="btn btn-info">
          <span class="glyphicon glyphicon-search"></span> Search
        </button>
      </p>
      <p>Print icon: <span class="glyphicon glyphicon-print"></span></p>
      <p>Print icon on a styled link button:
        <a href="#" class="btn btn-success btn-lg">
          <span class="glyphicon glyphicon-print"></span> Print
        </a>
      </p>
     <a href="#">
        <span class="glyphicon glyphicon-home">
   <apex:commandButton action="{!save}" styleClass="btn btn-success" value="Create New Account" />
   </span>
   </a>
   </div>
    
    </apex:form>
     </apex:page>

 
Hi, 

i am using the external java script file from sttaicresource,  according to the code when i click on the "try it " botton  " A paragraph"  line should be changed to "Paragraph changed." but when i click on the button iam not getting any change.  Code is as follows,

VF code:
<apex:page >
<!--In case you uploaded just the file-->
<html>

<head>

<apex:includeScript value="{!URLFOR($Resource.jsss,'siva123.js')}"/>

</head>
<body>

<h1>External JavaScript</h1>

<p id="demo">A Paragraph.</p>

<button type="button" onclick="myFunction()">Try it</button>

<p><strong>Note:</strong> myFunction is stored in an external file called "myScript.js".</p>


</body>
</html>



JS file:

function myFunction() { document.getElementById("demo").innerHTML = "Paragraph changed."; }


Please any body suggest mr for this.


Regards,
Siva.


</apex:page>
 
HI iam tring to impemnt the glyphicon   by using the boot strap, iam getting only text  not getting the glyphicon . here is my code,

<apex:page   showHeader="false">

<html lang="en">

<head>
<!-- If you zip folder has subfolder for css -->
<link href="{!$Resource.sfdc}/css/bootstrap.min.css" rel="stylesheet"/>

</head>
<body>

<div class="container">
  <h2>Glyphicon Examples</h2>
  <p>Envelope icon: <span class="glyphicon glyphicon-envelope"></span></p>
  <p>Envelope icon as a link:
    <a href="#"><span class="glyphicon glyphicon-envelope"></span></a>
  </p>
  <p>Search icon: <span class="glyphicon glyphicon-search"></span></p>
  <p>Search icon on a button:
    <button type="button" class="btn btn-default">
      <span class="glyphicon glyphicon-search"></span> Search
    </button>
  </p>
  <p>Search icon on a styled button:
    <button type="button" class="btn btn-info">
      <span class="glyphicon glyphicon-search"></span> Search
    </button>
  </p>
  <p>Print icon: <span class="glyphicon glyphicon-print"></span></p>
  <p>Print icon on a styled link button:
    <a href="#" class="btn btn-success btn-lg">
      <span class="glyphicon glyphicon-print"></span> Print
    </a>
  </p>
</div>

</body>
</html>



</apex:page>

Please any body suggest me how to  use the Glyphicons in VF page from Boot strap.


Regards,
Siva.
Hi ,
 i have uplaoded the java script  file in staticresoure.  iam getting the pop up correctly. but  ih ave written the function in that file which will return multiplication of 2 numbres . Please suggest me how to display the value returned form the java script.

my ststic resource code is,

function popup() { alert("Hello World") }
function myFunction(a, b) {
    return a * b;


 And the vf code is,

<apex:page >

<html>

<head>
<apex:includeScript value="{!$Resource.jsss}"/>

</head>
</html>

<script type="text/javascript" >
popup()

 myFunction(4,5);
 
 
 

</script>

<apex:pageBlock>


</apex:pageBlock>
</apex:page>
   
Any body suggest me aboutthis.


Regards,
Siva.

 
Hi ,

Iam completely new to implemnt the boot starp .Actually i have created the static resource by uploading the bootstrap in zip formate. Please suggest me how to use the  CSS classes of  of the bootstrap in VF pgae.  And the ZIP file name is  sfdcboot. 

Regards,
Siva  Reddy.
 
Hi iam tring to execute the java script file . i have uploaded the java script file in staticresouces  and impoted that file in to the VFpage. this is my code,


<apex:page>

<apex:pageBlock>


<apex:form>

<!-- Ext JS -->
<head>
   <apex:includeScript value="{!$Resource.jsss}"/> 
   
   </head>
    
</apex:form>

</apex:pageBlock>

</apex:page>

so please sugget me any one.

Regards,
Siva
Hi,

Can  any body tell me the difference betwen the getvalues() and getinstance () methods  customsettings.


Regards,
Siva.
Hi,

Could   you please explain me the "output panel " component  with simple example.

Regards,
Ram.
Hi ,

My requirement is to get the pop up when i click on the enter  in VF page. in  the belwo code  controller methos is being  called, but alert  pop up is not coming when i click on the enter. Code  is  below,

VF CODE:
<apex:page controller="bang1">

<script type="text/javascript">
  
  function f1()
  {
  
   alert('Start invoking vf action!');
  
  
  }
 
</script>
  
  <apex:form >
  
  
  <apex:actionFunction name="f1"   action="{!m1}"  />
  
  <apex:commandButton value="enter"  onclick="f1(); return false;"      />
  </apex:form>
  
</apex:page>

Apex:

Public class bang1
{
Public bang1()
{
System.debug('hiiiiiiiiiii');

}

Public void m1()
{

System.debug('hiiiiiiiiiiiiii');




}

}

Regards,
siva.



 
Hi , 

I have small issue with the action function,i wrote acode in sucha way that i wnat to use the action function in my VF code . But wen i  run the VF code iam not seeing the data{'hiiiiiiiiiiiiiiiiiii) which i mentiond in the M1 method  in the debug logs\. So  i think my method m1 is not beoing called form the Java script and even aim not getting the alert also which i defined in the page. My code is ,


<apex:page controller="bang1">

<script type="text/javascript">
  
  function f1()
  {
  
  alert ('Start invoking vf action!');
  
  
  
  }
 
</script>
  
  <apex:form >
  
  
  <apex:actionFunction name="f1"   action="{!m1}"  />
  <apex:commandButton value="enter"  onclick="f1"     />
  </apex:form>
  
</apex:page>


Controller:

Public class bang1
{

Public void m1()
{

System.debug('hiiiiiiii');



}

}

Pleasesuggest me.

Regards,
Siva
Hi , 

I have small issue with the action function,i wrote acode in sucha way that i wnat to use the action function in my VF code . But wen i  run the VF code iam not seeing the data{'hiiiiiiiiiiiiiiiiiii) which i mentiond in the M1 method  in the debug logs\. So  i think my method m1 is not beoing called form the Java script and even aim not getting the alert also which i defined in the page. My code is ,


<apex:page controller="bang1">

<script type="text/javascript">
  
  function f1()
  {
  
  alert ('Start invoking vf action!');
  
  
  
  }
 
</script>
  
  <apex:form >
  
  
  <apex:actionFunction name="f1"   action="{!m1}"  />
  <apex:commandButton value="enter"  onclick="f1"     />
  </apex:form>
  
</apex:page>


Controller:

Public class bang1
{

Public void m1()
{

System.debug('hiiiiiiii');



}

}

Pleasesuggest me.

Regards,
Siva

 
Hi my requirement is, i want to fetdch the recors from Account object based on the name enter in the VFpage, (when i enter the name ram in VFpage  ,then total recordswith the Name ram have to be fetched ) for that i have written the belwo code, in this codewhen enter the name in the vfpage ima getting the error like bleow
"Attempt to de-reference a null object
Error is in expression '{!values}' in component <apex:commandButton> in page chennai: Class.chennai.values: line 18, column 1 "

andmy code is as follows,

vf code:

<apex:page controller="chennai">

<apex:form>

<apex:outputText>EnterName</apex:outputText>

<apex:inputField value="{!a.Name}"/>

<apex:commandButton value="Enter"  action="{!values}" reRender="one"/>


<apex:pageBlock id="one">
<apex:pageBlockSection >

<apex:pageBlockTable value="{!at}" var="b">

<apex:column value="{!b.Name}"/>


</apex:pageBlockTable>

</apex:pageBlockSection>
</apex:pageBlock>




  </apex:form>
</apex:page>


Apex Code:

Public class chennai
{

Public chennai()
{
List<Account> at=new List<Account>();

Account a=new Account();
}

Public List<Account> at{get;set;}

Public Account a{get;set;}

Public void values()
{

List<Account> at=[select Name from Account where Name=:a.Name];


}

}

Please suggest me

Regards,
siva.


 
Hi,

Can  any body tell me the difference betwen the getvalues() and getinstance () methods  customsettings.


Regards,
Siva.
hi,

i have set the OWD to public read/write and  profile is read only .  i have a sharing rule ( with read/ write)in which  user A wants to share that record to the another user B (in the same profile) .here i have doubt is whether the second user can edit the records or not.

1)and my secod question is profile over rides the OWD....? 

 
Hi ,

in server side controller i have get, set properties .. and i want to access those variables inside my client side controller..of mu aura component...
please suggest me  which way is best for me  for the above...
Hi ,

Iam completely new to implemnt the boot starp .Actually i have created the static resource by uploading the bootstrap in zip formate. Please suggest me how to use the  CSS classes of  of the bootstrap in VF pgae.  And the ZIP file name is  sfdcboot. 

Regards,
Siva  Reddy.
 
Hi iam tring to execute the java script file . i have uploaded the java script file in staticresouces  and impoted that file in to the VFpage. this is my code,


<apex:page>

<apex:pageBlock>


<apex:form>

<!-- Ext JS -->
<head>
   <apex:includeScript value="{!$Resource.jsss}"/> 
   
   </head>
    
</apex:form>

</apex:pageBlock>

</apex:page>

so please sugget me any one.

Regards,
Siva
Hi,

Could   you please explain me the "output panel " component  with simple example.

Regards,
Ram.
Hi ,

My requirement is to get the pop up when i click on the enter  in VF page. in  the belwo code  controller methos is being  called, but alert  pop up is not coming when i click on the enter. Code  is  below,

VF CODE:
<apex:page controller="bang1">

<script type="text/javascript">
  
  function f1()
  {
  
   alert('Start invoking vf action!');
  
  
  }
 
</script>
  
  <apex:form >
  
  
  <apex:actionFunction name="f1"   action="{!m1}"  />
  
  <apex:commandButton value="enter"  onclick="f1(); return false;"      />
  </apex:form>
  
</apex:page>

Apex:

Public class bang1
{
Public bang1()
{
System.debug('hiiiiiiiiiii');

}

Public void m1()
{

System.debug('hiiiiiiiiiiiiii');




}

}

Regards,
siva.



 
Hi , 

I have small issue with the action function,i wrote acode in sucha way that i wnat to use the action function in my VF code . But wen i  run the VF code iam not seeing the data{'hiiiiiiiiiiiiiiiiiii) which i mentiond in the M1 method  in the debug logs\. So  i think my method m1 is not beoing called form the Java script and even aim not getting the alert also which i defined in the page. My code is ,


<apex:page controller="bang1">

<script type="text/javascript">
  
  function f1()
  {
  
  alert ('Start invoking vf action!');
  
  
  
  }
 
</script>
  
  <apex:form >
  
  
  <apex:actionFunction name="f1"   action="{!m1}"  />
  <apex:commandButton value="enter"  onclick="f1"     />
  </apex:form>
  
</apex:page>


Controller:

Public class bang1
{

Public void m1()
{

System.debug('hiiiiiiii');



}

}

Pleasesuggest me.

Regards,
Siva
Hi , 

I have small issue with the action function,i wrote acode in sucha way that i wnat to use the action function in my VF code . But wen i  run the VF code iam not seeing the data{'hiiiiiiiiiiiiiiiiiii) which i mentiond in the M1 method  in the debug logs\. So  i think my method m1 is not beoing called form the Java script and even aim not getting the alert also which i defined in the page. My code is ,


<apex:page controller="bang1">

<script type="text/javascript">
  
  function f1()
  {
  
  alert ('Start invoking vf action!');
  
  
  
  }
 
</script>
  
  <apex:form >
  
  
  <apex:actionFunction name="f1"   action="{!m1}"  />
  <apex:commandButton value="enter"  onclick="f1"     />
  </apex:form>
  
</apex:page>


Controller:

Public class bang1
{

Public void m1()
{

System.debug('hiiiiiiii');



}

}

Pleasesuggest me.

Regards,
Siva

 
Hi,

I wrorte a simple extension with the VFpage , but when i try to save thr VF page iam getting the error like ,"Error: Unknown constructor 'extra.extra(ApexPages.StandardSetController controller)'Create Apex method 'extra.extra(ApexPages.StandardSetController controller)'"

Earlier i was not getting this kind of errors when iwaswriting the extensions.Please let me know which is causing the error,

VFCode:

<apex:page standardController="Account"  recordSetVar="ab" extensions="extra" >

<apex:form>
<apex:pageBlock >
<apex:pageBlockSection>
<apex:pageBlockTable value="{!ab}" var="c" >  
 
 <apex:column value="{!c.Name}"/>
 
 <apex:commandButton value="{clickme}" action="{!click}"/>
  
 </apex:pageBlockTable>
 </apex:pageBlockSection>
  </apex:pageBlock>
  </apex:form>
     
</apex:page>

Extension code:
Public class extra
{

Public extra(ApexPages.StandardController stdController  )
{

}

Public void click()
{

System.debug('hiiiiiiiiiiiiiiiiiii good mng');




}

}

Regards,
Ram.




 
Hi i have written the trigger  in such away that when i update the  contact record , another Contact  record  hasto be inserted .But when i try to update the existing record it throwing the error like  " execution of BeforeUpdate caused by: System.NullPointerException: Attempt to de-reference a null object: Trigger.wed: line 39, column 1" 

and my code is as below,

trigger wed on Contact(Before insert, Before Update)
{

Public Account a;

Public List<Contact> ab;

if(Trigger.isinsert==TRUE)
{
For(Contact c:Trigger.New)

{

ab=new List<Contact>();

 a= [select Phone from Account where ID=:c.AccountID];
 
 c.Phone=a.Phone;
 
 ab.add(c);
 
}

}

if (Trigger.isUpdate==TRUE)
{

For(Contact ct:Trigger.New)
{

String stv=ct.FirstName;

Contact cts=new Contact();

cts.FirstName='ram';
cts.LastName=ct.LastName;

ab.add(cts);

}
insert ab;

}

}

So please suggest me any one, where iam doing the error.




 
hi , From trail head scenario is like this,


Create an Apex class that returns an array (or list) of formatted strings ('Test 0', 'Test 1', ...). The length of the array is determined by an integer parameter.
The Apex class must be called 'StringArrayTest' and be in the public scope.
The Apex class must have a public static method called 'generateStringArray'.
The 'generateStringArray' method must return an array (or list) of strings. Each string must have a value in the format 'Test n' where n is the index of the current string in the array. The number of returned strings is specified by the integer parameter to the 'generateStringArray' method.



and my code is,


Public Class StringArrayTest
{


 public static List<String> generateStringArray(integer n){
        List<string> srtList = new List<string>();
        for(integer i=0;i<n;i++){
            string s = string.valueOf(i);
            srtList.add('\'Test '+i+'\'');
        }
        system.debug('hhh'+srtList);
        return srtList;

}

}

i have run the code every this coming exactly but when i check the  chalange in trail head iam getting the error ,error is asfollows,

"
Challenge Not yet complete... here's what's wrong: 
Executing the 'generateStringArray' method failed. Either the method does not exist, is not static, or does not return the proper number of strings."   


Plesae any one tell me the suggestion.



Regards,
Siva 




 
hi,

i have set the OWD to public read/write and  profile is read only .  i have a sharing rule ( with read/ write)in which  user A wants to share that record to the another user B (in the same profile) .here i have doubt is whether the second user can edit the records or not.

1)and my secod question is profile over rides the OWD....?