• Narendra Reddy Gopavaram
  • NEWBIE
  • 20 Points
  • Member since 2018

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

We can display background image in vf page. But how can we use video file (from video url) as vf page background. Can anybody help me to accomplish this.

Thanks in advance!
Hi All,

I am not able to get drop down values inside aura iteration when onchange method calls.
Wrapper Object attribute:
<aura:attribute name="mapobject" type="object" access="global"/>

Aura Iteration Part:
<table class="slds-table slds-table_bordered slds-table_cell-buffer" width="100%">
    <thead>
    <tr class="slds-text-title_caps">
    <th scope="col" width="15%" class="cbcolor">
    <div class="slds-truncate" title="Brand" style="color:black"><center>Brand</center></div>
    </th>
    <th scope="col" width="20%" class="cbcolor">
    <div class="slds-truncate" title="Product Description" style="color:black"><center>Product Description</center></div>
    </th>
    </tr>
    </thead>
    <tbody> 
    <aura:iteration items="{!v.mapobject}" var="mobj" indexVar="indx">
    <tr>
    <td width="15%">
    <div class="slds-form-element slds-input-custom">
    <span>
    <lightning:select aura:id="selprod" name="{!indx+1}" value="{!mobj.selectedprod}" class="text_size" onchange="{!c.getmapmeth}">
    <option  text="--None--" label="--None--" />
    <aura:iteration items="{!v.brandlst}" var="pdesc">
    <option  text="{!pdesc}" label="{!pdesc}" />
    </aura:iteration>
    </lightning:select><br/>
    </span>
    </div>
    </td>
    <td width="20%">
    <div class="slds-form-element">
    <span>
    <lightning:select value="{!mobj.selectedproddesc}" class="text_size">
    <option text="--None--" label="--None--" />
    <aura:iteration items="{!mobj.proddesclist}" var="pdesc">
    <option text="{!pdesc}" label="{!pdesc}" />
    </aura:iteration>
    </lightning:select><br/>
    </span>
    </div>
    </td>
    </tr>
    </aura:iteration>
    </tbody>
    </table>

Helper method:
var prbwrp = component.get("v.mapobject");
        for(var n=0;n<prbwrp.length;n++)
        {
            if(index == n)
            {
                for(var k=0;k<helpervalues.length;k++)
                {
                    prbwrp[n].proddesclist.push(helpervalues[k].proddesc);
                }
                alert('Index #: '+index+' = List Values: '+prbwrp[n].proddesclist);
            }
        }

Wrapper Class:
public class productdetailwrap
    {
        @AuraEnabled public String brandlist{set;get;}
        @AuraEnabled public String proddesc{set;get;}
        @AuraEnabled public list<String> proddesclist{set;get;}
        public productdetailwrap()
        {
            proddesclist=new list<String>();
        }
    }
I am seleting brand, based on selected brand i need to petch prod desc values. Values are getting js controller, but not displaying in cmp. Can anybody help me to resolve this issue.

Thanks in advance!
Hi All,

I have implimented custom lookup component, it is working fine to search records and select record from list.

I am looking for below extra functionality:
When no data matched with entered search text, i need to insert new account. Before inserting i need to check if it is selected existing record or not. I have searched a lot in google, i didn't find any answer. Can any one please help me to resolve this issue. Thanks in advance.

Thanks,
Narendra
Hi All,

I am facing issue with ui:inputDate format and validation in desktop and mobile browser.

When selecting date from date picker it is working fine without any change action, but when entered date manually it is not validating.

For change action i have written below Cmpctrl.js
<label><b>Birthdate</b></label><br/>
<ui:inputDate aura:id="bdate" change="{!c.datehandler}" class="slds-input select-auto-width" value="{!v.con.Birthdate}" displayDatePicker="true"/>

datehandler : function(component, event, helper) {
        var dob = new Date(component.find("bdate").get("v.value"));
        console.log(dob);
        var formattedDoB = dob.getMonth()+1+ '/' + dob.getDate() + '/' +  dob.getFullYear();
        console.log('formattedDoB'+formattedDoB)
        component.set('v.con.Birthdate',formattedDoB);
    },

With above ctrl.js when selecting date from datepicker or entering manually it display unknown value, see below image.
User-added image

Please help me to resolve my issue. Advanced Thanks...
Hi All,

Can any one help me to calculate number of sunday's in a given month and year using apex and vf page.

Ex: If i select March 2017 from vf page, i need to calculate number of sunday's from selected month and year.

Thanks in advance.
Hi All,

I have designed a lightning component to insert products under one of custom object.

I can use same component in any custom objects without changing piece of code, i am storing the parent object fields api names in custom setting,

when inserting products i need to bind parent fields api names from custom settings.

I have searched a lot in google, still i am not able to find solution to achive this.

Thanks.
Hi All,

I want to integrate salesforce with bitly. With this integration need to generate short url from salesforce and track the summary (like clicks, location etc,.) of short url in salesforce.

Thanks in Advance,
Narendra
Hi All,

We can display background image in vf page. But how can we use video file (from video url) as vf page background. Can anybody help me to accomplish this.

Thanks in advance!
Hi All,

I am not able to get drop down values inside aura iteration when onchange method calls.
Wrapper Object attribute:
<aura:attribute name="mapobject" type="object" access="global"/>

Aura Iteration Part:
<table class="slds-table slds-table_bordered slds-table_cell-buffer" width="100%">
    <thead>
    <tr class="slds-text-title_caps">
    <th scope="col" width="15%" class="cbcolor">
    <div class="slds-truncate" title="Brand" style="color:black"><center>Brand</center></div>
    </th>
    <th scope="col" width="20%" class="cbcolor">
    <div class="slds-truncate" title="Product Description" style="color:black"><center>Product Description</center></div>
    </th>
    </tr>
    </thead>
    <tbody> 
    <aura:iteration items="{!v.mapobject}" var="mobj" indexVar="indx">
    <tr>
    <td width="15%">
    <div class="slds-form-element slds-input-custom">
    <span>
    <lightning:select aura:id="selprod" name="{!indx+1}" value="{!mobj.selectedprod}" class="text_size" onchange="{!c.getmapmeth}">
    <option  text="--None--" label="--None--" />
    <aura:iteration items="{!v.brandlst}" var="pdesc">
    <option  text="{!pdesc}" label="{!pdesc}" />
    </aura:iteration>
    </lightning:select><br/>
    </span>
    </div>
    </td>
    <td width="20%">
    <div class="slds-form-element">
    <span>
    <lightning:select value="{!mobj.selectedproddesc}" class="text_size">
    <option text="--None--" label="--None--" />
    <aura:iteration items="{!mobj.proddesclist}" var="pdesc">
    <option text="{!pdesc}" label="{!pdesc}" />
    </aura:iteration>
    </lightning:select><br/>
    </span>
    </div>
    </td>
    </tr>
    </aura:iteration>
    </tbody>
    </table>

Helper method:
var prbwrp = component.get("v.mapobject");
        for(var n=0;n<prbwrp.length;n++)
        {
            if(index == n)
            {
                for(var k=0;k<helpervalues.length;k++)
                {
                    prbwrp[n].proddesclist.push(helpervalues[k].proddesc);
                }
                alert('Index #: '+index+' = List Values: '+prbwrp[n].proddesclist);
            }
        }

Wrapper Class:
public class productdetailwrap
    {
        @AuraEnabled public String brandlist{set;get;}
        @AuraEnabled public String proddesc{set;get;}
        @AuraEnabled public list<String> proddesclist{set;get;}
        public productdetailwrap()
        {
            proddesclist=new list<String>();
        }
    }
I am seleting brand, based on selected brand i need to petch prod desc values. Values are getting js controller, but not displaying in cmp. Can anybody help me to resolve this issue.

Thanks in advance!
Hi All,

I have designed a lightning component to insert products under one of custom object.

I can use same component in any custom objects without changing piece of code, i am storing the parent object fields api names in custom setting,

when inserting products i need to bind parent fields api names from custom settings.

I have searched a lot in google, still i am not able to find solution to achive this.

Thanks.