1. #1
    Ext JS Premium Member
    Join Date
    Dec 2010
    Posts
    3
    Vote Rating
    0
    sarithat is on a distinguished road

      0  

    Default Sencha Architect - Serahc field in Navigation Bar

    Sencha Architect - Serahc field in Navigation Bar


    Hello,

    I am trying to create a search field in Navigation Bar using Sencha architect, but it's not allowing to create one,

    When i edit the code outside Architect the search box created successfully, but when i saved this project in architect all my changes were ruined out.

    Can somebody help me to figure out all the limitations using architect.

    Thanks,
    Saritha

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,261
    Vote Rating
    79
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    Import my port of SearchField (attached: SearchField.xdc) to your SA.

    To set store use storeId property.

    Regards.

    PD: If you find my answer (or any answer) useful please rate it!
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  3. #3
    Sencha User
    Join Date
    Oct 2007
    Posts
    221
    Vote Rating
    0
    ByteLess is on a distinguished road

      0  

    Default


    can you create another one for architect 2.2.2?

    thanks,

  4. #4
    Sencha User
    Join Date
    Oct 2007
    Posts
    221
    Vote Rating
    0
    ByteLess is on a distinguished road

      0  

    Default


    able to change the version in notepad and that let the architect import the code.
    How do I display the result search by the searchfield?
    I can see the call has been made but nothing display.
    where do I set the display tempalte?

  5. #5
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,261
    Vote Rating
    79
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    The component is associated to a store via storeId property.

    You need other view linked to the store to see the effect and, of course, your server code must handle the "query" param.

    Regards.
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  6. #6
    Sencha User
    Join Date
    Oct 2007
    Posts
    221
    Vote Rating
    0
    ByteLess is on a distinguished road

      0  

    Default


    I do see that search worked and I get the result back from server, but somehow it does not display.

    How do I create the view? can you give me just a little sample?
    this is the sample data that I get back from the server

    Code:
    {"totalcount":2,"query":{"recordcount":2,"columnlist":"account,address1,city,country,id,name,phone,state,zip","data":[{"account":849499,"address1":"SAA\/ACF Contracts Commerciaux","city":"Washington","country":"US","id":725,"name":"French Embassy","phone":"202-994-6488","state":"DC","zip":"20007-2172"}]}}

  7. #7
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,261
    Vote Rating
    79
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    Quote Originally Posted by ByteLess View Post
    How do I create the view?
    Hug?

    Panel grid is a view...
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  8. #8
    Sencha User
    Join Date
    Oct 2007
    Posts
    221
    Vote Rating
    0
    ByteLess is on a distinguished road

      0  

    Default


    Quote Originally Posted by ssamayoa View Post
    Hug?

    Panel grid is a view...
    Ah..
    so it would work with grids etc.
    I was trying to get something to search within the textfield and then open popup, select the item I want etc. more like dropdown where you see options and select.

    well, thanks, i think i will use this within my grids.

Thread Participants: 2