-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
8Questions
-
7Replies
One Record Restriction
Hi
I have a problem with page refreshing. I want a configuration setting for the objects to update. I have created an object to maintain the record. I need only one record per user in that object.
For that I have written code in constructor so that each time a page is refreshing another record gets created.
Can any one of you modify my code and send back to me. I have to update only one record. No need of creating another record.
Page:
Controller:
public with sharing class SettingsController {
XML_Setting__c newSetting;
public XML_Setting__c getnewSetting() {return newSetting;}
public void setnewSetting(XML_Setting__c newSetting) {this.newSetting= newSetting; }
public SettingsController() {
Id id = ApexPages.currentPage().getParameters().get('id');
newSetting = (id == null) ? new XML_Setting__c() : [Select Name,Contacts__c,Accounts__c,Opportunities__c,Households__c from XML_Setting__c where Id=:id ];
}
public PageReference Save()
{
upsert newSetting;
return null;
}
}
-
- Anu-cnp
- April 08, 2011
- Like
- 0
- Continue reading or reply
XML Parser values are not looping
Hi,
I want to read xml from a custom object. My code is:
<Contact>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
</Contact>
-
- Anu-cnp
- March 29, 2011
- Like
- 0
- Continue reading or reply
Too many script statements: 200001 error
Hi
I've a custom field in a custom object. I'm posting an xml file through external API. It is posted successfully. Now I want to map that data into Contact Object. I'm facing too many Script statements.
My code is:
-
- Anu-cnp
- March 28, 2011
- Like
- 0
- Continue reading or reply
Reading XML file through a trigger and updating the objects
Hi,
I've an xml file. I have to read data from XML and display on visualforce page and have to update some objects based on that data.
Can any one of you please help on this...
Thanks
Anu
-
- Anu-cnp
- March 24, 2011
- Like
- 0
- Continue reading or reply
how to remove dependancy for a package
Hi,
I have a package which is having several transactions.I have installed it in another account successfully.
I have created another package which is having households in it.households have all the data which has to be updated based on transaction object results.
My aim is to have first package independant on household package. how can I do that?
I've a trial. I have installed the first pack successfully. and i created the middle object which is having both transaction and household lookups.When I want to update the first package households are automatically added to first pack componants, which causes dependancy.
Can any one please help on this?
-
- Anu-cnp
- March 23, 2011
- Like
- 0
- Continue reading or reply
Rendered not working properly
Hi,
Here is my code,
<apex:pageBlockSection title="Payment Method" columns="1">
<apex:pageblocksectionItem >
<apex:outputlabel value="Payment is done through" for="compare" />
<apex:selectList id="compare" value="{!compare}" required="true" size="1" >
<apex:actionSupport event="onchange" reRender="newvalue" />
<apex:actionStatus startText="Processing...."/>
<apex:selectOptions value="{!comparison}" />
</apex:selectList>
</apex:pageblocksectionItem>
<apex:outputPanel id="newvalue">
<apex:outputpanel rendered="{!compare=='Invoice'}" >
<div style="position:relative;left:75px;">
<apex:outputlabel for="number" />
<b>Invoice Number:</b>
<apex:inputField value="{!newTransaction.Invoice_Check_Number__c}" id="number"/>
</div>
</apex:outputpanel>
<apex:outputpanel rendered="{!compare=='Cash'}" >
<div style="position:relative;left:75px;">
<apex:outputlabel for="number2" />
<b>Receipt Number:</b>
<apex:inputField value="{!newTransaction.Invoice_Check_Number__c}" id="number2"/>
</div>
</apex:outputpanel>
<apex:outputpanel rendered="{!compare=='Purchase Order'}" >
<!--<div style="position:relative;left:75px;"> -->
<apex:outputlabel for="number3" />
<b>Purchase Order Number: </b>
<apex:inputField value="{!newTransaction.Invoice_Check_Number__c}" id="number3"/>
<!--</div>-->
</apex:outputpanel>
</apex:outputPanel>
</apex:pageBlockSection>
Apex Class:
public string compare{get;set;}
public List<SelectOption> getComparison()
{
System.debug('hii'+compare);
List<SelectOption> options = new List<SelectOption>();
options.add(new SelectOption('Cash','Cash'));
options.add(new SelectOption('Invoice','Invoice'));
options.add(new SelectOption('Purchase Order','Purchase Order'));
return options;
}
My problem is I want to render the text field with label based on picklist values.I'm getting the compare value successfulyy. but I'm not able to rendered properly.
Any one can help me please.
-
- Anu-cnp
- February 25, 2011
- Like
- 0
- Continue reading or reply
Error while installing Chatter desktop
Hi,
While installing the Chatter desktop into my system I hae found the following problem.
Sorry. an Error has occured.
The application could not be installed. Try installing it again. If the problem persists, contact the application author.
Can anyone of you let me know how can I solve this problem? Adobe air version 2.5.1 is installed successfully into my system.
Thanks
-
- Anu-cnp
- February 14, 2011
- Like
- 0
- Continue reading or reply
Error Message should display while package is installing from appexchange.
Hi All,
I have a problem with installing the packages. If the users want to install my package from appexchange, they need to install one more managed package before that.
If the users forgot this and tried to install my package and login to the application and follow the installation steps, finally they got the error messages like missing some packages into the system.
I need this type of custom message while login to the user's credentials itself. Can I know how to do this.
Thanks in Advance.
Anuradha.
-
- Anu-cnp
- January 19, 2011
- Like
- 0
- Continue reading or reply
Too many DML rows: 10001
Hello Salesforce community,
I am still learning about salesforce so I hope I am posting it to the right board.
So, I was trying to update and install an app from AppExchange... and I got an email notification from Salesforce regards to installation failure. As I look at the problem, it has to do with "too many DML rows"
Here is a screen shot:
http://www.box.net/shared/4s95cmef9x
Would anybody able to help and guide me to install this app correctly?
Thanks,
Anthony Lee
- anthonylee
- May 17, 2011
- Like
- 0
- Continue reading or reply
XML Parser values are not looping
Hi,
I want to read xml from a custom object. My code is:
<Contact>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
</Contact>
- Anu-cnp
- March 29, 2011
- Like
- 0
- Continue reading or reply
Too many script statements: 200001 error
Hi
I've a custom field in a custom object. I'm posting an xml file through external API. It is posted successfully. Now I want to map that data into Contact Object. I'm facing too many Script statements.
My code is:
- Anu-cnp
- March 28, 2011
- Like
- 0
- Continue reading or reply
Reading XML file through a trigger and updating the objects
Hi,
I've an xml file. I have to read data from XML and display on visualforce page and have to update some objects based on that data.
Can any one of you please help on this...
Thanks
Anu
- Anu-cnp
- March 24, 2011
- Like
- 0
- Continue reading or reply
Error Message should display while package is installing from appexchange.
Hi All,
I have a problem with installing the packages. If the users want to install my package from appexchange, they need to install one more managed package before that.
If the users forgot this and tried to install my package and login to the application and follow the installation steps, finally they got the error messages like missing some packages into the system.
I need this type of custom message while login to the user's credentials itself. Can I know how to do this.
Thanks in Advance.
Anuradha.
- Anu-cnp
- January 19, 2011
- Like
- 0
- Continue reading or reply