Forums › Forums › SIMPOL Programming › Request 23?
- This topic has 7 replies, 2 voices, and was last updated 14 years, 4 months ago by Jim Locker.
- AuthorPosts
- November 26, 2009 at 8:47 pm #238Jim LockerMember
Any analog of this SBL requester?
November 30, 2009 at 4:38 pm #1641MichaelKeymasterJim wrote:
> Any analog of this SBL requester?
>In uisyshelp.sml (see project source code), there is a function called
getuserinput() that has an optional parameter: passwordstyle.Ciao, Neil
December 9, 2009 at 1:49 am #1806Jim LockerMemberSorry, I said request 23 when I meant request 20.
Hey! you don't expect me to say what I mean, now do you?
So, is there a request 20 analog?
December 10, 2009 at 4:45 pm #1566MichaelKeymasterJim wrote:
> Sorry, I said request 23 when I meant request 20.
>
> Hey! you don't expect me to say what I mean, now do you?
>
> So, is there a request 20 analog?
>NO, not yet. I have been intending to build one along the lines of
either 20/24/25 or else along the lines of the drilldown versions that I
did, but I just haven't gotten to it yet. If you want to make a run at
one, and contribute it back, I would certainly welcome it (I could use
it myself).Ciao, Neil
December 10, 2009 at 5:31 pm #1820Jim LockerMemberI guess I'm going to have to. I suppose I'll make it page rather than try
to load the entire database contents at one time; could take a long time
to load tens of thousands of entries…December 10, 2009 at 5:49 pm #1662MichaelKeymasterJim wrote:
> I guess I'm going to have to. I suppose I'll make it page rather
> than try to load the entire database contents at one time; could take
> a long time to load tens of thousands of entries…
>Paging is the right approach. What I did with the drilldown is to use
the characters typed by the user as the basis for a query. I also
limited the maximum number of results.Ciao, Neil
December 11, 2009 at 2:55 am #1821Jim LockerMemberWell, I now have a working request 20. It accepts an array of fields to
display, so the old 4 field limitation is gone. It has no filtering
capability because there is no generalized query engine for this database,
so I pass a function reference to a function that gets called after the
dataset is returned and before it is displayed. This permits that data to
be post-processed as necessary. If the function is not needed, it still
has to be present but can be a stub.The requester will filter on a selectkey.
My basic design philosophy has me completely separating the gui from the
database, and I am adhering to that philosophy here. The return from the
database functions is an array of results, not record objects or anything
like that, and the requester works with the arrays.In fact, my entire system decomposes into three functional components:
those that work with the database on one side and arrays on the other
side, those that work with forms on one side and arrays on the other side,
and those that work with arrays on both sides.In any case, the code for this requester needs to be cleaned up and needs
a bit of generalization (size of window is currently fixed and that needs
to be variable), and I sure would like to integrate that query engine you
have promised.But it works, and after I have cleaned it up a bit and move it to a
library I'll make it available.December 11, 2009 at 1:45 pm #1635MichaelKeymasterJim wrote:
> Well, I now have a working request 20. It accepts an array of fields
> to display, so the old 4 field limitation is gone. It has no
> filtering capability because there is no generalized query engine for
> this database, so I pass a function reference to a function that gets
> called after the dataset is returned and before it is displayed. This
> permits that data to be post-processed as necessary. If the function
> is not needed, it still has to be present but can be a stub.
>
> The requester will filter on a selectkey.
>
> My basic design philosophy has me completely separating the gui from
> the database, and I am adhering to that philosophy here. The return
> from the database functions is an array of results, not record
> objects or anything like that, and the requester works with the
> arrays.
>
> In fact, my entire system decomposes into three functional
> components: those that work with the database on one side and arrays
> on the other side, those that work with forms on one side and arrays
> on the other side, and those that work with arrays on both sides.
>
> In any case, the code for this requester needs to be cleaned up and
> needs a bit of generalization (size of window is currently fixed and
> that needs to be variable), and I sure would like to integrate that
> query engine you have promised.
>
> But it works, and after I have cleaned it up a bit and move it to a
> library I'll make it available.Cool! Good to hear it. There is always room for any number of these
types of popup, so even if somebody wants it to do something different,
they can use yours as a template for where to start.I look forward to the finished one.
Ciao, Neil
- AuthorPosts
- You must be logged in to reply to this topic.