+ Start a Discussion

How to update value from one visual force page to other visualforce page?

Hello everyone,


I am facing some problem. Please help me out if anyone knows.

I have two objects Add Floor and Add Room. in Add Floor object i have two fields "Series Start From" and "Number of Floors" when i add this like:

Number of Floor : 5

Series Start from: A

then after click on button it divide it like: A1,A2,A3,A4,A5  button will show this out put on net page.

But i want this output value in pick list field and that picklist field is in Add Room Object. e.g when i add rooms then on that screen i want the picklist of Floor like A1,A2,A3,A4,A5.


I have done this upto output on next page but i don't knw how to update that values on next visualforce page in picklist. Please anyone gave me any idea for the same.


Page Code:

<apex:page standardStylesheets="false" >
<apex:form id="frmOne">
<apex:pageBlock >
<apex:pageBlockSection title="Floors">
<apex:outputLabel style="font-weight:bold;" value="Series Start From:" for="series"/>
<apex:inputText id="series" required="true" />
<apex:outputLabel style="font-weight:bold;" value="Number of Floors:" for="floors"/>
<apex:inputText id="floors" required="true"/>
<apex:outputLabel style="font-weight:bold;" value="Floors:" for="floors1"/>
<apex:inputTextarea id="Floors1"/>

<apex:outputText id="output" />
<apex:commandButton value="floors" onclick="move()" />
<script type="text/javascript">

function move()
var ex = document.getElementById('{!$Component.series}').value;
var ex1 = document.getElementById('{!$Component.floors}').value;
document.write("Floors Are:");
for (i=1;i<=ex1;i++)
var input=document.write(ex+i+",");


 Please help me...... its urgent for me........


Thanks In Advance