Problem using ContainerDetailsColumn editPolicyType

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem using ContainerDetailsColumn editPolicyType

Long Haired David
Hello.

I have many years experience of VAST including window creation but I have never needed to use a drop down in a containerDetailsColumn.

I have set the editPolicyType to ComboBox and loaded up the list of items that I want to display for selection. The result is that each box contains the list but as a printOn for OrderedCollection.

If you select the drop down, you will see each item individually and can select one. After selecting one, the result looks as in this image:


It seems that I have to add my items to to the editPolicyItems and that this must be entered when defining the window. I can't hard code these items as they are dependent upon the client entering data dynamically elsewhere. Is there any way that I can add my list of items at the "aboutToOpenWidget action which is where I do all my other initialisations?


--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" 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].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
David
Totally Objects
Doing Smalltalk since 1989
Reply | Threaded
Open this post in threaded view
|

Re: Problem using ContainerDetailsColumn editPolicyType

Long Haired David
To be more explicit, I can add items during the initialisation method but what I get is shown above - a single line representation of an ordered collection. If I want to produce a proper drop down, it is then that I have to enter them into the editPolicyItems box in the column configuration.

David

On Wednesday, October 15, 2014 10:33:13 PM UTC+1, Totally Objects wrote:
Hello.

I have many years experience of VAST including window creation but I have never needed to use a drop down in a containerDetailsColumn.

I have set the editPolicyType to ComboBox and loaded up the list of items that I want to display for selection. The result is that each box contains the list but as a printOn for OrderedCollection.

If you select the drop down, you will see each item individually and can select one. After selecting one, the result looks as in this image:

<a href="https://lh4.googleusercontent.com/-qA_ijL50yaQ/VD7nBXnQTUI/AAAAAAAAACE/pUhaP8FemXs/s1600/Untitled.jpg" style="margin-left:1em;margin-right:1em" target="_blank" onmousedown="this.href='https://lh4.googleusercontent.com/-qA_ijL50yaQ/VD7nBXnQTUI/AAAAAAAAACE/pUhaP8FemXs/s1600/Untitled.jpg';return true;" onclick="this.href='https://lh4.googleusercontent.com/-qA_ijL50yaQ/VD7nBXnQTUI/AAAAAAAAACE/pUhaP8FemXs/s1600/Untitled.jpg';return true;">


It seems that I have to add my items to to the editPolicyItems and that this must be entered when defining the window. I can't hard code these items as they are dependent upon the client entering data dynamically elsewhere. Is there any way that I can add my list of items at the "aboutToOpenWidget action which is where I do all my other initialisations?


--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" 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].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
David
Totally Objects
Doing Smalltalk since 1989
Reply | Threaded
Open this post in threaded view
|

Re: Problem using ContainerDetailsColumn editPolicyType

Richard Sargent
Administrator
On Thursday, October 16, 2014 2:39:23 PM UTC-7, Totally Objects wrote:
To be more explicit, I can add items during the initialisation method but what I get is shown above - a single line representation of an ordered collection. If I want to produce a proper drop down, it is then that I have to enter them into the editPolicyItems box in the column configuration.

What does the relevant section of the #abtBuildInternals look like?
 

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" 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].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Problem using ContainerDetailsColumn editPolicyType

fiona.shaw@feenyx.com.au
In reply to this post by Long Haired David
hi David

We do this kind of thing a lot in our application and we use the aboutToBeginEdit event on the column to set the editPolicy items. This will set the list every time the column is clicked on, perhaps overkill in your case.  Hope this helps.

cheers
Fiona.

On Thursday, October 16, 2014 8:33:13 AM UTC+11, Totally Objects wrote:
Hello.

I have many years experience of VAST including window creation but I have never needed to use a drop down in a containerDetailsColumn.

I have set the editPolicyType to ComboBox and loaded up the list of items that I want to display for selection. The result is that each box contains the list but as a printOn for OrderedCollection.

If you select the drop down, you will see each item individually and can select one. After selecting one, the result looks as in this image:

<a href="https://lh4.googleusercontent.com/-qA_ijL50yaQ/VD7nBXnQTUI/AAAAAAAAACE/pUhaP8FemXs/s1600/Untitled.jpg" style="margin-left:1em;margin-right:1em" target="_blank" onmousedown="this.href='https://lh4.googleusercontent.com/-qA_ijL50yaQ/VD7nBXnQTUI/AAAAAAAAACE/pUhaP8FemXs/s1600/Untitled.jpg';return true;" onclick="this.href='https://lh4.googleusercontent.com/-qA_ijL50yaQ/VD7nBXnQTUI/AAAAAAAAACE/pUhaP8FemXs/s1600/Untitled.jpg';return true;">


It seems that I have to add my items to to the editPolicyItems and that this must be entered when defining the window. I can't hard code these items as they are dependent upon the client entering data dynamically elsewhere. Is there any way that I can add my list of items at the "aboutToOpenWidget action which is where I do all my other initialisations?


--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" 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].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Problem using ContainerDetailsColumn editPolicyType

jtuchel
In reply to this post by Long Haired David
David,

are you sure you're not messing with something like a missing yourself?
I know this sounds as if I was talking to an ST newbie, but maybe the return of your adding method is the collection and that makes it's way into the list of items???

Joachim


Am Donnerstag, 16. Oktober 2014 23:39:23 UTC+2 schrieb Totally Objects:
To be more explicit, I can add items during the initialisation method but what I get is shown above - a single line representation of an ordered collection. If I want to produce a proper drop down, it is then that I have to enter them into the editPolicyItems box in the column configuration.

David

On Wednesday, October 15, 2014 10:33:13 PM UTC+1, Totally Objects wrote:
Hello.

I have many years experience of VAST including window creation but I have never needed to use a drop down in a containerDetailsColumn.

I have set the editPolicyType to ComboBox and loaded up the list of items that I want to display for selection. The result is that each box contains the list but as a printOn for OrderedCollection.

If you select the drop down, you will see each item individually and can select one. After selecting one, the result looks as in this image:

<a href="https://lh4.googleusercontent.com/-qA_ijL50yaQ/VD7nBXnQTUI/AAAAAAAAACE/pUhaP8FemXs/s1600/Untitled.jpg" style="margin-left:1em;margin-right:1em" target="_blank" onmousedown="this.href='https://lh4.googleusercontent.com/-qA_ijL50yaQ/VD7nBXnQTUI/AAAAAAAAACE/pUhaP8FemXs/s1600/Untitled.jpg';return true;" onclick="this.href='https://lh4.googleusercontent.com/-qA_ijL50yaQ/VD7nBXnQTUI/AAAAAAAAACE/pUhaP8FemXs/s1600/Untitled.jpg';return true;">


It seems that I have to add my items to to the editPolicyItems and that this must be entered when defining the window. I can't hard code these items as they are dependent upon the client entering data dynamically elsewhere. Is there any way that I can add my list of items at the "aboutToOpenWidget action which is where I do all my other initialisations?


--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" 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].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Problem using ContainerDetailsColumn editPolicyType

Richard Sargent
Administrator

That's a darned good question. There's something that is responsible for the cell content showing the entire collection.
:-)

On Oct 16, 2014 11:59 PM, "Joachim Tuchel" <[hidden email]> wrote:
David,

are you sure you're not messing with something like a missing yourself?
I know this sounds as if I was talking to an ST newbie, but maybe the return of your adding method is the collection and that makes it's way into the list of items???

Joachim


Am Donnerstag, 16. Oktober 2014 23:39:23 UTC+2 schrieb Totally Objects:
To be more explicit, I can add items during the initialisation method but what I get is shown above - a single line representation of an ordered collection. If I want to produce a proper drop down, it is then that I have to enter them into the editPolicyItems box in the column configuration.

David

On Wednesday, October 15, 2014 10:33:13 PM UTC+1, Totally Objects wrote:
Hello.

I have many years experience of VAST including window creation but I have never needed to use a drop down in a containerDetailsColumn.

I have set the editPolicyType to ComboBox and loaded up the list of items that I want to display for selection. The result is that each box contains the list but as a printOn for OrderedCollection.

If you select the drop down, you will see each item individually and can select one. After selecting one, the result looks as in this image:


It seems that I have to add my items to to the editPolicyItems and that this must be entered when defining the window. I can't hard code these items as they are dependent upon the client entering data dynamically elsewhere. Is there any way that I can add my list of items at the "aboutToOpenWidget action which is where I do all my other initialisations?


--
You received this message because you are subscribed to a topic in the Google Groups "VA Smalltalk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/va-smalltalk/wDmoexJJw4k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "VA Smalltalk" 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].
Visit this group at http://groups.google.com/group/va-smalltalk.
For more options, visit https://groups.google.com/d/optout.