function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chris HeathChris Heath 

Send variable from Visualforce to Apex and change page

Hello,

I'm having some trouble with my VisualForce page. What I'm trying to do is create a table that shows relevant objects and a button next to each object. When the user clicks the button, it should change to the next page and pass the Id of the object along.

Here's what I have so far...
<apex:page Controller="ReceiveInventory" showHeader="false" sidebar="false" title="Select Lot">
<div style="zoom:300%;">

<script>
    function confirmCancel() {
        var isCancel = confirm("Are you sure you wish to cancel?");
        if (isCancel) return true;  
        
        return false;
    }  
</script>

<apex:form id="all">
<apex:outputText >Please select the lot you have scanned.<br /><br /></apex:outputText>
<apex:pageBlock >
<apex:pageBlockSection title="Lots" id="LotsTable" columns="1">
<apex:pageBlockTable value="{!lots}" var="lot">
<apex:column >
    <apex:commandButton action="{!step3}" value="Choose Lot" rerender="all">
            <apex:param name="chosenLotParam" value="{!lot.Id}" assignTo="{!chosenLot}" />
    </apex:commandButton>
</apex:column>
<apex:column value="{!lot.Name}" />
<apex:column value="{!lot.Quantity__c}" />
<apex:column value="{!lot.Date_Ordered__c}" />
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
<apex:commandButton action="{!cancel}" value="Cancel" onclick="return confirmCancel()" immediate="true" />
</apex:form>

</div>
</apex:page>

Relevant Apex code from ReceiveInventory class:
public with sharing class ReceiveInventory {

	public String chosenLot {get;set;}
	
	public PageReference step3 () {		
		system.debug('Chosen Lot: ' + chosenLot);
		PageReference pageref3 = Page.ReceiveInventory3;
		pageref3.getParameters().put('chosenLot',chosenLot);
		return pageref3;
	}
}


I've got the page displaying the objects and the buttons fine, however, it doesn't do what expected. When I click a button, nothing seems to happen; however, looking at the debug log, I see the debug line from above ("Chosen Lot: xxxxxx"). When I click the button again, I get an error page saying "The page you submitted was invalid for your session. Please click Save again to confirm your change.".

I was trying to model my code a little bit after this link (http://bobbuzzard.blogspot.com/2011/07/passing-parameters-to-apex-method-from.html).

If anyone could chip in and suggest how I can fix this issue, it would be much appreciated.

Thanks in advance!
shankswishankswi
I was unable to replicate your findings.  This is what I see when I add similar code to my Org.  Watch this quick video: http://screencast.com/t/5aKdftDQ
Chris HeathChris Heath
Thank you for your reply!

I was researching sending information to a custom controller from Visualforce and saw that for some reason it needed to re-render a component on the page for the variable to actually pass through. I tried it both ways, and neither does what I want.

If I don't re-render anything, the page changes fine but the ID of the Lot does not go through.
<apex:page Controller="ReceiveInventory" showHeader="false" sidebar="false" title="Select Lot">
<div style="zoom:300%;">

<!--
<script>
    function confirmCancel() {
        var isCancel = confirm("Are you sure you wish to cancel?");
        if (isCancel) return true;  
        
        return false;
    }  
</script>
-->
<apex:form>
<apex:outputText >Please select the lot you have scanned.<br /><br /></apex:outputText>
<apex:pageBlock >
<apex:pageBlockSection title="Lots" id="LotsTable" columns="1">
<apex:pageBlockTable value="{!lots}" var="lot">
<apex:column>
    <apex:commandButton action="{!step3}" value="Choose Lot">
            <apex:param value="{!lot.Id}" name="chosenLotParam" assignTo="{!chosenLot}" />
    </apex:commandButton>
</apex:column>
<apex:column value="{!lot.Name}" />
<!--<apex:column value="{!lot.Quantity__c}" />
<apex:column value="{!lot.Date_Ordered__c}" />-->
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
<!--<apex:commandButton action="{!cancel}" value="Cancel" onclick="return confirmCancel()" immediate="true" />-->
</apex:form>

</div>
</apex:page>
30.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
08:16:02.060 (60879096)|EXECUTION_STARTED
08:16:02.060 (60933112)|CODE_UNIT_STARTED|[EXTERNAL]|06660000000LtO4|VF: /apex/receiveinventory2
08:16:02.064 (64252422)|VF_DESERIALIZE_VIEWSTATE_BEGIN|06660000000LtO4
08:16:02.077 (77523532)|HEAP_ALLOCATE|[71]|Bytes:3
08:16:02.077 (77559915)|HEAP_ALLOCATE|[76]|Bytes:152
08:16:02.077 (77575356)|HEAP_ALLOCATE|[272]|Bytes:408
08:16:02.077 (77592249)|HEAP_ALLOCATE|[285]|Bytes:408
08:16:02.077 (77614813)|HEAP_ALLOCATE|[379]|Bytes:48
08:16:02.077 (77646228)|HEAP_ALLOCATE|[131]|Bytes:6
08:16:02.078 (78626393)|VF_DESERIALIZE_VIEWSTATE_END
08:16:02.079 (79194290)|CODE_UNIT_STARTED|[EXTERNAL]|01p60000000UkGJ|ReceiveInventory get(lots)
08:16:02.079 (79211875)|SYSTEM_MODE_ENTER|true
08:16:02.079 (79229391)|CODE_UNIT_STARTED|[EXTERNAL]|01p60000000UkGJ|lots
08:16:02.079 (79246511)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:27
08:16:02.079 (79255515)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:628
08:16:02.079 (79260173)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:11
08:16:02.079 (79275408)|METHOD_ENTRY|[1]|01p60000000UkGJ|ReceiveInventory.ReceiveInventory()
08:16:02.079 (79281034)|STATEMENT_EXECUTE|[1]
08:16:02.079 (79324345)|HEAP_ALLOCATE|[50]|Bytes:5
08:16:02.079 (79350651)|HEAP_ALLOCATE|[56]|Bytes:5
08:16:02.079 (79360480)|HEAP_ALLOCATE|[63]|Bytes:7
08:16:02.079 (79379330)|SYSTEM_MODE_ENTER|false
08:16:02.079 (79390609)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:5
08:16:02.079 (79397663)|STATEMENT_EXECUTE|[1]
08:16:02.079 (79404241)|SYSTEM_MODE_EXIT|false
08:16:02.079 (79416028)|METHOD_EXIT|[1]|ReceiveInventory
08:16:02.079 (79428691)|CODE_UNIT_FINISHED|lots
08:16:02.079 (79436830)|CODE_UNIT_FINISHED|ReceiveInventory get(lots)
08:16:02.081 (81788834)|CODE_UNIT_STARTED|[EXTERNAL]|01p60000000UkGJ|ReceiveInventory invoke(step3)
08:16:02.081 (81860792)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:20
08:16:02.081 (81880195)|VARIABLE_SCOPE_BEGIN|[54]|this|ReceiveInventory|true|false
08:16:02.081 (81947558)|VARIABLE_ASSIGNMENT|[54]|this|{"barcodeText":"","lots":"0x35c3b960"}|0x65663267
08:16:02.081 (81970102)|SYSTEM_MODE_ENTER|false
08:16:02.081 (81979449)|HEAP_ALLOCATE|[55]|Bytes:5
08:16:02.081 (81986221)|STATEMENT_EXECUTE|[54]
08:16:02.081 (81989145)|STATEMENT_EXECUTE|[55]
08:16:02.081 (81998779)|HEAP_ALLOCATE|[55]|Bytes:12
08:16:02.082 (82021104)|SYSTEM_METHOD_ENTRY|[55]|ReceiveInventory.__sfdc_chosenLot()
08:16:02.082 (82065974)|VARIABLE_ASSIGNMENT|[-1]|this|{"barcodeText":"","lots":"0x35c3b960"}|0x65663267
08:16:02.082 (82085754)|SYSTEM_METHOD_EXIT|[55]|ReceiveInventory.__sfdc_chosenLot()
08:16:02.082 (82107274)|HEAP_ALLOCATE|[55]|Bytes:16
08:16:02.082 (82129881)|SYSTEM_METHOD_ENTRY|[55]|System.debug(ANY)
08:16:02.082 (82138443)|USER_DEBUG|[55]|DEBUG|Chosen Lot: null
08:16:02.082 (82144281)|SYSTEM_METHOD_EXIT|[55]|System.debug(ANY)
08:16:02.082 (82148699)|STATEMENT_EXECUTE|[56]
08:16:02.082 (82158680)|HEAP_ALLOCATE|[56]|Bytes:23
08:16:02.098 (98585543)|VARIABLE_SCOPE_BEGIN|[56]|pageref3|System.PageReference|true|false
08:16:02.098 (98700282)|VARIABLE_ASSIGNMENT|[56]|pageref3|"/apex/receiveinventory3"|0x2ce90012
08:16:02.098 (98711556)|STATEMENT_EXECUTE|[57]
08:16:02.098 (98757824)|SYSTEM_METHOD_ENTRY|[57]|System.PageReference.getParameters()
08:16:02.098 (98836911)|HEAP_ALLOCATE|[57]|Bytes:0
08:16:02.098 (98858989)|SYSTEM_METHOD_EXIT|[57]|System.PageReference.getParameters()
08:16:02.098 (98872977)|HEAP_ALLOCATE|[57]|Bytes:9
08:16:02.098 (98892826)|SYSTEM_METHOD_ENTRY|[57]|ReceiveInventory.__sfdc_chosenLot()
08:16:02.098 (98955076)|VARIABLE_ASSIGNMENT|[-1]|this|{"barcodeText":"","lots":"0x35c3b960"}|0x65663267
08:16:02.098 (98973877)|SYSTEM_METHOD_EXIT|[57]|ReceiveInventory.__sfdc_chosenLot()
08:16:02.099 (99013829)|SYSTEM_METHOD_ENTRY|[57]|MAP<String,String>.put(Object, Object)
08:16:02.099 (99028486)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:-4
08:16:02.099 (99046000)|SYSTEM_METHOD_EXIT|[57]|MAP<String,String>.put(Object, Object)
08:16:02.099 (99053363)|STATEMENT_EXECUTE|[58]
08:16:02.099 (99062764)|HEAP_ALLOCATE|[58]|Bytes:22
08:16:02.099 (99111617)|SYSTEM_METHOD_ENTRY|[58]|String.valueOf(Object)
08:16:02.099 (99146787)|HEAP_ALLOCATE|[58]|Bytes:45
08:16:02.099 (99166787)|SYSTEM_METHOD_EXIT|[58]|String.valueOf(Object)
08:16:02.099 (99182005)|HEAP_ALLOCATE|[58]|Bytes:67
08:16:02.099 (99203320)|SYSTEM_METHOD_ENTRY|[58]|System.debug(ANY)
08:16:02.099 (99211899)|USER_DEBUG|[58]|DEBUG|Got here... pageref3: System.PageReference[/apex/receiveinventory3]
08:16:02.099 (99217884)|SYSTEM_METHOD_EXIT|[58]|System.debug(ANY)
08:16:02.099 (99221819)|STATEMENT_EXECUTE|[59]
08:16:02.099 (99235081)|SYSTEM_MODE_EXIT|false
08:16:02.099 (99276167)|CODE_UNIT_FINISHED|ReceiveInventory invoke(step3)
08:16:02.099 (99334479)|VF_APEX_CALL|j_id8|{!step3}|PageReference:/apex/receiveinventory3
08:16:02.125 (125584744)|CODE_UNIT_STARTED|[EXTERNAL]|01p60000000UkGJ|ReceiveInventory get(cLot)
08:16:02.125 (125609144)|SYSTEM_MODE_ENTER|true
08:16:02.125 (125620834)|CODE_UNIT_STARTED|[EXTERNAL]|01p60000000UkGJ|cLot
08:16:02.125 (125641606)|CODE_UNIT_FINISHED|cLot
08:16:02.125 (125651185)|CODE_UNIT_FINISHED|ReceiveInventory get(cLot)
08:16:02.127 (127799914)|VF_SERIALIZE_VIEWSTATE_BEGIN|06660000000LtO4
08:16:02.129 (129248956)|VF_SERIALIZE_VIEWSTATE_END
08:16:02.836 (133945813)|CUMULATIVE_LIMIT_USAGE
08:16:02.836|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 0 out of 100
  Number of query rows: 0 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 10
  Number of Email Invocations: 0 out of 10
  Number of fields describes: 0 out of 100
  Number of record type describes: 0 out of 100
  Number of child relationships describes: 0 out of 100
  Number of picklist describes: 0 out of 100
  Number of future calls: 0 out of 10

08:16:02.836|CUMULATIVE_LIMIT_USAGE_END

08:16:02.133 (133986323)|CODE_UNIT_FINISHED|VF: /apex/receiveinventory2
08:16:02.133 (133998803)|EXECUTION_FINISHED

If I do re-render an outputText panel, or the whole table as shown in my original code, I get my original problem - I get the variable assigned correctly, but the page does not change.

<apex:page Controller="ReceiveInventory" showHeader="false" sidebar="false" title="Select Lot">
<div style="zoom:300%;">

<!--
<script>
    function confirmCancel() {
        var isCancel = confirm("Are you sure you wish to cancel?");
        if (isCancel) return true;  
        
        return false;
    }  
</script>
-->
<apex:form>
<apex:outputText >Please select the lot you have scanned.<br /><br /></apex:outputText>
<apex:pageBlock >
<apex:pageBlockSection title="Lots" id="LotsTable" columns="1">
<apex:pageBlockTable value="{!lots}" var="lot">
<apex:column>
    <apex:commandButton action="{!step3}" value="Choose Lot" rerender="test">
            <apex:param value="{!lot.Id}" name="chosenLotParam" assignTo="{!chosenLot}" />
    </apex:commandButton>
</apex:column>
<apex:column value="{!lot.Name}" />
<!--<apex:column value="{!lot.Quantity__c}" />
<apex:column value="{!lot.Date_Ordered__c}" />-->
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
<!--<apex:commandButton action="{!cancel}" value="Cancel" onclick="return confirmCancel()" immediate="true" />-->
</apex:form>
<apex:outputText id="test" value="" />
</div>
</apex:page>
30.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
08:12:27.017 (17989028)|EXECUTION_STARTED
08:12:27.018 (18034400)|CODE_UNIT_STARTED|[EXTERNAL]|06660000000LtO4|VF: /apex/receiveinventory2
08:12:27.020 (20760183)|VF_DESERIALIZE_VIEWSTATE_BEGIN|06660000000LtO4
08:12:27.035 (35325222)|HEAP_ALLOCATE|[71]|Bytes:3
08:12:27.035 (35368323)|HEAP_ALLOCATE|[76]|Bytes:152
08:12:27.035 (35394281)|HEAP_ALLOCATE|[272]|Bytes:408
08:12:27.035 (35421949)|HEAP_ALLOCATE|[285]|Bytes:408
08:12:27.035 (35451221)|HEAP_ALLOCATE|[379]|Bytes:48
08:12:27.035 (35485338)|HEAP_ALLOCATE|[131]|Bytes:6
08:12:27.036 (36742423)|VF_DESERIALIZE_VIEWSTATE_END
08:12:27.037 (37325254)|CODE_UNIT_STARTED|[EXTERNAL]|01p60000000UkGJ|ReceiveInventory get(lots)
08:12:27.037 (37369137)|SYSTEM_MODE_ENTER|true
08:12:27.037 (37387328)|CODE_UNIT_STARTED|[EXTERNAL]|01p60000000UkGJ|lots
08:12:27.037 (37399717)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:27
08:12:27.037 (37406592)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:628
08:12:27.037 (37412822)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:11
08:12:27.037 (37425486)|METHOD_ENTRY|[1]|01p60000000UkGJ|ReceiveInventory.ReceiveInventory()
08:12:27.037 (37433014)|STATEMENT_EXECUTE|[1]
08:12:27.037 (37467592)|HEAP_ALLOCATE|[50]|Bytes:5
08:12:27.037 (37488057)|HEAP_ALLOCATE|[56]|Bytes:5
08:12:27.037 (37497153)|HEAP_ALLOCATE|[63]|Bytes:7
08:12:27.037 (37516211)|SYSTEM_MODE_ENTER|false
08:12:27.037 (37528236)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:5
08:12:27.037 (37535134)|STATEMENT_EXECUTE|[1]
08:12:27.037 (37542805)|SYSTEM_MODE_EXIT|false
08:12:27.037 (37551514)|METHOD_EXIT|[1]|ReceiveInventory
08:12:27.037 (37561194)|CODE_UNIT_FINISHED|lots
08:12:27.037 (37567535)|CODE_UNIT_FINISHED|ReceiveInventory get(lots)
08:12:27.038 (38036165)|CODE_UNIT_STARTED|[EXTERNAL]|ReceiveInventory set(chosenLot,a0R60000003EXwUEAW)
08:12:27.038 (38068390)|SYSTEM_MODE_ENTER|true
08:12:27.038 (38083950)|CODE_UNIT_STARTED|[EXTERNAL]|ReceiveInventory set(chosenLot,a0R60000003EXwUEAW)
08:12:27.038 (38112952)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:18
08:12:27.038 (38120465)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:20
08:12:27.038 (38274034)|VARIABLE_ASSIGNMENT|[-1]|this.chosenLot|"a0R60000003EXwUEAW"|0x40c591a6
08:12:27.038 (38326734)|CODE_UNIT_FINISHED|ReceiveInventory set(chosenLot,a0R60000003EXwUEAW)
08:12:27.038 (38338714)|CODE_UNIT_FINISHED|ReceiveInventory set(chosenLot,a0R60000003EXwUEAW)
08:12:27.040 (40003137)|CODE_UNIT_STARTED|[EXTERNAL]|01p60000000UkGJ|ReceiveInventory invoke(step3)
08:12:27.040 (40051105)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:20
08:12:27.040 (40066534)|VARIABLE_SCOPE_BEGIN|[54]|this|ReceiveInventory|true|false
08:12:27.040 (40126405)|VARIABLE_ASSIGNMENT|[54]|this|{"barcodeText":"","chosenLot":"a0R60000003EXwUEAW","lots":"0x3ab9be2a"}|0x40c591a6
08:12:27.040 (40148408)|SYSTEM_MODE_ENTER|false
08:12:27.040 (40155983)|HEAP_ALLOCATE|[55]|Bytes:5
08:12:27.040 (40164326)|STATEMENT_EXECUTE|[54]
08:12:27.040 (40168499)|STATEMENT_EXECUTE|[55]
08:12:27.040 (40179176)|HEAP_ALLOCATE|[55]|Bytes:12
08:12:27.040 (40202239)|SYSTEM_METHOD_ENTRY|[55]|ReceiveInventory.__sfdc_chosenLot()
08:12:27.040 (40255228)|VARIABLE_ASSIGNMENT|[-1]|this|{"barcodeText":"","chosenLot":"a0R60000003EXwUEAW","lots":"0x3ab9be2a"}|0x40c591a6
08:12:27.040 (40311865)|SYSTEM_METHOD_EXIT|[55]|ReceiveInventory.__sfdc_chosenLot()
08:12:27.040 (40338650)|HEAP_ALLOCATE|[55]|Bytes:30
08:12:27.040 (40366172)|SYSTEM_METHOD_ENTRY|[55]|System.debug(ANY)
08:12:27.040 (40376685)|USER_DEBUG|[55]|DEBUG|Chosen Lot: a0R60000003EXwUEAW
08:12:27.040 (40385501)|SYSTEM_METHOD_EXIT|[55]|System.debug(ANY)
08:12:27.040 (40391985)|STATEMENT_EXECUTE|[56]
08:12:27.040 (40402818)|HEAP_ALLOCATE|[56]|Bytes:23
08:12:27.052 (52029875)|VARIABLE_SCOPE_BEGIN|[56]|pageref3|System.PageReference|true|false
08:12:27.052 (52175832)|VARIABLE_ASSIGNMENT|[56]|pageref3|"/apex/receiveinventory3"|0x7c94c6ab
08:12:27.052 (52193940)|STATEMENT_EXECUTE|[57]
08:12:27.052 (52248993)|SYSTEM_METHOD_ENTRY|[57]|System.PageReference.getParameters()
08:12:27.052 (52339382)|HEAP_ALLOCATE|[57]|Bytes:0
08:12:27.052 (52364451)|SYSTEM_METHOD_EXIT|[57]|System.PageReference.getParameters()
08:12:27.052 (52382254)|HEAP_ALLOCATE|[57]|Bytes:9
08:12:27.052 (52407938)|SYSTEM_METHOD_ENTRY|[57]|ReceiveInventory.__sfdc_chosenLot()
08:12:27.052 (52477540)|VARIABLE_ASSIGNMENT|[-1]|this|{"barcodeText":"","chosenLot":"a0R60000003EXwUEAW","lots":"0x3ab9be2a"}|0x40c591a6
08:12:27.052 (52542906)|SYSTEM_METHOD_EXIT|[57]|ReceiveInventory.__sfdc_chosenLot()
08:12:27.052 (52584825)|SYSTEM_METHOD_ENTRY|[57]|MAP<String,String>.put(Object, Object)
08:12:27.052 (52598409)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:-4
08:12:27.052 (52614758)|SYSTEM_METHOD_EXIT|[57]|MAP<String,String>.put(Object, Object)
08:12:27.052 (52622940)|STATEMENT_EXECUTE|[58]
08:12:27.052 (52632170)|HEAP_ALLOCATE|[58]|Bytes:22
08:12:27.052 (52676052)|SYSTEM_METHOD_ENTRY|[58]|String.valueOf(Object)
08:12:27.052 (52720425)|HEAP_ALLOCATE|[58]|Bytes:74
08:12:27.052 (52738585)|SYSTEM_METHOD_EXIT|[58]|String.valueOf(Object)
08:12:27.052 (52752971)|HEAP_ALLOCATE|[58]|Bytes:96
08:12:27.052 (52775010)|SYSTEM_METHOD_ENTRY|[58]|System.debug(ANY)
08:12:27.052 (52786073)|USER_DEBUG|[58]|DEBUG|Got here... pageref3: System.PageReference[/apex/receiveinventory3?chosenLot=a0R60000003EXwUEAW]
08:12:27.052 (52796688)|SYSTEM_METHOD_EXIT|[58]|System.debug(ANY)
08:12:27.052 (52803991)|STATEMENT_EXECUTE|[59]
08:12:27.052 (52820381)|SYSTEM_MODE_EXIT|false
08:12:27.052 (52863417)|CODE_UNIT_FINISHED|ReceiveInventory invoke(step3)
08:12:27.052 (52924020)|VF_APEX_CALL|j_id8|{!step3}|PageReference:/apex/receiveinventory3?chosenLot=a0R60000003EXwUEAW
08:12:27.079 (79305187)|CODE_UNIT_STARTED|[EXTERNAL]|01p60000000UkGJ|ReceiveInventory get(cLot)
08:12:27.079 (79325571)|SYSTEM_MODE_ENTER|true
08:12:27.079 (79333757)|CODE_UNIT_STARTED|[EXTERNAL]|01p60000000UkGJ|cLot
08:12:27.079 (79347653)|CODE_UNIT_FINISHED|cLot
08:12:27.079 (79353315)|CODE_UNIT_FINISHED|ReceiveInventory get(cLot)
08:12:27.080 (80119949)|VF_SERIALIZE_VIEWSTATE_BEGIN|06660000000LtO4
08:12:27.081 (81541352)|VF_SERIALIZE_VIEWSTATE_END
08:12:27.629 (84284252)|CUMULATIVE_LIMIT_USAGE
08:12:27.629|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 0 out of 100
  Number of query rows: 0 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 10
  Number of Email Invocations: 0 out of 10
  Number of fields describes: 0 out of 100
  Number of record type describes: 0 out of 100
  Number of child relationships describes: 0 out of 100
  Number of picklist describes: 0 out of 100
  Number of future calls: 0 out of 10

08:12:27.629|CUMULATIVE_LIMIT_USAGE_END

08:12:27.084 (84313955)|CODE_UNIT_FINISHED|VF: /apex/receiveinventory2
08:12:27.084 (84322581)|EXECUTION_FINISHED

I'm hoping these provided logs may be able to clear something up.. I'm still at a loss as to why mine is not working like your example that you so kindly recorded.

Thank you again for your help and any further assistance.