Skip to content

OnCellSelelect event

Forums Forums SIMPOL Programming OnCellSelelect event

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #185
    JD Kromkowski
    Participant

    OnCellSelect event NR: Actually, I use the oncellselect event of the grid to get that information. JDK: I’ve not been able to successfully get that to work with the data-aware grid. NR: Hmm. It should work. I will have a look see. JDK: OK, I’ve inspected the .sxf, and I don’t see anything written that corresponds to the OnCellSelect event of that data aware grid. And when I look at the generated .sma code I don’t see anything there either. And when I go back to the form in the editor, the on Events function don’t have anything in them. So it looks like whatever you put is not only being ignored but in fact is not being saved anywhere. I think this is a bug.

    #1814
    JD Kromkowski
    Participant

    Neil Robinson wrote:

    > I don't store the internal connections to the various events. That would
    > let anyone override them, which would immediately break the
    > functionality. Did you define an oncellselect event in the dialog? If
    > so, that should show up in the .sxf.

    I don't understand what you mean when you say "I don't store the internal
    connections to the various events"

    In form designer, in the properties dialog that creates the data aware
    grid, there is the list of events. You can ostensible add a name of a
    function.

    So, e.g. in the space next to oncellselect I type in "OnCell", presumably
    this means that when a cell is selected the function OnCell() is called.

    But it isn't being saved. In fact, if you go back and look at it, OnCell
    is gone. So it isn't being written to the .sxf, nor if you save to
    program is it being written to the generated .sma.

    So I really think this is a bug.

    I thought temporarily correct this by just manually adding:

    <oncellselect>OnCell</oncellselect>

    to the .sxf right above

    </sdf1datagrid>

    While I now get a "reaction" when I select a cell, I also get a error

    Error (39): Incorrect number of parameters
    Error: a statement of function "dataform1oncellselect" was executed
    unsuccessfully
    There is no source code available for the statement

    #1392
    Michael
    Keymaster

    JDK wrote:
    > OnCellSelect event
    >
    > NR: Actually, I use the oncellselect event of the grid to get that
    > information.
    >
    > JDK: I've not been able to successfully get that to work with the
    > data-aware grid.
    >
    > NR: Hmm. It should work. I will have a look see.
    >
    > JDK:
    >
    > OK, I've inspected the .sxf, and I don't see anything written that
    > corresponds to the OnCellSelect event of that data aware grid.
    >
    > And when I look at the generated .sma code I don't see anything there
    > either.
    >
    > And when I go back to the form in the editor, the on Events function
    > don't have anything in them.
    >
    > So it looks like whatever you put is not only being ignored but in
    > fact is not being saved anywhere.
    >
    > I think this is a bug.

    I don't store the internal connections to the various events. That would
    let anyone override them, which would immediately break the
    functionality. Did you define an oncellselect event in the dialog? If
    so, that should show up in the .sxf.

    Ciao, Neil

    #1485
    Michael
    Keymaster

    JDK wrote:
    > Neil Robinson wrote:
    >
    > In form designer, in the properties dialog that creates the data
    > aware grid, there is the list of events. You can ostensible add a
    > name of a function.
    >
    > So, e.g. in the space next to oncellselect I type in "OnCell",
    > presumably this means that when a cell is selected the function
    > OnCell() is called.
    >
    > But it isn't being saved. In fact, if you go back and look at it,
    > OnCell is gone. So it isn't being written to the .sxf, nor if you
    > save to program is it being written to the generated .sma.
    >
    > So I really think this is a bug.
    >
    > I thought temporarily correct this by just manually adding:
    >
    > <oncellselect>OnCell</oncellselect>
    >
    > to the .sxf right above
    >
    > </sdf1datagrid>
    >
    > While I now get a "reaction" when I select a cell, I also get a error
    >
    >
    > Error (39): Incorrect number of parameters Error: a statement of
    > function "dataform1oncellselect" was executed unsuccessfully There is
    > no source code available for the statement

    That does sound like a bug John, let me have a closer look at it. I will
    get back to you.

    Ciao, Neil

    #1486
    Michael
    Keymaster

    JDK wrote:
    > Neil Robinson wrote:
    >
    >> I don't store the internal connections to the various events. That
    >> would let anyone override them, which would immediately break the
    >> functionality. Did you define an oncellselect event in the dialog?
    >> If so, that should show up in the .sxf.
    >
    > I don't understand what you mean when you say "I don't store the
    > internal connections to the various events"
    >
    > In form designer, in the properties dialog that creates the data
    > aware grid, there is the list of events. You can ostensible add a
    > name of a function.
    >
    > So, e.g. in the space next to oncellselect I type in "OnCell",
    > presumably this means that when a cell is selected the function
    > OnCell() is called.
    >
    > But it isn't being saved. In fact, if you go back and look at it,
    > OnCell is gone. So it isn't being written to the .sxf, nor if you
    > save to program is it being written to the generated .sma.
    >
    > So I really think this is a bug.

    As it turns out, for whatever reason. oncellselect got left out of the
    support in the form designer. I have now added it in and tested it, so
    it will be there with the next quarterly release.

    > I thought temporarily correct this by just manually adding:
    >
    > <oncellselect>OnCell</oncellselect>
    >
    > to the .sxf right above
    >
    > </sdf1datagrid>
    >
    > While I now get a "reaction" when I select a cell, I also get a error
    >
    >
    > Error (39): Incorrect number of parameters Error: a statement of
    > function "dataform1oncellselect" was executed unsuccessfully There is
    > no source code available for the statement

    This may be related to the functionality having been missing somewhere.
    I just tested it in the repaired version and it is working as it should.

    Ciao, Neil

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.