• Rohit Alladi
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 2
    Replies

I just wanted to know in case if i am creating a new app then all the data from other standard apps(Leads,Opportunities) are being seen in my Custom app , How do i restrict that old data into my new app ?

I just wanted to know in case if i am creating a new app then all the data from other standard apps(Leads,Opportunities) are being seen in my Custom app , How do i restrict that old data into my new app ?

Hi Guys,

 

I have a custom page block table created with 4 columns ,

i now need to add each column with 8 rows of custom output text .. 

 

  row1                                 row2(factor)                                    row3     (opp score)                                                               row4(risk score)

rule1                               picklistfield1                              dependent picklist for row 2                                       dependent picklist for row 2

rule2                              picklistfield2                                dependent picklist for row 2                                       dependent picklist for row 2

 

 

so like these i need 8 rows , i have created

 

VF :

 

<apex:page controller="Opportunities">
<apex:form >
<apex:tabPanel >
<apex:tab label="go/nogosheet1" id="sheet1" >
<apex:pageBlock >
<apex:pageblockSection columns="2" collapsible="false">

<apex:pageBlockSectionItem >
<apex:pageBlockTable value="{!null}" var="rule">
<apex:column headerValue="rule"/>
<apex:repeat value="{!myrecords}" ></apex:repeat>

<apex:column headerValue="opp score"/>
<apex:column headerValue="factor"/>
<apex:column headerValue="risk score"/>

</apex:pageBlockTable>
</apex:pageBlockSectionItem>




</apex:pageblockSection>

</apex:pageBlock>
</apex:tab>
<apex:tab label="go/nogosheet2" id="sheet2" >
</apex:tab>
<apex:tab label="go/nogosheet3" id="sheet3" >
</apex:tab>
</apex:tabPanel>



</apex:form>
</apex:page>

 

 

 

apex:

 

public class Opportunities {
public String oppor1 { get; set; }


public String nogosheet1 { get; set; }
public String opp1 { get; set; }


}

 

 

let me know if any1 can help ?????????????

Hi Guys,

 

I have a custom page block table created with 4 columns ,

i now need to add each column with 8 rows of custom output text .. 

 

  row1                                 row2(factor)                                    row3     (opp score)                                                               row4(risk score)

rule1                               picklistfield1                              dependent picklist for row 2                                       dependent picklist for row 2

rule2                              picklistfield2                                dependent picklist for row 2                                       dependent picklist for row 2

 

 

so like these i need 8 rows , i have created

 

VF :

 

<apex:page controller="Opportunities">
<apex:form >
<apex:tabPanel >
<apex:tab label="go/nogosheet1" id="sheet1" >
<apex:pageBlock >
<apex:pageblockSection columns="2" collapsible="false">

<apex:pageBlockSectionItem >
<apex:pageBlockTable value="{!null}" var="rule">
<apex:column headerValue="rule"/>
<apex:repeat value="{!myrecords}" ></apex:repeat>

<apex:column headerValue="opp score"/>
<apex:column headerValue="factor"/>
<apex:column headerValue="risk score"/>

</apex:pageBlockTable>
</apex:pageBlockSectionItem>




</apex:pageblockSection>

</apex:pageBlock>
</apex:tab>
<apex:tab label="go/nogosheet2" id="sheet2" >
</apex:tab>
<apex:tab label="go/nogosheet3" id="sheet3" >
</apex:tab>
</apex:tabPanel>



</apex:form>
</apex:page>

 

 

 

apex:

 

public class Opportunities {
public String oppor1 { get; set; }


public String nogosheet1 { get; set; }
public String opp1 { get; set; }


}

 

 

let me know if any1 can help ?????????????

        

my visual force page:

<apex:form >
<apex:pageBlock >
<apex:pageBlockSection >
<p id= "demo"> hello
</p>
<apex:inputField value="{!borrower__c.borrowers_name__c}"/>
<apex:inputField value="{!borrower__c.borrowers_id__c}" id="eng"/>
<apex:inputField value="{!borrower__c.current_year__c}" id="mat"/>
<apex:inputField value="{!borrower__c.Staff__c}" id="sci" onchange="showhidefield();"/>
<apex:inputField value="{!borrower__c.ADDRESS__c}" id="soc"/>
<apex:commandButton value="click me" action="myfunction()"/>

</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>

 

 

my java script :

 

<script language="JavaScript">
function showhidefield()
{

if (document.getElementById("j_id0:j_id2:j_id3:j_id4:sci").checked)
{
document.getElementById("j_id0:j_id2:j_id3:j_id4:eng").style.visibility = "hidden";


}
else
{
document.getElementById("j_id0:j_id2:j_id3:j_id4:eng").style.visibility = "visible";

}
}
function myFunction()
{
x=document.getElementById("demo") // Find the element
x.style.color="#ff0000"; // Change the style
}
</script>

 

 

can any one let me know where i went wrong ??? 

Hi ,

How to create fields or show fields on pressing of an add button using java/html/apex. i want  new fields to be created when i press add button.

Greetings I hope you can help me....

 

I have two costum objects...  one is a kind of catalog... so i would like to include a related list like the product selecction... with the same buttons and checkboxes... but i only can get a related list with one button (New XXXX) and for every item i wannt to add i need to create a new entry and add to the main object...

 

I will really appreciate your help.

Still learning the ropes here and probably have some very ill formed code - so, any help/advice is greatly appreciated.

 

Here is the scenario of what I am trying to accomplish:

 

We have two custom objects (related via lookup field on Essay object):  Applications & Essays.  I have created a custom field on the Applications object called XEssays_On_File.  When an Essay record is added/updated, I would like the XEssays_On_File field to get updated with the number of related Essay Records. (Can't use rollup fields as this is not a master-detail relationship)

 

I have drafted the following code - which works for single situations - but fails mercilessly in bulk update:

 

trigger CountRelatedEssays on TargetX_SRMb__Essay__c (after insert, after update) {

        TargetX_SRMb__Essay__c [] ess = Trigger.new;
        String appid = null;
        appid = ess[0].TargetX_SRMb__Application__c;
       
        Integer i = [select count() from TargetX_SRMb__Essay__c where TargetX_SRMb__Application__c =     :appid];
       
        TargetX_SRMb__Application__c [] app =[select id, XEssays_On_File__c from TargetX_SRMb__Application__c where id = :appid];

        app[0].XEssays_On_File__c = i;   
       
        update app[0];
       

}

 

I would also like this to fire and update on Delete as well.

 

Thanks in advance for any help you can provide!