You need to sign in to do that
Don't have an account?
Hoysala
please help me this vf page to convert into lightning page... thanks in advance
VF Page <apex:page standardController="NICE_ratings_cutoff_points__c" extensions="AddMultipleRatings"> <apex:form id="theForm"> <apex:pageMessages ></apex:pageMessages> <apex:pageblock id="thePB" title="Creating Multiple Ratings"> <apex:pageblockButtons > <apex:commandButton value="Save" action="{!SaveMultipleRatings}"/> <apex:commandButton value="Cancel" action="{!Cancel}"/> </apex:pageblockButtons> <apex:outputPanel id="ratingsHead"> <apex:variable value="{!0}" var="rowNum"/> <apex:pageBlockSection columns="1" title="Adding Multiple Ratings CutOff Points" id="thePbs" collapsible="False"> <apex:pageBlockTable value="{!wcRatingsList}" var="eachRecord"> <apex:column headerValue="Action"> <apex:commandLink value="Remove" style="color:red" action="{!removeRowFromRatingsList}" rendered="{!rowNum > -1}" rerender="ratingsHead" immediate="true" > <apex:param value="{!rowNum}" name="rowToRemove" assignTo="{!rowToRemove}"/> </apex:commandLink> <apex:variable var="rowNum" value="{!rowNum + 1}"/> </apex:column> <apex:column headerValue="Country"> <apex:inputField value="{!eachRecord.niceRatings.Country__c}" required="true"/> </apex:column> <apex:column headerValue="Ratings"> <apex:inputField value="{!eachRecord.niceRatings.Rating__c}" required="true"/> </apex:column> <apex:column headerValue="Sub Ratings"> <apex:inputfield value="{!eachRecord.niceRatings.Sub_Rating__c}"/> </apex:column> <apex:column headerValue="Value"> <apex:inputField value="{!eachRecord.niceRatings.Value__c}" required="true"/> </apex:column> </apex:pageBlockTable> </apex:pageBlockSection> <apex:commandButton value="Add More" action="{!addNewRowToRatingsList}" rerender="ratingsHead" Status="status" immediate="true" /> </apex:outputPanel> </apex:pageblock> </apex:form> </apex:page>
Greetings to you!
By looking at your VF code, I think you are looking to create records with Add or Delete Row(s) functionality in a lightning component. Below is the sample code to Create Multiple Contacts, With Add/Delete Rows Dynamically. Kindly modify the code as per your requirement.
Application:
Component:
Controller:
Helper:
Apex:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
All Answers
Greetings to you!
By looking at your VF code, I think you are looking to create records with Add or Delete Row(s) functionality in a lightning component. Below is the sample code to Create Multiple Contacts, With Add/Delete Rows Dynamically. Kindly modify the code as per your requirement.
Application:
Component:
Controller:
Helper:
Apex:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas