• ankitjain
  • NEWBIE
  • 0 Points
  • Member since 2009

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

I am trying to update Account owners from data loader. The problem I am facing is:

 

If I update the Owner Field in Account through UI, from user A to B, the owner field in child contacts of that Account, whose owner was A, gets autoupdated to User B. 

But if I do the same through Dataloader, the autoupdate is not happening. 

 

Is it some standard procedure, do I need to activate any setting option in Data Loader, or is this a bug in salesforce.

 

thanks in advance for any help.

I am trying to develop an user-friendly visualforce interface to create components (like pages, components, etc.) in salesforce. Is it possible to access metadata components inside an apex class?

 

If not, can anyone please suggest any alternate solution for this

Hi,

 

Please help!

I’ve created a veeeeery simple APEX class:

 

 

public class test { public boolean testMethod(){ return true; } }

 


 

The testMethod needs to be called when I press a button (custom button) with JavaScript Behaviour:

 

{!requireScript("/js/functions.js")}
{!requireScript("/soap/ajax/13.0/connection.js")}
{!requireScript("/soap/ajax/13.0/apex.js")}
var answer = confirm("Are you sure you want get Open Positions for this epic?")
if (answer){
alert(sforce.apex.execute("test","test", {}));
} else {}

 

But I have got the following error:

 

 

No operation available for request

{http://soap.sforce.com/schemas/class/test}testMethod.

 

 


 

 

 

  • August 04, 2009
  • Like
  • 0

Here is the scenario:

- Page has an InputTextarea with richText="true" specified

- An action function is used to promt the user and submit the page

- When the actionFunction reRender property is set, the content from the inputTextarea is NOT passed to the controller

- When the actionFunction reRender property is NOT set, the content from the inputTextarea IS passed to the controller

- Using a normal command button, the value is ALWAYS passed to the controller

 - If the InputTextarea richText="false", using the actionFunction or command button BOTH submit the content to the controller without issue. 


After hitting either button, the results can be seen in the "System Log" window

 

 

Any ideas?

 

 

 

visualforce page

 

<apex:page controller="TestRichTextAreaController">

<script language="javascript">
function confirmAction()
{
var answer = confirm("Proceed?");
if (answer)
{
//call actionFunction
proceedWithSave();
}
else
{
alert('nto done');
}
}
</script>

<apex:Form id="mainForm">

<apex:actionFunction action="{!doSave}" name="proceedWithSave" rerender="testSection"/>


<apex:pageBlock title="Test Input Text Area - Rich Text" mode="edit">

<apex:pageBlockButtons >
<input id="confirmButton" type="button" OnClick="confirmAction();" name="confirmButton" value="Save via action function" class="btn" />
<apex:commandButton action="{!doSave}" value="Save via button"/>
</apex:pageBlockButtons>

<apex:pageBlockSection columns="1" id="contentSection" title="Content">

<apex:pageBlockSectionItem >
<apex:outputLabel value="Content" for="contentInput"/>
<apex:inputTextarea id="contentInput" value="{!content}" richText="true" rows="10" cols="100" />
</apex:pageBlockSectionItem>

<apex:pageBlockSectionItem id="testSection">
<apex:outputLabel value="Content" for="contentInput"/>
<apex:outputLabel value="Content" for="contentInput"/>
</apex:pageBlockSectionItem>

</apex:pageBlockSection>

</apex:pageBlock>
</apex:Form>

</apex:page>

 

 

 

controller

 

public class TestRichTextAreaController {

public String content{get;set;}

public TestRichTextAreaController()
{
this.content='';

}

public void doSave()
{
System.Debug('$$ content: '+content);

}
}

 

 


 

Message Edited by dev_force on 03-23-2009 09:33 AM