• Neetika
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 14
    Replies

Hello,


I am facing some browser while using javascript for closing the VF Page popoup window after updating the record.
Can any one Help me on this?

 

Thanks & Regards
Neetika

Hello All,

 

I have requirement to process Visualforce page through the flow.

 

Any Idea how to Call VF page from the flow.

 

Thanks

Neetika

 

Hello All,

 

I am facing some issue with Javascript code on custom button.

 

I have custom button to open a Visualforce page it should refresh only on submit or updating value on parent page.

But it is refreshing when we click on cancel custom button on VF page or close by window. 

 

Issue is without changing anything on parent page just closing window refreshing the page this we need to restrict.

 

Any altertive to resolve this issue?

 

Thanks

Neetika

Did any one come across solution of any approval process for Salesforce Content.?
I want Content attached to any object should have approval funtionality, so that we can do other changes according to content approve or reject.
Salesforce provides Flows to do custom approval and many other processes.Can any one tell me how to do custom approval through Flows.??

I have .Net based applications/website, i want to move this full application to salesforce.How can i do this?

I want to replicate my .net application into the salesforce sites. How to move .net based application into force.com sites. Any have have idea about this?



 

It is working working ap1 service endpoint but for na12 its giving above error..

Can someone help in this???

 

Thanks,

Neetika

  • September 07, 2011
  • Like
  • 0

Hi,

I want to pass checbox value true to the controller from visualforce page..

this one part of my Vf page:

<apex:pageBlockSection >
                          <apex:outputtext >Want Home Delivery</apex:outputtext>
                         <apex:inputCheckbox value="{!shop.Want_Home_Delivery__c}" onclick="{!homedelivery}" >
                       
                         <apex:param name="myParam" value="my Value"/>
                         </apex:inputCheckbox>
                    
                          <apex:outputPanel rendered="{!isSelected}">
                           <c:HomeDelivery ></c:HomeDelivery>
                           </apex:outputPanel>
                
                     </apex:pageBlockSection>

 

and Controller for this Content of the page:

public void homedelivery{ get{
    string myParam = apexpages.currentpage().getparameters().get('myParam');

if(myParam=='true')
{
isSelected =true;

}
}
set;
}

 

I have to display some Description about that field after checking...so if that field is checked controller perform some action.can anyone help me in this??

Hello,

I have two different visualforce pages, i have to pass parameters from one page to another in visualforce..

I have done this with a single controller but  my requirement is to do by 2 different controllers.

Can anyone tell the solution for this?

Hello,

I want to create a visualforce page same as standard salesforce page..in that i want to display the related object list also..

 

I have tried <apex:detail relatedlist ="true"> but by this standard page is also displaying.i want to display visualforce related list.

and  <apex:relatedlist list="Order_Item__c"> this is also not working for me..

can anyone tell me the solution for this..?

 

Hello,

So i am trying to implement the "Infinite Scrolling to Load More Rows" in a datatable.  I am trying to implement the example found at https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_datatable.htm.  However there is a helper method called in the JS Controller called "fetchData" that is not there and i cant for the life of me make it myself.  I have tried everything.  Any help would be greatly appreciated.

Please see code below.

Component:
<aura:component controller="ContactController" implements="force:appHostable,flexipage:availableForAllPageTypes" access="global">
    <aura:attribute name="mydata" type="Object" />
    <aura:attribute name="mycolumns" type="List"/>
    <aura:attribute name="isLoading" type="Boolean" default="true"/>
    <aura:attribute name="contactId" type="Id" />
    <aura:attribute name="sortedBy" type="String" />
    <aura:attribute name="sortedDirection" type="String" /> 
    <aura:attribute name="enableInfiniteLoading" type="Boolean" default="true"/>
    <aura:attribute name="initialRows" type="Integer" default="10"/>
    <aura:attribute name="rowsToLoad" type="Integer" default="50"/>
    <aura:attribute name="totalNumberOfRows" type="Integer" default="300"/>
    <aura:attribute name="loadMoreStatus" type="String" default=""/>
    <aura:handler name="init" value="{! this }" action="{! c.init }"/>
    <div style="height: 500px">
        <lightning:datatable data="{! v.mydata}" 
                             columns="{! v.mycolumns }" 
                             keyField="id"
                             onsort="{!c.updateColumnSorting}"
                             sortedBy="{!v.sortedBy}"
                             sortedDirection="{!v.sortedDirection}"
                             enableInfiniteLoading="true"
                             onloadmore="{! c.loadMoreData }"/>
        
    </div>
    {! v.loadMoreStatus}
</aura:component>

JS Controller:

({
    init: function (cmp, event, helper) {

        var actions = [
            { label: 'Show details', name: 'show_details' },
            { label: 'Delete', name: 'delete' }
        ];
        cmp.set('v.mycolumns', [
            // Other column data here
            { type: 'action', typeAttributes: { rowActions: actions } }
        ]);
        cmp.set('v.mycolumns', [
            {label: 'Contact Name', fieldName: 'Name', type: 'string', sortable: 'true'},
            {label: 'Phone', fieldName: 'Phone', type: 'phone', sortable: 'true'},
            {label: 'Email', fieldName: 'Email', type: 'email', sortable: 'true'}
        ]);
        helper.getData(cmp);
    },
    
    getSelectedName: function (cmp, event) {
        var selectedRows = event.getParam('selectedRows');
        // Display that fieldName of the selected rows
        for (var i = 0; i < selectedRows.length; i++){
            alert("You selected: " + selectedRows[i].Name);
        }
    },
    
    handleRowAction: function (cmp, event, helper) {
        var action = event.getParam('action');
        var row = event.getParam('row');
        switch (action.name) {
            case 'show_details':
                alert('Showing Details: ' + JSON.stringify(row));
                cmp.set('v.contactId', row.Id);
                alert(cmp.get('v.contactId'));
                $A.util.removeClass(cmp.find("childDiv"),'toggle');
                $A.util.addClass(cmp.find("listDiv"),'toggle');
                var attribute1 = cmp.get('v.contactId');
                var childComponent = cmp.find('child');
                childComponent.reInit(attribute1);
                break;
            case 'delete':
                var rows = cmp.get('v.mydata');
                var rowIndex = rows.indexOf(row);
                rows.splice(rowIndex, 1);
                cmp.set('v.mydata', rows);
                break;
        }
    },
    
    //Client-side controller called by the onsort event handler
    updateColumnSorting: function (cmp, event, helper) {
        var fieldName = event.getParam('fieldName');
        var sortDirection = event.getParam('sortDirection');
        // assign the latest attribute with the sorted column fieldName and sorted direction
        cmp.set("v.sortedBy", fieldName);
        cmp.set("v.sortedDirection", sortDirection);
        helper.sortData(cmp, fieldName, sortDirection);     
        
        
    },
    
    loadMoreData: function (cmp, event, helper) {
        //Display a spinner to signal that data is being loaded
        event.getSource().set("v.isLoading", true);
        //Display "Loading" when more data is being loaded
        cmp.set('v.loadMoreStatus', 'Loading');
        helper.fetchData(cmp, cmp.get('v.rowsToLoad'))
            .then($A.getCallback(function (data) {
                if (cmp.get('v.mydata').length >= cmp.get('v.totalNumberOfRows')) {
                    cmp.set('v.enableInfiniteLoading', false);
                    cmp.set('v.loadMoreStatus', 'No more data to load');
                } else {
                    var currentData = cmp.get('v.mydata');
                    //Appends new data to the end of the table
                    var newData = currentData.concat(data);
                    cmp.set('v.mydata', newData);
                    cmp.set('v.loadMoreStatus', '');
                }
               event.getSource().set("v.isLoading", false);
            }));
    }
    
})

HELPER

This is where i need the help to come up with a helper method that is referenced in the JS controller.  THANK YOU!

 

Hello All,

 

I am facing some issue with Javascript code on custom button.

 

I have custom button to open a Visualforce page it should refresh only on submit or updating value on parent page.

But it is refreshing when we click on cancel custom button on VF page or close by window. 

 

Issue is without changing anything on parent page just closing window refreshing the page this we need to restrict.

 

Any altertive to resolve this issue?

 

Thanks

Neetika

I have .Net based applications/website, i want to move this full application to salesforce.How can i do this?



 

It is working working ap1 service endpoint but for na12 its giving above error..

Can someone help in this???

 

Thanks,

Neetika

  • September 07, 2011
  • Like
  • 0

After salesforce.com made their last update (about 2 weeks ago) one of my custom visualforce pages returns an error.  No line numbers or debugging information in the log.

 

Visualforce Error Help for this Page  The configuration of your org has changed, please reload the page. Missing dependent object: Field: Lead.Jigsaw 

 

The error occurs when I click a command button.  To try to isolate the problem I commented out the code behind the button so it does nothing and I still receive the error.  I also know that the controller construction is not working with leads in any way.  All it is doing is get a few parameters.  Also note that I did not enable Jigsaw in my org.

 

Any ideas?

 

Thank you,

Michael

 

 

 

 

Hello,

I want to create a visualforce page same as standard salesforce page..in that i want to display the related object list also..

 

I have tried <apex:detail relatedlist ="true"> but by this standard page is also displaying.i want to display visualforce related list.

and  <apex:relatedlist list="Order_Item__c"> this is also not working for me..

can anyone tell me the solution for this..?

 

I've been asked to run a query and use VF to build an RSS feed with the results, I can't find any reference on how to do this. I understand VF and APEX and the structure of RSS files but what throws me is how to make the output be XML, not HTML.

  • September 10, 2010
  • Like
  • 0

First off, thanks in advance for any help with this question. I am relatively new to Salesforce.com and this is my first post! Woohoo! Anyway.....

 

I have two custom fields in my Opportunity page. The first is a required picklist called "Sales Assistance" and the second is a user lookup field called "Sales Resource." What I would like to happen is that if, when saving the opportunity, a user sets the Sales Resource picklist to "No" then the user lookup is automatically populated with the Opportunity owner. If it is yes, then the user will have to select a user on their own (and I have set up a validation rule for this already).

 

I can set up the workflow but field updates only allow me to select ONE specific user, not the user in a field. This is what my workflow rule currently says, in case this helps:

 

Rule CriteriaAND(
ISBLANK( Sales_Resource__c ) ,
ISPICKVAL(Sales_Assistance1__c , "NO" )
)
Evaluation CriteriaEvery time a record is created or edited

 

Thanks!

Hi All,

 

 

In our requirement we are emailing attachments using apex.  

 

I found that email attachment size is limited to 3mb, from the following link,

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_attachment.htm

. Kindly confirm this.

 

 

Are anyone of you able to send attachment more than 3 mb size? If so please post your suggestions.

 

Thanks in advance

 

 

Cheers,

Vishnu 

  

I have a requirement where through VF page, user will upload an Excel file.

Controller has to read this excel file and display the values in the same page.

 

Now my question would be

 

1. Is it possible to read the excel content in controller class?

2. If it is possible, can you explain me with some sample code?

 

This has reference to the SFDC DEMO; http://adnsandbox.com/media/soasoa/;
Where in , Upon Click of a Button(Integrate Account Button), Apex code written on this event invokes WebService that fetches additional data from Oracle and popultes the SFDC screen.
 
How do we invoke such externa webservice from within SFDC ?
 
Can you please share APEX code behind that enables this functionality ? Any code snippet will useful.
 
Thanking you in advance for the help.
 
Cheers,
 
SrinathR
  • November 09, 2007
  • Like
  • 0