• Mayank Batra
  • NEWBIE
  • 25 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
Hi,

I am looking forward to learn cloud commerce. Is there a developer edition of the app I can install in salesforce? What are the steps.

Thanks,
Mayank Batra
Hi,

I am displaying my Object's fields to the users like below. I have given a checkbox against each value. On click of submit, I want to use the selected values only and use them (say save to the DB).

User-added image

Following is the apex code :
 
              <apex:pageblockTable value="{!filteredReq}" var="req"  >
                    <!--<apex:pageBlockTable value="{!FG_Business_Requirement__c}" var="c" id="table1"/> -->
                    <!-- <apex:column >-->
                    <!--   <apex:param value="{!req.BR_Number__c}" assignTo="{!currentReqNum}" />-->
                    <!--    <apex:selectCheckboxes value="{!brNumbers}">-->
                    <!--       <apex:selectOptions value="{!reqItems}" />-->
                    <!--   </apex:selectCheckboxes>-->
                    <!--  </apex:column>-->
                    
                    <apex:column >
                        <apex:param value="{!req}" assignTo="{!reqList[count].con}" />
                        <!-- <apex:inputCheckbox onclick="selectAllCheckboxes(this,'inputId')"/>-->
                        <apex:inputCheckbox value="{!selected}" />
                    </apex:column>
                    <apex:column style="text-align: justify;" value="{!req.BR_Number__c}"/>
                    <apex:column style="text-align: justify;" value="{!req.Name}"/>
                    <apex:column style="text-align: justify;" value="{!req.FG_id__c}"/>
                    <apex:column style="text-align: justify;" value="{!req.BR_Complexity__c}"/>
                    <apex:column style="text-align: justify;" value="{!req.Tech_Complexity__c}"/>
                    <apex:column style="text-align: justify;" value="{!req.BSRQ_Process__c}"/>
                    <apex:column style="text-align: justify;" value="{!req.BSRQ_Process_Group__c}"/>
                    <apex:column style="text-align: justify;" value="{!req.BSRQ_SubProcess__c }"/>
                    
                    <apex:param value="{!++count}" assignTo="{!count}"/>
                </apex:pageblockTable>
                <apex:commandButton value="Submit" action="{!submit}" dir="LTR"/>

Can anybody tell me if there is a way I can link the checkbox with an Object or even a String that will help me get hold of the selected list and then submit the selected values only?

Thanks,
Mayank Batra


 
Hi,

I am looking forward to learn cloud commerce. Is there a developer edition of the app I can install in salesforce? What are the steps.

Thanks,
Mayank Batra
Hi,

I am displaying my Object's fields to the users like below. I have given a checkbox against each value. On click of submit, I want to use the selected values only and use them (say save to the DB).

User-added image

Following is the apex code :
 
              <apex:pageblockTable value="{!filteredReq}" var="req"  >
                    <!--<apex:pageBlockTable value="{!FG_Business_Requirement__c}" var="c" id="table1"/> -->
                    <!-- <apex:column >-->
                    <!--   <apex:param value="{!req.BR_Number__c}" assignTo="{!currentReqNum}" />-->
                    <!--    <apex:selectCheckboxes value="{!brNumbers}">-->
                    <!--       <apex:selectOptions value="{!reqItems}" />-->
                    <!--   </apex:selectCheckboxes>-->
                    <!--  </apex:column>-->
                    
                    <apex:column >
                        <apex:param value="{!req}" assignTo="{!reqList[count].con}" />
                        <!-- <apex:inputCheckbox onclick="selectAllCheckboxes(this,'inputId')"/>-->
                        <apex:inputCheckbox value="{!selected}" />
                    </apex:column>
                    <apex:column style="text-align: justify;" value="{!req.BR_Number__c}"/>
                    <apex:column style="text-align: justify;" value="{!req.Name}"/>
                    <apex:column style="text-align: justify;" value="{!req.FG_id__c}"/>
                    <apex:column style="text-align: justify;" value="{!req.BR_Complexity__c}"/>
                    <apex:column style="text-align: justify;" value="{!req.Tech_Complexity__c}"/>
                    <apex:column style="text-align: justify;" value="{!req.BSRQ_Process__c}"/>
                    <apex:column style="text-align: justify;" value="{!req.BSRQ_Process_Group__c}"/>
                    <apex:column style="text-align: justify;" value="{!req.BSRQ_SubProcess__c }"/>
                    
                    <apex:param value="{!++count}" assignTo="{!count}"/>
                </apex:pageblockTable>
                <apex:commandButton value="Submit" action="{!submit}" dir="LTR"/>

Can anybody tell me if there is a way I can link the checkbox with an Object or even a String that will help me get hold of the selected list and then submit the selected values only?

Thanks,
Mayank Batra


 
I am working on a Trailhead Challenge and receive this error when I execute.

User-added image

Create an Apex class that returns contacts based on incoming parameters.

For this challenge, you will need to create a class that has a method accepting two strings. The method searches for contacts that have a last name matching the first string and a mailing postal code (API name: MailingPostalCode) matching the second. It gets the ID and Name of those contacts and returns them.The Apex class must be called 'ContactSearch' and be in the public scope.
The Apex class must have a public static method called 'searchForContacts'.
The 'searchForContacts' method must accept two incoming strings as parameters, find any contact that has a last name matching the first, and mailing postal code matching the second string. The method should return a list of Contact records with at least the ID and Name fields.
The return type for 'searchForContacts' must be 'List<Contact>'.

Here's my code:

User-added image

Can someone assist me? Please.

Thank you,
Darren