• ekarthik
  • NEWBIE
  • 25 Points
  • Member since 2013

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 32
    Questions
  • 21
    Replies

 

 

Hi

   I am  need  use webservice to get some values. I  generated apex class from wsdl , in that class i am getting 


public class myService{

public myService.userInfo[] listValues(Long userId,String userName) {

...

}

}

 

I need to pass parameters and need to get some values

so i write  like this 

 myservice.listValues myObj = new  myservice.listValues('456','myName');

 

I got error like 

 

Constructor not defined: [myservice.listValues].<Constructor>(String, String)

 

thanks

Hi
In my comapny we publish an app . when trying to install users get error like

Missing Organization Feature: Content

for this problem solution is

Enable salesforce content

through 

Setup -> App Setup -> Customize ->Salesforce CRM Content -> Settings -> Edit .

But i need to avoid this error when install .

what the error actually says i.e reason for this error ?
What things i need to do?
whthere enable any option during package?
else
write any code in development time ?



I am looking for this .
Thnaks in advance

Hi

   In my comapny we publish an app . when trying to install users get error like 

 

 Missing Organization Feature: Content 

 


for this problem solution is 

 

Enable salesforce content 


through

 

 Setup -> App Setup -> Customize ->Salesforce CRM Content -> Settings -> Edit .

 

But i need to avoid this error when install .

What things i need to do?

whthere enable any option during package?

else

write any code in development time ?

 

 

 

I am looking for this .

Thnaks in advance

Hi

   I am working on a project which i need to create events on clicking calender and need to display created values in the calendar

 

 In particular. If i need to show value in the calender how to process. when i search , get message like json may be helpful but i am unable to proced

. If i get any ideas and sample it will be great . Thanks in advance

Hi

   I am working on a project which i need to create events on clicking calender and need to display created values in the calendar

 

 In particular. If i need to show value in the calender how to process. when i search , get message like json may be helpful but i am unable to proced

. If i get any ideas and sample it will be great . Thanks 

Hi

   I am working on a project which i need to create events on clicking calender and need to display created values in the calendar

 

 In particular. If i need to show value in the calender how to process. when i search , get message like json may be helpful but i am unable to proced

. If i get any ideas and sample it will be great . Thanks 

 

Hi

 

      I am working in a  calender  app , for this i am using jquery calender, when i click any date . I need to create an event and need to store in salesforce object .

  By default jquery calender , creating event is achieved . i need to know how to store created event data in object.

 

Any help appreciated. Thanks

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hi

   I am facing problem when publish apps xss(cross side cripting) error.    Apex Force com Critical Security Risk

 

Query Name - Stored_XSS

 

mytask = [select id, Name, Project__r.Project_Color__c, OwnerID ,CreatedByID,Owner.Name,CreatedBy.Name from
Project_Task__c where List__c = 'x'];

 

How to solve this problem

 

 

Hi

 

 

   I need to create managed package of my application . But unable to do.

 

Initially i have created unmanaged package . now i am trying to create managed package but unable to find edit  in developer settings .

Hi  

 

 

i pass javascript  function  to actionfunction

 

updateChatterGroup(values,Pid);

 

in action function

 

<apex:actionFunction name="updateChatterGroup" action="{!updateChatterGroup}" reRender="groupRefresh">
<apex:param name="values" value=""/>
<apex:param name="Pid" value="" />
</apex:actionFunction>

 

 

updateChatterGroup - updates value

 

i rerender groupRefresh

<apex:outputPanel id="groupRefresh">

 

<apex:repeat value="{!myObj}" var="s">
<apex:outputPanel rendered="{!s.shared}"><option selected="selected" value="{!s.groupName}">{!s.groupName}</option></apex:outputPanel>
<apex:outputPanel rendered="{!NOT(s.shared)}"><option value="{!s.groupName}">{!s.groupName}</option>   </apex:outputPanel>

</apex:outputPanel>

</apex:repeat>

 

after i update, i rerender the control and then get values from the object it shows previous value only .sometimes it works well. some time when i set value first ime it is not working and the second time it works well. I am totally confused . I am unable to figure out the problem itself

 

hi

    I have crated a object called  project , it contains project name , start date and end date . I need to validate end date must be grater than start date . For this i write validatation rule 

 

Error Condition Formula

Project_Start__c > Project_End__c

 

It works well when i open in  separate tab . But in main page, i entered all details include  strat and end date , then save the details it needs to show error message. But i dont get any error message and the page closed. The value not showed in obeject(works correctly) . but  i need to show the error message and the page need not to be closed automatically. how to chive this .Thanks

 

 

How to make full screen width for all screen resolution . I gave 100% width in base container using css.outermost div wodth = 100%, i am not getting horizontal scroll then i changed o width:auto . Even i am getting horizontal scroll how to make it...

How to make full screen width for all screen resolution . I gave 100% width in base container using css.outermost div wodth = 100%, i am not getting horizontal scroll then i changed o width:auto . Even  i am getting horizontal scroll how to make it..

 

 

 

 

I need to get several fields from user created custom  object , from that example

getting values using

 

select id, name, createdbyid from project_task__c 

 

From this i need to get 

 

select smalllphotourl from user where id=:createdbyid 

 

these results  needs to be placed with in a repeat .

 

how can i process?

 

i tried both query within one quuery but unable to get standard object value in custom object query...

 

 and i am unable to get two action methods with in a single repeat .. how to process . 

 

I need to get several fields from user created custom  object , from that example

getting values using

 

select id, name, createdbyid from project_task__c 

 

From this i need to get 

 

select smalllphotourl from user where id=:createdbyid 

 

these results  needs to be placed with in a repeat .

 

how can i process?

 

i tried both query within one quuery but unable to get standard object value in custom object query...

 

 and i am unable to get two action methods with in a single repeat .. how to process . 

 

 

Hi

  I am in need of access Standrad object  value ( from user object need to  get  small photo url)   using standard object query (user object created )

 

  From the below query

 

    select id, Name ,OwnerID ,CreatedByID, Project__r.Project_Color__c  from Project_Task__c where List__c = 'Holding' AND Project__c = :projectRetainId

 

I need to get Image  by using CreatedByID from user object . how to write query ,

 

I tried this way 

 

    select id, Name ,OwnerID ,CreatedByID, Project__r.Project_Color__c ,( select SmallPhotoUrl from User) from Project_Task__c where List__c = 'Holding' AND Project__c = :projectRetainId

 

 

 

 

Hi

   I am having insert problem , for the following code

 

public void init(){
Date dateValid = date.today();
List<Splash_Data__c> splashList = [select Name, Flag__c, Visit_Date__c from Splash_Data__c where Name = :Userinfo.getUserId()];
if(splashList.size() == 0){
Splash_Data__c splashNew = new Splash_Data__c(Name = Userinfo.getUserId(), Flag__c = 0, Visit_date__c = dateValid);
insert splashNew;
}

}

 

I tested this code using developer console , its woks fine .but when i execute in salesforce it doesn't insert

 

Hi

 

    I am doing test method. I am struck with 65%. I am in need of help for the following

 

public string splashRun{
get{
Date dateValid = date.today();
Date todayDate = date.newInstance(dateValid.year(),dateValid.month(),dateValid.day());
string UserId = Userinfo.getUserId();
User userLogin = [select LastLoginDate from User where Id = :UserId];
DateTime lastLogin = userLogin.LastLoginDate;
Date loginDate = date.newInstance(lastLogin.year(),lastLogin.month(),lastLogin.day());

if(loginDate == todayDate){

splash = [select Name, Flag__c, Visit_Date__c from Splash_Data__c where Name = :Userinfo.getUserId()];
if(splash[0].Flag__c == 0){
splashRun = 'true';
}
else if(splash[0].Flag__c == 1){
splashRun = 'true';
}
else if(splash[0].Flag__c == 2){
splashRun = 'false';
}



}
return splashRun;
}
set;
}

 

 

 

How to accomplish test method for the above.. I write like this in multiple areas

 

Hi

   i am working with actionfunction to rerender a div tag,and using jquery  . when i am not using redender , jquery works well, if a put rerender="some" then jquery doesn't work .  how to solve this issue? i am in urgent recuirment .

 

thanks

ekarthik

   

Hi 

 

in my project i am dealing with 3 groups

namely group1,group 2, group 3,

 

groups contains several sub tasks.

 

In i am working in group 1 and its sub task, these last worked task details need to be get back ,

 

say 

group1

i worked in record1 then i work with group 2 , record 2 ,if i required to comeback with group 1 i need to show record 1 details,like the same for all remainig group and thier record . i dont know how to prform.

 

In simple terms need to work with last worked data in a particular group ...

 

I am looking for suggestion , examples or any reference.

 

Thanks 

ekarthik

 

 

 

Hi

   I am  need  use webservice to get some values. I  generated apex class from wsdl , in that class i am getting 


public class myService{

public myService.userInfo[] listValues(Long userId,String userName) {

...

}

}

 

I need to pass parameters and need to get some values

so i write  like this 

 myservice.listValues myObj = new  myservice.listValues('456','myName');

 

I got error like 

 

Constructor not defined: [myservice.listValues].<Constructor>(String, String)

 

thanks

Hi

   In my comapny we publish an app . when trying to install users get error like 

 

 Missing Organization Feature: Content 

 


for this problem solution is 

 

Enable salesforce content 


through

 

 Setup -> App Setup -> Customize ->Salesforce CRM Content -> Settings -> Edit .

 

But i need to avoid this error when install .

What things i need to do?

whthere enable any option during package?

else

write any code in development time ?

 

 

 

I am looking for this .

Thnaks in advance

Hi

 

 

   I need to create managed package of my application . But unable to do.

 

Initially i have created unmanaged package . now i am trying to create managed package but unable to find edit  in developer settings .

 

hi

    I have crated a object called  project , it contains project name , start date and end date . I need to validate end date must be grater than start date . For this i write validatation rule 

 

Error Condition Formula

Project_Start__c > Project_End__c

 

It works well when i open in  separate tab . But in main page, i entered all details include  strat and end date , then save the details it needs to show error message. But i dont get any error message and the page closed. The value not showed in obeject(works correctly) . but  i need to show the error message and the page need not to be closed automatically. how to chive this .Thanks

 

 

I need to get several fields from user created custom  object , from that example

getting values using

 

select id, name, createdbyid from project_task__c 

 

From this i need to get 

 

select smalllphotourl from user where id=:createdbyid 

 

these results  needs to be placed with in a repeat .

 

how can i process?

 

i tried both query within one quuery but unable to get standard object value in custom object query...

 

 and i am unable to get two action methods with in a single repeat .. how to process . 

 

 

Hi

  I am in need of access Standrad object  value ( from user object need to  get  small photo url)   using standard object query (user object created )

 

  From the below query

 

    select id, Name ,OwnerID ,CreatedByID, Project__r.Project_Color__c  from Project_Task__c where List__c = 'Holding' AND Project__c = :projectRetainId

 

I need to get Image  by using CreatedByID from user object . how to write query ,

 

I tried this way 

 

    select id, Name ,OwnerID ,CreatedByID, Project__r.Project_Color__c ,( select SmallPhotoUrl from User) from Project_Task__c where List__c = 'Holding' AND Project__c = :projectRetainId

 

 

 

 

Hi

   I am having insert problem , for the following code

 

public void init(){
Date dateValid = date.today();
List<Splash_Data__c> splashList = [select Name, Flag__c, Visit_Date__c from Splash_Data__c where Name = :Userinfo.getUserId()];
if(splashList.size() == 0){
Splash_Data__c splashNew = new Splash_Data__c(Name = Userinfo.getUserId(), Flag__c = 0, Visit_date__c = dateValid);
insert splashNew;
}

}

 

I tested this code using developer console , its woks fine .but when i execute in salesforce it doesn't insert

 

hi

    when i open edit page in salesforce.

initialy it opens previous contained values and gets refreshed to get current required value.

 

I am in need of getting current required information only on the page.

I put cache="false" in  page it even gives the same result

 

any help appriciated

 

Thanks

karthik

 

 

 

 

 

Hi

   I am  working with projects and project contains several task . 

 

when i selected project , i will show all task it contains.

if task clicked , it will open iframe popup. after editing that page need to save and close the iframe popup .and refresh the parent project page.

 

 I did save and close edit task page . but the parent window doesn't refresh.

 

closing popup iframe done by jquery

lilke 

parent.parent.j$("#project-modal").trigger('reveal:close');

 

if i give window.parent.reload();

doesn't work 

 

any help appriciated

 

thanks

Karthik

Hi

   I cretaed chatter groups. When i select chatter group , it needs to display all member in that group i need to display user imges

 

I get userid from for loop from that i need to get user image. 

In my case in a group , it may contain more than one user ,

 

so that i put in for loop and need to get and process so i have created User[] and add the results But i get error. I am unable to process further . Help Required.

 

 Compile Error: Field is not writeable: user.name

 

public List<User> chatGroupUser{get;set;}
public User[] usG{get;set;}
public List<CollaborationGroupMember> chatCollabGroup{get;set;}
public string chattergroupMember;
public string chatterArray{get;set;}
public List<string> chatterStringList{get;set;}

 

    

public void chatterMemberSelection(){
chattergroupMember = ApexPages.currentPage().getParameters().get('chatterGroup');

 

for(CollaborationGroupMember a:[select CollaborationGroupId,CollaborationRole, MemberId,NotificationFrequency from CollaborationGroupMember where CollaborationGroupId IN(select id from collaborationgroup where name=:chattergroupMember)])
{

  chatGroupUser =[SELECT Name,id FROM User where id=:a.MemberId];  

// error in the following line                

usG.add(new User(Name=chatGroupUser.name,id=chatGroupUser.id));

}