Messages by asbabu123

36 topics, 68 messages
Kuix technical support » take the som much of time for displaying the Lisitems. why?

hey Thanks ,

 

I will apply this code let you know the result for this..

Thanks,

Suresh

Kuix technical support » take the som much of time for displaying the Lisitems. why?

Can you give me the small example code for this. I added statically through java code. but how can i added list dynamically? Please done mind..

 

Regards,
Suresh A

Kuix technical support » take the som much of time for displaying the Lisitems. why?

Hi Tuukku,

 

Thanks for the reply. This was also working time lagging display.

 

But what u gave that should be working like same as Before what i used with single dataprovider. IF you want to see my dataprovider code i will post here.

 

Regards,
Suresh A

Kuix technical support » take the som much of time for displaying the Lisitems. why?

hi Tuukka,

I applied like this in onAdded() method. but I got the last element of the vector displayed for all listitem place. Please if you have any idea tell me.

 

try {

            for (int i = 0; i < getcountrylistvec.size(); i++) {
               // countrylistdataprovider.SetCountryList((String) getcountrylistvec.elementAt(i));
                countrylistdataprovider.CountryName((String) getcountrylistvec.elementAt(i));
                countrylistdataprovider.addItem(countrylistdataprovider.COUNTRY_LIST_PROPERTY, countrylistdataprovider);
            
            }

        } catch (Exception ex) {
            ex.printStackTrace();
        }

Kuix technical support » take the som much of time for displaying the Lisitems. why?

Thanks Tuukka,

what you said na, that will be i implement and i will tell to you.

 

For getting the middle of the Listitem, i implemented the search field on the screen. if i press any character key based on this key focus shoulb goes on to the related character listitem.

Regards,
Suresh A

Kuix technical support » take the som much of time for displaying the Lisitems. why?

SetCountryList is the addthe listitem to Dataprovider display property. If i am doing anything wrong. just help me for correct solution.. 

 

 

public boolean SetCountryList(String name) {
        if (name != null && name.length() > 0) {

            CountryListDataProvider countryList = new CountryListDataProvider();
            countryList.CountryName(name);

            addItem(COUNTRY_LIST_PROPERTY, countryList);


            return true;
        }

Kuix bug report » Time lagging to display more number of listitems on the screen

Hi Kuix Team,

I dont know this should be a bug for Kuix or Our code problem.  I considered as  this was a Kuix Bug. So i posted my doubt here. Actually i am having the nearly 250 lisitems . So these listitems i displayed on the screen dynamically thorugh xml file and Dataprovider(based on Kapricekuix project).

Listitems displayed well on the screen. but Its taking to time nearly 2 to 5 minutes for display on the screen(dependent on the listitems numbers). If less listitems screen display fastly, if more number of listiems for screen display taking time.

Even i tested in Kaprice kuix project. there also takinf the time to display.. So  i considered as a performance issue for KUix. So i posted here.

If i am wrong i would like to tell Sorry.. and Let me know the exact problem for this.. Help me..

 

Regards,
Suresh A

 

 

Kuix technical support » take the som much of time for displaying the Lisitems. why?

Hi, thanks for reply.

If we are reading the Contacts from device. These are also considered as a lisitems. So contacts we will have 1000 s contacts na. So how we will display these contact listitems on the screen.

Mainly here i got the time lagging for display the screen. and i am having the nearly 250 countrylist names i displayed on the screen. So i thought now you can understand my problem and Help me for solve this issue..help...

 

Regards,

Suresh A

Kuix technical support » take the som much of time for displaying the Lisitems. why?

Hi All,

 

I am trying to display the Listitems on the screen. Here i displayed the 400 listitems thorugh dataprovider on the screen. I used xml file for this(Not through java code).

 

I called these listiems display in onAdded() method. its taking the very much lot of time to display on the screen. here i written the code for onAdded() method code for display listiems.

from country list vec i displayed the  listiems. through dataprovider i displayed.

 public void onAdded() {

        try {

            for (int i = 0; i < getcountrylistvec.size(); i++) {
                countrylistdataprovider.SetCountryList((String) getcountrylistvec.elementAt(i));
            }

        } catch (Exception ex) {
            ex.printStackTrace();
        }


        showScreen();

    }

For this type of listitems display its taking the 3 t0 6 minutes. I didnt understood whats going on here.

 

Here how can i solve thse problem for displaying listitem screen within time. Please help me on this.

 

Regards,
Suresh A

Kuix technical support » Dataprovider lost?

HI Morgan,

 

We also faced the same problem. Even i didnt understood y it will happen like this. But we used in calling new frame and come back to the screen,

New screen call time:

Kuix.getFrameHandler().pushFrame(new FrameB());

ComeBack time:

 

Kuix.getFrameHandler().removeFrame(this);

Kuix.getFrameHandler().pushFrame(new FrameA());

 

But here we are having the issues for getting the frame instance.

 

Regards,

Suresh A

Kuix technical support » Using a Resource File

Hi Kalmeo4life,

Accroding to my knowledge in u r XMl fine u have to declare the bg-image on screen tag.

 

<screen style="bg-image:url(bg.png)">

</screen >

Exactly i dont know but this should be use ful for u. Because in every screen we are loading the each xml file for creating the frame. in css file we set the default background image.  I guess in every xml we can also declare the bg-image style attribute>

 

Regards,

Suresh A

Kuix technical support » Set the focus on Tab Items.

Hi All,

Mainly this should be implemented in Blackberry device.

I displayed on the screen 3 tabitems. In that one TabItem i displayed the Lisitems through dataprovider. Here i implemented the search field option.

Here based on Blackberry API i got the char key and i set the focus on the Lsitems based on this char key using the KeyListeners. I set the focus like this, i written the code below.

              listiem=screen.getWidget(element);
              screen.getFocusManager().requestFocus(listiem);
              scrolpane=screen.getFocusManager().findFirstScrollContainerParent(listiem);
              scrolpane.bestScrollToChild(listiem,false);

Based on the Lsitem ID i got the widget. based on that widget i set the focus.

But After setting this focus when ever i select the Left key and Right Key focus was not goes back to the Tabitems movement. Focus should be still on the Listitems.

So How can i retrieve the focus back on to the tabitems for the selection of left key and right key. please help me on this, i am struggling from past two days.

Regards,

Suresh A

Kuix technical support » Keep the selected item position in a list after an update

HI Morgan,

 

Can you explain your problem clearly. i ant understood what you said here. If i knows surely i will help you on this.

 

Regards,

Suresh A

Kuix technical support » Attribute tag (renderer) can't enclose an other tag

Hi kalmeo4life,

 

I saw the u r xml file. There u didnt close the end renederer Tag.</__renderer>

       <list id="list">
            <_renderer>
            <![CDATA[
            <listItem style="layout:borderlayout;gap:5 0" onAction="show">
                <picture src="shop_list.png" style="layout-data:bld(west)" />
                <container style="layout:inlinelayout(false,fill)">
                    <text>@{name}</text>
                    <text class="small">${date}</text>
                </container>
                <text style="layout-data:bld(east)" class="small">(@{numProducts})</text>
            </listItem>
            ]]>
            </_renderer>
            <_items>@{shopLists}<_items>
        </list>

do this xml base i guess it will work for you. Enjoy u r work.

Regards,

Suresh

 

Kuix technical support » Two Focusablewidgets at a time on the screen

Hi All,

I am trying to display the textfield and listitems on the same screen. Here I need to display the always onfocus or cursor stay with textfield and another onfocus stay on the listitems. Means always i enter to text in the textfield and always focus willbe disaplayed on the listitems.

                       and I need to set the focuses just like search the items in real device. Like searching the contacts like.. How can i set the always one focus on search textfield and how it will show to the focus for lisitems based on the textfield entered character. please give me the any idea on this...

 

Regards,

Suresh A