Forum Replies Created
- AuthorPosts
- JD KromkowskiParticipant
How about this curious addition to problem which I think puts this on the
IDE.If I go to the actual .smp file in Explorer window
C:Program FilesSIMPOLProjectsexamplesdataformsbindataforms.smp
and "open with" smprun32 or with smpwin32
It all works fine!
This file
C:Program FilesSIMPOLProjectsexamplesdataformsbindataforms.smp
is 534 KB and was modified on 11/19/2010 4:43 pmbut this file (which DOES NOT work at all)
C:Program FilesSIMPOLProjectsexamplesdataformsdataformsdataforms.smp
is only 2KB and was modified on 11/19/2010 4:43 pmJD KromkowskiParticipantHow about this curious addition to problem which I think puts this on the IDE. If I go to the actual .smp file in Explorer window C:Program FilesSIMPOLProjectsexamplesdataformsbindataforms.smp and “open with” smprun32 or with smpwin32 It all works fine! This file C:Program FilesSIMPOLProjectsexamplesdataformsbindataforms.smp is 534 KB and was modified on 11/19/2010 4:43 pm but this file (which DOES NOT work at all) C:Program FilesSIMPOLProjectsexamplesdataformsdataformsdataforms.smp is only 2KB and was modified on 11/19/2010 4:43 pm
JD KromkowskiParticipantJust so I'm clear.
Are you saying that this:
C:Program FilesSIMPOLProjectsexamplesdataformsdataformsdataforms.sma
Is essentially the same code used in Personal in so far as applies to
opening a form?And that a form that "works" in Personal should also work with
"dataforms.sma"?Because this is patently not true with my fairly simple form.
I think that it is pretty clear Personal has something the can handle a
form with ppcs datatype which dataforms.sma is missing.Are you sure that the formlib that is currently available is not some
older version?What is difference between formlib.sml and databaseforms.lib
JD KromkowskiParticipantSadly, this error does not explain the form problem.
JD KromkowskiParticipantNeil Robinson wrote:
>> JDK: But what I don't understand is why when I simply use
>>
>> f =@ opendataform1(filename, error=e, errortext=errtext)
>>
>> instead of calling generated MyForm.sma, it still fails in the IDE,
>> but succeeds in Personal. See dataform1 project example, which fails
>> on this form which works fine in Personal.> It shouldn't succeed in Personal but fail in the IDE. Personal uses the
> same code.Maybe I should qualify what I mean by fail.
In Personal the MyForm.sxf opens and the data is visible and I can move
from record to record.But in IDE using
f =@ opendataform1(filename, error=e, errortext=errtext)
the form opens but there is no data visible.
JD KromkowskiParticipantNeil Robinson wrote:
> ppcs =@ ppcs.new("127.0.0.1:4000", error=e)
OK, this is what I thought. But I'm still never sure whether something is
a bug or something is something that I don't understand.So in the MyForm.sma sbme should be replaced everywhere by ppcs. Correct?
But this is more complicated because, e.g.
table =@ ppcs.opentable("EMPLOYEE", recordidfieldname="recid_ro_internal",
error=e)This won't work because ppcs doesn't have opentable as "method" (right
word?)Is this, below, what I need to do?
f =@ ppcs.openudpfile("127.0.0.1:4000",
"EMPLOYEE", error=iErrnum)But what I don't understand is why when I simply use
f =@ opendataform1(filename, error=e, errortext=errtext)
instead of calling generated MyForm.sma, it still fails in the IDE, but
succeeds in Personal. See dataform1 project example, which fails on this
form which works fine in Personal.Are there two different formlib? (One being used in Personal and one
available in IDE from formlib? I noticed opendataform1fromstring(). How
is this different opendatafrom1()JDK
JD KromkowskiParticipantWhy would it be looking for other copies of the IDE on the LAN? What would
it possible do with that information?I had come to think that maybe my form used datasource of PPCStype which
could I think throw the trying to access flag, but i haven't had chance to
look more closely at the issue.JD KromkowskiParticipantNeil Robinson wrote:
> Let me make a quick guess, does your report include date or time fields?
Yes, date and time fields.
I'm not sure that I have any reports that don't "use date or time fields"!
JD KromkowskiParticipantNeil 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 statementJD KromkowskiParticipantI finally tracked down the source of the error.
Some how there was very tiny corruption of code in the batch I was
running, which I kept missing.JD KromkowskiParticipantThat worked. Surprisingly, a reinstall didn't work. I'd have thought
that an install would delete the old registry keys.JD KromkowskiParticipantI don't think so. The .cfg is where it has always been. I also tried
your sample.cfg.Given the debug toolbar problem. I may just reinstall.
JDK
Neil Robinson wrote:
> Could it not be finding the config file that you are passing to it? That
> would also trigger this error.
> Ciao, NeilJD KromkowskiParticipantWell
JD KromkowskiParticipantI had already restarted many times. What are the registry keys. The tool
bar is there. I can turn it on an off. I can move it around. But it is
empty.JDK
> JDK wrote:
>> So I seem to have lost the debug tools. The debug toolbar is there.
>> But it's just blank. I can move the empty thing around. I can turn
>> it on and off. But it has nothing in it?
>>Neil Robinson wrote
> That is very strange. So you can see the toolbar itself, but there is
> nothing in it? My immediate thought is to do a restart and see if it
> persists. If it does, it may be necessary to delete a set of keys from
> the registry.
> Ciao, NeilJD KromkowskiParticipant1. Sorting
>> So the first thing is the sorting of the children. The data-aware
>> grid totally fails at this. For example, if I have a bunch of
>> records representing dates that are linked to the master by some
>> unique id, I'd want to display that detailblock in date order. Right
>> now you can't do that.> The grid component we are using is not a good choice for this sort of
> behavior, but when we added it, it was one of the few options available
> within wxWidgets. In the interim there are others, but they all require
> a significant investment of time and money.OK, but being able to sort the detailblock the way you want I think is
essential.> Some people do it this way in Superbase, others do it by defining a row
> at the top that is not actually part of the block, but which acts as if
> it were, and every selection is copied to that row.Wow, talk about a kludge.
2. Add and Modify/Delete buttons as optional parameters
>> So to me, the presence of an Add button and a Modify/Delete button
>> really should be incorporated right into the detailblock as a option,
>> like a parameter to have a scroll bar or not.> It is one of the options up for consideration, as is the right-mouse
> pop-up menu approach (less screen real-estate involved).>> When the detailblock records refer to externals (images or
>> documents),I still like using the invisible button. You are really
>> not doing anything to the row/record "selected", but are using some
>> data in the row/record to open up the image or document (e.g., PDFs,
>> TIFFs, BMPs, Word or WordPerfect) in its native program usually via
>> ShellExecute.> This could be done by using the double-click support in the onmouse
> event for each control. An extra button is not required.Yes, the invisible button was a way to simulate a particular ROW onmouse
event.3. OnSelectRow and OnSelecColumn
>> In the data-aware grids, it's kind of odd that there is no
>> onSelectRow event nor an onSelectColumn.> I have them on my internal wish list, but they have not yet been
> implemented.OnCellSelect event
> Actually, I use the oncellselect event of the grid to get that information.
I've not been able to successfully get that to work with the data-aware
grid. - AuthorPosts