Sorting in ArrayField widget.

Hi,
We are using ArrayField widget. Forte does not provide any in-built sorting facility
in ArrayField as it does in ListView.
Is there an easy way to do that?
If we implement our own sorting algorithm then how do we make it generic method
for different arrays.
We can use GetChildInCell to fetch the values generically, but it works only for
visible rows.
Any pointers in this direction are appreciated.
Kapil Tyagi
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Hi,
I would be interested in how the objects are sorted i.e. on which attribute the objects will get sorted.
On runtime only it will be known that on which attribute the objects is to be sorted. The problem is compounded further because the data type of attributes is also different.
Thanks for all your replies. I have designed/written a generic reusable code for sorting in an ArrayField widget. On double clicking the column title the array gets sorted on the corresponding column.
Thanks and regards
Kapil Tyagi
From: David Foote[SMTP:[email protected]]
Reply To: David Foote
Sent: Tuesday, April 13, 1999 12:55 PM
To: [email protected]
Subject: RE: Sorting in ArrayField widget.
There is a more flexible solution with less code duplication that has
worked well for us.
Create a class SortService with a method with the following signature:
Sort(list:Array of Object, stategy:ComparisonStrategy):Array of Object
create a class called ComparisonStrategy with a method with the
following signature:
Compare(a:Object,b:Object):integer
For each class that needs to be sorted, define a new
ComparisonStrategy sub-class that overrides the Compare()
method. Inside the overridden Compare() method, cast a and b to the
correct class and compare them by whatever criteria is appropriate.
If a>b return 1, if a=b return zero, if a<b return -1. Inside the
SortService.Sort() method, call strategy.Compare(a=object1,b=object2)
each time you need to compare two objects.
This is quite similar to the C-library's implementation of the qsort
function:
void qsort( void *base, size_t num, size_t width, int (__cdecl
compare )(const void elem1, const void *elem2 ) );
compare( (void *) elem1, (void *) elem2 );
It is also a good use of the Strategy design pattern. The one method,
Sort(), will now sort any list of objects for which you pass in an
appropriate ComparisonStrategy sub-class. The objects to be sorted do
not have to implement any extra interface or inherit from any
particular class. If you are interested and need more help I can
probably lay my hands on some source.
P.S. This sort should be applied to the data array not the
arrayfield.
David N. Foote
----Original Message Follows----
What you need is a set of sort methods, one for each basic data type
and a wrapper method which discovers the data type of the column to be
sorted and calls the appropriate Sort method.
Create a group of sort methods depending on the data type
e.g..
sortInt( p_Arr : Array of Object, Col : integer ),
SortString( p_Arr : Array of Object, Col : integer ) ,
SortYour4GLObject( p_Arr : Array of Object, Col : integer ) etc.
Then create a wrapper method called Sort( p_Arr : Array of Object,
Col :
integer ).
In this method, look at p_Arr[Col].ClassName to find out the datatype
and appropriately call the method which sorts that data type
i.e..,
SortInt() if ClassName is qqsp_integer,
SortString() if ClassName is qqsp_string
SortYour4GLObject() if ClassName is Your4GLClass etc.
In each of the sort method, implement the sort algorithm on the
p_Arr[ Col ] values.
Good luck,
Ajith Kallambella. M
Fort&eacute; Systems Engineer,
International Business Corporation.
-----Original Message-----
From: Savory, Mark [mailto:[email protected]]
Sent: Thursday, March 11, 1999 9:54 AM
To: 'Kapil Tyagi'; '[email protected]'
Subject: RE: Sorting in ArrayField widget.
Kapil,
Since you can't inherit from Array, you can create a helper for
sorting
arrays in general. Some helper class would have a method called:
SomeHelperClass.Sort(list: Array of SomeInterface, column : int):Array
of
SomeInterface. The SomeInterface interface would have a virtual
method
called:
SomeInterface.GetColumn(col:int):DataValue. All your classes that
would be
in an array to sort would have to implement the SomeInterface
interface.
Implementing the GetColumn method would require that your class
attributes
inherit from DataValue(TextData, DoubleData, IntegerData, etc.) or the
GetColumn method could do a conversion. The SomeHelperClass.Sort
method
could then sort the appropriate column of the array.
Mark Savory
GTE Gov. Sys.
-----Original Message-----
From: Kapil Tyagi [mailto:[email protected]]
Sent: Thursday, March 11, 1999 4:02 AM
To: '[email protected]'
Subject: Sorting in ArrayField widget.
Hi,
We are using ArrayField widget. Forte does not provide any in-built
sorting
facility
in ArrayField as it does in ListView.
Is there an easy way to do that?
If we implement our own sorting algorithm then how do we make it
generic
method
for different arrays.
We can use GetChildInCell to fetch the values generically, but it
works only
for
visible rows.
Any pointers in this direction are appreciated.
Kapil Tyagi
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
Get Free Email and Do More On The Web. Visit http://www.msn.com
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Similar Messages

  • Re: Sorting in ArrayField widget.

    Hi,
    If you need a little sample about sorting Arrays or Listviews you can find
    one on http://perso.club-internet.fr/dnguyen/
    It shows how to use a QuickSort generic class (the source code of that class
    is not delivered, but you can find a quicksort sample class at forte.com) :
    - Sub-class the class
    - Overwrite DoSortExpLow and DoSortExpSup
    - In your user class, call QuickSort(Self.SortArray, 1,
    Self.SortArray.Items, pcol, Self.SortListMode) where SortArray is the Array
    to sort, pCol is a parameter that defines the column and SortListMode
    defines if you want an ascending or descending sort.
    Hope this helps,
    Daniel Nguyen
    Freelance Forte Consultant
    Url : http://perso.club-internet.fr/dnguyen/
    David Foote a &eacute;crit:
    There is a more flexible solution with less code duplication that has
    worked well for us.
    Create a class SortService with a method with the following signature:
    Sort(list:Array of Object, stategy:ComparisonStrategy):Array of Object
    create a class called ComparisonStrategy with a method with the
    following signature:
    Compare(a:Object,b:Object):integer
    For each class that needs to be sorted, define a new
    ComparisonStrategy sub-class that overrides the Compare()
    method. Inside the overridden Compare() method, cast a and b to the
    correct class and compare them by whatever criteria is appropriate.
    If a>b return 1, if a=b return zero, if a<b return -1. Inside the
    SortService.Sort() method, call strategy.Compare(a=object1,b=object2)
    each time you need to compare two objects.
    This is quite similar to the C-library's implementation of the qsort
    function:
    void qsort( void *base, size_t num, size_t width, int (__cdecl
    compare )(const void elem1, const void *elem2 ) );
    compare( (void *) elem1, (void *) elem2 );
    It is also a good use of the Strategy design pattern. The one method,
    Sort(), will now sort any list of objects for which you pass in an
    appropriate ComparisonStrategy sub-class. The objects to be sorted do
    not have to implement any extra interface or inherit from any
    particular class. If you are interested and need more help I can
    probably lay my hands on some source.
    P.S. This sort should be applied to the data array not the
    arrayfield.
    David N. Foote
    ----Original Message Follows----
    What you need is a set of sort methods, one for each basic data type
    and a wrapper method which discovers the data type of the column to be
    sorted and calls the appropriate Sort method.
    Create a group of sort methods depending on the data type
    e.g..
    sortInt( p_Arr : Array of Object, Col : integer ),
    SortString( p_Arr : Array of Object, Col : integer ) ,
    SortYour4GLObject( p_Arr : Array of Object, Col : integer ) etc.
    Then create a wrapper method called Sort( p_Arr : Array of Object,
    Col :
    integer ).
    In this method, look at p_Arr[Col].ClassName to find out the datatype
    and appropriately call the method which sorts that data type
    i.e..,
    SortInt() if ClassName is qqsp_integer,
    SortString() if ClassName is qqsp_string
    SortYour4GLObject() if ClassName is Your4GLClass etc.
    In each of the sort method, implement the sort algorithm on the
    p_Arr[ Col ] values.
    Good luck,
    Ajith Kallambella. M
    Fort&eacute; Systems Engineer,
    International Business Corporation.
    -----Original Message-----
    From: Savory, Mark [mailto:[email protected]]
    Sent: Thursday, March 11, 1999 9:54 AM
    To: 'Kapil Tyagi'; '[email protected]'
    Subject: RE: Sorting in ArrayField widget.
    Kapil,
    Since you can't inherit from Array, you can create a helper for
    sorting
    arrays in general. Some helper class would have a method called:
    SomeHelperClass.Sort(list: Array of SomeInterface, column : int):Array
    of
    SomeInterface. The SomeInterface interface would have a virtual
    method
    called:
    SomeInterface.GetColumn(col:int):DataValue. All your classes that
    would be
    in an array to sort would have to implement the SomeInterface
    interface.
    Implementing the GetColumn method would require that your class
    attributes
    inherit from DataValue(TextData, DoubleData, IntegerData, etc.) or the
    GetColumn method could do a conversion. The SomeHelperClass.Sort
    method
    could then sort the appropriate column of the array.
    Mark Savory
    GTE Gov. Sys.
    -----Original Message-----
    From: Kapil Tyagi [mailto:[email protected]]
    Sent: Thursday, March 11, 1999 4:02 AM
    To: '[email protected]'
    Subject: Sorting in ArrayField widget.
    Hi,
    We are using ArrayField widget. Forte does not provide any in-built
    sorting
    facility
    in ArrayField as it does in ListView.
    Is there an easy way to do that?
    If we implement our own sorting algorithm then how do we make it
    generic
    method
    for different arrays.
    We can use GetChildInCell to fetch the values generically, but it
    works only
    for
    visible rows.
    Any pointers in this direction are appreciated.
    Kapil Tyagi
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    Get Free Email and Do More On The Web. Visit http://www.msn.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi,
    If you need a little sample about sorting Arrays or Listviews you can find
    one on http://perso.club-internet.fr/dnguyen/
    It shows how to use a QuickSort generic class (the source code of that class
    is not delivered, but you can find a quicksort sample class at forte.com) :
    - Sub-class the class
    - Overwrite DoSortExpLow and DoSortExpSup
    - In your user class, call QuickSort(Self.SortArray, 1,
    Self.SortArray.Items, pcol, Self.SortListMode) where SortArray is the Array
    to sort, pCol is a parameter that defines the column and SortListMode
    defines if you want an ascending or descending sort.
    Hope this helps,
    Daniel Nguyen
    Freelance Forte Consultant
    Url : http://perso.club-internet.fr/dnguyen/
    David Foote a &eacute;crit:
    There is a more flexible solution with less code duplication that has
    worked well for us.
    Create a class SortService with a method with the following signature:
    Sort(list:Array of Object, stategy:ComparisonStrategy):Array of Object
    create a class called ComparisonStrategy with a method with the
    following signature:
    Compare(a:Object,b:Object):integer
    For each class that needs to be sorted, define a new
    ComparisonStrategy sub-class that overrides the Compare()
    method. Inside the overridden Compare() method, cast a and b to the
    correct class and compare them by whatever criteria is appropriate.
    If a>b return 1, if a=b return zero, if a<b return -1. Inside the
    SortService.Sort() method, call strategy.Compare(a=object1,b=object2)
    each time you need to compare two objects.
    This is quite similar to the C-library's implementation of the qsort
    function:
    void qsort( void *base, size_t num, size_t width, int (__cdecl
    compare )(const void elem1, const void *elem2 ) );
    compare( (void *) elem1, (void *) elem2 );
    It is also a good use of the Strategy design pattern. The one method,
    Sort(), will now sort any list of objects for which you pass in an
    appropriate ComparisonStrategy sub-class. The objects to be sorted do
    not have to implement any extra interface or inherit from any
    particular class. If you are interested and need more help I can
    probably lay my hands on some source.
    P.S. This sort should be applied to the data array not the
    arrayfield.
    David N. Foote
    ----Original Message Follows----
    What you need is a set of sort methods, one for each basic data type
    and a wrapper method which discovers the data type of the column to be
    sorted and calls the appropriate Sort method.
    Create a group of sort methods depending on the data type
    e.g..
    sortInt( p_Arr : Array of Object, Col : integer ),
    SortString( p_Arr : Array of Object, Col : integer ) ,
    SortYour4GLObject( p_Arr : Array of Object, Col : integer ) etc.
    Then create a wrapper method called Sort( p_Arr : Array of Object,
    Col :
    integer ).
    In this method, look at p_Arr[Col].ClassName to find out the datatype
    and appropriately call the method which sorts that data type
    i.e..,
    SortInt() if ClassName is qqsp_integer,
    SortString() if ClassName is qqsp_string
    SortYour4GLObject() if ClassName is Your4GLClass etc.
    In each of the sort method, implement the sort algorithm on the
    p_Arr[ Col ] values.
    Good luck,
    Ajith Kallambella. M
    Fort&eacute; Systems Engineer,
    International Business Corporation.
    -----Original Message-----
    From: Savory, Mark [mailto:[email protected]]
    Sent: Thursday, March 11, 1999 9:54 AM
    To: 'Kapil Tyagi'; '[email protected]'
    Subject: RE: Sorting in ArrayField widget.
    Kapil,
    Since you can't inherit from Array, you can create a helper for
    sorting
    arrays in general. Some helper class would have a method called:
    SomeHelperClass.Sort(list: Array of SomeInterface, column : int):Array
    of
    SomeInterface. The SomeInterface interface would have a virtual
    method
    called:
    SomeInterface.GetColumn(col:int):DataValue. All your classes that
    would be
    in an array to sort would have to implement the SomeInterface
    interface.
    Implementing the GetColumn method would require that your class
    attributes
    inherit from DataValue(TextData, DoubleData, IntegerData, etc.) or the
    GetColumn method could do a conversion. The SomeHelperClass.Sort
    method
    could then sort the appropriate column of the array.
    Mark Savory
    GTE Gov. Sys.
    -----Original Message-----
    From: Kapil Tyagi [mailto:[email protected]]
    Sent: Thursday, March 11, 1999 4:02 AM
    To: '[email protected]'
    Subject: Sorting in ArrayField widget.
    Hi,
    We are using ArrayField widget. Forte does not provide any in-built
    sorting
    facility
    in ArrayField as it does in ListView.
    Is there an easy way to do that?
    If we implement our own sorting algorithm then how do we make it
    generic
    method
    for different arrays.
    We can use GetChildInCell to fetch the values generically, but it
    works only
    for
    visible rows.
    Any pointers in this direction are appreciated.
    Kapil Tyagi
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    Get Free Email and Do More On The Web. Visit http://www.msn.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Mapping object attributes to ArrayField widget

    Is there a way to specify get/set methods for fields within an
    ArrayField widget instead of public attributes of the mapped type?
    We are trying to enforce strict encapsulation of our data objects, but
    it seems that the only way to display our data objects in an ArrayField
    widget is to bind each field in the ArrayField to a PUBLIC attribute of
    our object. I was hopeful that the virtual attribute would take care of
    this but apparently, the virtual attributes can only access public
    attributes on our class.
    An obvious solution to this is to retrieve the private attributes of our
    objects via their Get methods and then manually adding them to the
    ArrayField widget, but this seems to be a lot of wasted processing.
    Any thought would be greatly appreciated. Send replies directly to me at
    [email protected]
    Thanks,
    Van

    Hi,
    Refer your suggestion
    Confirm that
    4. The datatype for the field is same as the data type of the vo attribute.
    This is what I need to Solve.The datatypes are not similar
    I want to show Students Number in the table column
    DataType for the field in the Table is selected as "Number"
    In the View Object there is no datatype called "Number".So, I selcted "Integer".
    Now, how can I show VO attribute of type "Integer" in a table column of type "Number"..
    thanks,
    Gowtam

  • Sorting in an ArrayField

    Hi y'all:
    I may be missing something obvious, but I can't find a way to sort the
    items in an ArrayField widget. I see that sorting in a ListView widget
    is rather simple -- the widget does it for you (under 95 or NT), and the
    user will simply click on the column heading to choose the sort key.
    Will I need to load my array into a ListView field, or is there another
    way to specify my sort column for a basic ArrayField?
    Thanks,
    Brian

    Most of what you need is already written in the Java Collections Framework.
    http://java.sun.com/j2se/1.5.0/docs/guide/collections/index.html
    You need to write a compare function that implements
    the natural ordering you want.
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Comparable.html
    Then the Collections methods can do their work and provide
    you with a sorted list.
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html#sort(java.util.List)

  • Webapp to create html widgets (videos, maps, ...)

    Hi,
    I have started a little project, iBook Generator, to easily create all sorts of html widgets, ready to use in iBooks Author.
    Currently, you can create a widget to embed Youtube or Vimeo videos in one click, but I'm working on a lot more generator.
    I'd love to hear from you, if you're interested.
    You can try it here : http://ibooksgenerator.com

    Not sure if I can do this but I would like to see a widget to jump from one section or chapter to another section or chapter in the book. The widge would be a button or image button.

  • RE: A difficult problem using arrayfields.

    >
    The arrayfield widget has an attribute called bodygrid which is a
    compoundfield object containing the actual widgets, like the
    togglefield,
    in the visible rows of the array field.
    If you iterate through the children of the bodygrid and determine
    which child is in the right row and column for the cell you want,
    you can then change its state or other widget attributes.
    This technique is commonly used to highlight the selected row or cell
    in an array field.
    I'm aware of this technique. Our application uses highlightbars and this
    is exactly how we implemented them. However, when you code the following
    call:
    <arrayfield>.bodygrid.children[5].fillcolor = C_RED;
    you'll see the widget change color, but when you code
    <arrayfield>.bodygrid.children[5].state = FS_DISABLE;
    nothing happens. Somehow, forte won't allow you to change the state of a
    widget in this context. Is there a way around this?
    Pascal Rottier
    Origin Rotterdam
    Nederland

    >
    I ran in to the same problem a long time ago (Version 1-H)..
    My solution then was to trap for click events or other row-change events
    in the array field and set the state of the entire column (using the
    strange syntax they have for columns in array fields) to whatever state
    I wanted for the particular cell the user just went in to..
    To the user, it acted as if some cells were modifiable and some were
    not. Note that DISABLED doesn't allow click events at all, making it
    impossible to click on a different row which you could edit. I think I
    used "VIEW" state..
    Hope this helps.The user can click the togglefield without first entering the row. It's
    even possible that the arrayfield doesn't have the focus, when the user
    clicks the togglefield. In other words, with this technique you can
    disable the field AFTER it has been altered. Not before. The way I
    solved it now, is to trap the clickevent, check if it is legal for this
    row and if not, turn the field back to false. Now the user has a field
    that doesn't look disabled (since it isn't), but behaves like it. The
    only drawback is, that often you'll see the x apear for a microsecond
    before it disappears again.
    Pascal Rottier
    Origin Netherlands/Rotterdam

  • Using headers as references - issues

    are other people having lots of issues using headers as references?
    the 2 main problems i see are:
    - in simple ( e.g. a+b/c) type formulae, numbers can get confused when it references absolute cells, i think this is caused by the header containing spaces, or other 'interesting' characters, when you click on the cells, as you are adding them, numbers generates 'invalid cell references'
    - when using functions (e.g. sum) ranges cant be made up of 'absolute references' e.g. if i a total column, e.g. i want to sum columns a-z e.g. aa2=sum(a2:z2). numbers gets 'irritated' it tries to substitute the headings if you use the mouse, - but then says invalid cell reference
    if you do sum(heading name) - numbers complains, if you put this in the same column... as it tries to include it self in the sum ... errr... couldnt it exclude that cell ... would be nice if we could have sum(row name ) and sum(column name) as short cuts, rather than having to select explicit ranges
    and autofill, please please please, give us a keyboard shortcut ... how about if you copy one cell, and select to paste into multipe, it fills them all ... thats the kind of neat trick we expect of apple
    (note: im using english, as i know others are saying problems with some other languages)
    Message was edited by: thetechnobear

    I'd like to second this suggestion. Vehemently.
    When you throw in the "Sort and FIlter" widget (which rocks, thanks!) you're always going to be rearranging the top and bottom row in that particular table. So a SUM(B2:B10) might become a SUM(B4:B5) on a moment's notice. But often, the only reason you're using a range at all is to say "SUM the Whole Column", or SUMIF, or whatever. It would be very nice if anywhere that accepted a RANGE accepted things that can be reasonably interpreted into ranges - like "Column B"... excluding the header, naturally.

  • How to avoid double-click to click-box

    Hello,
    until now I did not find a solution for this problem:
    I have created a training course for a specific application, and in this coure are some click boxes on which the user should click. On many click boxes should the user click only once but if he double-click the click box, in real application nothing happens. There is only one way to succes the action - one click. But in captivate when the user double-click the click box instead of one click it evaluate as success action (the click box is set only to one click, double-click checkbox is not checked).
    So my question is, is there any way how to avoid double-click in cases where the user should click only once? Or in case he double-click the click box to show failure caption?
    Many thanks.
    Lukas

    Hi all
    Interesting thread. Unfortunately, what would be needed here is some sort of a widget that would run some internal timer. Sure, you can try multiple Click Boxes and configure one with a Single Click and one with a Double Click. But the problem with that (as I see it) is regardless of what you might try, the Single Click will win out every time. Thus you would need a widget of some sort that would "listen" for a Double Click and respond appropriately.
    Tough call... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML   Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • RE: Multiple Selection - there is a way

    Hi,
    There is a way to provide multiple selection (Highlighting) of rows in Array widget. No need to provide toggle field etc. to show selection of a row. You can exactly do what you want in ArrayField widget i.e. using Shift-click and ctrl-click key. We have implemented this in our project.
    I can give you the direction if you want to use the ArrayField Widget. I have not found any way to select and highlight multiple rows in a ListView Widget.
    Kapil Tyagi
    From: [email protected][SMTP:[email protected]]
    Reply To: [email protected]
    Sent: Thursday, March 18, 1999 1:53 AM
    To: [email protected]
    Subject: Multiple Selection
    Is there a way to provide Windows-style muiltiple item selection
    capabilities for the ListView widget. I would like to be able to click an
    item in a list and then use shift-click or cntrl-click to select multiple
    rows. Can this be done in Forte? One alternative is to use an ArrayField
    and add a toggle field/boolean column. But this is not exactly what I am
    looking for.
    Eric Rasmussen
    Online Resources &
    Communications Corporation
    (703) 394-5128
    [email protected]
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    which os are you using?
    If you are using Vista and XP, you can set this by going to power setting by right clicking on the desktop, then click power, there is a feature that tells how long the laptop idles before going to sleep by itself. 
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • How to make a String with a line break?

    I want to insert a line break into a strhing...i am trying to do this using a Stringbuffer the following way:
    name = new StringBuffer().append("something").append('\n').append("else").toString();
    but it doesnt' seem to be working.
    any suggestions??
    Andrew

    that was just an example for testing purposes...if
    you read my posts.....
    i said:
    "i am passing a string to my corel template creator
    which is made in java and creates a template in Corel
    Draw.
    but when the string is being passed to the template
    creator i want it to be able to distinguish whether
    the string is supposed to be 2 lines or 1."
    i see zero correlation between that and HTML
    AndrewYour posts thus far strongly suggest that this text will utimately be HTML that will be rendered by a browser. I don't know what this Corel template is, but based on the other stuff you've said, I assumed it was some sort of HTML page template.
    If the text will ultimately be HTML that is rendered by a web browser, then the Corel stuff is irrelevant (unless the Corel template is a JSP or other dynamic page generator that lets you specify by some other means where to put line breaks, in which case you need to look at Croel's docs), and you need to insert <br> or <p> or use <pre> tags.
    If the Corel template is some sort of Java widget and you won't be rendering HTML with a web browser, then look at the docs for the Corel template, or contact Corel tech support.

  • The Starting Trials and Tribulations of Windows 7 to OS X Lion...

    Hmmm...  I'll try not to make a habit of this before looking at manuals which I cannot access until I actually setup my MBP.
    What do you call the gadget desktop off to the left of the main desktop?  As far as that goes you probably don't refer to the desktop as a 'desktop' either--my bad--tell Bill Gates all about it.
    1. Anyway, in that side gadget desktop is there any way to configure it to look like an extension of the main desktop?  The dark gray mat pattern is so 'bland'.
    2. Are there more 'colorful' 'functional' calendar, weather, calculator, clocks, and other gadgets that can be used from Apple and/or 3rd parties?
    3. Can any of these gadgets be moved to the main desktop and this side desktop closed down if not needed or used?
    I'll stop here because it is obvious to me even that I 'Don't Know Jack' about the MBP yet.  But this is a perfect example of what I'm going to be getting into and a perfect example of what I maybe should stay away from.  I don't want to see how far I can go necessarily or how much time I can spend trying to make my MBP look like and act like Windows 7.  But surely there's something better I can easily do with that bland side panel with more functional and colorful gadgets?
    Oh, this is going to be fun isn't it?  At least I have learned how to deal with the lame Jive editor spell checker in these forums with some functionality--maybe.

    As nobody has actually pointed some of these things out.
    Desktop is the Desktop. Desktop is the metaphor for your entire workspace, although you have a Desktop folder which holds the things that sit on the Desktop. You can have multiple Desktops in Mission Control, but they each do not have their own separate folder.
    The space you are referring to is called the Dashboard. It holds Widgets. At one time, there was quite a big push in the development of Widgets. I don't know if that is true anymore as I rarely use it, now. You can kind of roll your own from a Web Page. In Safari, there is an Open in Dashboard command that allows you to select an element of the page to send to the Dashboard. Depending on the element, it may work fine as a sort-of standalone widget. If you click on the + at the bottom of the  Dashboard, you will see rows of all the Widgets stored on your Mac. You can add them to the Dashboard. There is also a button (More Widgets...) to take you to the Apple Widget download page. That is not all of them, but it is a pretty complete list.
    Have a look at the Tutorials here, http://www.apple.com/findouthow/mac/

  • Lost Stickies

    I just lost some valuable data in my Stickies (the desktop sort, not the widget). I had just backed up my StickiesDataBase file, so I retrieved it and swapped it for the new 4K file that had been generated in my Library. No joy. The Stickies app apparently tossed the reloaded database, since the file in my Library weighed in at only 4K.
    So, I tossed the Stickies preference file in my Library and tried the swap again (after rebooting). Still no go.
    I opened my retrieved StickiesDataBase in a text editor, hoping to fish out my data, but I just get a repeating pattern of gibberish.
    Any hope here, or did I happen to back up a StickiesDataBase that had already been corrupted? This last is a real possibility, since I just had one of those once-in-a-blue-moon MacOSX 10.4 crashes when I unplugged an old USB keyboard the other day. In fact, it was that system crash that led me to back up my User Library (and no, I didn't back it up before that because I sometimes do incredibly dense things).
    TIA
    Richard Hurley
    Dual 2GHz PPC G5   Mac OS X (10.4.8)  

    It's possible you backed up an already-corrupted StickiesDatabase file.
    The StickiesDatabase file is in a specific format, but the actual text of the sticky notes can be read therein. Open your backup StickiesDatabase in TextEdit and see if you can find or read any text therein corresponding to your sticky notes.
    In examining my own StickiesDatabase file in TextEdit, it looks like the text of a given sticky note begins with the string
    \f0\fs…
    followed by the text of the note, and ends with the string }#TXT.
    For example, here's the content of the StickiesDatabase for a sticky note containing the text "Testing a third note":
    \f0\fs28 \cf0 Testing a second note.}#TXT…
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Search Keywords

    So I just got Google Analytics working on my iWeb site and I'm now wanting to be sure that the site is loaded with all of the relevant search keywords. Will the text alone in the site's HTML do this for me? Should I make a hidden page full of keywords just to be sure I pick up any relevant words, which may not happen to be in my website text? Is there any way of strengthening the power of these words through some sort of web widget? Any advice?
    Thanks!

    You definitely DO NOT use hidden text on your site. If you do, search engines may detect this and ban your site from your search results.
    You do want to include your keywords in your website content. If there are keywords that are important to you, you should include them in the following ways in order for them to have more prominence.
    1) Web page titles. This is what appears at the top of your web browser. Make this unique for each page and contain your most important keywords.
    2) When linking to other pages on your web site. This is called anchor text and should include your most important keywords. For example, instead of writing;
    "click here" for more information
    Where click here is the linked text. You would write something like;
    Learn more about our "blue widgets"
    Where blue widgets (replaced with your keywords) would be the linked text.
    3) Bolding important keywords is also used by some people to try an emphasis certain text. Don't overdue this however.
    4) Anchor text from third party web sites linking to your web site should include your important keywords. This is hard to control but very important to have.

  • How to silence z1 without unlocking it???

    is there any way to add a widget or shortcut or whatever or  setting to enable users to silence the phone without the need to unlock the phone and going to qiuck settings to silence the phone???????? my old moto razr used to have some sort of a widget on the lock screen to enable me switching between vibration or silence or activating sound on the lock screen without the need to unlock the phone to silence it. does the z1 has such a widget or setting??????

    You need to unlock the phone and swipe down the notification bar and select Quick settings then tap the volume icon to turn sound off or twice to turn both audio and vibration off
    For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.   Richard P. Feynman

  • Aperture has just erased 1133 of my images!

    It all happened while consolidating a couple of project files in order to back them up. The 1133 files that Aperture has erased were from four recent shoots. The consolidation seemed to go fine but on checking the project thumbnails after everything was complete, all references are missing and the original files have been deleted by Aperture!
    This is very bad news for me as it represents a significant amount of recent work lost! Ironic because I was consolidating in order to back up via the vault system! It's now passed 4AM and I can't find a solution. Anybody have any ideas?

    Ugly, brutally ugly situation. Aperture "lost" one of my images ..... unsure it's lost any others, but it definitely lost one. That was bad, but 10,000?
    I noticed a gap in the sequence, and so I went investigating. Eventually I found that the image was in the Aperture Library (I use Managed) but had been dropped from the index system. The usual rebuild would not link it back in, so I had to remove it from the Aperture Library, and its supporting files, and then re-import it.
    For 10k images this might be painful, so the first thin g to try is to do a rebuild of the library. I assume you have.
    Next is to right-click on the aperture.aplibrary in finder and "Show Package Contents" Then navigate to a project with missing images and "Show Package Contents" again. Do you see a folder with the image name of an image(s) that is lost? If so, open it and you should see your image.
    Hopefully this is the case.
    The big issue now is identifying which images are lost, as outside of Aperture development creating some sort of super-widget to relink these into the Library, you'll have to use Finder to move them out and then import them back in normally.
    If somebody knows Applescript, and you could provide a list of all the missing file names, recovering the 10,000 is possible. Otherwise I would suggest recovering from you backups.
    G.

Maybe you are looking for

  • Where can I find information about exceptions and errors?

    I'm new to Java and sometimes run into errors that I don't understand. Is there a list of common errors somewhere that I could look at to at least get a general idea of what's causing my problem? for instance: I'm writing a little program where the u

  • "Full screen" flash video

    Hi, On this example page I have a few flv videos: http://www.oppnakanalenvaxjo.se/filmer/ I'd like to have the option of watching these videos in a larger player as well. How can I include a button that when the user clicks it the player is enlarged

  • Wily introscope 9.1

    Hi, Can anyone help me to install wily introscope 9.1 in solution manager 7.1. Thanks & Regards Preetam

  • Auditing inside a Trigger

    Inside my trigger I want to write for auditing purposes certain values that get updated. However I am unable to commit within my trigger. Is there some way to write certain values to another table when my trigger is fired?

  • Microsoft Windows Error When Trying To Sync

    When trying to sync my 4th gen nano with iTunes I always get a error window that appears saying: "Do you want to scan and fix STEVE's NANO (F:)?" There might be a problem with some files on this device or dics. This can happen if you remove the devic