Select1 - "empty list"

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Select1 - "empty list"

Jarosław Kowalewski
Hi,
I experienced behaviour that after loading form all select1 had "empty list". 
Of course, they are not empty because there is as many blank lines as items on the list but they are not visible. Only after choosing something all texts appear again.

What can be a reason for such behaviour? 

BR,
Jarek 

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Select1 - "empty list"

Alessandro  Vernet
Administrator
Hi Jarek,

I am not sure that I'm picturing what the situation is: would you be able to
share with a few screenshots, so we can get a better idea of what is going
on? Also, is this a form you created with Form Builder? Are the items in the
list "static" (entered in Form Builder), or loaded from a service?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Select1 - "empty list"

Jarosław Kowalewski
Hi, 
Thanks for the replay. 

More details:
1. I don't use form builder
2. list is static, list of items is placed in a form-resource instance
3. this behaviour is totally random even for the same form and the same browser 

Below print screen - list of countries. But the same appears also for two elements list like yes/no select1. But if such situation appears is applied to ALL select1 elements.

Example dictionary element
<dict id="skala14">
                           <item label="1" value="1"/>
                           <item label="2" value="2"/>
                           <item label="3" value="3"/>
                           <item label="4" value="4"/>
 </dict>

and field

<xf:select1 id="select1-9-control" appearance="full" ref="Prawdopodobienstwo">
                           <xf:label id="label-135-control" ref="$form-resources/labels/label_109"/>
                           <xf:itemset id="itemset-11-control"
                                       nodeset="$form-resources/labels/dictionaries/dict[@id = 'skala14']/item">
                              <xf:label id="label-136-control" ref="@label"/>
                              <xf:value id="value-12-control" ref="@value"/>
                           </xf:itemset>
                           <xf:alert ref="$fr-resources/detail/labels/alert"/>
                        </xf:select1>

In a private mail, I can send you a full code.

Can it be related to server performance or JS performance on the browser side?




BR,
Jarek

2018-06-21 3:12 GMT+02:00 Alessandro Vernet <[hidden email]>:
Hi Jarek,

I am not sure that I'm picturing what the situation is: would you be able to
share with a few screenshots, so we can get a better idea of what is going
on? Also, is this a form you created with Form Builder? Are the items in the
list "static" (entered in Form Builder), or loaded from a service?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Select1 - "empty list"

Alessandro  Vernet
Administrator
Hi Jarek,

This doesn't remind me of anything that I have seen before, so I can't say
what the problem is. Would you be able to create a *minimal* example that
reproduces the problem, that we can run here, and attach it a response so we
can look into it?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Select1 - "empty list"

Alessandro  Vernet
Administrator
Hi Jarek, following-up on this, in case this issue is still current for you,
you'll us know if manage to create an minimal example to reproduce it. It
really doesn't look like anything I've seen before. -Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Select1 - "empty list"

Jarosław Kowalewski
Hi Alex,
I haven't prepared test case yet, but now I understand the reason. It is a problem with a long list applied to select1. 
I had a country list (about 200 elements) in a repeat element. After adding next item. the time of page reloading increased. With only less than 10 items page was so slow that I had to wait for each select1 field dozens of seconds. And in the same time processor utilization increased from 20% to 50-60% and I have quite good one i7-6500U 2,5GHz.

I don't know how the mechanism works but it seems that ALL select1 fields are connected. E.g. to open select1 with a short list of items I had to wait as well. 
In debug console for JS each time all elements where listed - I suppose each time all lists are refreshed. 
I'm not sure if there is a debug in the background - see attachment. Should it be there? 
To solve temporarily the problem I changed "country" fields to input type and added to all other select1 attribute appearance="full". 

BR,
Jarek


2018-06-30 7:03 GMT+02:00 Alessandro Vernet <[hidden email]>:
Hi Jarek, following-up on this, in case this issue is still current for you,
you'll us know if manage to create an minimal example to reproduce it. It
really doesn't look like anything I've seen before. -Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

lista_rozwijalna.PNG (53K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Select1 - "empty list"

Alessandro  Vernet
Administrator
Hi Jarek,

I wouldn't expect 200 items in a dropdown to have an impact on the page
performance, but you might have put your finger on some combination of
features being used in such a way to cause a performance issue. My
suggestion would be for you to aim at creating the simplest example you can
that we can run on a verbatim install of Orbeon Forms 2017.2 to reproduce
that performance issue, and we can then take it from there.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Select1 - "empty list"

Jarosław Kowalewski
Hi Alex,
I remember about that case. I promise I'll prepare simple testcase because problem still exists. 
I can add that such dropdown list was in repeat two times and performence went down when was added 10+ rows. Of course in the whole form there were many other dropdowns also with longer list of items. 

Of course you can be right that the problem can be caused by some combination of the functionality. e.g. validdation and incremental="true" or xxf:analysis.calculate="true"

BR,
Jarek

2018-07-02 20:50 GMT+02:00 Alessandro Vernet <[hidden email]>:
Hi Jarek,

I wouldn't expect 200 items in a dropdown to have an impact on the page
performance, but you might have put your finger on some combination of
features being used in such a way to cause a performance issue. My
suggestion would be for you to aim at creating the simplest example you can
that we can run on a verbatim install of Orbeon Forms 2017.2 to reproduce
that performance issue, and we can then take it from there.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Select1 - "empty list"

Alessandro  Vernet
Administrator
Got it Jarek, and as you said, feel free to follow-up on this thread when you
manage to reproduce the issue with a simple test case, and we'll be happy to
look into it.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet