OK, looks like I need to play with one of these.
How do I find the cursor name? Do I just reference it through the
BizObj "cAlias" property?
If that's the case, how would that have fixed Bhavbhuti's problem a
while back where he'd got several cursors named in his data
environment?
Hi Mark
You named me, so I have to respond :D. Not that I am up to the mark
today but here goes. How about trying oBO.GetAlias().
Quote: >>How about trying oBO.GetAlias().
Hi Bhavbhuti!
Damn! I use a method rather than referencing the property directly?
"Oooops" (that's a joke :lol: ).
Yeah, looks like CodeBook uses this method to set the BizObj's
"cAlias" property. I think this does what I want 'cos it returns the
primary alias. But my question (that mentioned you) still stands, how
would that help when the BizObj has multiple cursors reference?
That's more an exploration than something I
[b:1b26422822]need[/b:1b26422822] to know right now though 8)
Hi Mark
Quote: >>But my question (that mentioned you) still stands, how would
that help when the BizObj has multiple cursors reference?
Now my head is clearing :). I just use the other views I have
included directly, as I know the names.
Quote: >>Now my head is clearing :).
Yeah, evil stuff that booze...
Quote: >>I just use the other views I have included directly, as I
know the names.
Even if you're using "cDistinctDynamicViewCursor"???
Hi Mark
Quote: >>Yeah, evil stuff that booze...
:shock: Actually we are living in a dry state, but I was groggy with
flu medications.
Quote: >>Even if you're using "cDistinctDynamicViewCursor"???
Hey wait, this was for BO containing multiple views, one main and
other lookups.
Quote: >>:shock: Actually we are living in a dry state, but I was
groggy with flu medications.
Ooops.
Quote: >>Hey wait, this was for BO containing multiple views, one main
and other lookups.
I know. That's what I'm asking about.
If I could find the @#!!*%! place it loads the cursors I'd see what it
does. Too little time, too much to do :(
Quote: >>If I could find the @#!!*%! place it loads the cursors I'd
see what it does. Too little time, too much to do :(
Well, best of luck.
Quote: >>Well, best of luck.
Damn! That was a silent invitation for you to do the work! :oops:
OK, I've found it. It's in cdataenv.prg, which of course I shoulda
known.
On a fairly quick inspection it looks like it opens the cursors and
adds a number on the end to ensure uniqueness, and does it for all the
cursors in a dataenvironment. It seems to open an entirely separate
database for cursors opened this way too. Looks like it works (of
course).
I'm not entirely sure how you'd find the one you'd want. Whilst it
would be easy to find the list (there's an array in the
dataenvironment object) how would you find a view that you wanted? Oh
well, mebbe I'll have a play, when I've got some time (hah!)
Quote: >>Damn! That was a silent invitation for you to do the work!
:oops:
Gotcha :razz:
Quote: >>I'm not entirely sure how you'd find the one you'd want.
Whilst it would be easy to find the list (there's an array in the
dataenvironment object) how would you find a view that you wanted? Oh
well, mebbe I'll have a play, when I've got some time (hah!)
Aren't you supposed to know which one has been used. I can always
access the lookup view with it's original name. One thing that
strikes me as I am typing this is what if the same lookup view is used
in 2 BOs on the same form, then maybe I will have to use
cDistinctD...V...C... I haven't used it yet but I will try that
sometimes, but don't hold your breath :D .