You need to sign in to do that
Don't have an account?
Jasmeen Kaur 22
Visualforce Page is not working as expected
I have an issue with my flow builder.
I have a field lets say "Picking Slip No.1" which is a text field. This field is hidden on page layout but is present on a visual force page. Then that visual force page is added on lightning page layout as a separate tab. Then we have another field lets say "Sales Order No. 1" this is a lookup field. Basically a picking slip no. is a sales order no. which is manually entered in salesforce. Sales Order comes in salesforce after few hours. So for that I have created a flow builder and a process builder in which after certain time, salesforce finds the picking slip no. 1 in sales order nos. and auto fill the lookup field "Sales Order No.1" in that visual force page. (Sales Order No. is also hidden from details page but present on a visual force page.)
Now the issue is when i enter picking slips on visual force page then flow is not working as I am not getting sales order nos auto populated on it.
However, If I add picking slip nos on main detail page and add those nos there then sales order nos on visual force page are populating.
The result can be seen on visual force page.
So My question here is that is there any way that without bringing these picking slip nos on page layout and entering them via visualforce page, I can get the results on the same visual force page?
I do not want to present these fields on page layout.
Please see my visualforce page.
Looking forward to it.
Regards
Jasmeen
I have a field lets say "Picking Slip No.1" which is a text field. This field is hidden on page layout but is present on a visual force page. Then that visual force page is added on lightning page layout as a separate tab. Then we have another field lets say "Sales Order No. 1" this is a lookup field. Basically a picking slip no. is a sales order no. which is manually entered in salesforce. Sales Order comes in salesforce after few hours. So for that I have created a flow builder and a process builder in which after certain time, salesforce finds the picking slip no. 1 in sales order nos. and auto fill the lookup field "Sales Order No.1" in that visual force page. (Sales Order No. is also hidden from details page but present on a visual force page.)
Now the issue is when i enter picking slips on visual force page then flow is not working as I am not getting sales order nos auto populated on it.
However, If I add picking slip nos on main detail page and add those nos there then sales order nos on visual force page are populating.
The result can be seen on visual force page.
So My question here is that is there any way that without bringing these picking slip nos on page layout and entering them via visualforce page, I can get the results on the same visual force page?
I do not want to present these fields on page layout.
Please see my visualforce page.
<apex:page standardController="Showroom_Request__c"> <apex:pageBlock title="Picking Slips and Sales Order" mode="inlineEdit"> <style> .colStyle1 { width: 10%;padding-left:5px; text-align:left; padding-top:3px; padding-bottom:5px;} .colStyle2 { width: 10%;text-align:left; padding-left:5px; padding-top:3px; padding-bottom:3px} .colStyle3 { width: 10%; text-align:left;padding-left:5px; padding-right:10px; padding-top:3px; padding-bottom:3px} .colStyle4 { width: 10%; text-align:left;padding-left:5px; padding-right:10px; padding-top:3px; padding-bottom:3px} .colStyle5 { width: 10%;padding-left:5px; text-align:left; padding-top:3px; padding-bottom:5px;} .colStyle6 { width: 10%;text-align:left; padding-left:5px; padding-top:3px; padding-bottom:3px} .colStyle7 { width: 10%; text-align:left;padding-left:5px; padding-right:10px; padding-top:3px; padding-bottom:3px} .colStyle8 { width: 10%; text-align:left;padding-left:5px; padding-right:10px; padding-top:3px; padding-bottom:3px} .colStyle9 { width: 10%;padding-left:5px; text-align:left; padding-top:3px; padding-bottom:5px;} .colStyle10 { width: 10%;text-align:left; padding-left:5px; padding-top:3px; padding-bottom:3px} </style> <apex:form > <apex:pageBlock title="Blum Hardware" mode="maindetail"> <apex:panelGrid columns="10" border="0" styleClass="tableStyle" width="100%" columnClasses="colStyle1,colStyle2,colStyle3,colStyle4,colStyle5,colStyle6,colStyle7,colStyle8,colStyle9,colStyle10"> <apex:outputLabel style="font-weight:600">Picking Slip 1</apex:outputLabel> <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_1_BH__c}"></apex:inputfield> <apex:outputLabel style="font-weight:600">Discount 1</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Discount_1_BH__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Sales Order 1</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_1_BH__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Order Date 1</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Order_Date_1_BH__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Invoice No.1</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Invoice_No_1_BH__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Picking Slip 2</apex:outputLabel> <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_2_BH__c}"></apex:inputfield> <apex:outputLabel style="font-weight:600">Discount 2</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Discount_1_BH__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Sales Order 2</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_2_BH__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Order Date 2</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Order_Date_2_BH__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Invoice No.2</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Invoice_No_2_BH__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Picking Slip 3</apex:outputLabel> <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_3_BH__c}"></apex:inputfield> <apex:outputLabel style="font-weight:600">Discount 3</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Discount_1_BH__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Sales Order 3</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_3_BH__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Order Date 3</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Order_Date_3_BH__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Invoice No.3</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Invoice_No_3_BH__c}"></apex:outputfield> </apex:panelGrid> <apex:commandButton value="save" action="{!save}"/> </apex:pageBlock> </apex:form> <apex:form > <apex:pageBlock title="Blum Servo Drive" mode="maindetail"> <apex:panelGrid columns="10" border="0" styleClass="tableStyle" width="100%" columnClasses="colStyle1,colStyle2,colStyle3,colStyle4,colStyle5,colStyle6,colStyle7,colStyle8,colStyle9,colStyle10"> <apex:outputLabel style="font-weight:600">Picking Slip 1</apex:outputLabel> <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_1_BSD__c}"></apex:inputfield> <apex:outputLabel style="font-weight:600">Discount 1</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Discount_1_BSD__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Sales Order 1</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_1_BSD__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Order Date 1</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Order_Date_1_BSD__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Invoice No.1</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Invoice_No_1_BSD__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Picking Slip 2</apex:outputLabel> <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_2_BSD__c}"></apex:inputfield> <apex:outputLabel style="font-weight:600">Discount 2</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Discount_1_BSD__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Sales Order 2</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_2_BSD__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Order Date 2</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Order_Date_2_BSD__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Invoice No.2</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Invoice_No_2_BSD__c}"></apex:outputfield> </apex:panelGrid> <apex:commandButton value="save" action="{!save}"/> </apex:pageBlock> </apex:form> <apex:form > <apex:pageBlock title="W & B" mode="maindetail"> <apex:panelGrid columns="10" border="0" styleClass="tableStyle" width="100%" columnClasses="colStyle1,colStyle2,colStyle3,colStyle4,colStyle5,colStyle6,colStyle7,colStyle8,colStyle9,colStyle10"> <apex:outputLabel style="font-weight:600">Picking Slip 1</apex:outputLabel> <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_1_WB__c}"></apex:inputfield> <apex:outputLabel style="font-weight:600">Discount 1</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Discount_1_WB__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Sales Order 1</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_1_WB__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Order Date 1</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Order_Date_1_WB__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Invoice No.1</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Invoice_No_1_WB__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Picking Slip 2</apex:outputLabel> <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_1_WB__c}"></apex:inputfield> <apex:outputLabel style="font-weight:600">Discount 2</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Discount_1_WB__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Sales Order 2</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_2_WB__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Order Date 2</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Order_Date_2_WB__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Invoice No.2</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Invoice_No_2_WB__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Picking Slip 3</apex:outputLabel> <apex:inputfield value="{!Showroom_Request__c.Picking_Slip_3_WB__c}"></apex:inputfield> <apex:outputLabel style="font-weight:600">Discount 3</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Discount_1_WB__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Sales Order 3</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Sales_Order_No_3_WB__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Order Date 3</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Order_Date_3_WB__c}"></apex:outputfield> <apex:outputLabel style="font-weight:600">Invoice No.3</apex:outputLabel> <apex:outputfield value="{!Showroom_Request__c.Invoice_No_3_WB__c}"></apex:outputfield> </apex:panelGrid> <apex:commandButton value="save" action="{!save}"/> </apex:pageBlock> </apex:form> </apex:pageBlock> </apex:page>Any help on this will be highly appreciated.
Looking forward to it.
Regards
Jasmeen