PDA

View Full Version : How to sent variable from load function to form



dev_satya_a
23 May 2011, 12:50 PM
Hi,

I have one handler function inside that i am calling loadOrderPandel(orderId). Here i am storing the value of orderId something like orderId = '1234'. Now when i call this loadOrderPandel(orderId) I am creating a window and inside that I am calling my formPanel. Now I want to set this orderId as hidden parameter in this form. How can I do this.

function loadOrderPanel(orderId){

winUpdateOrder = new Ext.Window({
layout: 'form',
name: 'EditOrder',
title: 'Order',
iconCls: 'window_edit',
autoDestroy: true,
width: 400,
height: 200,
x: 150,
y: 250,
closeAction: 'hide',
plain: true,
items: [orderDetailForm]
});
orderDetailForm.getForm().reset();
winUpdateOrder.show();


}

so to my form (orderDetailForm) I want to set this orderId as hidden parameter how can i do this.

dev_satya_a
23 May 2011, 7:22 PM
I solved it thanks.