• Shwetal Desai
  • NEWBIE
  • 60 Points
  • Member since 2008

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 37
    Questions
  • 53
    Replies
I have two custom objects,
1) PO
2) IR

in both custom objects i have one custom field namely "Status", the Field Type of this custom field is "PickList".

When IR's field "Status" get changed then i would like to change the "Status" field of PO
i want to do this operation through workflow.

Please guide me to create proper workflow for this task.

Thanks
Shwetal

Hello experts,Can I use Javascript events of commandButton and CommandLink in Visualforce page with Standard Action method?

for example: onComplete event with action="{!save}"

 

is this possible?

 

 
I have transfered my application with code into Partner Developer login through copy-paste method in ECLIPSE.
 
Now in Partner Developer Login for my user i did not enable "Developer Mode" and i m doing testing of all functionalities i have developed by inserting records in each custom objects.
The maximum Errors i found is of Javascript events of all APEX components provided by salesforce,
In most of the forms my OnClick, OnComplete events are not working.
I have used window.parent.location.href='{!$Page.<vfpage>}'; code on onclick event of COmmandButton as well as CommandLink, now those all code not working in Partner Developer Login.
 
What could be the reason??
It put me a very big tension
 
Please help me.
Message Edited by Shwetal Desai on 07-20-2009 10:30 PM

My Test Method Class contains almost all APex Code of my application

In one of my many Apexclass i have a reset method which reseting the two lists.

each list has more than 250 records, now how can i limit the query rows

 

my test method gives me error  

 

 System.Exception: MediSpa:Too many query rows: 510

 

Help ! 

 

 

Shwetal 

How to retrieve url for Tab page of Custom Object?
I have used:

Departments

but its not working.

Hi, I m trying to install Unmanaged Package [created in Normal Developer Edition] into Partner Developer edition.

Its giving me this Error:

 

Your request to install package "MediSpa MediSpa '01" was unsuccessful.

None of the data or setup information in your Salesforce organization was affected.

If your install continues to fail, contact Salesforce Support through your normal channels and provide the following information.

 

Organization: Day Tech (00D80000000cnCs)
User: Shwetal Shah (00580000001sngY)
Package: MediSpa (0339000000005Y9)
Error Number: 1243350038-1764 (1429938688)

 

Message Edited by Shwetal Desai on 07-10-2009 03:29 AM

Hello,

 

I have installed my Managed Packages Beta Version [Created on Developer Edition] into Partner Developer Login.

When i Clicked on "Install"  Button it has redirected me on the page url ["https://na6.salesforce.com/page/processinginbackground.jsp"]

 and this page showing me the message "Your request is in progress. You will be notified by email when it completes.

 

Now I got the mail with following message:

----------------------------------------------------------------------------------------------------------------------

Your request to install package "Avias Avias '01" was unsuccessful. None of the data or setup information in your Salesforce organization was affected.

If your install continues to fail, contact Salesforce Support through your normal channels and provide the following information.

Organization: Day Tech (00D80000000cnCs)
User: Shwetal Shah (00580000001sngY)
Package: Avias (0339000000005P5)

Error Number: 1783218601-1540 (-1056244974) 

--------------------------------------------------------------------------------------------------------------------- 

What should i do for this? 

Hello Experts,

 

How can I migrate my Custom Application developed on Normal Developer Edition to Partner Enterprise Edition Or Partner Developer Edition?

 

I have tried Migration Tool but i was not able to migrate ?

 

Can anyone guide me the all steps  and further requirements of migration? 

Hi, I m facing same Error while installing package

 

Package install error

There are problems that prevent this package from being installed.

 

Missing Organization Feature: Contact.RecordType

Missing Organization Feature: Campaign.RecordType

Missing Organization Feature: Account.RecordType

Missing Organization Feature: Contract.RecordType

Missing Organization Feature: Contact.Sharing

Missing Organization Feature: Campaign.Sharing

Missing Organization Feature: Account.Sharing

Missing Organization Feature: Contact.FieldHistoryTracking

Missing Organization Feature: Account.FieldHistoryTracking

Missing Organization Feature: CustomerSuccessPortal

Missing Organization Feature: PRM

 

I m trying to install package in Enterprise Edition as well as Developer Edition

what could be the reason?

Thanks in advance

 

Shwetal

Hello exports, I have a code where i have used "oncomplete" event of apex commandbutton and i have called javascript function on that button's oncomplete event.

Even that command button has standard action mathod "Save" as its action.

 

Here is my code:

 

<apex:page StandardController="CertificationList__c" showHeader="false" sideBar="false" id="pgOnlDept"> <style> .labelcol{color:Purple;font-size:9pt;font-weight:Bold;} </style> <apex:form id="frmOnlDept"> <apex:pageBlock id="pbOnlDept"> <apex:pageBlockButtons > <apex:commandButton id="btnSave" action="{!save}" value="Save" oncomplete="back();"/> <apex:commandButton id="btnCancel" action="{!Cancel}" value="Cancel" oncomplete="window.location.reload();"/> </apex:pageBlockButtons> <apex:pageBlockSection title="Information" id="pbsOnlDept"> <apex:inputField value="{!CertificationList__c.CertificationType__c}" id="flg" styleClass="labelcol"/> </apex:pageBlockSection> </apex:pageBlock> </apex:form> <script type="text/javascript"> function back() { window.parent.location.href='{!$Page.CertificateLookup1}?rid={!$CurrentPageReference.parameters.rid}&txt={!$CurrentPageReference.parameters.txt}'; } </script> </apex:page>

this code was working perfectly before few days.

 

What could be the reason??

 

Please guide me

 

Thanks in advance.

 

 

Shwetal Desai

Hi,

I have a Trigger :

trigger UpdateSubTotalAndTotalTax on InventoryReceiptDetail__c (after insert, after update, after delete, after undelete, before update)
{
/* if(Trigger.isBefore && Trigger.isUpdate)
{
InventoryReceipt.UpdateReceivedCostInInventoryReceiptDetail(Trigger.new);
} */
if(Trigger.isDelete && Trigger.isAfter)
{
for(Integer i = 0; i < Trigger.old.size(); i++)
{
InventoryReceipt.UpdateSubTotalAndTotalTax(Trigger.old[i].ReceiptNo__c);
}
}
else if(Trigger.isInsert && Trigger.isAfter)
{
for(Integer i = 0; i < Trigger.new.size(); i++)
{
InventoryReceipt.UpdateSubTotalAndTotalTax(Trigger.new[i].ReceiptNo__c);
}
}
if(Trigger.isUpdate && Trigger.isAfter)
{
for(Integer i = 0; i < Trigger.new.size(); i++)
{
InventoryReceipt.UpdateInventoryStatusFromDetail(Trigger.new[i].ReceiptNo__c);
}
}
}

I dont know that how can i test this by writing Test method for this.

Please Help to solve this.

Thanks in advance

Shwetal Desai
Hi ,

In my sForce Object i have two fields A(Date) and B(DateTime),

now i need to insert values from .NET C# application ...

but if i apply values directly like

sObject__c myObj = (sObject__c)qr.records[i];
myObj.A = DateTime.Parse(txtDate.Text).Date;
myObj.B = DateTime.Parse(txtDateTime.Text);

Then its not inserting values in these fields in sforce..... it remains with null values

how can i insert Date and DateTime values in sforce from .NET C#??

Please Help

Thanks
Hi All,

I m trying to create a mx:DataGrid in Flex application in which i need to add columns dynamically from Query Result .
What i exactly want to do is...
I need to execute a SOQL Query [Select EmployeeID__c, EmployeeID__r.Employee__c from TimeCard__c where CheckOut__c = null and WorkType__c='Work' and DateTime__c = DateTime.now()].
now i need to add columns in Datagrid dynamically where

Number of Columns = Number of Records returned by this query;

and

Column[i]. Name = QueryResult.records[i].Value.tostring();

how can i make it possible?

Please guide
Thanks in Advance.
I have created 
Code:
 <style>
    .buttons{background-color : #a8a}
</style> 
<apex:form>
  <apex:commandButton value="Check In" action="{!savedata}" styleClass="buttons"/>
</apex:form>

 
tags in my VF page but still that button has "Gray" color in background.... not that defined color in inline Stylesheet.
What should i do ??
Thanks in advance.


Message Edited by Shwetal Desai on 11-25-2008 05:39 AM
here is my code:
-----------------------------------------------------------------------------------------------------------------------
String Emps;

public String selectedEmp {get;set;}

public List EmpList;

public List getEmployees()
{
try
{
if (EmpList== null)
{
Employee__c[] emp = [select Id,Name,Employee__c,FirstName__c,Last_Name__c from Employee__c where Active__c=true ORDER BY Employee__c];
EmpList = new List();
for(Employee__c empl : emp)
{
EmpList.add(new SelectOption(empl.Id, String.valueOf(empl.Employee__c)));
}
}
return EmpList;
}
catch(Exception ex){return EmpList;}
}
public String getEmps()
{
return Emps;
}
public void setEmps(String Emps)
{
this.Emps = Emps;
}
------------------------------------------------------------------------------------------------------
Now in other function i want selected Employee's Id..
But How can i take that??
That function is :
--------------------------------------------------------------------------------------------------------------------
public PageReference saveTc()
{
Employee__c emps = [select Id,Name,Employee__c,Password__c from Employee__c where Id=:Emps];
if(emps.Password__c == psw)
{
tc.EmployeeId__c = Emps;
tc.DateTime__c = DateTime.Now();
tc.CheckIn__c = DateTime.Now();
insert tc;
}
else
{
ApexPages.Message msg= new ApexPages.Message(ApexPages.Severity.ERROR, 'Invalid Password !', 'Invalid Password !');
ApexPages.addmessage(msg);
}
return null;
}
----------------------------------------------------------------------------------------------------------------------


please help.
Hi all,

In Visualforce page with StandardController if we use with standard action methods like:
{!edit}
{!delete}
and Value attribute : "Edit" & "Delete"
not being visible.

What could be the problem???

and

Does Clone facility available in such visualforce page??
Is it possible to convert 'true' or 'false' to boolean true / false?
if yes then how can i do this?


Thanks in advance
I have one controller for my VF Page.
m doing insert operation from controller...
using
insert myobject;
now i want to fetch and set RecordId which is generated from this insert statement into one variable ("newId") in controller.
how can i do this?
Hi experts,

I have one VF Page with pageBlockTable which has a List in its "value" attribute.
what i want to do is.. i want a select facility on each row of table and i want to keep track of selected rows in a controller .. after that on click of button i would like to execute an action which will insert those selected rows into the database.

Is it possible?
how can i do this?
Any guidance, source code ??

Thanks in advance.
I have one DateTime field and i have used VF Page for that object..
Now i want to use Datepicker in VF Page. is it possible?
how can i do this?

Thanks
 
I have transfered my application with code into Partner Developer login through copy-paste method in ECLIPSE.
 
Now in Partner Developer Login for my user i did not enable "Developer Mode" and i m doing testing of all functionalities i have developed by inserting records in each custom objects.
The maximum Errors i found is of Javascript events of all APEX components provided by salesforce,
In most of the forms my OnClick, OnComplete events are not working.
I have used window.parent.location.href='{!$Page.<vfpage>}'; code on onclick event of COmmandButton as well as CommandLink, now those all code not working in Partner Developer Login.
 
What could be the reason??
It put me a very big tension
 
Please help me.
Message Edited by Shwetal Desai on 07-20-2009 10:30 PM

My Test Method Class contains almost all APex Code of my application

In one of my many Apexclass i have a reset method which reseting the two lists.

each list has more than 250 records, now how can i limit the query rows

 

my test method gives me error  

 

 System.Exception: MediSpa:Too many query rows: 510

 

Help ! 

 

 

Shwetal 

How to retrieve url for Tab page of Custom Object?
I have used:

Departments

but its not working.

Hi, I m trying to install Unmanaged Package [created in Normal Developer Edition] into Partner Developer edition.

Its giving me this Error:

 

Your request to install package "MediSpa MediSpa '01" was unsuccessful.

None of the data or setup information in your Salesforce organization was affected.

If your install continues to fail, contact Salesforce Support through your normal channels and provide the following information.

 

Organization: Day Tech (00D80000000cnCs)
User: Shwetal Shah (00580000001sngY)
Package: MediSpa (0339000000005Y9)
Error Number: 1243350038-1764 (1429938688)

 

Message Edited by Shwetal Desai on 07-10-2009 03:29 AM

Hello,

 

I have installed my Managed Packages Beta Version [Created on Developer Edition] into Partner Developer Login.

When i Clicked on "Install"  Button it has redirected me on the page url ["https://na6.salesforce.com/page/processinginbackground.jsp"]

 and this page showing me the message "Your request is in progress. You will be notified by email when it completes.

 

Now I got the mail with following message:

----------------------------------------------------------------------------------------------------------------------

Your request to install package "Avias Avias '01" was unsuccessful. None of the data or setup information in your Salesforce organization was affected.

If your install continues to fail, contact Salesforce Support through your normal channels and provide the following information.

Organization: Day Tech (00D80000000cnCs)
User: Shwetal Shah (00580000001sngY)
Package: Avias (0339000000005P5)

Error Number: 1783218601-1540 (-1056244974) 

--------------------------------------------------------------------------------------------------------------------- 

What should i do for this? 

Hi, I m facing same Error while installing package

 

Package install error

There are problems that prevent this package from being installed.

 

Missing Organization Feature: Contact.RecordType

Missing Organization Feature: Campaign.RecordType

Missing Organization Feature: Account.RecordType

Missing Organization Feature: Contract.RecordType

Missing Organization Feature: Contact.Sharing

Missing Organization Feature: Campaign.Sharing

Missing Organization Feature: Account.Sharing

Missing Organization Feature: Contact.FieldHistoryTracking

Missing Organization Feature: Account.FieldHistoryTracking

Missing Organization Feature: CustomerSuccessPortal

Missing Organization Feature: PRM

 

I m trying to install package in Enterprise Edition as well as Developer Edition

what could be the reason?

Thanks in advance

 

Shwetal

Hello exports, I have a code where i have used "oncomplete" event of apex commandbutton and i have called javascript function on that button's oncomplete event.

Even that command button has standard action mathod "Save" as its action.

 

Here is my code:

 

<apex:page StandardController="CertificationList__c" showHeader="false" sideBar="false" id="pgOnlDept"> <style> .labelcol{color:Purple;font-size:9pt;font-weight:Bold;} </style> <apex:form id="frmOnlDept"> <apex:pageBlock id="pbOnlDept"> <apex:pageBlockButtons > <apex:commandButton id="btnSave" action="{!save}" value="Save" oncomplete="back();"/> <apex:commandButton id="btnCancel" action="{!Cancel}" value="Cancel" oncomplete="window.location.reload();"/> </apex:pageBlockButtons> <apex:pageBlockSection title="Information" id="pbsOnlDept"> <apex:inputField value="{!CertificationList__c.CertificationType__c}" id="flg" styleClass="labelcol"/> </apex:pageBlockSection> </apex:pageBlock> </apex:form> <script type="text/javascript"> function back() { window.parent.location.href='{!$Page.CertificateLookup1}?rid={!$CurrentPageReference.parameters.rid}&txt={!$CurrentPageReference.parameters.txt}'; } </script> </apex:page>

this code was working perfectly before few days.

 

What could be the reason??

 

Please guide me

 

Thanks in advance.

 

 

Shwetal Desai

I am trying to install a package in my Force.com developer org, but getting these errors -

 

Missing Organization Feature: Contact.RecordType          
Missing Organization Feature: Opportunity.RecordType          
Missing Organization Feature: Account.RecordType          
Missing Organization Feature: Contract.RecordType          
Missing Organization Feature: Contact.Sharing          
Missing Organization Feature: Opportunity.Sharing          
Missing Organization Feature: Account.Sharing          
Missing Organization Feature: MultiCurrency          
Missing Organization Feature: Contact.FieldHistoryTracking          
Missing Organization Feature: Opportunity.FieldHistoryTracking          
Missing Organization Feature: Account.FieldHistoryTracking          
Missing Organization Feature: GoogleDoc

 

I have no clue how to resolve these. Any help would be appreciated.

 

Thanks

Bhaskar

Hi,

I have a Trigger :

trigger UpdateSubTotalAndTotalTax on InventoryReceiptDetail__c (after insert, after update, after delete, after undelete, before update)
{
/* if(Trigger.isBefore && Trigger.isUpdate)
{
InventoryReceipt.UpdateReceivedCostInInventoryReceiptDetail(Trigger.new);
} */
if(Trigger.isDelete && Trigger.isAfter)
{
for(Integer i = 0; i < Trigger.old.size(); i++)
{
InventoryReceipt.UpdateSubTotalAndTotalTax(Trigger.old[i].ReceiptNo__c);
}
}
else if(Trigger.isInsert && Trigger.isAfter)
{
for(Integer i = 0; i < Trigger.new.size(); i++)
{
InventoryReceipt.UpdateSubTotalAndTotalTax(Trigger.new[i].ReceiptNo__c);
}
}
if(Trigger.isUpdate && Trigger.isAfter)
{
for(Integer i = 0; i < Trigger.new.size(); i++)
{
InventoryReceipt.UpdateInventoryStatusFromDetail(Trigger.new[i].ReceiptNo__c);
}
}
}

I dont know that how can i test this by writing Test method for this.

Please Help to solve this.

Thanks in advance

Shwetal Desai
Hi All,

I m trying to create a mx:DataGrid in Flex application in which i need to add columns dynamically from Query Result .
What i exactly want to do is...
I need to execute a SOQL Query [Select EmployeeID__c, EmployeeID__r.Employee__c from TimeCard__c where CheckOut__c = null and WorkType__c='Work' and DateTime__c = DateTime.now()].
now i need to add columns in Datagrid dynamically where

Number of Columns = Number of Records returned by this query;

and

Column[i]. Name = QueryResult.records[i].Value.tostring();

how can i make it possible?

Please guide
Thanks in Advance.
I have created 
Code:
 <style>
    .buttons{background-color : #a8a}
</style> 
<apex:form>
  <apex:commandButton value="Check In" action="{!savedata}" styleClass="buttons"/>
</apex:form>

 
tags in my VF page but still that button has "Gray" color in background.... not that defined color in inline Stylesheet.
What should i do ??
Thanks in advance.


Message Edited by Shwetal Desai on 11-25-2008 05:39 AM
here is my code:
-----------------------------------------------------------------------------------------------------------------------
String Emps;

public String selectedEmp {get;set;}

public List EmpList;

public List getEmployees()
{
try
{
if (EmpList== null)
{
Employee__c[] emp = [select Id,Name,Employee__c,FirstName__c,Last_Name__c from Employee__c where Active__c=true ORDER BY Employee__c];
EmpList = new List();
for(Employee__c empl : emp)
{
EmpList.add(new SelectOption(empl.Id, String.valueOf(empl.Employee__c)));
}
}
return EmpList;
}
catch(Exception ex){return EmpList;}
}
public String getEmps()
{
return Emps;
}
public void setEmps(String Emps)
{
this.Emps = Emps;
}
------------------------------------------------------------------------------------------------------
Now in other function i want selected Employee's Id..
But How can i take that??
That function is :
--------------------------------------------------------------------------------------------------------------------
public PageReference saveTc()
{
Employee__c emps = [select Id,Name,Employee__c,Password__c from Employee__c where Id=:Emps];
if(emps.Password__c == psw)
{
tc.EmployeeId__c = Emps;
tc.DateTime__c = DateTime.Now();
tc.CheckIn__c = DateTime.Now();
insert tc;
}
else
{
ApexPages.Message msg= new ApexPages.Message(ApexPages.Severity.ERROR, 'Invalid Password !', 'Invalid Password !');
ApexPages.addmessage(msg);
}
return null;
}
----------------------------------------------------------------------------------------------------------------------


please help.
When you override a custom Tab to point to a Visualforce page, what determines which Visualforce pages you can use?

I want to use a particular Visualforce page I've created, but it's not showing up in the drop-down menu for the Tab override. I'm sure it's something simple.

Thanks for any tips.
  • November 24, 2008
  • Like
  • 0
Hi all,

In Visualforce page with StandardController if we use with standard action methods like:
{!edit}
{!delete}
and Value attribute : "Edit" & "Delete"
not being visible.

What could be the problem???

and

Does Clone facility available in such visualforce page??
Hi

I have created one visual force page with Custom Controller
Now i want to override that page on standard button "New".
now when i click on "Override" link from setup it redirects me on proper page but there is no Visual Force pages available in dropdown list of Visual force pages.

What could be the problem?

any idea?

Thanks in Advance
Hello,

I have a VF page associated with a controller extension with the "cancel" method, using PageReference. When I call the cancel method in the VF page, it works well.

However, I get an error message "you must enter a value" when I click on the Cancel button, because some fields on the page are required. If I fill in those fields, I can then cancel without problems.

Does anybody have any idea how to work around that?

Thanks a lot