View Full Version : ref problem

19 Jun 2013, 4:21 PM
I have 2 forms:
id = ConL:ist
id = ConDetail

on ConList I have a dataview.list - itemid=lstCon
on ConDetail I have a button on a toolbar - itemid=cmdSave

ConList is pushed on a navigation view and then ConDetail is pushed on top
now I can set up a ref
conSaveButton: 'ConDetail [itemid=cmdSave]'which can then be accessed, but if I try and access the list via reference
conList : 'ConList [itemid=lstCon]' it comes up as 'undefined'...I have to use the ref
conListForm : ConList and go down to find the list:

var lst = me.getConListForm().down('#lstCon').

Why is this?

24 Jun 2013, 5:56 AM
Try this:

'ConDetail #cmdSave'