• Banwari kevat1
  • NEWBIE
  • 298 Points
  • Member since 2015
  • Salesforce Developer
  • Metacube Software


  • Chatter
    Feed
  • 7
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 71
    Replies
PageReference p=Page.EmailPage; this will show 'Page EmailPage does not exist' this error, Please help me,,
We have a custom object called Staff__c and Staff_Leave__c.  I need to sent an email to a record in Staff__c when his leave record in Staff_Leave__c is approved by changing the Leave_Status__c to 'Approvved'.  Is there a way to do this please advice
  • April 27, 2017
  • Like
  • 0
Hello Everyone,

I'm trying to assing a value of a variable from an Batch class to a static variable in apex class. When I debug it though the developer console, I observe that the value is assigned succussfully, but when I access it through class I don't get any value i.e null. You can view my code below:

<pre>
//----Batch Class----//
global with sharing class fetchAccountBatch implements Database.Batchable<sObject>, Database.stateful{
    
    public list<account> acc= new list<account>();
    
    global Database.QueryLocator start(Database.BatchableContext BC){
        
        string query = 'Select Id,Name from Account';
        return Database.getQueryLocator(query);
        
    }
    global void execute(Database.BatchableContext BC, list<Account> scope){
    
        for(account a: scope){
            acc.add(a);
        }
        
    }
    global void finish(Database.BatchableContext BC){
        
        system.debug(acc);
        
        fetchAccountClass.acc.addAll(acc);
        
        system.debug(fetchAccountClass.acc);
    
    }
    
}
</pre>

<pre>
//----Scheduled Class----//
global with sharing class fetchAccountSchedule implements Schedulable{     
     
     global void execute(SchedulableContext sc) {

        fetchAccountBatch bc = new fetchAccountBatch();
        database.executeBatch(bc,2000);
        system.debug(fetchAccountClass.acc);
    }
    
}
</pre>

<pre>
//----Apex Class----//
global with sharing class fetchAccountClass {   
    
    global static list<account> acc{get{
        
        if(acc==null)
            acc = new list<account>();
            
        return acc; 
    }set;}
    
    public void fetchAccount(){
        
        DateTime dt = system.now().addSeconds(1);
        integer h = integer.valueOf(dt.hour());
        integer m = integer.valueOf(dt.minute());
        integer s = integer.valueOf(dt.second());
        
        
        try{
            CronTrigger cr = [SELECT Id, CronJobDetail.Name FROM CronTrigger where CronJobDetail.Name ='TestJob'];
            if(cr!=null && cr!= new crontrigger()){
                     system.abortJob(cr.Id);
                 }
        }catch(exception e){}
        
        try{
            string cronExp = s+' '+m+' '+h+' ? * * *';
            system.schedule('TestJob',cronExp,new fetchAccountSchedule());            
            
        }catch(Exception e){
            
            apexpages.addMessages(e);
                    
        }
    }
}
</pre>

<pre>
<!--Visualforce Page-->
<apex:page controller="fetchAccountClass">

    <apex:form >
        
        <apex:sectionHeader Title="Account" subtitle="List View"/>
        
        <apex:pageblock title="Account List" >
            <apex:pageblockbuttons>
                <apex:commandButton value="Get Data" action="{!fetchAccount}" rerender="AccountTable"/>
            </apex:pageblockbuttons>
        
            <apex:pageMessages/>
            <apex:pageblocktable value="{!acc}" var="key" id="AccountTable">
            
                <apex:column value="{!key.Id}"/>
                <apex:column value="{!key.name}"/>
            
            </apex:pageblocktable>
        </apex:pageblock>
    </apex:form>

</apex:page>

</pre>

Please Respond.

Thanks in advance.

Regards
Aakanksha Singh
 
Hello,

How to make checkbox field mandatory when ever the status changes.

i have written sample validation rule

IF(AND( 
ISPICKVAL(Status,"Open"), ISPICKVAL(PRIORVALUE(Status),"Closed"),
(Flag__c = True)))

Thanks
public pageReference View(){        
        String str = ApexPages.currentPage().getParameters().get('agentid');
        String str1 = ApexPages.currentPage().getParameters().get('agencyid');
        Validations = [select id, Validation_Name__c, Approved_By__c, Activity__c from Carrier_Validation__c
                            where id =:str or id =:str1];

        PageReference pg;                   
        system.debug('@@@@@@@@@@@'+Validations +'######' +str);
        if(str != null){
             pg = new pageReference('https://c.cs1.visual.force.com/apex/View_Validations?id='+str);        
        }
        if(str1 != null){          
             pg = new pageReference('https://c.cs1.visual.force.com/apex/View_Validations?id='+str1);       
        }
        pg.setredirect(true);
        return  pg;
    }

Thanks in Advance.....!
Hi Expert,

I want to create a relationship for below statment.

"A Student can register to multiple courses and A Class can have multiple Courses and each Course can have multiple Students."
"A Professor can take multiple courses"

1. Create Student Object  Master Detail(Course)
2. Cretae Class Object Lookup (Course)
3. Create Course Object Master Detail(Student)
4. Create Professor object Lookup (Course)

Can yoo please suggest. Is it right or not?

Thanks
Mukesh

 
Hi
I have university as parent object & college as child object.
There is a master-detail relationship defined on child object i.e college

I have a parent-child soql as follows
List<University__c> univList=[select Name,(select Name from colleges__r) from university__c];
system.debug(univList);

Also I have a child-parent soql as follows
List<college__c> univList=[select Name,university__r.Name from college__c
system.debug(univList);

when I execute the parent-child query I do not get any child related records .
Also when I execute child-parent query I do get the name of the college but the university ID I get but I want the university name also not the ID

please let me know.

Thanks
pooja
 
Hi Expert,
Is my doamin setup is mundatory or just recommendation?
Can i completely migrate ny bussiness to lightening experience without setup my domain?
Tahnks 
Banwari

 
Hi guys,
As we know we can easily find out all custom permissions for a user using SetupEntityAccess SAOP API.   
 But for a instance also as we can assign custom permissions to a profile from UI(profile daetail page). i want to access all custom permissions assigned to a profile.
Can anyone help me how to do.

Thanks,
Banwari
 
Hi experts,
when we delete a record in salesforce it goes in recycle and if some one removes the record from recycle bin how we can find that who has removed from the recycle?

Thanks
Banwari
Hello ,
     I have 7559 different types of component like Apex Class, Triggers, Visiaulforce pages and Object, Fields, Rules,Tempalte and Many more.. in change set. Now i need to list out all component into a sheet before depoloyment. Please let me know how i get all components into a list.
Thanks in advance.
Hi,    
I required to send email to all follower of a case record when this case record is updated by some one else. Suppose that i have followed  a case record R1 which created by other user. If R1 record owner update that record then i want to receive an email regarding what has been updated for record R1 which followed by me.  
Thanks
Hi,
    I required to send email to all follower of a case record when this case record is updated by some one else.
Suppose that i have followed  a case record R1 which created by other user. If R1 record owner update that record then i want to receive an email regarding what has been updated for record R1 which followed by me.

For this, i thought to create update trigger on case but problem is that how to get all followers of that case record.

Thanks.
I've added a package of  salesforce sanbox in eclipse from one sandbox. And I want to deploy that to other Sandbox I'm facing some issues Showing error in the log as,
 
*** Deployment Log ***
Result: FAILED
Date: October 28, 2017 12:47:47 PM IST

# Deployed From:
   Project name: Expense Management
   Username: gurusfdc123@gmail.com
   Endpoint: test.salesforce.com

# Deployed To:
   Username: mujahidm@race2cloud.com
   Endpoint: login.salesforce.com

# Deploy Results:
   File Name:    applications/Expense_Management.app
   Full Name:  Expense_Management
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: tab - no CustomTab named Policy__c found

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Policy__c

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Policy__c

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Schema.Policy__c

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: pol

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: pol

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: expl

   File Name:    classes/AmountPopulate1.cls
   Full Name:  AmountPopulate1
   Action:  NO ACTION
   Result:  FAILED
   Problem: DML requires SObject or SObject list type: Expense_Line_Item__c

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Policy__c

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Policy__c

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Schema.Policy__c

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: pol

   File Name:    classes/DataCompare.cls
   Full Name:  DataCompare
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: pol

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Travel_Request__c

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Travel_Request__c

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: Travel_Request__c

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: Travel_Request__c

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: trq

   File Name:    classes/DataPopulate.cls
   Full Name:  DataPopulate
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: trq.Proposed_Client_to_Visit__r

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: accObj

   File Name:    classes/importDataFromCSVController.cls
   Full Name:  importDataFromCSVController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: acclist

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Schema.Expense_Line_Item__c

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: DML requires SObject or SObject list type: List<Expense_Line_Item__c>

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: CExList

   File Name:    classes/multiAddCEx.cls
   Full Name:  multiAddCEx
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid type: Expense_Line_Item__c

   File Name:    layouts/Delivery_order__c-Delivery order Layout.layout
   Full Name:  Delivery_order__c-Delivery order Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Delvery__c-Delivery Order Line Item Layout.layout
   Full Name:  Delvery__c-Delivery Order Line Item Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Expense_Line_Item__c-Expense Line Item Layout Map.layout
   Full Name:  Expense_Line_Item__c-Expense Line Item Layout Map
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Expense_Line_Item__c-Expense Line Item Layout.layout
   Full Name:  Expense_Line_Item__c-Expense Line Item Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Expense__c-Expense Layout For Finance.layout
   Full Name:  Expense__c-Expense Layout For Finance
   Action:  NO ACTION
   Result:  FAILED
   Problem: Field:Name must not be Readonly

 
  • October 28, 2017
  • Like
  • 0
Hi All,
            I have created a formula field with hyperlink and when clicked on that it opens vfpage in same tab.
          
            Now, when I select something from vfpage I want to return to the main page(not custom vfpage).

            If anyone know pls suggest.

Thanks.
PageReference p=Page.EmailPage; this will show 'Page EmailPage does not exist' this error, Please help me,,
Hello,

Please help!

I updated one Trigger to Inactive in SBOX and in Eclipse Force.com IDE  as follows:

1. Trigger changed  to Inactive.
2. Saved the file.
3, Selected the two files the Trigger & Triger-meta.xml (Code and XML) using "Ctrl-click," and then right-clicked .
4. Selected Force.com | Deploy to server.
5. Provided my credentials for the Production org and follow the steps

The log is as follows, as you can see the *trigger-meta.xml failed because my Custom Pkg versions aren't the same in SBOX & PROD, 
BUT..... it  appears to have updated the package.xml this sounds like a PROBLEM ???

*** Deployment Log ***
Result: FAILED
Date: September 28, 2017 4:37:13 PM EDT
 
# Deployed From:
   Project name: Sandbox Trigger
   Username: sonia.genesse@ipgphotonics.com.ipgsandbox
   Endpoint: login.salesforce.com
 
# Deployed To:
   Username: sonia.genesse@ipgphotonics.com
   Endpoint: login.salesforce.com
 
# Deploy Results:
   File Name:    triggers/SVMX_WorkOrder_Trgr.trigger-meta.xml
   Full Name:  triggers/SVMX_WorkOrder_Trgr.trigger-meta.xml
   Action:  NO ACTION
   Result:  FAILED
   Problem: The specified Package Version number does not exist for that Package: SVMXC, 16.60000
 
   File Name:    package.xml
   Full Name:  package.xml
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a
 
# Test Results:
   n/a


Thanks!
Sonia
I am getting the above error when running a lfow attempting to update a coule hundred records.  The flow runs OK with one record by completing a fast update using a loop.  It fails when the 200 records are updated.  Any suggestions?

thanks
  • September 28, 2017
  • Like
  • 0
Hi Team Pls Help me is bulkify Or not Test Class........
@isTest 
public class eventTriggerContactTest 
{
    static testMethod void testMostRecentUpdation() 
    {
        Contact objContact = new Contact();
        objContact.LastName = 'TestCon';
        objContact.FirstName = 'TestCon';
        insert objContact;
        
        Event objEvent = new Event();
        
        for(Integer i=0;i<=200; i++)
        {
        objEvent.Type = 'Consult';
        objEvent.Description = 'Test Desc'; 
        objEvent.whoId = objContact.Id;
        objEvent.Meeting_Type__c='Phone';
        objEvent.Event_Status__c='Completed';
        objEvent.Phone_Call_Type__c='Inbound';
        objEvent.StartDateTime = System.today();
        objEvent.EndDateTime = System.today();
        objEvent.Subject  = 'Test Event';
        }
        
        
        insert objEvent;
        
        System.assertEquals(objEvent.Id, [SELECT Most_Recent_Event_Id__c FROM Contact WHERE Id =: objContact.Id].Most_Recent_Event_Id__c);
        
        Event objEvent2 = new Event();
        
        for(Integer i=0;i<=200;i++)
        {
        objEvent2.Type = 'Consult';
        objEvent2.Description = 'Test Desc';
        objEvent2.Meeting_Type__c='Phone';
        objEvent2.Event_Status__c='Completed';
        objEvent2.Phone_Call_Type__c='Inbound';
        objEvent2.whoId = objContact.Id;
        objEvent2.StartDateTime = System.today();
        objEvent2.EndDateTime = System.today();
        objEvent2.Subject  = 'Test Event';
        }
      
        insert objEvent2;
        System.assertEquals(objEvent2.Id, [SELECT Most_Recent_Event_Id__c FROM Contact WHERE Id =: objContact.Id].Most_Recent_Event_Id__c);
        
        update objEvent;
    }
    
}
Hi All,

When we are try to changing the Picklist field on Opportunity we are getting below error.
Error element myRule_1_A1 (FlowRecordCreate). This error occurred when the flow tried to create records: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST: Need Help: bad value for restricted picklist field 

Can any one please help us to avoid this error.

Thanks
when click on button redirect whole page
HI Friends,
I am new to Apex. I am facing this challenege where i want to compare fields of two different lists. Here is the pseudo code:
 
Opportunity Opp = ([select, id, Site__C from Opportunity where id = Opp.id]); // Opp.id passed from the calling method

List<Contract__c> Contra= new List <Contract__c>([select, id, Site__c from Contract__c where Opportunity__c = Opp.id]);

List<Deal__c> Deals= new List <Contract>([select, id, Site__c from Deal__c where Opportunity__c = Opp.id]);

for(Contract__c Con:Contra){
       for(Deal__c D: Deals){
              if(Con.Site__c == D.Site){
                 
                        //PUT THE VALUE IN LIST FOR UPDATE

                      }
              else
                      {
                            //PUT THE VALUE IN LIST FOR INSERT
                          }

       }
}

Now, this code is not perfect. But i am using two for loops, which i want to avoid. What should be the best way to achieve this (comparing two list values)? If possible, please provide some code snippent.

Thanks in advance.
hi All,
I have created a vf page , same time with two question and 3 radio button , when i click on the first questions its showing the blue color but for the seconf question when i am clicking again the first question radio button is getting active , 
am sharing the image , u can see .
just unable to find the solnUser-added image
plz share ur reply
Hi, I am creating a visualforce feedbackform with smiley , I have a custom object Feedback__c and Response__c . So I am fetching the questions from Feedback__c using repeat .
For smiley I am using radio buttons inside repeat function.
I want to select one radio button from each group.But the problem is the radio button is working for first row but when i am clicking on any other row again the respected radio button from the first row get selected.
My code is:-

<apex:page standardController="Feedback__c" extensions="ctr_feedbackform" applyHtmlTag="true" sidebar="false" showHeader="false" language="{!langu}" standardStylesheets="false"  doctype="HTML-5.0">
   <html>
    
    <head>
    <!--js and css files-->
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />        
       
        <script src="https://code.jquery.com/jquery-1.11.3.min.js"/>
        <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/> 
        <link href="{!URLFOR($Resource.bootstrap,'bootstrap/bootstrap/css/bootstrap.css')}" rel="stylesheet" />
        <link href="{!URLFOR($Resource.bootstrap,'bootstrap/bootstrap/dist/jquery.bootgrid.css')}" rel="stylesheet" />        
        <script src="{!URLFOR($Resource.bootstrap,'bootstrap/bootstrap/js/modernizr-2.8.1.js')}"></script>
        <script src="{!URLFOR($Resource.bootstrap,'bootstrap/bootstrap/js/bootstrap.min.js')}"></script>
        <script src="{!URLFOR($Resource.bootstrap,'bootstrap/bootstrap/js/star-rating.js')}"></script> 
        <apex:stylesheet value="{!URLFOR($Resource.bootstrap,'bootstrap/bootstrap/css/star-rating.css')}"/> 
        <apex:includeScript value="{!URLFOR($Resource.asset, 'asset/js/jquery.min.js')}"/>
        <apex:stylesheet value="{!URLFOR($Resource.asset, 'asset/css/bootstrap.min.css')}"/>
        
        <title>Citi Residency</title>
     <style>            
            .msgpanel{
                color: #3c763d;
                background-color: #dff0d8;
                border-color: #d6e9c6;
                margin-top: 250px;
                margin-left: 300px;
            }     
            .panel-primary> .panel-heading {
                font-weight: bold;
            }
            .list{
                width: 20%;
                margin-left: 430px;
            }
            .pick{
                margin-left: 150px;
            }
            .menu{
                text-align: center;
                cursor: pointer;
                color: #428bca;
                font-weight: normal;
            }
            .pull-left {
                margin-top: 10px;
            }
            .btn-danger {
                margin-left: 10px;
            }
            .fontcolor{
                background-color: #eee;
                color: #428bca;
            }
            .vertical-center {
              min-height: 100%;
              min-height: 100vh;
              display: flex;
              align-items: center;
              justify-content: center;
              flex-direction: column;
              display: -webkit-flex; /* For Safari */
              -webkit-justify-content: center; /* For Safari */
              -webkit-align-items: center; /* For Safari */
            }
        </style>
          <style>

.lookupInput img
{
    background-repeat: no-repeat;
    margin-center: .25em;
    vertical-align: right;
}
.lookupInput .disabled
{
    background-color: #ccc;
}
.lookupInput .emptyDependentLookup
{
    font-style: italic;
}
.lookupInput input[readonly]
{
    background-color: #e6e6e6;
    border: 2px solid #e6e6e6;
    color: #333;
    cursor: default;
}
.lookupInput a.readOnly
{
    float: right;
}
.lookupInput span.readOnly
{
    display: block;
    white-space: normal;
}
.lookupInput span.totalSummary
{
    font-weight: bold;
}
.inlineEditRequiredDiv .lookupInput img,.inlineEditDiv .lookupInput img
{
    vertical-align: middle;
}
.quickCreateModule .lookupInput input {
    max-width: 155px
}
.lookupIcon {
    background-image: url(/img/func_icons/util/lookup20.gif);
    background-position: 0 0;
    width: 20px;
    height: 20px;
    background-position: top left
}
.lookupIconOn {
    background-image: url(/img/func_icons/util/lookup20.gif);
    background-position: 0 0;
    width: 20px;
    height: 20px;
    background-position: top right

</style>

<style>
/* lookup field override */


.lookupInput img {
  float:center;
}
.span.lookupInput {
  position: relative;
  display: inherit;
}
.lookupInput a, .lookupInput a {
  border: none !important;
  background: none !important;
}

.radioinput input[type="radio"]{float:top;}

.radioinput label{display:block;}

    lor:#f2f2f2;
    font-family:Arial, sans-serif;
}

 .left   {text-align:left;}
 .center {text-align:center;}
 .right  {text-align:right;}
 .my_text{
     font-family:  Arial, Helvetica, sans-serif
     font-size:  60px;
     font-weight: bold;
     color: #337AB7;
}
</style> 

<style>

/* =============================================
* RADIO BUTTONS
=============================================== */

#radios label {
    cursor: pointer;
    position: relative;
}

#radios label + label {
    margin-left: 15px;
}

input[type="radio"] {
    opacity: 0; /* hidden but still tabable */
    position: absolute;
}

input[type="radio"] + span {
    font-family: 'Material Icons';
    //color: #B3CEFB;
    border-radius: 50%;
    padding: 20px;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
}

input[type="radio"]:checked + span {
    color: #D9E7FD;
  background-color: #4285F4;
}

input[type="radio"]:focus + span {
    color: #fff;
}

/* ================ TOOLTIPS ================= */

#radios label:hover::before {
    content: attr(for);
    font-family: Roboto, -apple-system, sans-serif;
    text-transform: capitalize;
    font-size: 11px;
    position: absolute;
    top: 170%;
    left: 0;
    right: 0;
    opacity: 0.75;
    background-color: #323232;
    color: #fff;    
    padding: 4px;
    border-radius: 3px;
  display: block;
}

</style>
     
    </head>
    
    <apex:form >
        <apex:pageBlock >
            <apex:actionFunction name="setEng" action="{!changeToEnglish}" immediate="true"/>
            <!--<apex:actionFunction name="setBen" action="{!changeToBengali}" immediate="true"/>-->
            <!--<apex:actionFunction name="setHindi" action="{!changeToHindi}" immediate="true"/>-->
            
            <div class="vertical-center">
            <div class="container">
                
                <div class="row">
                    <div class="col-sm-8 col-sm-offset-2">                                         
                        <div class="panel panel-primary"> 
                            <div class="panel-heading">                                        
                                <div class="pull-left">
                                    <h3 class="panel-title">{!$label.FBTitle}</h3>
                                </div>
                                <div class="pull-right">
                                    <ul class="nav nav-tabs"> 
                                      
                                    </ul>
                                </div>
                                <div class="clearfix"></div>
                            </div> 
                           
                            <div class="panel-body"> 
                                <div class="alert-danger">
                                    <apex:messages />
                                </div> 
                                
                                <div class="form-group"> 
                                    <label for="desc">{!$ObjectType.Response__c.fields.Email__c.Label}:</label>
                                    <apex:inputField value="{!re.Email__c}" styleClass="form-control" html-placeholder="xyz@abc.com"  required="true"/>   
                                </div> 
                                <div class="form-group"> 
                                    <label for="desc">{!$ObjectType.Response__c.fields.Mobile__c.Label}:</label>
                                    <apex:inputField type="tel" value="{!re.Mobile__c}" styleClass="form-control" html-placeholder="10 digit Mobile No. " required="true"/>   
                                </div>
                               
                                <div class="form-group"> 
                                    <label for="desc">{!$ObjectType.Response__c.fields.Room__c.Label}:</label>
                                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                                    <apex:inputField value="{!re.Room__c}"/>   
                                </div> 
                                
                                <apex:variable value="{!1}" var="rowNum"/>  
                                <apex:repeat value="{!fb}" var="f">
                                 <apex:outputPanel rendered="{!if(f.Category__c='Restaurant',TRUE,FALSE)}">
                                    <div class="row form-group">
                                        <div class="col-md-12 col-sm-12 col-xs-12"> 
                                            <div class="my_text">
                                            
                                                ({!rowNum}) {!f.Question__c} 
                                            </div> 
                                        </div>
                                        <br/><br/>
                                        <div class="col-md-6 col-sm-6 col-xs-12 "> 
                                       
                                                <div id="{!rowNum}">
                                                    <label for="excellent" class="material-icons">
                                                        <input type="radio" name="{!rowNum}" id="excellent" value="excellent"/>
                                                        <span>&#xE815;</span>
                                                    </label>                                
                                                    <label for="good" class="material-icons">
                                                        <input type="radio" name="{!rowNum}" id="good" value="good" />
                                                        <span>&#xE812;</span>
                                                    </label>
                                                    <label for="poor" class="material-icons">
                                                        <input type="radio" name="{!rowNum}" id="poor" value="poor" />
                                                        <span>&#xE814;</span>
                                                    </label>
                                                </div>
                                            
                                                                                     
                                        </div>
                                      
                                        
                                    </div>      
                                    <apex:variable var="rowNum" value="{!rowNum + 1}"/>
                                    </apex:outputPanel>
                                    <br/>
                                </apex:repeat>
                                
                                
                                
                                <div class="row">
                                    <div class="col-md-8 col-md-offset-5">
                                     <apex:commandButton styleClass="btn btn-success" value="{!$Label.FBSave}" action="{!save}" />&nbsp;&nbsp;
                                     <apex:commandButton styleClass="btn btn-danger" value="{!$Label.FBCancel}" immediate="true" action="{!Cancel}" /> 
                                    </div>
                                </div> 
                            </div> 
                          
                          </div>                  
                      </div>
                  </div>
              </div>
          </div>
          
        </apex:pageBlock>
        
        
    </apex:form>
    </html>
</apex:page>
 
  • July 06, 2017
  • Like
  • 0