• balakrishna mandula 19
  • NEWBIE
  • 20 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 4
    Replies
Hi 
I have a requirement on VF page which is taking fields from fieldsets. this page contains <inputfile> and commandbutton in the form. whenever Save is clicked, then entire page with the attachment will be saved. but whenever validation is occured both custom or standard validation, attachment is getting cleared. 

Attachment should be retained even if page is saving.
 
<apex:pageBlock title="New Change Request" id="pgBlckId">
                                        <apex:pageMessages />
                                        <apex:pageBlockButtons >
                                            <apex:commandButton value="Submit Change Request" action="{!saveChangeRequestOnCreation}" status="actStatusId" reRender="pgscId"/>
                                            <apex:commandButton value="Cancel" action="{!cancelCR}" immediate="true"/>
                                            <apex:outputPanel id="opid">
                                                <apex:actionStatus id="actStatusId" >
                                                    <apex:facet name="start" >
                                                        <img src="/img/loading.gif" />
                                                    </apex:facet>
                                                </apex:actionStatus> 
                                            </apex:outputPanel>
                                        </apex:pageBlockButtons>
                                        <apex:repeat value="{!crFS}" var="fskey">
                                            <apex:pageBlockSection title="{!crFS[fskey].Fieldset_Label_Name__c}" id="pgscId">
                                                <apex:repeat value="{!$ObjectType.BMCServiceDesk__Change_Request__c.FieldSets[crFS[fskey].Fieldset_Api_Name__c]}"  var="f">
                                                    <apex:pageBlockSectionItem >
                                                        <apex:outputLabel value="{!f.label}" rendered="{!IF(f.Label == '<BLANK>', FALSE, TRUE)}"/>
                                                        <apex:inputField value="{!cr[f.fieldPath]}" required="{!OR(f.DBRequired, f.required)}" rendered="{!IF(f.Label == '<BLANK>', FALSE, TRUE)}"/>
                                                    </apex:pageBlockSectionItem>
                                                </apex:repeat>
                                            </apex:pageBlockSection>
                                        </apex:repeat>
                                        Attach File <apex:inputFile value="{!attachment1_blob}" filename="{!attfileName1}" id="test" />
                                    </apex:pageBlock>

please help to resolve this issue
Hi 
I am havig a user whsoe Licence is Company Communities. I need to add a permission set called Reporter to Company Community licenced user. Reporter permission set is having permission "Edit Report" permission.
I am unable to add this Reporter PS to the user.
Profile for the user is custom profile

Can't assign permission set Reporter to user Demand Manager Europe. The user license doesn't allow the permission: Edit My Reports

please suggest me how to achieve this

-Bala  
Hi 
I am writing visualforce page in that I have Owner lookup field which is having lookup to Queue and User. If I select User then user values will be populated and if select Queue as pickilst Queues will be popoulated. 
My requirement is only Queue should be there in pickilist, not the User. 
Please help me in resolving this.

I used below javascript to hid User value.

function hid(){
            owner = "pageId:formId:pgBlckId:j_id84:6:j_id85:j_id86:0:j_id87_mlktp";
            var drop=document.getElementById(owner);
            drop.options[1].selected = true;
            drop.remove(0);
      }
        window.onload = hid;

with the above code I can hide the User value. Queue only is visible but user values are displaying not the Queue values.

please help me in resolving this
Hi I want to add bulk apex classes and vf pages to new permission set. There are more than 500 apex classes, and vf pages to be added to permission sets. there are 10 permission sets. it takes lot of time for adding them to PS manually. Is there any automatic process to them to PS

Thanks,
Balakrishna
Hi,
I implemented S2S Integration using WSDLs. I am trying to insert Task with attachment in Org1, and in Org2, Task with attachment should get copied. I am now able to get Task record and related attachment in Org2. But the attachment is not coming proper type. Type of attachment is differing from Org1.

Source(Org1):
Attachment[] attachmnt =[SELECT Id,Name From Attachment where Parentid=: tsk[0].id];
        
        System.debug('Attachment of Task' +attachmnt);
        
        String s1 = String.valueOf(attachmnt);
        System.debug('Attachment in String of Task' +s1);
        Blob b = EncodingUtil.base64Decode(s1); 
        String KeyString = b.toString();
Con_Partner_Cls_GSFD_2.Soap obj1 = new Con_Partner_Cls_GSFD_2.Soap();
        Con_Partner_Cls_GSFD_2.LoginResult lr = obj1.login('balakrishna.mandula@accenture.global.gsfd', 'Denny123$mvgFOkhVwqZF1G2cQ91KPdA11');
        
        //Calling Partner class
        ABInBev_EU_TaskClass_GSFD1.ABInBev_Global_TaskCls obj = new ABInBev_EU_TaskClass_GSFD1.ABInBev_Global_TaskCls();
        obj.SessionHeader = new ABInBev_EU_TaskClass_GSFD1.SessionHeader_element();
        obj.sessionHeader.sessionid = lr.sessionId;
        for(BMCServiceDesk__Task__c task : tsk){ 
            
            obj.insertTask(status, KeyString);    
           
            break;      
        }

Org2:

webService static void insertTask(String status, String s1){
Task__c tsk = new Task__c();
  tsk.Status_to_Map__c = status;
  try{
                        insert tsk;
                    }
                    catch(Exception e){
                        System.debug('Exception ' +e);
                      } 
Blob b = blob.valueOf(s1);
 String KeyString = EncodingUtil.base64Encode(Blob.valueOf(s1)); 
Attachment attach = new Attachment();
attach.parentId = tsk.id;
attach.name = 'Holidays List';
attach.body = b;
insert attach;

Attachement is getting inserted with Name "Holidays List" but with not correct format. 

Note: I can only pass String type for attachment thru method in Org1.

Please help me to resolve this issue
thanks in advance
 
Hi,
I implemented SF to SF integration using WSDL and Partner WSDL. And it's working as expected. 
Task record created in Org1is getting integrated with Org2.
What my requirement:

1. The attachments of Tasks should also be synched to another Org2.
2. Lookup fields should also be synched with Org2

Please help me on this?

Thanks in advance
Hi 
I have a requirement on VF page which is taking fields from fieldsets. this page contains <inputfile> and commandbutton in the form. whenever Save is clicked, then entire page with the attachment will be saved. but whenever validation is occured both custom or standard validation, attachment is getting cleared. 

Attachment should be retained even if page is saving.
 
<apex:pageBlock title="New Change Request" id="pgBlckId">
                                        <apex:pageMessages />
                                        <apex:pageBlockButtons >
                                            <apex:commandButton value="Submit Change Request" action="{!saveChangeRequestOnCreation}" status="actStatusId" reRender="pgscId"/>
                                            <apex:commandButton value="Cancel" action="{!cancelCR}" immediate="true"/>
                                            <apex:outputPanel id="opid">
                                                <apex:actionStatus id="actStatusId" >
                                                    <apex:facet name="start" >
                                                        <img src="/img/loading.gif" />
                                                    </apex:facet>
                                                </apex:actionStatus> 
                                            </apex:outputPanel>
                                        </apex:pageBlockButtons>
                                        <apex:repeat value="{!crFS}" var="fskey">
                                            <apex:pageBlockSection title="{!crFS[fskey].Fieldset_Label_Name__c}" id="pgscId">
                                                <apex:repeat value="{!$ObjectType.BMCServiceDesk__Change_Request__c.FieldSets[crFS[fskey].Fieldset_Api_Name__c]}"  var="f">
                                                    <apex:pageBlockSectionItem >
                                                        <apex:outputLabel value="{!f.label}" rendered="{!IF(f.Label == '<BLANK>', FALSE, TRUE)}"/>
                                                        <apex:inputField value="{!cr[f.fieldPath]}" required="{!OR(f.DBRequired, f.required)}" rendered="{!IF(f.Label == '<BLANK>', FALSE, TRUE)}"/>
                                                    </apex:pageBlockSectionItem>
                                                </apex:repeat>
                                            </apex:pageBlockSection>
                                        </apex:repeat>
                                        Attach File <apex:inputFile value="{!attachment1_blob}" filename="{!attfileName1}" id="test" />
                                    </apex:pageBlock>

please help to resolve this issue
Hi 
I am writing visualforce page in that I have Owner lookup field which is having lookup to Queue and User. If I select User then user values will be populated and if select Queue as pickilst Queues will be popoulated. 
My requirement is only Queue should be there in pickilist, not the User. 
Please help me in resolving this.

I used below javascript to hid User value.

function hid(){
            owner = "pageId:formId:pgBlckId:j_id84:6:j_id85:j_id86:0:j_id87_mlktp";
            var drop=document.getElementById(owner);
            drop.options[1].selected = true;
            drop.remove(0);
      }
        window.onload = hid;

with the above code I can hide the User value. Queue only is visible but user values are displaying not the Queue values.

please help me in resolving this