PDA

View Full Version : help me figure it out



andylah
18 Dec 2011, 6:30 AM
i wanna create a transaction form, that need a transaction id

and i wanna that transaction id text field is automatic fill on load. what i must use ? textfield or triggerfield or some thing field that i don't know.

and one thing i wanna that value is come from database.

thank for your help. please tell me too how to make it work.. using listener on load or something

thank anyway

tobiu
18 Dec 2011, 6:39 AM
take a look at:
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.action.Load

you can also do a normal ajax request and use the method setValue() on your field.

andylah
18 Dec 2011, 8:03 AM
thx i will try your suggestion, i am not thinking of form load. my bad :D

can you show me, how if the value is get from database. cause in the example i just can see if it static data. if from database we need JSON Reader and DataStore right? how it can implement to textField

thx before

andylah
18 Dec 2011, 8:16 AM
up please

andylah
18 Dec 2011, 6:44 PM
can someone help me to find solution for my problem,

problem :
1. how to setvalue textfield, but the value is form database on form load.

thx