• Avinash A
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 11
    Questions
  • 12
    Replies
Hello guys,

As part of my project , i have got a requirement to convert some vf pages into lighting . Can anyone describe me what are all the things needed to be considered while doing this ( As a developer ). It would be helpful if i get some sample codes. 

Thanks in advance.
Hi,
I am using Metadata service class to retrive validation rules metadata of my ORG.I want to write test class on metadata service. I am using WebServiceMock.class  to test it .But i am not able to get the testing done. Can anyone help me on this??

Thanks and Regards
Avinash
Hi guys,

My requirement is to get a list of all standad and custom object apis in a list.
I dont want to list Objects like RecordType, ApexPage etc.
I want only buesness objects (Such as Account,Contact,Opportunity etc) ,and custom objects if any.
Please Help Me Out.......
select id,ValidationName,Active from Validationrule

I am not able to execute this query ..

I am getting "Invalid type: ValidationRule"
I am able to execute this query in query editor with tooling api enabled.
 
Hi, I am trying to get all workflow rules and its status(Active or not).I am able to get only Workflow name.Need help......
User-added image
I want to access the information inside the Metadata folder. Can anyone help me??
<!-- this is the component -->
<lightning:button label="Success" onclick="{!c.handleClick}"/>


//Client side JS


 handleClick : function(component, event, helper) {        
        var toastEvent = $A.get("e.force:showToast");
        toastEvent.setParams({
            "title": "The toast pops up",
            "message": "Toast event fired",
            "mode": "sticky",
            "type": "other",
        });
        toastEvent.fire();
    }

 
In the given code below i am passing json string 'name' in to http post method.In the rest callout mthod i serialized Account object in to JSON String.When i try to deserislize it in HttpPost method Im getting JSON parser error, Can anyone Please Help Me??

//This is the rest webservice
@Httppost
    Global static Account doPost(String name){
        //System.debug(name);
     Account tn=(Account)JSON.deserialize(name, Account.class);
    
        insert tn;Error message
        
        return tn;
        
    }
Hello guys,

As part of my project , i have got a requirement to convert some vf pages into lighting . Can anyone describe me what are all the things needed to be considered while doing this ( As a developer ). It would be helpful if i get some sample codes. 

Thanks in advance.
Hi,
I am using Metadata service class to retrive validation rules metadata of my ORG.I want to write test class on metadata service. I am using WebServiceMock.class  to test it .But i am not able to get the testing done. Can anyone help me on this??

Thanks and Regards
Avinash
Hi guys,

My requirement is to get a list of all standad and custom object apis in a list.
I dont want to list Objects like RecordType, ApexPage etc.
I want only buesness objects (Such as Account,Contact,Opportunity etc) ,and custom objects if any.
Please Help Me Out.......
Hi, I am trying to get all workflow rules and its status(Active or not).I am able to get only Workflow name.Need help......
Cross-posting here from the Trailhead forum, where I'm working on the Lightning Components Framework SuperBadge. We're implementing LDS on a page, but NOT using force:hasRecordId. Instead, we're dynamically setting an aura:attribute, and then referencing it in the LDS parameter for recordId. I've been researching this for hours, but all the reference docs and Trailhead modules assume the case where you're using the implicit recordId on the page. No examples I can find where they're setting the recordId and then forcing the reload.

In this case, the id attribute is successfully being set, but LDS isn't loading the record. The error message says: The onBoatSelected handler in the BoatDetails controller must force Lightning Data Service to load the specified record, using logic in the controller.

In the controller, I'm using a reloadRecord command: component.find("service").reloadRecord() where "service" is the aura:id for the force:recordData element.

Is there some other command required to get the LDS to load the record?

Here's the component markup with the force:recordData info:
<aura:attribute name="id" type="String"/>
    <aura:attribute name="boat" type="Boat__c"/>
    <aura:attribute name="boatSimple" type="Boat__c"/>
    <aura:attribute name="recordError" type="String"/>

    <aura:handler event="c:BoatSelected" action="{!c.onBoatSelected}"/>

    <force:recordData aura:id="service"
                      recordId="{!v.id}"
                      mode="VIEW"
                      fields=  "Id,
                                Name,
                                Description__c,
                                Price__c, Length__c,
                                Contact__r.Name,
                                Contact__r.Email,
                                Contact__r.HomePhone,
                                BoatType__r.Name,
                                Picture__c"
                      targetRecord="{!v.boat}"
                      targetFields="{!v.boatSimple}"
                      targetError="{!v.recordError}"
                      recordUpdated="{!c.onRecordUpdated}" />
Am I screwing up something in the markup? 

 
<!-- this is the component -->
<lightning:button label="Success" onclick="{!c.handleClick}"/>


//Client side JS


 handleClick : function(component, event, helper) {        
        var toastEvent = $A.get("e.force:showToast");
        toastEvent.setParams({
            "title": "The toast pops up",
            "message": "Toast event fired",
            "mode": "sticky",
            "type": "other",
        });
        toastEvent.fire();
    }

 
In the given code below i am passing json string 'name' in to http post method.In the rest callout mthod i serialized Account object in to JSON String.When i try to deserislize it in HttpPost method Im getting JSON parser error, Can anyone Please Help Me??

//This is the rest webservice
@Httppost
    Global static Account doPost(String name){
        //System.debug(name);
     Account tn=(Account)JSON.deserialize(name, Account.class);
    
        insert tn;Error message
        
        return tn;
        
    }