Results 1 to 2 of 2

Thread: sencha touch build formpanel dynamicly

  1. #1
    Sencha User
    Join Date
    May 2014
    Posts
    1

    Default sencha touch build formpanel dynamicly

    Am new at sencha touch and I want to create a formPanel after the user click on some listener, I found out how to listen to An item, but the problem is to create a page and fill it with data coming from JsonP request I tried

    Ext.data.JsonP.request({ url: 'url', callbackName: 'callback1', success: function(result, request) { Ext.Viewport.add({ title : 'Category', iconCls : 'home', id:'category'+id, xtype : 'formpanel', deferredRender:true, tabBarPosition : 'bottom', data:result.prop }); }}); in the console there is no error and the form added but not within the formpanel that already exist


  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108
    Answers
    342

    Default

    Please format and use code tags with posting code. Use the html config instead of data.
    Code:
    html: result.prop
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •