• diy
  • NEWBIE
  • 5 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 27
    Questions
  • 30
    Replies
In what type of component <apex:form> will use and not used????????

command button we use <apex:form>... like that
  • January 16, 2014
  • Like
  • 0
Asset - Assetid,serialnumber and qty

transaction - tno , Asset(fk)


I want to relate to transaction (Asset) to Asset(serialnumber)


public List<Asset> Incemp {get;set;}   ---> I m not using list<> =new list<> , because i added a row...

  temp = Incemp.Asset__c - working fine

  temp = Incemp.Asset__r.serialnumber__c - not working


Any idea...
  • January 02, 2014
  • Like
  • 1

In My pageblock table 5 rows.. 1st field is a commandlinks[1,2,3,4 and 5 values]..

 

If i click 1 means , 1 will be highlighted red color, other numbers 2,3,4,5 are asusual color,

click 2 means , 2 will be change red color , other numbers are 1,3,4,5 are asusual color,

cick 3 , means ,......

click 4 means .........

click 5 means ......

 

  • December 12, 2013
  • Like
  • 0

In My pageblock table 5 rows.. 1st field is a commandlinks[1,2,3,4 and 5 values]..

 

If i click 1 means , 1 will be highlighted red color, other numbers 2,3,4,5 are asusual color,

click 2 means , 2 will be change red color , other numbers are 1,3,4,5 are asusual color,

cick 3 , means ,......

click 4 means .........

click 5 means ......

 

  • December 10, 2013
  • Like
  • 0

     I am trying to display the record name (Inchead.name) in vfpage after click the save button(display in same page).. but "{!Inchead.id}" is working fine.. but  {!Inchead.name} is not displayed in vf page

 

public Incident__c getInchead() {
      
      if(Inchead == null) Inchead = new Incident__c();
      return Inchead;
   }

 

public void save(){

Insert Inchead;

}

 

 

Vf

 

<apex:outputText value="{!Inchead.name}"/>

  • November 27, 2013
  • Like
  • 0

My requirement is

 I have 3 product in one object and 6 serial number in another object.. serial number related to product.. Datas are p1 -> s1,s2 p2 ->s3,s4 p3->s5,s6..  In my UI have 2 page block table.. 1st page block table I enter serial number s1,s2,s3 ... my 2nd pageblock wil display p1 and p2 ... but its display p1,p1 and p2.. duplicate value display.. How can I resolve this issue? my code is..

public void productadd (){

for(integer i=0;i<AssetAddList.size();i++ ){          
    ProductList = [select id,Product_Number__c,Product_Number__r.name,Serial_Number__c from Equipment_Master__c where Serial_Number__c   =:  AssetAddList[i].Serial_Number__c ];

    serialIncConfigsItem[i].Product_Number__c = ProductList.Product_Number__c;


}
 

  AssetAddlist - > Enter serial number page block table
  serialIncConfigsItem -> display product

 

How can i remove duplicate product in my code?

  • November 26, 2013
  • Like
  • 0

My requirement is

 I have 3 product in one object and 6 serial number in another object.. serial number related to product.. Datas are p1 -> s1,s2 p2 ->s3,s4 p3->s5,s6..  In my UI have 2 page block table.. 1st page block table I enter serial number s1,s2,s3 ... my 2nd pageblock wil display p1 and p2 ... but its display p1,p1 and p2.. duplicate value display.. How can I resolve this issue? my code is..

public void productadd (){

for(integer i=0;i<AssetAddList.size();i++ ){          
    ProductList = [select id,Product_Number__c,Product_Number__r.name,Serial_Number__c from Equipment_Master__c where Serial_Number__c   =:  AssetAddList[i].Serial_Number__c ];

    serialIncConfigsItem[i].Product_Number__c = ProductList.Product_Number__c;


}
 

  AssetAddlist - > Enter serial number page block table
  serialIncConfigsItem -> display product

 

How can i remove duplicate product in my code?

  • November 26, 2013
  • Like
  • 0

I have 5 records in pageblock table.. 1st field is a command link using param tag.. when i click 1 means , 1 will be change an red color... others are same standard color.. if i click 2 means , 2 has a red color and 1 has change into old color like standard color.. if  i click 3 means , 3 changed as a red.. remain all are standard color

  • November 22, 2013
  • Like
  • 0

I have 5 records in pageblock table.. 1st field is a command link using param tag.. when i click 1 means , 1 will be change an red color... others are same standard color.. if i click 2 means , 2 has a red color and 1 has change into old color like standard color.. if  i click 3 means , 3 changed as a red.. remain all are standard color

  • November 22, 2013
  • Like
  • 0

public List<Equipment_Master__c> ProductList{ get; set;}
public List<Equipment_Master__c> ProductListadd{ get; set;}
 Set<Equipment_Master__c> setEquipment = new Set<Equipment_Master__c>();  

    List<Equipment_Master__c> productresults;  
    public pagereference productadd (){
    for(integer i=0;i<AssetAddList.size();i++ ){
    ProductList = [select Product_Number__c from Equipment_Master__c where Serial_Number__c   =: AssetAddList[i].Serial_Number__c];
    setEquipment.add(ProductList[i].Product_Number__c);
    ProductListadd.add(setEquipment);  -- How can i add a product list value in productlistadd?
    }
}

 public List<Equipment_Master__c> getproductresults(){
   

  return ProductListadd;
 
    
}


<apex:pageBlockTable value="{!productresults}" var="pro">
          <apex:column headerValue="Product Number">
                    <apex:inputField value="{!pro.id}"/>
                </apex:column>  
                           
         </apex:pageBlockTable>




 ProductList - 1,1,2,3,4,5,2,4,2,3,2,4 - using set I want to distinct value

  o/p - 1,2 3,4,5

  • November 18, 2013
  • Like
  • 0

how to select  the table  records and display in another table in sfdc ?

  • November 14, 2013
  • Like
  • 0

The page you submitted was invalid for your session. Please click Save again to confirm your change.

 


when i open a popup window second time in same screen , this error occured.. How I handle this error?

  • November 13, 2013
  • Like
  • 0

How to add a list value to templist?

 

for eg:

 

list A - 10 rows value

templist .add(listA);

list A.clear();

list A - 7 rows value

templist .add(listA);

 

In o/p  = templist have 17 row values

  • November 08, 2013
  • Like
  • 0

I used output panel,pageblock,pageblock table,render ,rerender ,jquery  in vf pages.. In this page I want to set a repeted background image .. but it displayed only top of the portion ..so i put image in all the components using style tag.. but some of the portions are not covered.. How can I apply all over the screen ?

 

style="background:white url(https://na15.salesforce.com/resource/467557050000/marble)repeat scroll;"   > 
  • November 06, 2013
  • Like
  • 1

I am save a record using pop window.. VF to popup(VF)

I got following error.. When i add a records using popup.. First time its working fine.. in second time got error


"The page you submitted was invalid for your session. Please click Save again to confirm your change"

public ID rowId {get;set;}
public incident_Item_Assets__c objForPage2{get;set;}
public Pagereference goToPage2(){
 
for(incident_Item_Assets__c obj : IncConfigsItemAsset){
            if(obj.id==rowId){
                objForPage2= obj;
        System.debug('test123'+objForPage2);
            }
        }
     return page.vfactivitypopup;
 }

 

public void activitysave(){
actasset.AssetID__c = ApexPages.currentPage().getParameters().get('id');
Insert actasset;
}


 page 1
  <apex:column >
<apex:commandLink action="{!goToPage2}"  value="popup" reRender="selected"  onclick="window.open('/apex/vfactivitypopup?id={!com1.id}','','width=550,height=450');" >
  <apex:param name="rowId" assignTo="{!rowId}" value="{!com1.id}"  />
</apex:commandLink>
</apex:column>
 page 2
  <apex:panelGrid columns="2">
          <apex:outputText value="Incident Item Asset"/>
          <apex:outputText style="font-weight:bold" value="{!objForPage2.id}"/>                    
        </apex:panelGrid>

  • October 31, 2013
  • Like
  • 0

How i pass corresponding row id in to popup window?

 

public ID rowId {get;set;}
public Item_Assets__c objForPage2{get;set;}
public Pagereference goToPage2(){
 
for(incident_Item_Assets__c obj : IncConfigsItemAsset){
            if(obj.id==rowId){
                objForPage2= obj;
      
            }
        }
     return page.vfactivitypopup;

 

<script>
        var myWindow;
        function pop() {
            myWindow = window.open('/apex/vfactivitypopup','','width=550,height=450');
        }
       
    </script>

<apex:column >
<apex:commandLink action="{!goToPage2}"  value="popup"  onclick="pop();"   >
  <apex:param name="rowId" assignTo="{!rowId}" value="{!com1.id}"  />
</apex:commandLink>
</apex:column> 
  • October 30, 2013
  • Like
  • 0

I have list a Account details in pageblock table... First field of the table  is a command button.. when i click a button, popup window will open and   i add a single contact in pop up window for corresponding account.. How will i do?

  • October 29, 2013
  • Like
  • 0

How to set background repeat image in visualforce page?

  • October 28, 2013
  • Like
  • 0



  two pageblock table

   table A [no is a auto number of table , its not a orginal id]

   no        name

   1         smith
   2         vijay
   3         vikram

   table B [no is manually enter, it is not saved in Database, it is just refer a contact]

   no        contact

   1          77779
   1          78799
   2          77777
   2          93579


  I want to save table A AND table b in single save. how do i passed table A id in to table B ?

  • October 23, 2013
  • Like
  • 0



  two pageblock table

   table A [no is a auto number of table , its not a orginal id]

   no        name

   1         smith
   2         vijay
   3         vikram

   table B [no is manually enter, it is not saved in Database, it is just refer a contact]

   no        contact

   1          77779
   1          78799
   2          77777
   2          93579


  I want to save table A AND table b in single save. how do i passed table A id in to table B ?

  • October 23, 2013
  • Like
  • 0
Asset - Assetid,serialnumber and qty

transaction - tno , Asset(fk)


I want to relate to transaction (Asset) to Asset(serialnumber)


public List<Asset> Incemp {get;set;}   ---> I m not using list<> =new list<> , because i added a row...

  temp = Incemp.Asset__c - working fine

  temp = Incemp.Asset__r.serialnumber__c - not working


Any idea...
  • January 02, 2014
  • Like
  • 1

I used output panel,pageblock,pageblock table,render ,rerender ,jquery  in vf pages.. In this page I want to set a repeted background image .. but it displayed only top of the portion ..so i put image in all the components using style tag.. but some of the portions are not covered.. How can I apply all over the screen ?

 

style="background:white url(https://na15.salesforce.com/resource/467557050000/marble)repeat scroll;"   > 
  • November 06, 2013
  • Like
  • 1
Asset - Assetid,serialnumber and qty

transaction - tno , Asset(fk)


I want to relate to transaction (Asset) to Asset(serialnumber)


public List<Asset> Incemp {get;set;}   ---> I m not using list<> =new list<> , because i added a row...

  temp = Incemp.Asset__c - working fine

  temp = Incemp.Asset__r.serialnumber__c - not working


Any idea...
  • January 02, 2014
  • Like
  • 1

In My pageblock table 5 rows.. 1st field is a commandlinks[1,2,3,4 and 5 values]..

 

If i click 1 means , 1 will be highlighted red color, other numbers 2,3,4,5 are asusual color,

click 2 means , 2 will be change red color , other numbers are 1,3,4,5 are asusual color,

cick 3 , means ,......

click 4 means .........

click 5 means ......

 

  • December 12, 2013
  • Like
  • 0

what is difference between case and solution.what are advantages.could u tel me mini project.....

     I am trying to display the record name (Inchead.name) in vfpage after click the save button(display in same page).. but "{!Inchead.id}" is working fine.. but  {!Inchead.name} is not displayed in vf page

 

public Incident__c getInchead() {
      
      if(Inchead == null) Inchead = new Incident__c();
      return Inchead;
   }

 

public void save(){

Insert Inchead;

}

 

 

Vf

 

<apex:outputText value="{!Inchead.name}"/>

  • November 27, 2013
  • Like
  • 0

My requirement is

 I have 3 product in one object and 6 serial number in another object.. serial number related to product.. Datas are p1 -> s1,s2 p2 ->s3,s4 p3->s5,s6..  In my UI have 2 page block table.. 1st page block table I enter serial number s1,s2,s3 ... my 2nd pageblock wil display p1 and p2 ... but its display p1,p1 and p2.. duplicate value display.. How can I resolve this issue? my code is..

public void productadd (){

for(integer i=0;i<AssetAddList.size();i++ ){          
    ProductList = [select id,Product_Number__c,Product_Number__r.name,Serial_Number__c from Equipment_Master__c where Serial_Number__c   =:  AssetAddList[i].Serial_Number__c ];

    serialIncConfigsItem[i].Product_Number__c = ProductList.Product_Number__c;


}
 

  AssetAddlist - > Enter serial number page block table
  serialIncConfigsItem -> display product

 

How can i remove duplicate product in my code?

  • November 26, 2013
  • Like
  • 0

I have 5 records in pageblock table.. 1st field is a command link using param tag.. when i click 1 means , 1 will be change an red color... others are same standard color.. if i click 2 means , 2 has a red color and 1 has change into old color like standard color.. if  i click 3 means , 3 changed as a red.. remain all are standard color

  • November 22, 2013
  • Like
  • 0

Hi,

 

      Can anyone help me "Why two Master-Detail Relationship is  preferable to create junction object. Why cant with two Lookup relationships or one master-detail and one lookup relationship".

 

 

Thanks in Advance

I am save a record using pop window.. VF to popup(VF)

I got following error.. When i add a records using popup.. First time its working fine.. in second time got error


"The page you submitted was invalid for your session. Please click Save again to confirm your change"

public ID rowId {get;set;}
public incident_Item_Assets__c objForPage2{get;set;}
public Pagereference goToPage2(){
 
for(incident_Item_Assets__c obj : IncConfigsItemAsset){
            if(obj.id==rowId){
                objForPage2= obj;
        System.debug('test123'+objForPage2);
            }
        }
     return page.vfactivitypopup;
 }

 

public void activitysave(){
actasset.AssetID__c = ApexPages.currentPage().getParameters().get('id');
Insert actasset;
}


 page 1
  <apex:column >
<apex:commandLink action="{!goToPage2}"  value="popup" reRender="selected"  onclick="window.open('/apex/vfactivitypopup?id={!com1.id}','','width=550,height=450');" >
  <apex:param name="rowId" assignTo="{!rowId}" value="{!com1.id}"  />
</apex:commandLink>
</apex:column>
 page 2
  <apex:panelGrid columns="2">
          <apex:outputText value="Incident Item Asset"/>
          <apex:outputText style="font-weight:bold" value="{!objForPage2.id}"/>                    
        </apex:panelGrid>

  • October 31, 2013
  • Like
  • 0

How i pass corresponding row id in to popup window?

 

public ID rowId {get;set;}
public Item_Assets__c objForPage2{get;set;}
public Pagereference goToPage2(){
 
for(incident_Item_Assets__c obj : IncConfigsItemAsset){
            if(obj.id==rowId){
                objForPage2= obj;
      
            }
        }
     return page.vfactivitypopup;

 

<script>
        var myWindow;
        function pop() {
            myWindow = window.open('/apex/vfactivitypopup','','width=550,height=450');
        }
       
    </script>

<apex:column >
<apex:commandLink action="{!goToPage2}"  value="popup"  onclick="pop();"   >
  <apex:param name="rowId" assignTo="{!rowId}" value="{!com1.id}"  />
</apex:commandLink>
</apex:column> 
  • October 30, 2013
  • Like
  • 0

I have list a Account details in pageblock table... First field of the table  is a command button.. when i click a button, popup window will open and   i add a single contact in pop up window for corresponding account.. How will i do?

  • October 29, 2013
  • Like
  • 0