• Suma Ganga
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 17
    Replies
Hi Experts,
I have small problem in console.
Problem:: I am opening a case record as Primary Tab from the console with pre-populated values like contact name and related to by clicking the Button in the page. (Populating values thru URL hacking). It is done without any issue.
But, I have the problem here, I have to pass the page link where the button is clicked (is nothing but I have to capture the link from which page I am opening the case record.)
So, I am passing the link in the URL itself. The primary tab link looks like https://xxx.salesforce.com/console#https%3A%2F%xxx%2F00Qg0000004RZ6T|https%3A%2F%xxx%2F00Qg0000004RZ6T
And the final URL im using to open a case (with pre-populated values) is :: “/500/e?retURL=500&RecordType=012g00000000dcVAAQ&ent=Case&cas11=SFDC&cas3_lkid=003g000000NxzFEAAZ&00Ng0000001H7IO=https://xxx/console%23https%3A%2F%2Fxxx%2F00Qg0000004RZ6T|https%3A%2F%2Fxxx%2F00Qg0000004RZ6T”
But, my new tab is not opening and it is giving me error like “xxx is not authorized domain. Please contact your administrator to authorize it.”
If I replace the link https:// with www , tab is opening without issue.- in the detail page i cant open the page by clicking the link with www...... 

please help..

Thanks in advance ..
Suma.
 
 
Hi Techie Friends,

I have a requirement like , user should not enter any spl cheracters and numbers repeated characters like xxx, yyy,zzz etc.. for a name field.

for this i have written a validation rule like below (which is working for spl chars & numbers only)::

OR( 
NOT(REGEX( FirstName , "^[a-z A-Z]*$")), 

ISBLANK(FirstName) 
)

i have to add regex for repeated characters, for this i added like below (not working )
[(x)+] added like this::
OR( 
NOT(REGEX( FirstName , "^[a-z A-Z][(x)+]*$")), 

ISBLANK(FirstName) 
)

please help on this validation rule..


-- suma.
Hi ,

I have a requirement like, i have to create a  notification/news ticker on each page in entire org.
i developed 1 vf page for this, and i added this to my home pagelayout. i developed like this

but, this is only on home page, i want this before the section...

any help....

Thanks in advance!!

-- Suma.
Hi,

i have a requirement like, calculating CASE Age.
I have 2 differrent objects with the same formula , Risk Age and Decision Age.
i am using below formula::


IF( ISBLANK( Actual_Close_Date__c ) , 
IF( ISBLANK( Raised_On__c ), '0', 
IF( Raised_On__c <= TODAY() , 
TEXT(CASE(MOD( Raised_On__c - DATE(1985,6,24),7), 

0 , CASE( MOD( TODAY()-Raised_On__c ,7),1,2,2,3,3,4,4,5,5,5,6,5,1), 
1 , CASE( MOD( TODAY()-Raised_On__c,7),1,2,2,3,3,4,4,4,5,4,6,5,1), 
2 , CASE( MOD( TODAY()-Raised_On__c ,7),1,2,2,3,3,3,4,3,5,4,6,5,1), 
3 , CASE( MOD( TODAY()-Raised_On__c ,7),1,2,2,2,3,2,4,3,5,4,6,5,1), 
4 , CASE( MOD( TODAY()-Raised_On__c ,7),1,1,2,1,3,2,4,3,5,4,6,5,1), 
5 , CASE( MOD( TODAY()-Raised_On__c ,7),1,0,2,1,3,2,4,3,5,4,6,5,0), 
6 , CASE( MOD( TODAY()-Raised_On__c ,7),1,1,2,2,3,3,4,4,5,5,6,5,0), 
999) 

(FLOOR(( TODAY()-Raised_On__c)/7)*5)-1 
), 
IF(CASE(MOD( TODAY() - DATE(1985,6,24),7), 

0 , CASE( MOD( Raised_On__c - TODAY() ,7),1,2,2,3,3,4,4,5,5,5,6,5,1), 
1 , CASE( MOD( Raised_On__c - TODAY() ,7),1,2,2,3,3,4,4,4,5,4,6,5,1), 
2 , CASE( MOD( Raised_On__c - TODAY() ,7),1,2,2,3,3,3,4,3,5,4,6,5,1), 
3 , CASE( MOD( Raised_On__c - TODAY() ,7),1,2,2,2,3,2,4,3,5,4,6,5,1), 
4 , CASE( MOD( Raised_On__c - TODAY() ,7),1,1,2,1,3,2,4,3,5,4,6,5,1), 
5 , CASE( MOD( Raised_On__c - TODAY() ,7),1,0,2,1,3,2,4,3,5,4,6,5,0), 
6 , CASE( MOD( Raised_On__c - TODAY() ,7),1,1,2,2,3,3,4,4,5,5,6,5,0), 
999) 

(FLOOR(( Raised_On__c - TODAY())/7)*5)-1 == 0, '0', '-' + TEXT(CASE(MOD( TODAY() - DATE(1985,6,24),7), 

0 , CASE( MOD( Raised_On__c - TODAY() ,7),1,2,2,3,3,4,4,5,5,5,6,5,1), 
1 , CASE( MOD( Raised_On__c - TODAY() ,7),1,2,2,3,3,4,4,4,5,4,6,5,1), 
2 , CASE( MOD( Raised_On__c - TODAY() ,7),1,2,2,3,3,3,4,3,5,4,6,5,1), 
3 , CASE( MOD( Raised_On__c - TODAY() ,7),1,2,2,2,3,2,4,3,5,4,6,5,1), 
4 , CASE( MOD( Raised_On__c - TODAY() ,7),1,1,2,1,3,2,4,3,5,4,6,5,1), 
5 , CASE( MOD( Raised_On__c - TODAY() ,7),1,0,2,1,3,2,4,3,5,4,6,5,0), 
6 , CASE( MOD( Raised_On__c - TODAY() ,7),1,1,2,2,3,3,4,4,5,5,6,5,0), 
999) 

(FLOOR(( Raised_On__c - TODAY())/7)*5)-1 





,'Closed')

Here, Raised_On__c  field is formula for one object and user can enter the date in one object.

The formula is working fine with the second object but not first.
Raised_On__c  is a forlula formula field in first object....
formula is like this :: createddate. this will return date value only...

but, Risk Age is giving wrong values...

any help is appriciated...

Thanks in Advance!!.

-- Suma.
Hi all,
i have a requirement like, have to export the data to Excel sheet and save it locally.
this part is working fine as per the requirement. but, the main is getting balnk page.
i have a export button in relatedlists, once click on the export button my main page is redirecting to excel_VFP and it is blank, excel is opening with correct data only.
After opening Excel i have to go back to my previous page for this i am using {!$currentpage.Parameters.Referer} in my Export_VFP.
but, no use of this. can anyone please help on this.
Hi All,

I have a custom object named as deal__c.
for Deal object, i enabled Field history tracking and i selected fields to track the history and also enabled the Reports.
But, i am not able to see History Report Type  for my object when i click on new Report.

is there anything missedout.
Any suggestions on this...
Thanks in advance!

-- Suma.
 
Hi,

i have a custom object deal__c.
and in edit page layout i have a <Generate History Report> Custom button.
i enbled Track History and Enable Reports on object level.
i have to Track history for 8 fields in my custom object.

By clicking on the custom button i need to pass RecordID to Reports.
Any one pls suggest me how can i fulfill this requirement.
Thanks in advance!!

-- suma.

 
Hi,

I have a requirement like " i have to show popup window when user clicks on Save Button which is on Standard EDIT Page."
i have created  Home page component, and added below script.. But not able to get the SFDC page ID to home component...
 
           var oformId = document.getElementById("!$Component.editPage"); // Form id
           alert('form id::'+oformId); // displaying NULL.
           var savebutton = document.getElementById("!$Component.topButtonRow"); // TD id
          
           alert('savebutton id::'+savebutton );   // displaying NULL.


Pease help....

-- Suma.
Hi,

i am working with inline visualforce expander. it changes Changes "iframe height for inline VisualForce components"...
for that , i used EXT.js file, i added below code in my script..

var e = Ext.query(".iframe[title='"+ifn+"']");  
    console.log(e);
    var itarget = e[0].getAttribute('id');
    Ext.get(itarget).set({height: parseInt(h)+10});

But, Ext.query(".iframe[title='"+ifn+"']") this line is giving me null....

any idea about EXT.query();......

pls help me out..

Thanks in Advance!..

-- Suma.
HI,


i installed "Inline VisualForce Expander " into my developer ORG.
but it is not working ..
Any idea...!..


-- suma.
can we add JavaScript to SFDC Standard detail page ?
Hi,

I have used below code to hide the related list.
//This code finds our "Notes and Attachments" related list, and hides it completely:
      var el = document.getElementsByTagName('*');
      for(var i=0;i<el.length;i++){
        if(el[i].id.match('_RelatedNoteList')){ //This finds our related list.
                          //Salesforce appends the record Id to the html name,
                          //so this finds a match disregarding the record Id.
          //We need to toggle both visibility and display for support across various browser types
          el[i].style.visibility="hidden";    //hide visibility
          el[i].style.display="none"; //hide display.
        }
      }


But, i am not able to get ID's or Class name's from right side pane to left nav. pane..
i have created Visualforce page in left nav from homepage component.

please tell me the alternative way to get ID 's from right pane to left pane...

Thank you in advance!!

-- Suma.
Hi,

i created HomePageComponent(HTML Area & Visualforce page). and i added this component to page layout and i assigned it to my Profile.
Now, i got my component on my homepage... but it is showing CODE.. it is not rendering the Output.
i googled for this... summer15 release have sme changes on Homepage component, so, there is no checkbox for "show HTML" while creating the HTML Area component...

i am new to salesforce.. please help to complete this.. Thanks in Advance!.
Hi Techie Friends,

I have a requirement like , user should not enter any spl cheracters and numbers repeated characters like xxx, yyy,zzz etc.. for a name field.

for this i have written a validation rule like below (which is working for spl chars & numbers only)::

OR( 
NOT(REGEX( FirstName , "^[a-z A-Z]*$")), 

ISBLANK(FirstName) 
)

i have to add regex for repeated characters, for this i added like below (not working )
[(x)+] added like this::
OR( 
NOT(REGEX( FirstName , "^[a-z A-Z][(x)+]*$")), 

ISBLANK(FirstName) 
)

please help on this validation rule..


-- suma.
Hi, 

I am trying to override the New button on Opportunity with the following Visualforce Page: 

<apex:page standardController="Opportunity">
<script>
window.top.location.replace("{!URLFOR($Action.Opportunity.New, null, [saveURL='/apex/RedirectToCompetitorAgreement',nooverride=1,save=1], true)}");
</script>
</apex:page>

When the user has entered the opportunity information and presses save he is redirected to the VF page "RedirectToCompetitorAgreement". Everything works as expected except that the record type selection page is shown two times. Any ideas on how I can fix this issue? 
Hi all,
i have a requirement like, have to export the data to Excel sheet and save it locally.
this part is working fine as per the requirement. but, the main is getting balnk page.
i have a export button in relatedlists, once click on the export button my main page is redirecting to excel_VFP and it is blank, excel is opening with correct data only.
After opening Excel i have to go back to my previous page for this i am using {!$currentpage.Parameters.Referer} in my Export_VFP.
but, no use of this. can anyone please help on this.
Hi,

i have a custom object deal__c.
and in edit page layout i have a <Generate History Report> Custom button.
i enbled Track History and Enable Reports on object level.
i have to Track history for 8 fields in my custom object.

By clicking on the custom button i need to pass RecordID to Reports.
Any one pls suggest me how can i fulfill this requirement.
Thanks in advance!!

-- suma.

 
Hi,

how to view the excel file preview in visualforce page,Is this possible? kindly give any example or code

Thanks.

 
Hi,

I have a requirement like " i have to show popup window when user clicks on Save Button which is on Standard EDIT Page."
i have created  Home page component, and added below script.. But not able to get the SFDC page ID to home component...
 
           var oformId = document.getElementById("!$Component.editPage"); // Form id
           alert('form id::'+oformId); // displaying NULL.
           var savebutton = document.getElementById("!$Component.topButtonRow"); // TD id
          
           alert('savebutton id::'+savebutton );   // displaying NULL.


Pease help....

-- Suma.
HI,


i installed "Inline VisualForce Expander " into my developer ORG.
but it is not working ..
Any idea...!..


-- suma.
Hi,

I have used below code to hide the related list.
//This code finds our "Notes and Attachments" related list, and hides it completely:
      var el = document.getElementsByTagName('*');
      for(var i=0;i<el.length;i++){
        if(el[i].id.match('_RelatedNoteList')){ //This finds our related list.
                          //Salesforce appends the record Id to the html name,
                          //so this finds a match disregarding the record Id.
          //We need to toggle both visibility and display for support across various browser types
          el[i].style.visibility="hidden";    //hide visibility
          el[i].style.display="none"; //hide display.
        }
      }


But, i am not able to get ID's or Class name's from right side pane to left nav. pane..
i have created Visualforce page in left nav from homepage component.

please tell me the alternative way to get ID 's from right pane to left pane...

Thank you in advance!!

-- Suma.
I have a VisualForce page displaying some fields. When these fields have any value other than "none" selected, the users would like to see the field highlighted in some manner. 

Here's what the screen currently looks like:
User-added image

Here's an example of what I'd like (exactly where the highlighting takes place, whether it's shading or changing font color of whatever is flexible) it to look like:
User-added image

My VF page code is as follows (note: the page has more elements displayed below the screen shot, but those aren't relevant to the question, so I cut them off to save space on the screen shot):

<apex:page standardController="ACA_Member__c" extensions="reloadACAMember,risk_ControllerExtension">

<style>
   .col1 {width:200px; text-align:right; font-size:.875em; font-weight:bold; color:rgb(74,74,86);}
   .col2 {width:200px; text-align:left;}
   .colp1 {width:100px; text-align:right; font-size:.875em; font-weight:bold; color:rgb(74,74,86);}
   .colp2 {width:100px; text-align:left;}
   .colp3 {width:100px; text-align:left;}
   .colh1 {width:400px; height:25px; text-align:center; background-color:#A9D0F5;}
</style>
   
   
<apex:form >
    <apex:pageBlock mode="edit">
       
        <apex:pageblockButtons >
            <apex:commandButton value="Save" action="{!save}" reRender="updateable, relatedList"/>
        </apex:pageblockButtons>

        <apex:panelGrid columns="2" columnClasses="col1,col2" border="0">
           
            <apex:outputText >Lifestyle Segment</apex:outputText>
            <apex:inputField value="{!ACA_Member__c.Lifestyle_Segment__c}"/>
          
           
            <apex:outputText >Favorable to ?</apex:outputText>
            <apex:inputField value="{!ACA_Member__c.Favorability__c}"/>
           
            <apex:outputText >Engaged in Health Decisions?</apex:outputText>
            <apex:inputField value="{!ACA_Member__c.Health_Decisions__c}"/>
           
            <apex:outputText >Prefers Details or Highlights?</apex:outputText>
            <apex:inputField value="{!ACA_Member__c.Details_Highlights__c}"/>
           
        </apex:panelGrid>
       
        <apex:panelGrid columns="1" columnClasses="colh1" border="0">
            <apex:outputLabel ><b>Provider Information</b></apex:outputLabel> 
        </apex:panelGrid>
       
        <apex:panelGrid columns="3" columnClasses="colp1,colp2,colp3" border="0">
     
            <apex:outputLabel ></apex:outputLabel>  
            <apex:outputLabel ><b>Confirmed</b></apex:outputLabel>
            <apex:outputLabel ><b>Attributed</b></apex:outputLabel>
           
            <apex:outputLabel >Name</apex:outputLabel>
            <apex:inputField value="{!ACA_Member__c.Confirmed_Provider__c}"/>
            <apex:outputField value="{!riskProfile.Attributed_Provider__c}"/>

            <apex:outputLabel >NPI</apex:outputLabel>
            <apex:inputField value="{!ACA_Member__c.Confirmed_NPI__c}"/>
            <apex:outputField value="{!riskProfile.Attributed_NPI__c}"/>
           
        </apex:panelGrid>
         
    <apex:panelGrid columns="2" columnClasses="col1,col2" border="0">
        <apex:outputLabel ></apex:outputLabel>
        <apex:outputLabel ></apex:outputLabel> 
   
            <apex:outputText ><b>Rep Determined Do Not Engage</b></apex:outputText>
            <apex:inputField value="{!ACA_Member__c.DNE__c}"/>
       
    </apex:panelGrid>

       
    </apex:pageBlock>

</apex:form>

</apex:page>

********************************************

One thought I had is that I could use the rendered attribute to display it one way if the value is not null, but another way if it is null. However, when I test this, I cannot the ISBLANK function to return either TRUE or FALSE. Even if this works, it seems like a really clunky, less than ideal solution. But I'm new to this (certified admin, but no developer training), so I'm just trying to figure something out. 

<apex:outputText rendered="ISBLANK({!ACA_Member__c.Lifestyle_Segment__c})>Lifestyle Segment</apex:outputText>
<apex:inputField value="{!ACA_Member__c.Lifestyle_Segment__c}"/>


Anyone have ideas as to how I can accomplish what I need to? Thanks in advance. 

 

I have a table on a visualforce page embedded in a standard view and I want to change the colour of its background dependent on the check box which is on the standard page.
I basically need to have a view open which when a check box is ticked a square turns red.
The only way i could think of doing it was as above but i cannot get the value of a custom field (the check box) to be read on the visualforce page. I can display a standard field values onto the page no problem with <apex:outputField value="{!Contact.name}"/> but not the custom fields.
If you have an easier way to achieve this effect please let me know or how to get the boolean value onto my page that will do just as well.

Thank you

Steve

A very new developer.