• iceberg4u
  • NEWBIE
  • 75 Points
  • Member since 2008

  • Chatter
    Feed
  • 3
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 30
    Questions
  • 59
    Replies
 Hi,

We have a profile cloned from "Partner User" named "CashRelease User". i have provided Custom Object Permissions to the custom object UserRoles.I have checked all the boxes present(Read,Create,Edit,Delete).There were no check boxes for View all and Modify All.

Now when I run a piece of code as a "CashRelease User" I get the below error:-
first error: INSUFFICIENT_ACCESS_OR_READONLY, insufficient access rights on object id.

and when I run it as system administrator it runs fine.

After giving all permissions it still does'nt work.
Please suggest a solution or an alternative approach to perform the action.

I'm using selectCheckboxes in combination with selectOptions tag to display a list of options to be selected. When the user selects these options, how do I capture those selections?

Say it displays check boxes 

Option 1

Option 2

Option 3

 

If a user selects Option 1, how does the controller know this? is there a variable associated with each checkbox displayed?

 

My end goal is: depending on the selections, the wizard will display the appropriate pages. Is this possible?

Hello All,

I am using  <apex:inputfield id="dt" value="{!User.Date__c}" /> through which I am collecting the date from

use.While displayig the calendar I am also able to see the todays date which gets display just near to textbox 

how to remove that?

 

 

 

 

Thanks ,

Sandip

 

 

Hi, In my visualforce page, I want to call apex method through javascript. Following is the code for the same. Code is working fine for Save1 button but not for Save button. Both the button call the same javascript method.

 

Please guide.

 

VisualForce Page

 

<apex:page controller="apexVFJavascript" tabStyle="Opportunity" >

<apex:form >
<apex:actionFunction name="customAction" action="{!customAction}" rendered="true" rerender="myStatus" >
<apex:param name="firstParam" value="" assignTo="{!first}"/>
<apex:param name="secondParam" value="" assignTo="{!second}"/>
</apex:actionFunction>
</apex:form>
<apex:form >
<apex:pageBlock >
<apex:commandButton onclick="doAction()" id="Save" title="Save" value="Save"/> <!-- not working for this button -->
<apex:outputPanel onclick="doAction()" styleClass="btn">Save</apex:outputPanel> <!-- working for this -->
</apex:pageBlock>
<script>
function doAction() {
customAction('1','2');
}
</script>
</apex:form>

<apex:outputPanel id="out">
<apex:outputText value="Hello "/>
<apex:actionStatus startText="requesting..." id="myStatus">
<apex:facet name="stop">{!first} - {!second}</apex:facet>
</apex:actionStatus>
</apex:outputPanel>
</apex:page>

 Component Class

 

public class apexVFJavascript {



private String first='one',second='two';

public void setFirst(String s) {
this.first = s;
}

public String getFirst() {
return first;
}

public void setSecond(String s) {
this.second = s;
}

public String getSecond() {
return this.second;
}

public PageReference customAction() {
Apexpages.addMessage(new Apexpages.Message(Apexpages.Severity.FATAL,'Error Message'));

System.debug(first);
System.debug(second);
return null;
}
}

 

 

 

Hi,

 

If I create a custom component, is there any way to update a value on the parent controller? Let's say as a parameter passed into the custom component, I gave a value like {!value}. Can the controller behind the custom component modify that variable that's on the main page's custom controller? In java you might do this with a shared bean or session variable. What about in apex?

 

I have several VF tabs on my page. Each tab is a different business function. I end up re-using code on multiple VF pages so it would be great to make each tab a component so I can re-use thm elsewhere.  Right now it's monolithic. But a link on one tab may cause the VF page to jump you to another tab and use a commandlink parameter.

 

So if we were to break this up into custom components, we would need to somehow pass data between them. Is that possible somehow? It looks like variables only flow one way or maybe we just don't know how to do it?

 

Any thoughts?

 

Thank you,

DSL

Hello All,

 

Is it possible to call javascript function from "Rendered" attribute of pageblock section item..

 

 

 

 

 

 

 

Thanks,

Sandip

Hi,

 

I have started facing problems with Double.valueOf(<String>) method.Whenever I send in a String value, the value becomes <smthn>E<smthn>. 

 

Suppose I take a value of "11111111111" I get value as <smthn>E9.I get an error as "unexpected token: E9".

 

Suppose I take a value of "1111111111" I get value as <smthn>E8.I get an error as "unexpected token: E8".

 

What modification do I need to do for this??

Hello Friends,

 

I have a very generic requirement which i am unable to achieve. This is regarding the "SelectCheckboxes" VF component.

 

Below is the code which i am using:-

 

<apex:selectcheckboxes value="{!Values}" layout="PageDirection" > <apex:selectOptions value="{!ValueOptions}" /> </apex:selectcheckboxes>

 

The requirement is that i want to disable some of the checkboxes within this component depending on some criteria.

 

I tried using the "Disabled" attribute but it disables all the checkboxes instead of disabling selected ones. Is there a way i can achieve this??

 

Please let me know.

 

Many Thanks,

Cool_D

Hello All,

I am facing one problem while rendering the select option list.

 

What I am trying to acomplish is I have one select option list called Visa status shich is having 

two options (values) "Yes"  & "No" . Initially there is only on selectoption list i.e Visa Status  on my page.

Now when I will select "Yes" the Other selectoption list i.e Visa Type should be rendered n populated with three values H1B,L1

and B1 just below the Visa  Status slect option list.When I will select "No" the rendered Visa Type list should

be disappear from the page.

 

 Please guide me how i will achive this ...

 

 

I hope somebody must be having the solution for this.....

 

 

Thanks ,

Sandip

 

 

Is it possible, using one of the action components like actionFunction or actionSupport, to rerender just one piece of a table? (in this case a pageBlockTable)

 

My table is listing Leads.  (Leads contained in a wrapper obj defined in the controller, to be exact.)  One of the columns contains a select control (so we've got a separate select control for each row).  When onchange fires for the select, I'd like to rerender the contents of another column in the same row.  Or it would be OK to rerender the entire other column.  But I don't want to rerender the whole table, or the whole row.

 

I don't seem to be able to do this.  If I put the column id in the rerender attribute, nothing seems to happen.  Same if I use the id of the outputPanel that's contained inside that column (which would be repeated for each row, so not sure how to refer to the outputPanel contained in a particular row.)

 

Is this possible?  Or is it only possible to refresh the table as a whole?

 

Thanks much!

Assuming the visualforce object (or element) is assigned an id (e.g. <apex:inputField id="someid" value="{!someval}" />), how would one go about referencing that object (inputField value) from apex?

Hello,

 

I use both online editor and eclipse to work on Apex and Visualforce code. For some reason when I do Refresh From Server, my local files are still old version.

 

 

I am using

Force.com version 15.0.1.200903241010

Eclipse 3.4.2 build M20090211-1700

 

In order to get correct version I have to delete the project and re-create it.

 

With best regards,

Pavel

In IE6 and IE7 the output text value is not getting populated but in Morzilla it is getting populated correctly

 

Based on the picklist value only this output text is getting populated.Give me a solution for this.How can I make it compactable on IE7 and IE6

 

Thanks

Ani

Hi ,

 

I have developed a web service using apex code and succesful to invoke it using soap Client.

Now I have one new requirement to upload a file to the custom object. how do I upload a pdf/text file to the custom object from my local file system.Is there any way to do this ? Help Appreciated.

 

Thanks

Chandra.

Hi I have checked the trak history option for an object that I have.But I am not able to understand how to access the old values and new values.

 

For exaple I track the history of an object Customer.It has a field "Status" which is a Double.

 

How am I able to access this field status when the record in this object is updated??

 

my query would be

 

List<Customer__c> customerObj = [select oldValue,newValue from Customer__c where Parentid =: <some id over here >] ;

 

How would I access the newValue of the Status field ?

 

how do I get to see what the new status is??

 

 

I am invoking Apex methods from JavaScript using sforce.apex.exeute()
How do I see the debug output from the Apex code?The SOAP invocation returns an error. The system log window does not show anything.
When I look at the debug logs under Setup->Monitoring->Debug Logs, the log shows up with a large time lag.

Any pointers will be much appreciated.

  

Folks,

 

I am writing a test class for my search function. In VF page it has three criteria i.e. Name, Start date and End Date to summarize the results and I am using command button method “rerender” to render the results in a data table.

                                                                                                       

In my Apex controller, the selected criteria’s will be checked for ‘null’ or ‘not null’ before querying the result. I need to pass values for these criteria satisfying both ‘null’ and ‘not null’ for testing.

 

How to write a test method to pass values for these criteria’s?.

 

Seemati

Hi,

 

We have an email messaging class Messaging.SingleEmailMessage for sending custom emailsWe need to configure the From email Address,and we are not able to find any such property that we can set the "From" address in Messaging.SingleEmailMessage object.

 

 

Kindly provide the solution as soon as possible!!

 

Thanks.