• Suman Chandra
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
for(Product_Option__c po : listProductOption) {
                    popularCombos.add(new SelectOption(po.Co_Product_Options__c, po.Co_Product_Options__c));
                    if(po.Product_Option__c == 'Popular Combos')
                        //listPopularCombos.add(po.Co_Product_Options__c);
                        listPopularCombos.add(new productOptionsWrapper(po.name, Selected_Model_Report__c.getValues(po.name).Product_Option__c, Selected_Model_Report__c.getValues(po.name).Scoring_Model__c, po.Co_Product_Options__c, Selected_Model_Report__c.getValues(po.name).isBlended__c, isDecisionChk));
                    if(po.Product_Option__c == 'Commercial Credit Reports') 
                        listcommercialCreditReport.add(new productOptionsWrapper(po.name, Selected_Model_Report__c.getValues(po.name).Product_Option__c, Selected_Model_Report__c.getValues(po.name).Scoring_Model__c, po.Co_Product_Options__c, Selected_Model_Report__c.getValues(po.name).isBlended__c, isDecisionChk));
                    if(po.Product_Option__c == 'Commercial Credit Score') {
                        
                        if(isInitiateDecision == true && po.Co_Product_Options__c == 'DecisionIQ')
                            isDecisionChk = true;
                        system.debug('>>>Inittate Decision'+isInitiateDecision+'decision chk'+isDecisionChk+'lllll'+po.Co_Product_Options__c );    
                            
                        listcommercialCreditScore.add(new productOptionsWrapper(po.name, Selected_Model_Report__c.getValues(po.name).Product_Option__c, Selected_Model_Report__c.getValues(po.name).Scoring_Model__c, po.Co_Product_Options__c, Selected_Model_Report__c.getValues(po.name).isBlended__c, isDecisionChk));
                            if(isDecisionChk == true)
                                isDecisionChk = false;
                    }
                    system.debug('>>>>>Combo value'+listcommercialCreditScore);
                    
                } 
if (selectedAccount == null && ApexPages.currentPage().getParameters().get('id') != null && ApexPages.currentPage().getParameters().get('id') !='') {
                ID accId = ApexPages.currentPage().getParameters().get('id');system.debug('>>accid'+accId );
                String strQuery = 'SELECT Id,Name,BillingStreet,Phone,BillingCity,BillingState,BillingPostalCode,BillingCountry,BIN__c FROM Account WHERE id='+ '\'' + accId +'\'';
                system.debug('>>strQuery'+strQuery);
                selectedAccount = Database.query(strQuery);
            }
if (selectedAccount == null && ApexPages.currentPage().getParameters().get('id') != null && ApexPages.currentPage().getParameters().get('id') !='') {
                ID accId = ApexPages.currentPage().getParameters().get('id');system.debug('>>accid'+accId );
                String strQuery = 'SELECT Id,Name,BillingStreet,Phone,BillingCity,BillingState,BillingPostalCode,BillingCountry,BIN__c FROM Account WHERE id='+ '\'' + accId +'\'';
                system.debug('>>strQuery'+strQuery);
                selectedAccount = Database.query(strQuery);
            }