• vjai
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hi SF Team,

 

I want only a partial page refresh to happen and show the extra field depending on the picklist value selected..

 

Consider the Example

 

On  a screen, there is a Pick List field named UOM.

1. If the UOM from drop list changes to "Each", then a field named "Number of units" must be displayed.
2. As soon as drop down list value changes to "Box", then a field named "Box Weight" must be displayed
3. As soon as drop down list value changes to "Gallon", then a field named "Volume" must be displayed

 

Thanks,

Vjai

  • July 23, 2012
  • Like
  • 0

Hi All,

 

Is there an alternate way to create columns in visual force page apart from using <apex:columns>?

 

Thanks and Regards,

Vijay

 

 

  • July 20, 2012
  • Like
  • 0

Hi All,

 

I've a Master Detail Relationship and a Custom field in Child is auto Number starting from 1.

 

It's getting incremented from where it left in the previous Master Object and I want it to start fresh for every new Master Object.

 

Any Ideas?

 

-Vjai 

  • June 20, 2012
  • Like
  • 0

Hi SF Team,

 

I've written an VF Page to enter the child object data of a Master Detail relationship for n rows

 

Is there a way to dynamically create a row after the last record is entered rather than specifying the no of rows beforehand.Would any attribute like onclick or on dbclick be helpful.

 

Below is the code.Please advice how to achieve it...

 

<apex:page controller="multiitemsInsert">
<apex:form >
<apex:sectionHeader title="POLINEITEMS" subtitle="AddPOITEMS" />
<apex:pageBlock title="Add row Dynamically" >
<apex:pageBlockButtons location="bottom">
<apex:commandButton value="Save" action="{!save_close}"/>
</apex:pageBlockButtons>
<Div align="right">
<apex:inputText value="{!num}"/>
<apex:commandButton value="Add rows" action="{!add_rows}"/>
</Div>
<br/>
<apex:pageBlockTable value="{!PLIC}" var="pli" id="table">
<apex:column headerValue="Inventory">
<apex:inputField value="{!pli.INV_Name__c}"/>
</apex:column>
<apex:column headerValue="Item">
<apex:inputField value="{!pli.ITEM__c}"/>
</apex:column>
<apex:column headerValue="Qty">
<apex:inputField value="{!pli.PO_Qty__c}"/>
</apex:column>
<apex:column headerValue="Unit Price">
<apex:inputField value="{!pli.Item_Unit_Price__c}"/>
</apex:column>
<apex:column headerValue="Line Value">
<apex:inputField value="{!pli.PO_LINE_VALUE_N__c}"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>


AddrowController:-

 

public class multiitemsInsert {

{
public integer num { get; set; }
public List<PO_LINE_ITEM__c> PLIC {get; set;}
public multiitemsInsert()
{
PLIC = new List<PO_LINE_ITEM__c>();
PLIC.add(new PO_LINE_ITEM__c());
}
public PageReference add_rows() {
for(integer i=0;i<num ;i++)
{
PLIC.add(new PO_LINE_ITEM__c());
}

return null;
}
public PageReference save_close()
{ insert PLIC;
PageReference home = new PageReference('/a06/o');
home.setRedirect(true);
return home;
}
}

 

  • June 19, 2012
  • Like
  • 0

Hi SF Community,

 

I've created a VF Page for The Master Detail Objects(PO_HEADER and PO_Detail).

 

They work fine with the standard Button View as both Master Detail info are visible in a single page.

 

But They do not appear in a single page with Standard Buttons NEW or EDIT and I want both of them to appear in the same page.

 

Can Someone help or advise me.

 

Thanks in advance

 

-Vjai

 

 

  • June 14, 2012
  • Like
  • 0

Hi SF Community,

 

I have four objects PO_Header,PO_Detail,GRN_Header,GRN_Detail.

 

A Master Detail relationship exists between PO_Header and PO_Detail and a second aster Detail relationship exists between GRN_Header,GRN_Detail.

 

Lookup Relations exists between PO_Header,GRN_Header and PO_Detail,GRN_Detail.

 

A GRN(Goods Receipt Note) is based on the PO(Purchase Order)

 

In GRN_Header page when I enter the PO No,The rest of the details from PO_Header like Vendor name,Org_name,PO_date etc.should be auto populated and in the GRN_details a few columns like the items ordered,Qty ordred should also be populated.

 

Can you help me with this.

 

Thanks,

Vjai

 


  • June 13, 2012
  • Like
  • 0

Hi All,

 

Is there an alternate way to create columns in visual force page apart from using <apex:columns>?

 

Thanks and Regards,

Vijay

 

 

  • July 20, 2012
  • Like
  • 0

Hi SF Community,

 

I've created a VF Page for The Master Detail Objects(PO_HEADER and PO_Detail).

 

They work fine with the standard Button View as both Master Detail info are visible in a single page.

 

But They do not appear in a single page with Standard Buttons NEW or EDIT and I want both of them to appear in the same page.

 

Can Someone help or advise me.

 

Thanks in advance

 

-Vjai

 

 

  • June 14, 2012
  • Like
  • 0

Hi SF Community,

 

I have four objects PO_Header,PO_Detail,GRN_Header,GRN_Detail.

 

A Master Detail relationship exists between PO_Header and PO_Detail and a second aster Detail relationship exists between GRN_Header,GRN_Detail.

 

Lookup Relations exists between PO_Header,GRN_Header and PO_Detail,GRN_Detail.

 

A GRN(Goods Receipt Note) is based on the PO(Purchase Order)

 

In GRN_Header page when I enter the PO No,The rest of the details from PO_Header like Vendor name,Org_name,PO_date etc.should be auto populated and in the GRN_details a few columns like the items ordered,Qty ordred should also be populated.

 

Can you help me with this.

 

Thanks,

Vjai

 


  • June 13, 2012
  • Like
  • 0