• sachin kadian 5
  • SMARTIE
  • 554 Points
  • Member since 2015

  • Chatter
    Feed
  • 14
    Best Answers
  • 1
    Likes Received
  • 2
    Likes Given
  • 5
    Questions
  • 110
    Replies
Hi Everyone,

I have a requreiment like
> I have object database
> when I click on the tab of data base, it needs to display the 3 buttons such as db1, db2, db3.
when I click on the respective buttons it should navigate to respective pages.
Could anyone please guide the steps to follow.
 
Hi,

I'm looking for an easy way to change the object's recordtype via a button or something in Lightning.

any suggestion? 

Regards,
Arezou
 
Hi Guys,

I should create a Visualforce page by using SLDS with a dropdown list having all the custom list view names and a table which display the record's of the selected list view.

I have created the basics of VF page with SLDS but, not able to append the List view to dropdown and display the related list view records in a table.

Below is my code. Your help is highly appreciated.

VF Page:

<apex:page controller="example" showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0">    
<apex:form>
<html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">    

<head>
  <title>Salesforce Lightning Design System Trailhead Module</title>
  <apex:stylesheet value="{!URLFOR($Resource.SLDS100, 'styles/salesforce-lightning-design-system.css')}" />
</head>    

<body>    

  <!-- REQUIRED SLDS WRAPPER -->
  <div class="slds">    

    <!-- MASTHEAD -->
    <p class="slds-text-heading--label slds-m-bottom--small">Salesforce Lightning Design System Module</p>
    <!-- / MASTHEAD -->    

   <!-- PAGE HEADER -->
<div class="slds-page-header" role="banner">

  <!-- LAYOUT GRID -->
  <div class="slds-grid">

    <!-- GRID COL -->
    <div class="slds-col">

      <!-- HEADING AREA -->
      <p class="slds-text-heading--label">Accounts</p>
      <h1 class="slds-text-heading--medium">My Accounts</h1>
      <!-- /HEADING AREA -->

    </div>

    <!-- GRID COL -->
    <div class="slds-col slds-no-flex slds-align-middle">

      <div class="slds-button-group" role="group">
        <button class="slds-button slds-button--neutral">
          New Account
        </button>
        <button class="slds-button slds-button--neutral">
          More
        </button>
      </div>

    </div>
    <!-- / GRID COL -->

  </div>
  <!-- / LAYOUT GRID -->

  <p class="slds-text-body--small slds-m-top--x-small">COUNT items</p>

</div>
<!-- / PAGE HEADER -->  

<!-- PRIMARY CONTENT WRAPPER -->
<div class="slds-form-element">
    <label class="slds-form-element__label">Account Type</label>
    <div class="slds-form-element__control">
        <div class="slds-select_container">
            <apex:selectList value="{!selectedVal}" size="1"> 
    <apex:selectOption value="{!list}" /> 
</apex:selectList>
        </div>
    </div>
</div>
      
<!-- / PRIMARY CONTENT WRAPPER -->   

<!-- FOOTER -->
<footer role="contentinfo" class="slds-p-around--large">
  <!-- LAYOUT GRID -->
  <div class="slds-grid slds-grid--align-spread">
    <p class="slds-col">Salesforce Lightning Design System Example</p>
    <p class="slds-col">&copy; Your Name Here</p>
  </div>
  <!-- / LAYOUT GRID -->
</footer>
<!-- / FOOTER -->

  </div>
  <!-- / REQUIRED SLDS WRAPPER -->    

</body>    

<!-- JAVASCRIPT -->
<!-- / JAVASCRIPT -->    

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

APEX Controller:

Public class example {
    
public String selectedVal{get;set;}  // This will hold the selected value, the id in here

public List<SelectOption> getlist(){
      
        List<SelectOption> optns = new List<SelectOption>();
        // before getting here you must populate your queryResult list with required fields
        for(SelectOption lstObj : [SELECT Id, Name FROM Listview WHERE SobjectType = 'Request__C' order by name ASC]){
            optns.add(new SelectOption (lstObj.Name));
        }
        return optns;
}
    }


Please Note : The requirement is creating the VF ONLY with SLDS.
Hi,

Document says:
Methods defined with the @testSetup annotation are used for creating common test records that are available for all test methods in the class.

I am confused that the class means all test classes in org or only the test class which contains @testSetup if I run all test classes.

I didn't find the details.
Anyone can explain this to me?

Thanks.
Ying

Hello EveryOne,
                           I have two objects Standard(Child) and custom object (Parent) i want to create a visual force page that includes fields from both parent and child objects , Now when i select Look up field Name (ex:parent record) as some abc in vf page the details(other fields) of abc record is to be auto populated in the vf page (i am trying to create Vf Page on Child object) , i need this functionality either in lightning experience(using lightning components) or Visual force page  ,please help me.
Thank you Every One.

One is a condition another one is Apex function, how to put them in one rendered:-
1. rendered="{!massEdit}"
2.rendered="{!IF(selectedProductLine.item.RecordTypeId = ICRecTypeId),true,false )}"

This Syntax not working:-
rendered="{!IF(((selectedProductLine.item.RecordTypeId = ICRecTypeId)&&(!massEdit)),true,false )}"
Even I tried with AND OR Operator not working. I need to render a section on picklist value change for the same, so i have to put the two condition in one rendered.
Hi all,
We are creating a custom case form using lightning:recordEditForm and lightning:inputField. The form is generated off of a fieldset here;
<lightning:recordEditForm aura:id="test"
                              objectApiName="{! v.sObjectName }"
                              recordId="{! v.recordId }"
                              recordTypeId="{! v.recordTypeId }">
        <lightning:messages />

        <aura:iteration items="{! v.fields }" var="field">
            <lightning:inputField aura:id="caseField" fieldName="{! field.APIName }" class="slds-p-top_small slds-m-top_medium"/>
        </aura:iteration>
        
        <lightning:button class="slds-m-top_small" type="submit" label="Save" /></lightning:recordEditForm>
The fieldset is passed correctly with all the correct information. The desired result comes through ok hosted in an App here;
User-added image

The issue is when the component is placed in a community, the HTML generated has the fields as 'disabled';
User-added image
We cannot seem to find a permission in the Guest user profile that would cause this. Case is Read/Create, all fields on Case are Read/Edit Access, and all Record Types have been made available. None of the fields in the field set have been set to Read-Only.

Perplexed as to why this is happening, and can't seem to find a lot of documentation surrounding the new lightning:recordEditForm.

Appreciate any input.
Thanks,
I'm trying to remove line breaks and white spaces in Rich Text Area field when Text Area is not containing any words or characters.I'm doing this by using workflow.I used "^[\\s<>br]+$"  regex,but this is not satisfield in Rule criteria.
Any one can suggest the correct regex to do this?

Thanks in advance